/* DLM Auto — direction B: the session map
   Mobile-first. Without JS (or below 900px) the map is a vertical path of text.
   At 900px+ with JS it becomes a pinned, scroll-stepped scene; .has-3d adds WebGL. */

:root {
  --bg: #0f0f10;
  --bg-deep: #0b0b0d;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #f3f4f7;
  --ink-2: #c3c6cf;
  --ink-3: #969aa6;
  --cyan: #8be7f8;
  --blue: #5a8cff;
  --violet: #b8a2ff;
  --orange: #fe4f0e;
  --prism: linear-gradient(100deg, #8be7f8 0%, #5a8cff 52%, #b8a2ff 100%);
  --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: 20px;
  --header-h: 64px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
}
@media (min-width: 900px) {
  :root { --gutter: clamp(32px, 4.4vw, 72px); --header-h: 68px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
ol, ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: #fff; color: #000; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  vertical-align: middle;
  padding: 3px 9px 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font: 500 11px/1.3 var(--mono);
  letter-spacing: 0.02em;
  color: var(--ink-2);
  white-space: nowrap;
  transform: translateY(-2px);
}
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-2); }
/* "Coming soon": told apart by shape (dashed edge, hollow ring), never by hue */
.chip-soon { border-style: dashed; border-color: rgba(255,255,255,.3); }
.chip-soon::before { width: 6px; height: 6px; background: transparent; box-shadow: 0 0 0 1.5px var(--ink-2) inset; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 22px;
  border-radius: 999px;
  font: 500 15px/1 var(--font);
  text-decoration: none;
  transition: background-color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-solid { background: #f3f4f7; color: #0f0f10; box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 8px 24px -10px rgba(139, 170, 255, .6); }
.btn-solid:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.05); }
.link-quiet { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.link-quiet:hover { color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: linear-gradient(to bottom, rgba(11, 11, 13, .7), rgba(11, 11, 13, .34));
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
  transition: background-color .4s var(--ease);
}
/* hairline once the page scrolls, catching a little of the mark's colour under the brand */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background:
    linear-gradient(90deg, transparent var(--gutter), rgba(139, 231, 248, .34) calc(var(--gutter) + 18px), rgba(184, 162, 255, .28) calc(var(--gutter) + 70px), transparent calc(var(--gutter) + 190px)),
    rgba(255, 255, 255, .075);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.site-header.is-scrolled { background-color: rgba(11, 11, 13, .28); }
.site-header.is-scrolled::after { opacity: 1; }
.header-inner {
  height: 100%;
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.brand img { width: 26px; height: auto; }

/* The mark: the flat SVG until header-mark.js has the live chrome mark ready (.is-3d). */
.brand-mark {
  --mark-box: 46px;
  position: relative; flex: none;
  width: 32px; height: 32px;
  display: grid; place-items: center;
}
.brand-canvas {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: var(--mark-box); height: var(--mark-box);
  margin: calc(var(--mark-box) / -2) 0 0 calc(var(--mark-box) / -2);
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.brand-glow { /* the mark's light, reflected faintly on the bar */
  position: absolute; left: 50%; top: 50%; z-index: 0;
  width: 104px; height: 60px; margin: -30px 0 0 -52px;
  background:
    radial-gradient(closest-side at 36% 52%, rgba(79, 214, 245, .2), transparent),
    radial-gradient(closest-side at 66% 50%, rgba(160, 128, 255, .2), transparent);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.brand-mark img { transition: opacity .4s var(--ease); }
.brand-mark.is-3d img { opacity: 0; }
.brand-mark.is-3d .brand-canvas { opacity: 1; }
.brand-mark.is-3d .brand-glow { visibility: visible; }
.brand > span:last-child { position: relative; z-index: 1; }
/* ?header=dock: the canvas leaves the slot and is placed by header-mark.js (the header is its containing block) */
.site-header.is-dock .brand-canvas { position: fixed; left: 0; top: 0; margin: 0; will-change: transform; }
.nav { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-actions .link-quiet { display: none; }
.menu-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-2); border-radius: 50%;
  cursor: pointer;
}
.menu-icon, .menu-icon::before { display: block; width: 14px; height: 1.5px; background: var(--ink); position: relative; }
.menu-icon::before { content: ""; position: absolute; top: 5px; }
.menu-icon { transform: translateY(-2.5px); }
.nav.is-open {
  display: flex; flex-direction: column;
  position: absolute; top: var(--header-h); left: 0; right: 0;
  padding: 8px var(--gutter) 20px;
  background: rgba(11, 11, 13, .96);
  border-bottom: 1px solid var(--line);
}
.nav.is-open a { padding: 12px 0; text-decoration: none; font-size: 17px; border-bottom: 1px solid var(--line); }

@media (max-width: 420px) {
  .header-actions .btn-sm { padding: 0 13px; font-size: 13px; }
}
@media (min-width: 900px) {
  .nav { display: flex; gap: 30px; margin-left: 36px; }
  .nav a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; transition: color .2s; }
  .nav a:hover { color: var(--ink); }
  .header-actions { gap: 22px; }
  .header-actions .link-quiet { display: inline; }
  .menu-btn { display: none; }
}

/* ================================================================
   SESSION MAP — base: vertical path (phones, no JS)
   ================================================================ */
.map-scroll { position: relative; }
.map-stage {
  position: relative;
  padding: calc(var(--header-h) + 44px) var(--gutter) 56px;
  background:
    radial-gradient(120% 60% at 80% 0%, rgba(90, 140, 255, .10), transparent 60%),
    radial-gradient(80% 50% at 0% 30%, rgba(139, 231, 248, .06), transparent 60%),
    var(--bg);
}
.map-canvas, .map-vignette, .stage-nav, .mandy-tag, .map-progress { display: none; }

.hero-copy h1 {
  margin-top: 16px;
  font-size: clamp(44px, 12vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.lede { margin-top: 20px; color: var(--ink-2); font-size: 17px; line-height: 1.55; max-width: 34em; }

.panel { margin-top: 44px; }
.panel-details { position: relative; }
/* the rail */
.panel-details::before {
  content: ""; position: absolute; left: 11px; top: 150px; bottom: 16px; width: 2px;
  background: linear-gradient(to bottom, rgba(139,231,248,.7), rgba(90,140,255,.7) 50%, rgba(184,162,255,.7));
  border-radius: 2px;
  opacity: .55;
}
.stage-detail { position: relative; padding: 0 0 30px 44px; }
.stage-detail[data-detail="-1"] { padding-left: 0; padding-bottom: 34px; }
.stage-detail:not([data-detail="-1"])::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 3px, transparent 4px),
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), rgba(255,255,255,.05) 60%),
    #1a1c24;
  box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset, 0 0 18px rgba(120, 170, 255, .45);
}
.detail-kicker { display: flex; gap: 10px; align-items: baseline; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; color: var(--ink-3); }
.detail-kicker .num { color: var(--ink-2); }
.detail-status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; letter-spacing: .04em; color: var(--ink-3); }
.detail-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 0 1.2px var(--ink-3) inset; align-self: center; }
.detail-title { margin-top: 8px; font-size: 24px; line-height: 1.2; }
.detail-body { margin-top: 10px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.detail-tagline { margin-top: 10px; font-size: 16px; font-weight: 500; color: var(--ink); }
.detail-link {
  display: inline-flex; gap: 8px; margin-top: 14px;
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line-2); padding-bottom: 2px;
  transition: border-color .2s, gap .2s var(--ease);
}
.detail-link:hover { border-color: #fff; gap: 12px; }
.panel-foot { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.mandy-line { color: var(--ink-2); font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.mandy-line strong { color: var(--ink); font-weight: 500; }
.mandy-kicker { display: block; font: 400 11.5px/1.4 var(--mono); letter-spacing: .04em; color: var(--ink-3); margin-bottom: 3px; }
.mandy-dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 5px;
  background: #e9e4ff; box-shadow: 0 0 0 3px rgba(233,228,255,.12), 0 0 12px rgba(233,228,255,.7);
}

/* ================================================================
   SESSION MAP — 900px+ with JS: pinned, stepped by scroll
   ================================================================ */
@media (min-width: 900px) {
  .js .map-scroll { height: calc(100vh + 5 * 46vh); }
  .js .map-stage {
    position: sticky; top: 0;
    height: 100vh; min-height: 640px;
    padding: 0;
    overflow: hidden;
    background:
      radial-gradient(70% 70% at 68% 58%, rgba(70, 110, 220, .09), transparent 70%),
      var(--bg-deep);
  }
  .js .map-copy {
    position: absolute; z-index: 3;
    left: var(--gutter);
    top: calc(var(--header-h) + clamp(28px, 6vh, 64px));
    bottom: clamp(24px, 4.5vh, 44px);
    width: min(468px, 35vw);
    display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
    pointer-events: none;
  }
  .js .map-copy > * { pointer-events: auto; }
  .js .hero-copy h1 { font-size: clamp(52px, 5.4vw, 80px); margin-top: 18px; }
  .js .lede { font-size: 18px; margin-top: 22px; max-width: 26em; }

  /* the explanation panel: one card, articles stacked in a single grid cell */
  .js .panel {
    margin: 0;
    position: relative;
    padding: 26px 28px 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 1px 0 rgba(255,255,255,.07) inset, 0 30px 60px -30px rgba(0,0,0,.8);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    backdrop-filter: blur(20px) saturate(130%);
  }
  .js .panel::before { /* prism hairline along the top edge */
    content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px;
    background: var(--prism); opacity: .7;
  }
  /* map.js sets the height to the active entry; the clip margin keeps focus rings visible */
  .js .panel-details { display: grid; align-items: start; overflow: clip; overflow-clip-margin: 8px; transition: height .5s var(--ease); }
  .js .panel-details::before { display: none; }
  .js .stage-detail {
    grid-area: 1 / 1;
    padding: 0;
    opacity: 0; visibility: hidden;
    transform: translateY(8px);
    transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s linear .35s;
  }
  .js .stage-detail::before { display: none; }
  .js .stage-detail.is-active {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .45s var(--ease) .06s, transform .55s var(--ease) .06s, visibility 0s;
  }
  .js .detail-title { font-size: 30px; margin-top: 10px; }
  .js .panel-foot { margin-top: 22px; padding-top: 16px; }
  .js .mandy-line { font-size: 14px; }
  .js .map-progress { display: flex; align-items: center; gap: 14px; margin-top: 12px; font: 400 11.5px/1 var(--mono); color: var(--ink-3); letter-spacing: .04em; }
  .js .ticks { display: flex; gap: 5px; align-items: center; }
  .js .ticks i { display: block; width: 14px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.18); transition: width .3s var(--ease), background-color .3s, height .3s; }
  .js .ticks i.is-past { background: rgba(255,255,255,.5); }
  .js .ticks i.is-on { width: 26px; height: 3px; background: #fff; }

  .js .map-vignette {
    display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
      linear-gradient(90deg, rgba(11,11,13,.92) 0%, rgba(11,11,13,.55) 26%, rgba(11,11,13,0) 44%),
      linear-gradient(0deg, rgba(11,11,13,.8) 0%, rgba(11,11,13,0) 18%),
      linear-gradient(180deg, rgba(11,11,13,.5) 0%, rgba(11,11,13,0) 16%);
  }

  /* --- stage buttons, fallback layout (no WebGL): a vertical path on the right --- */
  .js .stage-nav {
    display: block; position: absolute; z-index: 2;
    right: var(--gutter);
    top: calc(var(--header-h) + 8vh); bottom: 9vh;
    width: min(420px, 34vw);
  }
  .js .stage-nav ol { height: 100%; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
  .js .stage-nav ol::before {
    content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px;
    background: linear-gradient(to bottom, #8be7f8, #5a8cff 50%, #b8a2ff);
    opacity: .5; border-radius: 2px;
  }
  .stage-btn {
    display: flex; align-items: center; gap: 18px;
    padding: 0; border: 0; background: none; text-align: left;
    cursor: pointer;
  }
  .stage-btn .node {
    position: relative; flex: none;
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    background:
      radial-gradient(circle at 36% 28%, rgba(255,255,255,.35), rgba(255,255,255,0) 55%),
      radial-gradient(circle at 50% 60%, #242733, #121318);
    box-shadow: 0 0 0 1px rgba(255,255,255,.22) inset, 0 6px 18px rgba(0,0,0,.6);
    transition: transform .35s var(--ease), box-shadow .35s;
  }
  .stage-btn .node::after {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.45);
    transition: all .35s var(--ease);
  }
  .stage-btn.is-active .node { transform: scale(1.18); box-shadow: 0 0 0 1.5px rgba(255,255,255,.8) inset, 0 0 34px rgba(140,180,255,.55); }
  .stage-btn.is-active .node::after { width: 14px; height: 14px; background: #fff; box-shadow: 0 0 16px #fff; }

  .stage-btn .label {
    display: grid; grid-template-columns: auto auto; justify-content: start; align-items: baseline;
    column-gap: 10px; row-gap: 3px;
    padding: 9px 14px 10px 12px;
    border-radius: 12px;
    background: rgba(14, 14, 17, .58);
    border: 1px solid rgba(255,255,255,.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background-color .3s, border-color .3s, box-shadow .3s, transform .35s var(--ease);
    transform-origin: left center;
    white-space: nowrap;
  }
  .stage-btn .num { font: 500 11px/1 var(--mono); color: var(--ink-3); letter-spacing: .04em; }
  .stage-btn .name { font-size: 16px; line-height: 1.15; font-weight: 500; color: var(--ink); }
  .stage-btn .tool { grid-column: 2; font: 400 12.5px/1.2 var(--mono); color: var(--ink-2); }
  .stage-btn:hover .label, .stage-btn.is-hover .label { border-color: rgba(255,255,255,.3); background: rgba(22,22,27,.72); }
  .stage-btn.is-active .label {
    background: rgba(28, 30, 38, .82);
    border-color: rgba(255,255,255,.55);
    box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 12px 32px -12px rgba(120,160,255,.55);
    transform: scale(1.08);
  }
  .stage-btn.is-active .num { color: #fff; }
  .stage-btn.is-active .tool { color: #fff; }
  .stage-btn:focus-visible { outline: none; }
  .stage-btn:focus-visible .label { outline: 2px solid #fff; outline-offset: 3px; }

  /* --- stage buttons, WebGL layout: labels pinned to the 3D nodes by map.js --- */
  .js.has-3d .map-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
  .js.has-3d .stage-nav { inset: 0; width: auto; pointer-events: none; }
  .js.has-3d .stage-nav ol { height: auto; display: block; }
  .js.has-3d .stage-nav ol::before { display: none; }
  .js.has-3d .stage-btn {
    position: absolute; left: 0; top: 0;
    pointer-events: auto;
    will-change: transform;
    gap: 0;
  }
  .js.has-3d .stage-btn .node { display: none; }
  .js.has-3d .stage-btn.is-hover { z-index: 2; }
  .js.has-3d .stage-btn.is-active { z-index: 3; }
  /* hairline leader from the node to its label */
  .js.has-3d .stage-btn::before {
    content: ""; position: absolute; left: 16px; bottom: 100%;
    width: 1px; height: calc(14px + var(--drop, 0px)); /* map.js lengthens it when a label drops clear of its neighbour */
    background: linear-gradient(0deg, rgba(255,255,255,.55), rgba(255,255,255,0));
  }
  .js.has-3d .stage-btn .label { transform-origin: 16px top; }
  .js.has-3d .stage-btn.flip::before { left: auto; right: 16px; bottom: auto; top: 100%; transform: scaleY(-1); }
  .js.has-3d .stage-btn.flip .label { transform-origin: calc(100% - 16px) bottom; }
  .js.has-3d .stage-btn.is-active::before { background: linear-gradient(0deg, #fff, rgba(255,255,255,0)); }

  .js.has-3d .mandy-tag {
    display: flex; align-items: center; gap: 8px;
    position: absolute; left: 0; top: 0; z-index: 2;
    margin: 0;
    font: 400 12px/1 var(--mono); letter-spacing: .03em; color: #d6d8e0;
    text-shadow: 0 0 12px #0b0b0d, 0 0 4px #0b0b0d;
    pointer-events: none; white-space: nowrap;
    will-change: transform;
  }
  .js.has-3d .mandy-tag span { font: 500 14px/1 var(--font); color: #efeaff; letter-spacing: 0; }
  .js.has-3d .mandy-tag::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: #efeaff; box-shadow: 0 0 10px rgba(239,234,255,.9);
  }
}

/* Phones with WebGL: the 3D path sits as a band under the hero; numbered markers jump to each stage */
@media (max-width: 899px) {
  .js.has-3d .map-stage { display: flex; flex-direction: column; }
  .js.has-3d .map-copy { display: contents; }
  .js.has-3d .hero-copy { order: 1; }
  .js.has-3d .map-canvas {
    order: 2; display: block;
    width: calc(100% + 2 * var(--gutter));
    height: clamp(260px, 78vw, 380px);
    margin: 20px calc(-1 * var(--gutter)) 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 84%, transparent 100%);
  }
  .js.has-3d .panel { order: 3; margin-top: 20px; }
  .js.has-3d .stage-nav { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 2; }
  .js.has-3d .stage-btn {
    position: absolute; left: 0; top: 0;
    padding: 0; border: 0; background: none; cursor: pointer;
    pointer-events: auto;
  }
  .js.has-3d .stage-btn .node, .js.has-3d .stage-btn .name, .js.has-3d .stage-btn .tool { display: none; }
  .js.has-3d .stage-btn .label {
    display: grid; place-items: center;
    min-width: 30px; height: 26px; padding: 0 7px;
    border-radius: 8px;
    background: rgba(14, 14, 17, .7);
    border: 1px solid rgba(255,255,255,.22);
  }
  .js.has-3d .stage-btn::after { content: ""; position: absolute; inset: -9px; } /* 44px tap target */
  .js.has-3d .stage-btn .num { font: 500 11.5px/1 var(--mono); color: var(--ink); }
  .js.has-3d .stage-btn.is-active .label { border-color: #fff; background: rgba(40,42,52,.9); }
}

@media (min-width: 900px) and (max-height: 840px) {
  .js .hero-copy h1 { font-size: clamp(46px, 4.6vw, 64px); }
  .js .lede { font-size: 16.5px; margin-top: 16px; }
  .js .panel { padding: 20px 24px 16px; }
  .js .detail-title { font-size: 25px; margin-top: 6px; }
  .js .detail-body, .js .detail-tagline { font-size: 15px; line-height: 1.5; }
  .js .panel-foot { margin-top: 14px; padding-top: 12px; }
  .js .mandy-line { display: none; } /* the Mandy tag in the map carries it on short screens */
  .js .map-progress { margin-top: 0; }
}

/* ================================================================
   Lower sections
   ================================================================ */
.section { padding: 88px 0; position: relative; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.section-head { max-width: 640px; }
.section-head h2, .account-copy h2 { margin-top: 14px; font-size: clamp(34px, 4.2vw, 52px); line-height: 1.04; letter-spacing: -0.03em; }
.section-lede { margin-top: 16px; color: var(--ink-2); font-size: 17px; }
@media (min-width: 900px) { .section { padding: 128px 0; } }

.tools { border-top: 1px solid rgba(255,255,255,.05); background: linear-gradient(180deg, var(--bg-deep), var(--bg) 40%); }

/* ---------- tools index ---------- */
.tool-grid { margin-top: 48px; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tool-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1120px) { .tool-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.tool-link {
  display: flex; flex-direction: column; height: 100%;
  padding: 12px 12px 22px;
  border-radius: 20px;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  transition: border-color .3s, transform .4s var(--ease), background-color .3s;
}
.tool-link:hover { border-color: rgba(255,255,255,.24); transform: translateY(-3px); }
.tool-link > p, .tool-link > h3, .tool-link > .more { margin-left: 10px; margin-right: 10px; }
.shot {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #09090b;
  /* thin glass frame */
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 0 0 5px rgba(255,255,255,.025), 0 18px 40px -22px rgba(0,0,0,.9);
}
.shot::after { /* glass sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(155deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 32%);
  mix-blend-mode: screen;
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: saturate(.92); transition: transform .8s var(--ease); }
.tool-link:hover .shot img { transform: scale(1.03); }
.shot-diagram { display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 0%, rgba(90,140,255,.14), transparent 60%), #0b0b0e; }
.prep-flow { display: grid; grid-template-columns: repeat(3, auto); gap: 6px; justify-content: center; align-items: center; font: 400 11.5px/1 var(--mono); color: var(--ink-2); }
.prep-in { padding: 6px 8px; border: 1px dashed rgba(255,255,255,.25); border-radius: 6px; text-align: center; }
.prep-arrow { grid-column: 1 / -1; justify-self: center; width: 1px; height: 26px; background: linear-gradient(to bottom, rgba(255,255,255,.1), rgba(255,255,255,.6)); position: relative; }
.prep-arrow::after { content: ""; position: absolute; bottom: -1px; left: -3px; border: 3.5px solid transparent; border-top: 5px solid rgba(255,255,255,.7); border-bottom: 0; }
.prep-out { grid-column: 1 / -1; justify-self: center; padding: 8px 14px; border-radius: 8px; color: var(--ink); border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.05); }
/* AutoDesign: picture in, two sound sources, onto the template */
.prep-flow.flow-2 { grid-template-columns: repeat(2, auto); }
.prep-flow.flow-2 > .prep-in:first-child { grid-column: 1 / -1; justify-self: center; }
.prep-flow.flow-2 .prep-arrow { height: 16px; }
/* AutoPremix: two quiet meters */
.meter { width: min(82%, 300px); display: grid; grid-template-columns: auto 1fr auto; gap: 12px 10px; align-items: center; font: 400 11.5px/1 var(--mono); color: var(--ink-2); }
.meter-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset; overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: calc(var(--v, 1) * 100%); border-radius: inherit; background: linear-gradient(90deg, rgba(255,255,255,.35), rgba(255,255,255,.85)); }
.meter-v { color: var(--ink); }
.meter-foot { grid-column: 1 / -1; white-space: nowrap; justify-self: center; margin-top: 6px; padding: 8px 14px; border-radius: 8px; color: var(--ink); border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.05); }
/* The DLM plug-ins: a row of names */
.plug-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 92%; font: 400 11.5px/1 var(--mono); color: var(--ink-2); }
.plug-list li { padding: 7px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.03); }
/* AutoScript's screenshot is low-res: shown small inside the frame */
.shot-small { display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 0%, rgba(90,140,255,.12), transparent 60%), #0b0b0e; }
.shot-small img { width: 68%; height: auto; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 12px 28px -14px rgba(0,0,0,.9); }
/* the plug-ins card fills the last row: two columns wide, its frame kept to the row's height */
.tool-grid { container-type: inline-size; }
@media (min-width: 640px) {
  .tool-wide { grid-column: span 2; }
  .tool-wide .shot { aspect-ratio: auto; height: calc(((100cqw - 18px) / 2 - 26px) * 0.625); }
}
@media (min-width: 1120px) {
  .tool-wide .shot { height: calc(((100cqw - 60px) / 4 - 26px) * 0.625); }
}
.tool-stage { margin-top: 20px; font: 400 12px/1.3 var(--mono); color: var(--ink-3); letter-spacing: .03em; }
.tool-stage span { color: var(--ink-2); margin-right: 6px; }
.tool h3 { margin-top: 8px; font-size: 23px; line-height: 1.2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tool h3 .chip { transform: none; }
.tool-link > p:not(.tool-stage) { margin-top: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.55; flex: 1; }
.more { margin-top: 18px; font-size: 14.5px; font-weight: 500; color: var(--ink); display: inline-flex; gap: 8px; transition: gap .25s var(--ease); }
.tool-link:hover .more { gap: 12px; }

/* ---------- one account ---------- */
.account { overflow: hidden; }
.account::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 70% at 78% 50%, rgba(90,140,255,.10), transparent 70%);
}
.account-grid { display: grid; gap: 56px; align-items: center; position: relative; }
@media (min-width: 900px) { .account-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

.key-scene { perspective: 1100px; display: grid; place-items: center; padding: 20px 0 40px; position: relative; }
.key-card {
  --rx: 14deg; --ry: -20deg;
  position: relative;
  width: min(380px, 84vw); aspect-ratio: 1.586;
  border-radius: 22px;
  padding: 26px;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.03) 45%, rgba(255,255,255,.07)),
    linear-gradient(135deg, #18202e, #111218 55%, #1b1728);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.16) inset,
    0 1px 0 rgba(255,255,255,.4) inset,
    0 40px 80px -30px rgba(0,0,0,.9),
    0 0 60px -10px rgba(110,150,255,.25);
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(4deg);
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
  overflow: hidden;
}
.key-card::before { /* prism edge */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: var(--prism);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .85;
}
.key-sheen {
  position: absolute; inset: -40%;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.14) 48%, transparent 56%);
  transform: translateX(var(--sheen, 0%));
  transition: transform .6s var(--ease);
  pointer-events: none;
}
.key-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; }
.key-top img { width: 36px; }
.key-chip {
  width: 44px; height: 34px; border-radius: 7px;
  background: linear-gradient(135deg, #d9dde6, #8e95a6 50%, #e6e9f0);
  box-shadow: 0 0 0 1px rgba(0,0,0,.3) inset;
  opacity: .85;
}
.key-bottom { position: relative; display: flex; flex-direction: column; gap: 4px; }
.key-name { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.key-sub { font: 400 12px/1 var(--mono); color: var(--ink-2); letter-spacing: .08em; text-transform: uppercase; }
.key-shadow {
  position: absolute; bottom: 6px; left: 50%; width: 60%; height: 26px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(90,140,255,.28), transparent);
  filter: blur(8px);
}

/* ---------- wayfinding ---------- */
.ways { border-top: 1px solid rgba(255,255,255,.05); }
.way-grid { margin-top: 44px; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .way-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .way-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.way {
  position: relative;
  height: 100%;
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto;
  row-gap: 6px;
  padding: 22px 24px 24px;
  min-height: 150px;
  border-radius: 18px;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .3s, transform .4s var(--ease), background-color .3s;
}
.way::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--prism); opacity: 0; transition: opacity .3s;
}
.way:hover { border-color: rgba(255,255,255,.22); transform: translateY(-2px); }
.way:hover::before { opacity: .9; }
.way-num { grid-column: 1; font: 400 12px/1 var(--mono); color: var(--ink-3); margin-bottom: 18px; }
.way-title { grid-column: 1; font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.way-desc { grid-column: 1; color: var(--ink-2); font-size: 14.5px; }
.way-arrow {
  grid-column: 2; grid-row: 1 / span 3; align-self: end;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--ink);
  transition: transform .35s var(--ease), background-color .3s, color .3s;
}
.way:hover .way-arrow { transform: translateX(3px); background: #f3f4f7; color: #0f0f10; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid rgba(255,255,255,.07); padding: 36px 0 44px; color: var(--ink-3); font-size: 14px; }
.footer-inner { display: grid; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.footer-brand img { width: 22px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-legal { grid-column: 1 / -1; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .key-card { transform: rotateX(10deg) rotateY(-14deg) rotateZ(3deg) !important; }
}
