/* Landing page only. Shared chrome, type and components live in site.css. */
.home { font-size:16px; }
.home h1 { font-size:clamp(48px,5.2vw,84px); line-height:.98; letter-spacing:-.4px; }
.home h2 { font-size:clamp(40px,4.6vw,68px); line-height:1.02; }
/* Hero */
/* The artwork fades out towards the foot of the hero, where small text sits. */
.hero { background:linear-gradient(180deg,#10111800 44%,var(--sidebar) 78%),var(--sidebar) url('./brand/hero-space.webp') center top / cover no-repeat; border-bottom:1px solid var(--line); }
.hero-inner { max-width:1600px; margin:auto; padding:64px 5.5vw 48px; display:grid; grid-template-columns:minmax(0,1.02fr) minmax(0,1fr); align-items:center; gap:56px; }
.hero-copy { max-width:640px; }
.hero .eyebrow { margin-bottom:26px; }
.brand-dot { color:var(--accent); }
.access { margin-top:22px; font-size:12px; color:var(--muted); display:flex; align-items:center; gap:9px; }
.access-mark { width:7px; height:7px; background:var(--teal); border-radius:50%; }
.access-also { margin-top:8px; padding-left:16px; color:var(--muted); font-size:13px; }

/* The hand-off loop: a ring of six stops. Selecting a stop lights its lifecycle arc (teal),
   the hop that arrives at it (gold) and the stop itself (orange). */
.loop { container:loop / inline-size; width:100%; max-width:600px; justify-self:end; }
.loop-body { position:relative; }
.loop-ring { position:relative; aspect-ratio:1; }
/* An instrument face behind the ring, so its text never sits on the hero artwork. */
.loop-ring::before { content:""; position:absolute; inset:-1%; border-radius:50%; background:radial-gradient(closest-side,var(--sidebar) 78%,#101118e6 92%,transparent); }
.loop-track { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.track { fill:none; stroke:var(--line-strong); stroke-width:1.5; stroke-dasharray:1471; animation:draw 1.2s .1s var(--ease-standard) backwards; }
.arc { fill:none; stroke:var(--line); stroke-width:6; stroke-linecap:round; transition:stroke var(--duration-normal); }
.hop { fill:none; stroke:var(--line-strong); stroke-width:3; stroke-linecap:round; stroke-linejoin:round; transition:stroke var(--duration-normal); }
.loop[data-stage=intend] .arc-intend,.loop[data-stage=code] .arc-code,.loop[data-stage=deployed] .arc-deployed,.loop[data-stage=observed] .arc-observed { stroke:var(--teal); }
.loop[data-step="1"] .hop-1,.loop[data-step="2"] .hop-2,.loop[data-step="3"] .hop-3,.loop[data-step="4"] .hop-4,.loop[data-step="5"] .hop-5,.loop[data-step="6"] .hop-6 { stroke:var(--gold); }
.loop-mark { position:absolute; left:50%; top:50%; translate:-50% -50%; width:36%; }
.station { position:absolute; translate:-50% -50%; display:inline-flex; align-items:center; gap:7px; min-height:40px; padding:6px 10px; background:var(--sidebar); border:1px solid var(--line-strong); border-radius:var(--radius-control); color:var(--ink); font-weight:600; font-size:12.5px; white-space:nowrap; transition:background var(--duration-fast),border-color var(--duration-fast),color var(--duration-fast); }
.station:hover { border-color:var(--ink); }
.station-n { color:var(--teal); font-variant-numeric:tabular-nums; }
.station[aria-selected=true] { background:var(--accent); border-color:var(--accent); color:var(--on-accent); }
.station[aria-selected=true] .station-n { color:inherit; }
.station-yours { border-style:dashed; }
.station-1 { left:50%; top:11%; }
.station-2 { left:83.8%; top:30.5%; }
.station-3 { left:83.8%; top:69.5%; }
.station-4 { left:50%; top:89%; }
.station-5 { left:16.2%; top:69.5%; }
.station-6 { left:16.2%; top:30.5%; }
@keyframes draw { from { stroke-dashoffset:1471; } }
.loop-panels { margin-top:20px; min-height:190px; padding:20px 22px; background:var(--sidebar); border:1px solid var(--line); border-radius:var(--radius-panel); }
.loop-title { font:800 30px/1.1 var(--font-display); margin-bottom:10px; }
.loop-panel>p:not([class]) { color:var(--muted); font-size:14.5px; line-height:1.5; }
.loop-meta { display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin-top:14px; font-size:13px; }
.loop-foot { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:18px; padding-top:14px; border-top:1px solid var(--line); }
.loop-stages { list-style:none; display:flex; flex-wrap:wrap; margin:0; padding:0; font-size:13px; color:var(--muted); }
.loop-stages li+li::before { content:"→"; margin:0 9px; color:var(--line-strong); font-weight:400; }
.loop-stages [aria-current] { color:var(--teal); font-weight:600; }
.loop-next { display:inline-flex; align-items:center; gap:10px; min-height:40px; padding:8px 14px; background:var(--sidebar); border:1px solid var(--line-strong); border-radius:var(--radius-control); color:var(--ink); font-size:13px; font-weight:600; white-space:nowrap; transition:background var(--duration-fast),border-color var(--duration-fast); }
.loop-next:hover { background:var(--surface); border-color:var(--ink); }
.loop-next span { color:var(--gold); font-size:16px; line-height:1; }
.loop figcaption { margin-top:12px; color:var(--muted); font-size:12px; }
@container loop (min-width:520px) {
  .loop-mark { display:none; }
  .station { min-height:44px; padding:8px 14px; font-size:14px; gap:8px; }
  .loop-panels { position:absolute; left:50%; top:50cqw; translate:-50% -50%; width:45%; min-height:0; margin:0; padding:0; background:none; border:0; text-align:center; }
  .loop-title { font-size:28px; margin-bottom:8px; }
  .loop-panel>p:not([class]) { font-size:13.5px; }
  .loop-meta { justify-content:center; margin-top:12px; }
}
.legend { max-width:1424px; margin:0 5.5vw; padding:20px 0 24px; border-top:1px solid var(--line); display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px 28px; }
.legend dd { margin:8px 0 0; color:var(--muted); font-size:13px; }

/* Agents: one panel per stop in the loop, each under a picture of the product */
.roster { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:64px 48px; }
.agent { display:flex; flex-direction:column; min-width:0; scroll-margin-top:24px; }
.agent>.shot { order:-1; margin-bottom:26px; }
.agent>.shot figcaption { min-height:38px; }
.agent>.shot-code pre,.agent>.shot .stages { aspect-ratio:1600 / 1000; display:flex; align-items:center; align-content:center; justify-content:center; }
.agent-head { display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:20px; margin-bottom:14px; }
.agent-step { grid-row:1 / span 3; font:800 60px/.9 var(--font-display); color:var(--line-strong); }
.agent-head h3 { font-size:34px; line-height:1.05; }
.home .agent-head h3 a { text-decoration:none; }
.agent-line { margin:8px 0 12px; font-size:17px; font-weight:500; }
.handoff { margin-top:12px; color:var(--muted); font-size:14.5px; }
.handoff strong { margin-right:6px; color:var(--teal); font-size:12.5px; font-weight:600; }
.agent-actions { display:flex; flex-wrap:wrap; align-items:center; gap:14px 22px; margin-top:20px; }
.agent-actions .more { font-weight:600; }
.agent-actions .button { min-height:44px; padding:10px 16px; box-shadow:none; }
.agent-yours { margin:-20px; padding:20px; border:1px dashed var(--line-strong); border-radius:var(--radius-panel); background:var(--sidebar); }
.agent .shot-code pre { padding:18px; font-size:12.5px; }

/* Platform */
.band-split { display:grid; grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr); gap:64px; align-items:center; margin-bottom:60px; }
.band-split p { margin-top:24px; color:var(--muted); font-size:17px; max-width:54ch; }
.evidence-grid { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:28px; }
.evidence-grid li { border-top:3px solid var(--accent); padding-top:22px; }
.evidence-grid li:nth-child(n+3) { border-color:var(--teal); }
.evidence-grid h3 { margin:14px 0; font-size:32px; }
.evidence-grid li>p:last-child { color:var(--muted); font-size:14px; }
.shared { margin:0; display:grid; grid-template-columns:1fr 1fr; gap:0 64px; }
.shared>div { display:grid; grid-template-columns:minmax(0,.62fr) minmax(0,1fr); gap:20px; padding:22px 0; border-top:1px solid var(--line); }
.shared dt { font:800 24px/1.15 var(--font-display); }
.shared dt .status { display:flex; width:max-content; margin-top:10px; }
.shared+.sub-title,.evidence-grid+.sub-title { margin-top:64px; }
.shared dd { margin:0; color:var(--muted); font-size:14.5px; }
/* Record */
.board { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-panel); }
.board>section { padding:28px; }
.board>section+section { border-left:1px solid var(--line); }
.board h3 { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:6px; font:inherit; }
.board ul { list-style:none; margin:0; padding:0; }
.board li { padding:13px 0; border-bottom:1px solid var(--line); font-size:14.5px; line-height:1.5; }
.board li:last-child { border-bottom:0; padding-bottom:0; }
.board li .status { margin-left:4px; }
.measures { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:64px; align-items:start; }
.measures dl { margin:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.measures dt { font:800 clamp(44px,4.4vw,66px)/1 var(--font-display); white-space:nowrap; }
.measures dd { margin:10px 0 0; color:var(--muted); font-size:14px; }
.measures figcaption { margin-top:22px; padding-top:16px; border-top:1px solid var(--line); color:var(--muted); font-size:13px; }
.measures-note h4 { margin-bottom:12px; font:800 26px/1.15 var(--font-display); }
.measures-note p { margin-bottom:12px; color:var(--muted); font-size:15px; max-width:62ch; }

/* Control */
.control-list { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 56px; }
.control-list li { padding:24px 0; border-top:1px solid var(--line); color:var(--muted); font-size:15px; }
.control-list strong { display:block; margin-bottom:8px; color:var(--ink); font:800 24px/1.15 var(--font-display); }

/* Closing */
.closing { background:var(--sidebar); text-align:center; padding:64px 5.5vw; }
.closing-mark { display:block; width:150px; margin:20px auto; }
.closing h2 { margin:20px 0 34px; }
.closing .hero-actions { justify-content:center; }
.closing-note { margin-top:22px; font-size:12px; color:var(--muted); }

@media(min-width:1600px) { .legend { margin-inline:auto; } }
@media(max-width:1180px) {
  .roster { grid-template-columns:repeat(2,minmax(0,1fr)); gap:56px 44px; }
  .evidence-grid { grid-template-columns:1fr 1fr; gap:36px 28px; }
  .shared { grid-template-columns:1fr; }
  .control-list { grid-template-columns:1fr 1fr; }
}
@media(max-width:960px) {
  .hero-inner { grid-template-columns:1fr; gap:44px; padding-top:52px; }
  .loop { justify-self:center; max-width:560px; }
  .legend { grid-template-columns:1fr 1fr; }
  .roster { grid-template-columns:minmax(0,1fr); }
  .measures { grid-template-columns:1fr; gap:36px; }
  .band-split { grid-template-columns:1fr; gap:32px; margin-bottom:44px; }
  .board { grid-template-columns:1fr; }
  .board>section+section { border-left:0; border-top:1px solid var(--line); }
}
@media(max-width:760px) {
  .hero-inner { padding:44px 6vw 36px; }
  .home h1 { font-size:clamp(44px,12.4vw,72px); }
  .legend { margin-inline:6vw; }
  .agent-step { font-size:56px; }
  .agent-head h3 { font-size:32px; }
  .agent-yours { margin:-14px; padding:14px; }
  .shared>div { grid-template-columns:1fr; gap:8px; }
  .control-list { grid-template-columns:1fr; }
  .measures dl { gap:16px; }
  .closing { padding:56px 6vw; }
}
@media(max-width:480px) {
  .legend,.evidence-grid { grid-template-columns:1fr; }
  .measures dl { grid-template-columns:1fr; }
  .loop-foot { flex-direction:column; align-items:flex-start; }
}
