/* =========================================================
   INTO case study. Builds on ../../css/style.css (fonts, buttons, reveal).

   Look: the landing page ends at dusk; this page opens on that same lake,
   then the sky warms through the horizon into a calm paper for reading.
   Accent: water-teal, a nod to INTO's brand teal.
   ========================================================= */
.case {
  /* paper theme for reading */
  --bg: #f6f1ea;
  --surface: #fffdf9;
  --surface-2: #efe8de;
  --text: #221d2b;
  --text-2: #3f3747;       /* body copy */
  --muted: #675e6b;        /* 5.4:1 on --bg */
  --border: rgba(34, 29, 43, 0.12);
  --focus: #0f6f63;
  --case: #0f6f63;         /* deep water teal, 5.3:1 on --bg */
  --case-bright: #7fd1c1;  /* the same teal, for dark surfaces */
  --case-soft: rgba(15, 111, 99, 0.09);
  --accent-ink: #a14d1f;   /* peach, darkened for text (5.2:1) */
  --peach-soft: rgba(243, 165, 115, 0.16);
  --shadow: 0 1px 2px rgba(34, 29, 43, 0.05), 0 10px 30px -18px rgba(34, 29, 43, 0.25);
  --rail-w: 232px;
  --col: 720px;
  --wide: 1080px;
  background: var(--bg);
  color: var(--text);
}
.case ::selection { background: rgba(15, 111, 99, 0.18); }

/* ---------------- skipping-stone progress ---------------- */
.skim { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 14px; pointer-events: none; }
.skim-line { position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: linear-gradient(90deg, var(--case-bright) var(--p, 0%), rgba(127, 127, 140, 0.25) var(--p, 0%)); }
.skim-marks i { position: absolute; top: 6px; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: rgba(127, 127, 140, 0.35); transition: background 0.3s; }
.skim-marks i.passed { background: var(--case-bright); }
.skim-marks i.passed::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 8px; border-radius: 50%;
  border: 1px solid var(--case-bright); transform: translate(-50%, -50%) scale(0.3); opacity: 0; animation: splash 0.9s ease-out;
}
.skim-stone {
  position: absolute; top: 3px; left: var(--p, 0%); width: 12px; height: 7px; margin-left: -6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6ea, #b9b0a8 60%, #6d6670); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
@keyframes splash { 0% { opacity: 1; transform: translate(-50%, -50%) scale(0.3); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); } }

/* ---------------- top bar: dusk glass over the hero, paper glass after ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px;
  padding: 10px var(--gutter); min-height: 56px; font-size: var(--fs-sm);
  background: rgba(246, 241, 234, 0.86); color: var(--text);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.topbar.on-hero { background: rgba(28, 26, 46, 0.55); color: var(--paper); border-color: rgba(255, 255, 255, 0.08); }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; white-space: nowrap; text-decoration: none; color: inherit; font-weight: 500; }
.back span { transition: transform 0.2s var(--ease-out); }
.back:hover span { transform: translateX(-3px); }
.topbar-label { margin-left: auto; opacity: 0.7; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.75rem; }
.topbar-current { color: var(--case); font-weight: 600; min-width: 9ch; }
.topbar.on-hero .topbar-current { color: var(--case-bright); }

.motion-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 4px 0 6px; margin-left: 4px;
  border: 0; background: none; color: inherit; font-size: 0.8rem; font-weight: 500; cursor: pointer; border-radius: 999px;
}
.mt-track { position: relative; width: 30px; height: 18px; border-radius: 999px; background: rgba(127, 127, 140, 0.4); transition: background 0.25s; }
.mt-knob { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.25s var(--ease-out); }
.motion-toggle[aria-pressed="true"] .mt-track { background: var(--case); }
.topbar.on-hero .motion-toggle[aria-pressed="true"] .mt-track { background: #3aa594; }
.motion-toggle[aria-pressed="true"] .mt-knob { transform: translateX(12px); }

/* side rail */
.rail { display: none; }
@media (min-width: 1180px) {
  .rail { display: block; position: fixed; z-index: 30; top: 96px; left: 0; width: var(--rail-w); padding: 0 20px 0 var(--gutter); color: var(--text); transition: color 0.35s; }
  .rail.on-hero { color: var(--paper); }
  .rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
  .rail a {
    display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 8px;
    text-decoration: none; color: inherit; opacity: 0.66; font-size: var(--fs-sm); border-radius: 8px;
    transition: opacity 0.2s, background 0.2s;
  }
  .rail a:hover { opacity: 1; background: rgba(127, 127, 140, 0.1); }
  .rail-num { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; opacity: 0.75; }
  .rail-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.4; flex: none; }
  .rail a.is-active { opacity: 1; font-weight: 500; }
  .rail a.is-active .rail-dot { background: var(--case); opacity: 1; }
  .rail.on-hero a.is-active .rail-dot { background: var(--case-bright); }
  .rail a.is-active .rail-dot::before, .rail a.is-active .rail-dot::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 50%;
    border: 1px solid var(--case); transform: translate(-50%, -50%); animation: ring-out 2.4s ease-out infinite;
  }
  .rail a.is-active .rail-dot::after { animation-delay: 1.2s; }
  .case-main { margin-left: var(--rail-w); }
  .case .case-hero { margin-left: calc(-1 * var(--rail-w)); padding-left: calc(var(--rail-w) + var(--gutter)); }
  .topbar-label { display: none; }
  .topbar-current { margin-left: auto; }
}
@keyframes ring-out { 0% { opacity: 0.9; width: 7px; height: 7px; } 100% { opacity: 0; width: 26px; height: 26px; } }

/* ---------------- shared bits ---------------- */
.case-main { position: relative; }
.cs-section { max-width: var(--wide); margin: 0 auto; padding: clamp(80px, 11vw, 136px) var(--gutter) 0; scroll-margin-top: 64px; }
.cs-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 28px; max-width: var(--col); }
.cs-num { position: relative; width: 100%; font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.08em; color: var(--case); }
.cs-num::before { /* a small ripple under the number when the section arrives */
  content: ""; position: absolute; left: 8px; top: 50%; width: 10px; height: 4px; border-radius: 50%;
  border: 1px solid var(--case); transform: translate(-50%, -50%); opacity: 0;
}
.cs-head.is-in .cs-num::before { animation: num-ripple 1.4s 0.2s ease-out; }
@keyframes num-ripple { 0% { opacity: 0.9; width: 6px; height: 3px; } 100% { opacity: 0; width: 70px; height: 20px; } }
.cs-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); color: var(--text); }
.kicker { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--case); margin-bottom: 10px; }
.prose, .prose-lead { max-width: var(--col); }
.prose p + p { margin-top: 14px; }
.prose p, .prose-lead { color: var(--text-2); }
.prose-lead { font-size: var(--fs-md); line-height: 1.6; margin-bottom: clamp(32px, 4vw, 48px); }
.sub-h { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; color: var(--text); }
.big-num { font-family: var(--font-display); font-size: clamp(3.5rem, 9vw, 6rem); line-height: 1; font-weight: 500; color: var(--case); letter-spacing: -0.02em; }
.viz-note { font-size: 0.8rem; color: var(--muted); }
.case-main p a { color: var(--case); }

.status {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-live { color: var(--case); background: var(--case-soft); }
.status-live::before { animation: live 2s ease-out infinite; }
.status-build, .status-expected { color: var(--accent-ink); background: var(--peach-soft); }
.status-expected::before { background: transparent; border: 1.5px solid currentColor; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(15, 111, 99, 0.45); } 80%, 100% { box-shadow: 0 0 0 7px rgba(15, 111, 99, 0); } }

.browser { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(34, 29, 43, 0.06), 0 30px 60px -32px rgba(34, 29, 43, 0.45), 0 0 0 1px rgba(34, 29, 43, 0.08); }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #ece6dd; color: #4b4450; font-size: 0.8rem; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #d3c9bd; }
.url { flex: 1; text-align: center; padding: 4px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-dark { background: #0f0e16; }
.browser-dark .browser-bar { background: #1f1c2a; color: #bcb3c4; }
.browser-dark .dots i { background: #3a3547; }
.browser-dark .url { background: rgba(255, 255, 255, 0.06); }

.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: var(--fs-sm); font-weight: 500;
  transition: border-color 0.2s, transform 0.2s var(--ease-out);
}
.chip-btn:hover { border-color: rgba(15, 111, 99, 0.45); transform: translateY(-1px); }
.case .btn:not(.btn-primary) { background: var(--surface); color: var(--text); }

/* ---------------- hero: the dusk lake, warming to paper ---------------- */
.case-hero {
  position: relative; overflow: hidden; color: var(--paper);
  margin-top: -57px;   /* slide up under the sticky top bar so the bar floats on the sky */
  padding: calc(57px + clamp(64px, 11vh, 120px)) var(--gutter) clamp(190px, 28vh, 260px);
  background: linear-gradient(180deg, #323c5f 0%, #2d2a48 52%, #4a3f5e 68%, #b98a7b 84%, #ead7c4 93%, var(--bg) 100%);
}
.case-hero-inner { position: relative; z-index: 2; max-width: var(--wide); margin: 0 auto; }
.case-hero .eyebrow { color: var(--case-bright); opacity: 1; }
.case-hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); max-width: 15ch; letter-spacing: -0.02em; }
.case-lede { margin-top: 20px; max-width: 40ch; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; color: #f3e6da; }
.read-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.82rem; color: #e9dfe8; }
.read-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--case-bright); }
.meta { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px 28px; margin: clamp(36px, 5vw, 56px) 0 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.meta dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #bcb3c4; margin-bottom: 6px; }
.meta dd { margin: 0; font-size: 0.95rem; line-height: 1.5; }
.hero-water { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(160px, 26vh, 240px); display: block; }
@media (max-width: 960px) { .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } .meta > div:nth-child(4) { grid-row: span 2; } }

/* ---------------- 01 overview ---------------- */
.pss { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pss-card { padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform 0.3s var(--ease-out), box-shadow 0.3s; }
.pss-card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(34, 29, 43, 0.05), 0 18px 40px -20px rgba(34, 29, 43, 0.3); }
.pss-card p:not(.kicker) { color: var(--text-2); }

/* ---------------- 02 streams ---------------- */
.streams { margin: clamp(40px, 6vw, 64px) 0 0; display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(20px, 3vw, 32px); border-radius: 22px; background: linear-gradient(180deg, #fffdf9, #f8f3ec); border: 1px solid var(--border); box-shadow: var(--shadow); }
.streams-stat p:not(.big-num) { margin-top: 10px; color: var(--text-2); max-width: 34ch; }
.streams-canvas { width: 100%; height: 300px; display: block; }
.streams-viz .viz-note { margin-top: 8px; text-align: right; }

/* ---------------- 03 problem ---------------- */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.pain h3 { font-size: 1.2rem; margin: 14px 0 8px; color: var(--text); }
.pain p { color: var(--text-2); font-size: 0.97rem; }
.pain-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--peach-soft); color: var(--accent-ink); font-family: var(--font-display); font-weight: 600; }

.spotlight { margin: clamp(40px, 6vw, 72px) 0 0; display: grid; grid-template-columns: 8fr 4fr; gap: clamp(24px, 4vw, 40px); align-items: end; }
.spotlight-shot { position: relative; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -32px rgba(34, 29, 43, 0.45), 0 0 0 1px rgba(34, 29, 43, 0.08); }
.spot-box { position: absolute; border-radius: 6px; transition: box-shadow 0.8s var(--ease-out); }
/* the whole form stays readable (a light veil); the one comment box is ringed in peach with a soft glow and a tag */
.spotlight.is-lit .spot-box { box-shadow: 0 0 0 3px #f3a573, 0 0 22px 4px rgba(243, 165, 115, 0.55), 0 0 0 9999px rgba(30, 24, 40, 0.18); }
.spot-tag { position: absolute; left: calc(100% + 12px); top: 50%; margin-top: -0.9em; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: clamp(0.62rem, 1vw, 0.78rem); font-weight: 600; white-space: nowrap; opacity: 0; transform: translateX(-6px); transition: opacity 0.5s 0.6s, transform 0.5s 0.6s var(--ease-out); }
.spotlight.is-lit .spot-tag { opacity: 1; transform: none; }
.spotlight figcaption p:not(.kicker) { color: var(--text-2); }
/* what the one box caught: a plain list beside the screenshot */
.spot-list { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 8px; }
.spot-list li { padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 0.95rem; }
.spotlight figcaption .kicker { color: var(--accent-ink); }

.callout {
  margin-top: clamp(40px, 6vw, 64px); max-width: var(--col); padding: 24px 28px; border-radius: 18px;
  background: var(--peach-soft); border-left: 3px solid #e08a55;
}
.callout .kicker { color: var(--accent-ink); }
.callout p:not(.kicker) { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.45; color: var(--text); }

/* ---------------- 04 process ---------------- */
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.finding { padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.finding h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--text); }
.finding p { color: var(--text-2); }
/* six months of queries: scattered grey in one inbox, then each one travels into its group and takes its colour.
   The three groups are the three paths on the new Contact Us page. (dots: case.js) */
.sort { position: relative; margin: clamp(32px, 5vw, 48px) 0 0; display: grid; grid-template-columns: minmax(0, 5fr) 40px minmax(0, 7fr); gap: 16px; align-items: stretch; }
.sort-inbox { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.sort-k { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sort-t { font-family: var(--font-display); font-size: 1.25rem; color: var(--text); }
.sort-pool { flex: 1; min-height: 240px; margin-top: 12px; border-radius: 12px; border: 1px dashed var(--border); }
.sort-arrow { align-self: center; justify-self: center; font-size: 1.6rem; color: var(--case); }
.sort-groups { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sort-group { --g: var(--accent); display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 16px; padding: 14px 18px 14px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.sort-group[data-g="1"] { --g: #f6eee4; }
.sort-group[data-g="2"] { --g: #9fb7e0; }
.sort-spot { grid-row: 1 / -1; min-height: 64px; border-radius: 10px; background: rgba(246, 238, 228, 0.04); }
.sort-group h4 { margin: 2px 0 2px; font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--text); }
.sort-group p { margin: 0; color: var(--text-2); font-size: 0.92rem; }
.sort-path { align-self: end; margin-top: 8px; font-size: 0.8rem; font-weight: 600; color: var(--g); }
.sort-path::before { content: "→ "; }
.sort-dots { position: absolute; inset: 0; pointer-events: none; }
.sort-dots i { position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #5d5868; }
@media (max-width: 760px) {
  .sort { grid-template-columns: 1fr; }
  .sort-arrow { transform: rotate(90deg); }
  .sort-pool { min-height: 160px; }
}

/* ---------------- 05 before / after ---------------- */
.ba { margin: 0; }
.ba-toggle { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 20px; }
.ba-toggle button { position: relative; z-index: 1; min-width: 110px; min-height: 42px; border: 0; background: none; color: var(--muted); font-weight: 600; cursor: pointer; border-radius: 999px; transition: color 0.25s; }
.ba-toggle button[aria-pressed="true"] { color: var(--paper); }
.ba-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--text); transition: transform 0.45s var(--ease-out), background 0.3s; }
.ba[data-view="after"] .ba-thumb { transform: translateX(100%); background: var(--case); }
.ba-toggle .nudge span { display: inline-block; }
.ba[data-view="before"] .nudge span { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
.ba-captions { position: relative; min-height: 96px; margin-bottom: 18px; }
.ba-cap { position: absolute; inset: 0 auto auto 0; max-width: 56ch; transition: opacity 0.35s, transform 0.45s var(--ease-out); }
.ba-cap h3 { font-size: 1.4rem; margin-bottom: 4px; color: var(--text); }
.ba-cap p:not(.kicker) { color: var(--text-2); }
.ba-cap[data-for="before"] .kicker { color: var(--accent-ink); }
.ba[data-view="after"] .ba-cap[data-for="before"], .ba[data-view="before"] .ba-cap[data-for="after"] { opacity: 0; transform: translateY(8px); pointer-events: none; }
.ba-stage { position: relative; background: #fff; transition: height 0.55s var(--ease-out); overflow: hidden; }
.ba-img { position: absolute; left: 0; top: 0; width: 100%; transition: opacity 0.45s var(--ease-out), transform 0.55s var(--ease-out); }
.ba-img img { width: 100%; }
.ba[data-view="after"] .ba-img[data-for="before"], .ba[data-view="before"] .ba-img[data-for="after"] { opacity: 0; pointer-events: none; }
.ba[data-view="before"] .ba-img[data-for="after"] { transform: translateY(16px); }
.ba-img[data-for="before"] { max-width: 760px; left: 50%; transform: translateX(-50%); }
.door { position: absolute; border: 0; padding: 0; background: transparent; border-radius: 6px; cursor: pointer; }
.door::before { content: ""; position: absolute; inset: -3px; border-radius: 8px; border: 2px solid var(--case); opacity: 0; }
.ba[data-view="after"] .door::before { animation: door 2.6s ease-out 3; }
.ba[data-view="after"] .door:nth-of-type(2)::before { animation-delay: 0.35s; }
.ba[data-view="after"] .door:nth-of-type(3)::before { animation-delay: 0.7s; }
.door:hover::before, .door:focus-visible::before, .door.is-open::before { animation: none; opacity: 1; }
.door-n { position: absolute; left: -10px; top: -10px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--case); color: #fff; font-size: 0.75rem; font-weight: 600; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); transform: scale(0); transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.ba[data-view="after"] .door-n { transform: scale(1); transition-delay: 0.3s; }
.ba[data-view="after"] .door:nth-of-type(2) .door-n { transition-delay: 0.45s; }
.ba[data-view="after"] .door:nth-of-type(3) .door-n { transition-delay: 0.6s; }
.door-tip {
  position: absolute; left: 50%; bottom: calc(100% + 10px); width: max-content; max-width: 230px; transform: translate(-50%, 4px);
  padding: 9px 12px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 0.8rem; line-height: 1.4; text-align: left;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.25s var(--ease-out); z-index: 3;
}
.door:hover .door-tip, .door:focus-visible .door-tip, .door.is-open .door-tip { opacity: 1; transform: translate(-50%, 0); }
@keyframes door { 0% { opacity: 0; } 30% { opacity: 0.9; } 100% { opacity: 0; } }
.ba-note { margin-top: 20px; max-width: var(--col); color: var(--text-2); }

/* walkthrough */
.walk { margin: clamp(64px, 9vw, 104px) 0 0; }
.walk-intro { max-width: var(--col); color: var(--text-2); margin-bottom: 24px; }
.walk-stage { position: relative; background: #000; aspect-ratio: 16 / 9; }
.walk-video { width: 100%; height: 100%; display: block; object-fit: contain; }
/* the look is the site's .btn .btn-primary; this only centres it on the video */
.walk-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6); }
.walk-big:hover { transform: translate(-50%, calc(-50% - 1px)); }
.walk-big[hidden] { display: none; }
.walk-big-icon { font-size: 0.75rem; }
.walk-chapter { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(15, 14, 22, 0.82); color: var(--paper); font-size: 0.85rem; backdrop-filter: blur(6px); }
.walk-count { color: var(--case-bright); font-weight: 600; margin-right: 4px; }
.walk-noteline { color: #bcb3c4; }
.walk-controls { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #1f1c2a; }
.walk-play { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); cursor: pointer; font-size: 0.8rem; }
.walk-rate { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.walk-rate button { min-width: 40px; min-height: 34px; border: 0; border-radius: 999px; background: none; color: #bcb3c4; cursor: pointer; font-weight: 600; font-size: 0.8rem; }
.walk-rate button[aria-pressed="true"] { background: rgba(127, 209, 193, 0.2); color: var(--case-bright); }
.walk-bar { position: relative; flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden; cursor: pointer; }
.walk-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--case-bright); }

/* chapters as stepping stones */
.stones { list-style: none; margin: 22px 0 0; padding: 0 0 4px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; position: relative; }
.stones::before { content: ""; position: absolute; left: 4%; right: 4%; top: 15px; height: 1px; background: repeating-linear-gradient(90deg, rgba(34, 29, 43, 0.25) 0 4px, transparent 4px 9px); }
.stone-btn { position: relative; display: grid; justify-items: center; gap: 6px; width: 100%; padding: 0 2px 6px; border: 0; background: none; color: var(--muted); cursor: pointer; text-align: center; font-size: 0.8rem; line-height: 1.3; }
.stone-btn .peb { position: relative; width: 30px; height: 30px; border-radius: 50% 50% 46% 54% / 56% 50% 50% 44%; display: grid; place-items: center; font-size: 0.7rem; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-out); }
.stone-btn:hover .peb { transform: translateY(-3px); }
.stone-btn.is-done .peb { background: var(--case-soft); color: var(--case); }
.stone-btn.is-current { color: var(--text); font-weight: 500; }
.stone-btn.is-current .peb { background: var(--case); color: #fff; }
.stone-btn.is-current .peb::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 1px solid var(--case); animation: peb-ring 1.8s ease-out infinite; }
@keyframes peb-ring { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9, 1.5); } }

/* component story */
.comp { margin-top: clamp(80px, 11vw, 128px); }
.comp-head { max-width: var(--col); margin-bottom: 40px; }
.comp-head p:not(.kicker) { color: var(--text-2); }
.comp-step { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(20px, 4vw, 48px); align-items: start; padding: 32px 0; border-top: 1px solid var(--border); }
.comp-step-wide { grid-template-columns: 1fr; }
.comp-step-wide .step-label { max-width: var(--col); }
.step-label h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; margin: 6px 0 8px; color: var(--text); }
.step-label p, .step-body { color: var(--text-2); }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--case-soft); color: var(--case); font-size: 0.8rem; font-weight: 600; }
.step-body { align-self: center; font-size: var(--fs-md); line-height: 1.6; }

.board {
  position: relative; height: 540px; border-radius: 20px; overflow: hidden;
  background-color: #ece5da; background-image: radial-gradient(#c8bdaf 1.1px, transparent 1.2px); background-size: 18px 18px;
  box-shadow: inset 0 0 0 1px var(--border);
}
.board-tag { position: absolute; left: 14px; top: 12px; z-index: 6; padding: 4px 10px; border-radius: 999px; background: #fff; color: #6b5f73; font-size: 0.75rem; font-weight: 600; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); }
.board-hint { position: absolute; right: 14px; top: 14px; z-index: 6; font-size: 0.78rem; color: #7d7280; font-style: italic; }
.board-tidy { position: absolute; right: 12px; top: 10px; z-index: 60; min-height: 34px; font-size: 0.8rem; }
.concept {
  position: absolute; left: var(--x); top: var(--y); width: 22%; margin: 0; padding: 8px 8px 6px; border-radius: 10px; background: #fff;
  box-shadow: 0 10px 24px -12px rgba(40, 20, 10, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r)); cursor: grab; user-select: none; touch-action: none;
  transition: box-shadow 0.2s, transform 0.5s var(--ease-out);
}
.concept:hover { box-shadow: 0 16px 30px -12px rgba(40, 20, 10, 0.4), 0 0 0 1px rgba(15, 111, 99, 0.3); }
.concept-wide { width: 25%; }
.concept img { width: 100%; border-radius: 4px; pointer-events: none; }
.concept figcaption { margin-top: 6px; font-size: 0.7rem; color: #5b5160; font-weight: 500; }
.concept.is-dragging { cursor: grabbing; transition: box-shadow 0.2s; box-shadow: 0 24px 40px -14px rgba(40, 20, 10, 0.45), 0 0 0 2px var(--case); transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(0deg) scale(1.03); }

.pedestal { padding: clamp(20px, 4vw, 40px); border-radius: 20px; background: radial-gradient(120% 90% at 50% 0%, rgba(15, 111, 99, 0.12), transparent 65%), var(--surface-2); border: 1px solid var(--border); }
.pedestal-tag { margin-bottom: 16px; }
.uni { position: relative; max-width: 420px; margin: 0 auto; padding: 20px; border-radius: 12px; background: #fff; color: #1c1a21; font-family: var(--font-body); box-shadow: 0 20px 40px -24px rgba(34, 29, 43, 0.45), 0 0 0 1px rgba(34, 29, 43, 0.06); }
.uni-label { display: block; font-size: 0.95rem; margin-bottom: 8px; }
.try-me { position: absolute; right: 14px; top: -11px; padding: 3px 9px; border-radius: 999px; background: var(--case); color: #fff; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; animation: bob 2.4s ease-in-out infinite; }
.uni-field {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 46px; padding: 0 14px;
  border: 1px solid #8e8794; border-radius: 4px; background: #fff; color: #0c5f55; font-size: 1rem; cursor: pointer; text-align: left;
  animation: unipulse 2.2s ease-out infinite;
}
.uni-field[aria-expanded="true"] { animation: none; border-color: #0c5f55; box-shadow: 0 0 0 2px rgba(12, 95, 85, 0.25); }
.uni-field[aria-expanded="true"] svg { transform: rotate(180deg); }
.uni-field svg { transition: transform 0.2s; color: #4b4450; }
@keyframes unipulse { 0% { box-shadow: 0 0 0 0 rgba(12, 107, 102, 0.35); } 70% { box-shadow: 0 0 0 10px rgba(12, 107, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(12, 107, 102, 0); } }
.uni-panel { margin-top: 4px; border-radius: 4px; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.3), 0 0 0 1px #e3dfe6; background: #fff; animation: popin 0.2s var(--ease-out); }
@keyframes popin { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.uni-search { padding: 10px 12px; border-bottom: 1px solid #e3dfe6; }
.uni-search input { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid #8e8794; border-radius: 4px; font: inherit; font-size: 0.95rem; }
.uni-list { max-height: 220px; overflow: auto; }
.uni-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; font-size: 0.95rem; line-height: 1.35; cursor: pointer; transition: background 0.15s, color 0.15s; }
.uni-opt input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: #0c5f55; flex: none; }
.uni-opt:hover { background: #f4f2f6; }
.uni-opt.is-checked { background: #e7eef0; color: #0c5f55; }
.uni-opt.is-disabled { color: #a49dab; cursor: not-allowed; background: none; }
.uni-undecided { border-bottom: 1px solid #e3dfe6; font-weight: 500; }
.uni-empty { padding: 12px 14px; font-size: 0.9rem; color: #6d6672; }
.uni-help { margin-top: 10px; font-size: 0.85rem; color: #6d6672; min-height: 2.6em; transition: color 0.2s; }
.uni-help.is-teal { color: #0c5f55; }

/* ---------------- 06 study form ---------------- */
.fields { margin: 0; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(20px, 4vw, 36px); border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.fields-copy > p:not(.kicker):not(.big-num) { color: var(--text-2); margin-top: 10px; }
.fields-num { margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.fields-after strong { color: var(--case); font-weight: 600; }
.fields-pct .pct { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent-ink); margin-right: 4px; }
.fields-replay { margin-top: 16px; }
.fields-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; align-content: start; min-height: 190px; }
.fields-grid i {
  display: block; height: 22px; border-radius: 5px; background: var(--surface-2); border: 1px solid rgba(34, 29, 43, 0.1);
  transition: transform 0.9s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.9s ease-in, background 0.4s, border-color 0.4s;
}
.fields-grid i.keep { background: rgba(15, 111, 99, 0.16); border-color: rgba(15, 111, 99, 0.45); }
.fields-grid i.sink { transform: translateY(26px) scale(0.6); opacity: 0; }

.tradeoff { max-width: var(--col); margin: clamp(56px, 8vw, 88px) 0 24px; }
.tradeoff p { color: var(--text-2); }

.proto { margin: 0; }
.proto-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.seg button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: background 0.2s, color 0.2s; }
.seg button em { font-style: normal; font-weight: 500; font-size: 0.72rem; opacity: 0.85; margin-left: 4px; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--paper); }
.proto-browser .browser-bar { padding: 8px 10px; }
.proto-nav { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.8); color: #3b3542; cursor: pointer; font-size: 1rem; }
.proto-nav:hover { background: #fff; }
.proto-nav:disabled { opacity: 0.35; cursor: default; }
.proto-stage { height: min(72vh, 680px); overflow: auto; background: #efefef; overscroll-behavior: contain; }
.proto-screen { position: relative; margin: 0 auto; transition: opacity 0.25s; }
.proto-screen.is-swapping { opacity: 0; }
.proto.is-mobile .proto-screen { max-width: 380px; box-shadow: 0 0 0 1px #d8d4dc; }
.proto-img { width: 100%; display: block; }
.proto-hs button { position: absolute; border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 4px; transition: background 0.15s; }
.proto-hs button:hover { background: rgba(12, 95, 85, 0.14); }
.proto-hs.flash button { background: rgba(127, 209, 193, 0.4); box-shadow: 0 0 0 2px rgba(12, 95, 85, 0.75); }
.proto-flow { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.proto-flow button { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 0.82rem; cursor: pointer; }
.proto-flow button[aria-current="step"] { border-color: var(--case); color: var(--case); background: var(--case-soft); font-weight: 600; }
.proto-cap { margin-top: 14px; max-width: var(--col); color: var(--text-2); }
.proto-hint { margin-top: 6px; }

.decision { margin-top: clamp(48px, 7vw, 80px); display: grid; grid-template-columns: 240px 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; padding: 28px; border-radius: 20px; background: var(--peach-soft); border: 1px solid rgba(224, 138, 85, 0.25); }
.decision .kicker { color: var(--accent-ink); }
.decision p:not(.kicker) { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.45; color: var(--text); }
/* the two options: the one we loved (outline) and the one we picked (filled, with a tick) */
.pick { display: grid; gap: 10px; }
.pick-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); }
.pick-row b { display: block; font-weight: 600; font-size: 0.95rem; color: var(--text); }
.pick-row em { display: block; font-style: normal; font-size: 0.82rem; color: var(--muted); }
.pick-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; }
.pick-fav { border-style: dashed; }
.pick-fav .pick-ic { border: 1px solid var(--border); color: var(--muted); }
.pick-final { background: var(--surface); border-color: var(--case); }
.pick-final .pick-ic { background: var(--case); color: var(--on-accent); }
.pick-final em { color: var(--case); }

/* ---------------- 07 outcomes ---------------- */
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.outcome { padding: 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.outcome header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.outcome h3 { font-size: 1.35rem; color: var(--text); }
.outcome ul { margin: 0; padding-left: 20px; display: grid; gap: 12px; }
.outcome li { color: var(--text-2); }
.outcome li::marker { color: var(--case); }

/* ---------------- 08 learnings ---------------- */
.learnings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.learning { position: relative; overflow: hidden; padding: 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.learning-n { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: rgba(15, 111, 99, 0.45); }
.learning h3 { font-size: 1.25rem; margin: 14px 0 10px; color: var(--text); }
.learning p { color: var(--text-2); font-size: 0.97rem; }
.learning::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%;
  border: 1px solid rgba(15, 111, 99, 0.3); box-shadow: 0 0 0 26px rgba(15, 111, 99, 0.04), 0 0 0 54px rgba(15, 111, 99, 0.025);
  transform: scale(0.4); opacity: 0; transition: transform 0.9s var(--ease-out), opacity 0.6s;
}
.learning:hover::after { transform: scale(1.4); opacity: 1; }

/* ---------------- end: back to the dusk ---------------- */
.case-end { max-width: var(--wide); margin: clamp(96px, 12vw, 160px) auto 0; padding: 0 var(--gutter) 40px; }
.lake-link {
  display: flex; align-items: center; gap: 24px; padding: clamp(24px, 4vw, 40px); border-radius: 24px; text-decoration: none; color: var(--paper);
  background: linear-gradient(180deg, #323c5f, #2b2946); box-shadow: 0 30px 60px -30px rgba(34, 29, 43, 0.6); overflow: hidden; position: relative;
}
.lake-link .kicker { display: block; margin-bottom: 4px; color: var(--case-bright); }
.lake-link-title { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; }
.lake-link-title span { display: inline-block; transition: transform 0.25s var(--ease-out); }
.lake-link:hover .lake-link-title span { transform: translateX(6px); }
.lake-link .muted { display: block; margin-top: 6px; color: #bcb3c4; }
.lake-ripple { position: relative; flex: none; width: 92px; height: 40px; }
.lake-ripple i { position: absolute; left: 50%; top: 50%; width: 20px; height: 8px; border-radius: 50%; border: 1.5px solid var(--case-bright); transform: translate(-50%, -50%); animation: lake-r 3s ease-out infinite; opacity: 0; }
.lake-ripple i:nth-child(2) { animation-delay: 1s; } .lake-ripple i:nth-child(3) { animation-delay: 2s; }
@keyframes lake-r { 0% { opacity: 1; width: 16px; height: 6px; } 100% { opacity: 0; width: 92px; height: 34px; } }
.case-end-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--muted); }
.case-end-row .muted { color: var(--muted); }
.to-top { color: var(--text); text-decoration: none; font-weight: 500; }
.to-top:hover { color: var(--case); }

/* ---------------- toast ---------------- */
.toast {
  position: fixed; z-index: 70; left: 50%; bottom: 20px; transform: translate(-50%, 20px); opacity: 0;
  display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 8px 8px 8px 18px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-size: 0.88rem; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s, transform 0.35s var(--ease-out);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.toast-on { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--case-bright); color: var(--ink); font-weight: 600; cursor: pointer; white-space: nowrap; }
.toast-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--paper); font-size: 1.2rem; cursor: pointer; }
@media (max-width: 560px) { .toast { border-radius: 16px; flex-wrap: wrap; bottom: 12px; width: calc(100vw - 24px); } }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .pss, .pains, .learnings, .outcomes, .process-grid { grid-template-columns: 1fr; }
  .streams, .spotlight, .comp-step, .fields, .decision { grid-template-columns: 1fr; }
  .sorter-legend { grid-template-columns: 1fr; }
  .stones { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .stones::before { display: none; }
  .board { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 48px 12px 12px; }
  .concept, .concept-wide { position: relative; left: auto; top: auto; width: auto; transform: rotate(var(--r)); cursor: default; touch-action: auto; }
  .concept-wide { grid-column: span 2; }
  .board-hint, .board-tidy { display: none !important; }
  .decision { justify-items: start; }
}
@media (max-width: 560px) {
  .topbar-label { display: none; }
  .topbar-current { margin-left: auto; text-align: right; }
  .mt-label { display: none; }
  .seg button em { display: none; }
  .ba-captions { min-height: 120px; }
  .lake-link { flex-direction: column; align-items: flex-start; }
}

/* ---------------- calm motion (device setting, or the Motion switch turned off) ---------------- */
.motion-off .case *, .motion-off .case *::before, .motion-off .case *::after { animation: none !important; }
.motion-off .door::before { opacity: 0.7; border-style: dashed; }          /* static hint instead of a pulse */
.motion-off .scale-beam, .motion-off .pan, .motion-off .fields-grid i, .motion-off .outcome li { transition: none !important; }
.motion-off .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------- next case study (AskINTO), above the way back to the lake ---------- */
.next-case { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; padding: clamp(22px, 3.5vw, 32px); border-radius: 20px; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: border-color 0.25s, transform 0.3s var(--ease-out); }
.next-case:hover { border-color: rgba(15, 111, 99, 0.45); transform: translateY(-3px); }
.next-case .kicker { margin: 0; }
.next-case-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; }
.next-case-title span { display: inline-block; transition: transform 0.25s var(--ease-out); }
.next-case:hover .next-case-title span { transform: translateX(6px); }
.next-case .muted { color: var(--muted); }

/* ---------------- the site nav in the top bar (shared behaviour: js/sitenav.js) ---------------- */
.topbar.site-nav { --nav-solid: rgba(246, 241, 234, 0.86); --nav-panel: #fbf7f1; --nav-line: var(--border); gap: 18px; }
.topbar.site-nav.on-hero { --nav-solid: rgba(28, 26, 46, 0.55); --nav-panel: #24213a; --nav-line: rgba(255, 255, 255, 0.08); }
.topbar.site-nav.is-solid { box-shadow: none; }
.topbar .nav-logo { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; text-decoration: none; color: inherit; white-space: nowrap; }
.topbar .topbar-current { display: inline-flex; align-items: center; gap: 10px; margin-left: 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .topbar-current::before { content: ""; width: 1px; height: 16px; background: currentColor; opacity: 0.25; }
.topbar .nav-main { margin-left: auto; }
.topbar .nav-links { gap: clamp(12px, 2vw, 26px); }
.topbar .nav-links .nav-contact:hover { background: rgba(127, 127, 140, 0.12); }
.topbar .nav-links a[aria-current] { color: var(--case); }
.topbar.on-hero .nav-links a[aria-current] { color: var(--case-bright); }
@media (max-width: 760px) {
  .topbar .nav-menu { margin-left: auto; }
  .topbar .nav-main { margin-left: 0; }
  .topbar .nav-links a[aria-current] { background: rgba(127, 127, 140, 0.14); }
}
@media (max-width: 420px) { .topbar .topbar-current { display: none; } }

/* the half-underwater name on the paper bar: deeper water, darker waterline */
.topbar:not(.on-hero) .nm { --water: #3f5f9e; }
.topbar:not(.on-hero) .nm::after { background: linear-gradient(90deg, transparent, rgba(36, 31, 44, 0.45), transparent); }
.sort.is-sorted .sort-dots i[data-g="0"] { background: var(--accent); }
.sort.is-sorted .sort-dots i[data-g="1"] { background: #f6eee4; }
.sort.is-sorted .sort-dots i[data-g="2"] { background: #9fb7e0; }
/* once every query has left, the empty inbox says so */
.sort-pool { display: grid; place-items: center; }
.sort-pool::after { content: "Sorted into three groups ✓"; font-size: 0.9rem; color: var(--muted); opacity: 0; transition: opacity 0.4s; }
.sort.is-sorted .sort-pool::after { opacity: 1; transition: opacity 0.6s 2.7s; }

/* the final, shipped concept on the board: drawn in the page (same content as the live component below),
   scaled to its card like the screenshots around it; ringed in peach and tagged "Shipped" */
.concept-final { container-type: inline-size; box-shadow: 0 10px 24px -12px rgba(40, 20, 10, 0.35), 0 0 0 2px var(--accent); }
.concept-tag { position: absolute; right: 8px; top: -11px; z-index: 2; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.fm-final { font-family: var(--font-body); font-size: 3.9cqw; line-height: 1.35; color: #1c1a21; background: #fff; border-radius: 4px; padding: 2cqw 2.6cqw 3cqw; pointer-events: none; }
.fm-q { margin: 0 0 1.4cqw; }
.fm-field { display: flex; align-items: center; justify-content: space-between; padding: 1.6cqw 2.6cqw; border: 1px solid #8e8794; border-radius: 3px; color: #0c5f55; }
.fm-field svg { width: 4cqw; height: 4cqw; color: #4b4450; }
.fm-panel { margin-top: 1cqw; border-radius: 3px; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.25), 0 0 0 1px #e3dfe6; }
.fm-opt { display: flex; gap: 2.4cqw; align-items: flex-start; padding: 2.4cqw 2.8cqw; }
.fm-und { border-bottom: 1px solid #e3dfe6; font-weight: 500; }
.fm-search { margin: 1.8cqw 2.6cqw; padding: 1.6cqw 2.4cqw; border: 1px solid #8e8794; border-radius: 3px; color: #6d6672; }
.fm-opt.is-on { background: #e7eef0; color: #0c5f55; }
.fm-box { flex: none; width: 3.8cqw; height: 3.8cqw; margin-top: 0.4cqw; border: 1.5px solid #4b4450; border-radius: 2px; }
.fm-opt.is-on .fm-box { background: #0c5f55; border-color: #0c5f55; }
