/* Doko Agent — page layer. Every colour, font, radius and component look comes from
   css/system.css (the design). This file only carries the pieces this page adds: the pinned
   session row, its progress bar, and one or two alignments. */

:root {
  --sk-top: 72px;
}

/* The hero sits on the parallax field; keep the drawn grid and the beam inside the frame. */
.hero--refract { position: relative; }
.hero--refract .hero__copy { gap: 26px; }
.hero--refract h1 { font-size: clamp(42px, 5.6vw, 88px); }
.hero--refract .hero__actions { margin-top: 4px; }

/* Hero intro is driven by the kit: it only needs its own paint. */
.refractor__tag { backdrop-filter: blur(6px); }

/* ---------------------------------------------------------------- the pinned session row */

#session { padding-block: clamp(56px, 7vw, 96px) 0; }
#session .section__head { margin-bottom: clamp(20px, 2.4vw, 32px); }
#session .section__head--spread { align-items: end; }

.track-wrap {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 20px);
  padding-bottom: clamp(20px, 3vw, 40px);
}

.track-bar {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-family: var(--font-label);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.track-bar__label b { color: var(--color-ink); font-weight: 500; }
.track-bar__rail {
  position: relative;
  flex: 1;
  min-width: 40px;
  height: 1px;
  background: var(--color-border);
}
.track-bar__fill {
  position: absolute;
  inset: 0;
  background: var(--split-light);
  scale: 0 1;
  transform-origin: 0 50%;
  box-shadow: 0 0 12px rgba(134, 229, 242, 0.45);
}
.track-bar__hint { white-space: nowrap; color: #6F7A87; }

.session-track {
  align-items: stretch;
  /* The row runs edge to edge so the whole screen carries it and the last card travels fully in;
     its own inline padding keeps the first card off the edge. */
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}

.session-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 12px;
  align-content: start;
  width: min(78vw, 400px);
  padding: clamp(20px, 2.2vw, 28px);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgba(18, 24, 33, 0.86), rgba(9, 12, 17, 0.92));
  box-shadow: var(--rim), var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: border-color 400ms var(--ease-slow), scale 500ms var(--ease-slow), background-color 400ms ease;
}
.session-card:hover { border-color: var(--color-border-strong); }
.session-card__no {
  font-family: var(--font-label);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.session-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 400;
  letter-spacing: -0.024em;
  line-height: 1.16;
}
.session-card p { font-size: 14.5px; color: var(--color-muted); max-width: 34ch; }
.session-card__log {
  margin: 2px 0 0;
  padding: 14px 16px;
  border-radius: 8px;
  background: #05070A;
  box-shadow: inset 0 0 0 1px var(--color-border);
  font-family: var(--font-label);
  font-size: 12px;
  line-height: 1.8;
  color: #B4BDC7;
  overflow-x: auto;
  white-space: pre;
}
.session-card__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  font-family: var(--font-label) !important;
  font-size: 11px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  max-width: none !important;
}
.session-card__foot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c, var(--band-ice));
  box-shadow: 0 0 10px var(--c, var(--band-ice));
  flex: none;
}

/* The near card is the one the row is currently on. */
html.sk-on #session .session-card.is-near { border-color: var(--color-border-strong); }

/* ---------------------------------------------------------------- voice */

/* Two voices, divided by a hairline: the same size for both, so neither shouts. */
.voice-split blockquote { font-size: clamp(21px, 2.2vw, 32px); line-height: 1.28; letter-spacing: -0.022em; color: #C9D0D7; max-width: 42ch; }

.voice-split--second {
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--color-border);
}
.voice-split--second blockquote { color: #BFC8D1; }
.voice-split--second .voice-split__by { border-top: 0; padding-top: 0; }
.voice-split--second .voice-initials {
  background: linear-gradient(160deg, rgba(134, 229, 242, 0.26), rgba(238, 127, 214, 0.14));
}

.voice-initials {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(154, 140, 255, 0.3), rgba(134, 229, 242, 0.16));
  box-shadow: inset 0 0 0 1px rgba(237, 241, 244, 0.18);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-ink);
}

/* ---------------------------------------------------------------- in the field (scrollytelling) */

#field { padding-bottom: clamp(48px, 6vw, 80px); }

.field-story { align-items: start; }

.field-media {
  /* The kit makes this sticky; the frame keeps the photo inside a hairline and a dark well. */
  align-self: start;
}

.field-shot {
  position: relative;
  display: grid;
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #05070A;
  box-shadow: inset 0 0 0 1px var(--color-border), 0 40px 80px -50px rgba(0, 0, 0, 0.95);
}
.field-shot img {
  display: block;
  width: 100%;
  height: min(58vh, 460px);
  object-fit: cover;
  object-position: 50% 22%;
  filter: saturate(0.72) contrast(1.06) brightness(0.82);
}
.field-shot figcaption {
  display: grid;
  gap: 4px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(18, 24, 33, 0.9), rgba(7, 9, 13, 0.96));
  font-family: var(--font-label);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}
.field-shot figcaption b {
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.field-steps { display: grid; }

.field-step {
  display: grid;
  gap: 10px;
  align-content: center;
  max-width: 40ch;
  padding-block: clamp(24px, 5vw, 56px);
}
.field-step h3 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 300;
  letter-spacing: -0.028em;
  line-height: 1.12;
}
.field-step p { color: var(--color-muted); font-size: 15.5px; }
.field-step .sect-no { color: #6F7A87; }

@media (max-width: 960px) {
  .field-media { position: relative; }
  .field-shot img { height: min(46vh, 340px); }
  .field-step { max-width: none; padding-block: 28px; }
}

/* ---------------------------------------------------------------- small polish */

.answer-sheet__body code,
.session-card__log code,
.gate-log code {
  font-family: var(--font-label);
  font-size: 0.92em;
  color: var(--color-ink);
}

.band-tier .btn, .hero__actions .btn { will-change: translate; }

/* The nav's current section link. */
.nav__links a[aria-current="page"] { color: var(--color-ink); background-size: 100% 1px; }

/* ---------------------------------------------------------------- phones */

@media (max-width: 960px) {
  #session { padding-bottom: 8px; }
  .session-card { width: min(84vw, 380px); }
}

/* One icon set, one stroke width, one size per context. */
.icon {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--color-muted);
  vertical-align: -2px;
}
.session-card__no {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.session-card__no .icon { width: 16px; height: 16px; color: var(--band-ice); }
.beam-step__no {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.beam-step__no .icon { width: 17px; height: 17px; color: var(--color-ink); }
.band-tier__name {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.band-tier__name .icon { width: 16px; height: 16px; }
.band-tier--lit .band-tier__name .icon { color: var(--color-accent); }

.footer__social {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.footer__social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--color-border);
  color: #B4BDC7;
  transition: color 200ms ease, box-shadow 200ms ease, translate 300ms var(--ease-slow);
}
.footer__social a:hover {
  color: var(--color-ink);
  box-shadow: inset 0 0 0 1px var(--color-border-strong);
  translate: 0 -2px;
}
.footer__social .icon { width: 18px; height: 18px; color: inherit; }

@media (max-width: 640px) {
  .track-bar__hint { display: none; }
  .session-card { width: 84vw; padding: 20px; }
  .session-card__log { font-size: 12px; }
  .session-card__no, .session-card__foot { font-size: 12px !important; }
  .track-bar { font-size: 12px; }
  .hero--refract h1 { font-size: clamp(38px, 10vw, 52px); }
  .voice-initials { width: 48px; height: 48px; font-size: 16px; }
  .band-key { font-size: 13px; }
  .footer__base { font-size: 12px; }
  .refractor__note { font-size: 12px; }
}

/* Nothing on the page may scroll sideways. */
html, body { overflow-x: clip; max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .session-card, .track-bar__fill { transition: none !important; }
}

/* The official Doko Agent logo in the nav and footer. */
.nav__logo { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 0 0 1px rgba(237, 241, 244, 0.16); flex: none; }
