/* ===================================================================
   CARTFIT.AI · details.css
   section 02 — product details / spec
   load order matters — see index.html
   =================================================================== */

/* =================================================================
   02 / DETAILS
   ================================================================= */
.details {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 48px;
}

.d-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.d-head__c { display: flex; align-items: center; justify-content: center; }
.d-head__r { display: flex; justify-content: flex-end; }

.d-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--fg-0);
  display: inline-flex; align-items: center; gap: 32px;
}
.d-title__rule {
  display: inline-block;
  width: clamp(80px, 14vw, 220px);
  height: 1px;
  background: var(--fg-3);
}

.d-body {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.d-body__l { display: flex; flex-direction: column; gap: 28px; padding-top: 16px; }

.d-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
}
.d-eyebrow__rule {
  display: inline-block; width: 60px; height: 1px;
  background: var(--line-3);
}

.d-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(56px, 8vw, 128px);
  line-height: .92;
  letter-spacing: -0.01em;
  color: var(--fg-0);
}
.d-name__sub {
  display: block;
  font-size: 0.32em;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--fg-2);
  margin-top: 12px;
  font-family: var(--font-mono);
}

.d-en {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.3;
  color: var(--fg-1);
  letter-spacing: 0;
  margin-top: -4px;
}
.d-jp {
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--fg-2);
}
.d-desc {
  font-family: var(--font-jp);
  font-size: 14px;
  line-height: 1.85;
  color: var(--fg-2);
  max-width: 44ch;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line-1);
}

.d-actions { display: flex; gap: 16px; margin-top: 8px; }

/* right: image frame */
.d-body__r { display: flex; flex-direction: column; gap: 32px; }
.d-frame {
  position: relative;
  border: 1px solid var(--line-3);
  background: var(--bg-1);
}
.d-frame__tag {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em;
  color: var(--fg-3);
  z-index: 2;
}
.d-frame__tag--r { left: auto; right: 12px; color: var(--fg-2); }
.d-frame__inner {
  position: relative;
  aspect-ratio: 16/10;
  display: grid; place-items: center;
  background:
    linear-gradient(0deg, rgba(255,255,255,.012), rgba(255,255,255,.012)),
    repeating-linear-gradient(0deg,
      transparent 0 24px,
      rgba(255,255,255,.025) 24px 25px),
    repeating-linear-gradient(90deg,
      transparent 0 24px,
      rgba(255,255,255,.018) 24px 25px);
  overflow: hidden;
}
.d-frame__placeholder {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.24em;
  color: var(--fg-3);
}
/* product 3D model video — black bg → screen-blended so only the model shows */
.d-model {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: contrast(1.05) brightness(1.05);
  pointer-events: none;
}
.corner--ghost { width: 10px; height: 10px; border-color: var(--fg-3); }
.d-frame .corner--tl { top: 8px; left: 8px; }
.d-frame .corner--tr { top: 8px; right: 8px; }
.d-frame .corner--bl { bottom: 8px; left: 8px; }
.d-frame .corner--br { bottom: 8px; right: 8px; }

.d-frame__scan {
  position: absolute; left: 0; right: 0; top: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,255,0,.35), transparent);
  animation: scan 5s ease-in-out infinite;
}
@keyframes scan {
  0%   { top: 12%; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 92%; opacity: 0; }
}

/* annotation callouts */
.anno {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em;
  color: var(--fg-2);
  z-index: 3;
}
.anno__dot { width: 6px; height: 6px; border: 1px solid var(--accent); background: transparent; flex: none; }
.anno__line { display: inline-block; height: 1px; background: var(--line-3); flex: none; }
.anno__txt { display: inline-flex; align-items: center; gap: 8px; }
.anno__txt .tag { color: var(--accent); }
.anno--a { top: 22%; left: 24%; }
.anno--a .anno__line { width: 80px; }
.anno--b { top: 48%; right: 12%; flex-direction: row-reverse; }
.anno--b .anno__line { width: 70px; }
.anno--b .anno__txt { flex-direction: row-reverse; }
.anno--c { bottom: 22%; left: 18%; }
.anno--c .anno__line { width: 100px; }

/* spec list */
.spec {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line-2);
}
.spec__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line-1);
}
.spec__row dt { color: var(--fg-2); }
.spec__row dd { display: flex; align-items: center; gap: 16px; }
.spec__row .leader {
  flex: 1; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-3) 0 4px, transparent 4px 8px);
}

/* =================================================================
   responsive — details (+ shared d-head)
   ================================================================= */
@media (max-width: 1100px) {
  .d-body { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .d-title { font-size: 48px; gap: 16px; }
  .d-title__rule { width: 60px; }
}
@media (max-width: 768px) {
  .d-head {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 32px;
  }
  .d-head__c { display: none; }
  .d-head__r { justify-content: flex-end; }

  .d-body { gap: 40px; }
  .d-body__l, .d-body__r { width: 100%; }
  .d-eyebrow { margin-bottom: 16px; }
  .d-name { font-size: clamp(32px, 9vw, 48px); letter-spacing: 0.02em; }
  .d-en { font-size: 13px; letter-spacing: 0.01em; }
  .d-jp { font-size: 12px; letter-spacing: 0.06em; }
  .d-desc { font-size: 12px; letter-spacing: 0.02em; line-height: 1.9; }
  .d-frame { width: 100%; margin-bottom: 24px; }
  .anno { display: none; }
  .spec { margin-top: 20px; width: 100%; }
  .spec__row { padding: 10px 0; }
}

