/* ============================================================
   BREW / BLOOM — research case study
   Built on the Sidfolio design system (sidfolio.css supplies
   tokens + Playfair Display / Work Sans fonts).
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* extra brand tokens for the case study */
:root {
  --maxw: 1180px;
  --measure: 50rem;
  --lav-bg: #F4F2FF;          /* page-level lavender wash */
  --lav-line: #E4E1FB;
  --night: #0B0930;           /* hero / footer ground */
  --night-2: #15123F;
  --c-hard-bg: #FFE2E8;  --c-hard-fg: #C0344F;  --c-hard-dot: #F0567A;
  --c-cond-bg: #D8F3DF;  --c-cond-fg: #1F7A45;  --c-cond-dot: #34B36A;
  --c-soft-bg: #E9E5FF;  --c-soft-fg: #5B43C9;  --c-soft-dot: #8B5CF6;
  --part-academic: #6366F1;
  --part-health:   #10B981;
  --part-finance:  #F59E0B;
  --part-relationships: #EC4899;
}

/* ---------- type helpers ---------- */
.serif { font-family: var(--font-display); }
.overline {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}
.overline.dim { color: var(--slate-400); }
.eyebrow-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: clamp(72px, 10vw, 132px) 0; position: relative; }
.section.tint { background: var(--lav-bg); }
.section-head { max-width: var(--measure); margin-bottom: 52px; }
.kicker {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px;
}
.kicker .num {
  font-family: var(--font-ui); font-weight: 700; font-size: 13px;
  letter-spacing: 0.1em; color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.kicker .rule { flex: 0 0 40px; height: 1px; background: var(--indigo-300); opacity: .5; align-self: center; }
.kicker .lbl {
  font-family: var(--font-ui); font-weight: 700; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate-500);
}
h2.title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4.4vw, 48px); line-height: 1.12;
  letter-spacing: 0.005em; margin: 0 0 20px; color: var(--ink);
  text-wrap: balance;
}
h2.title em { font-style: italic; color: var(--primary); }
.lede {
  font-size: clamp(18px, 2.1vw, 22px); line-height: 1.55;
  color: var(--slate-700); max-width: var(--measure); margin: 0;
  font-weight: 400;
}
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.2em; color: var(--slate-700); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .lead-in { color: var(--ink); font-weight: 500; }

/* ============================================================
   TOP NAV
   ============================================================ */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease, border-color .35s;
  border-bottom: 1px solid transparent;
}
.topnav.scrolled {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  padding: 12px 32px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--primary); color: #fff; flex: 0 0 auto;
  box-shadow: 0 4px 14px rgba(78,72,240,.35);
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  letter-spacing: 0.02em; color: #fff; transition: color .35s ease;
}
.topnav.scrolled .brand-name { color: var(--ink); }
.brand-name .tld { color: var(--indigo-300); font-style: italic; font-weight: 500; }

.navlinks { display: flex; align-items: center; gap: 4px; }
.navlinks a {
  font-family: var(--font-ui); font-weight: 500; font-size: 13.5px;
  letter-spacing: 0.01em; text-decoration: none; color: rgba(255,255,255,.72);
  padding: 8px 13px; border-radius: 8px; transition: color .25s, background .25s;
}
.navlinks a:hover { color: #fff; background: rgba(255,255,255,.10); }
.topnav.scrolled .navlinks a { color: var(--slate-600); }
.topnav.scrolled .navlinks a:hover { color: var(--primary); background: var(--indigo-50); }
.nav-cta {
  font-family: var(--font-ui); font-weight: 600; font-size: 13.5px;
  text-decoration: none; padding: 9px 16px; border-radius: 999px;
  background: #fff; color: var(--ink); transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.topnav.scrolled .nav-cta { background: var(--primary); color: #fff; }

/* scroll progress */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--indigo-400), var(--indigo-600));
  z-index: 200; transition: width .1s linear;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; background: var(--night); color: #fff;
  padding: 168px 0 0; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 78% -10%, rgba(120,108,255,.40), transparent 55%),
    radial-gradient(90% 70% at 8% 4%, rgba(78,72,240,.28), transparent 50%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  margin-bottom: 30px;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-weight: 600; font-size: 12.5px;
  letter-spacing: 0.04em; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.9);
}
.hero-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-300); box-shadow: 0 0 0 4px rgba(111,209,115,.18); }
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(42px, 7.2vw, 88px); line-height: 1.02;
  letter-spacing: -0.005em; margin: 0; max-width: 16ch; text-wrap: balance;
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--indigo-100); }
.hero-sub {
  font-size: clamp(18px, 2.2vw, 23px); line-height: 1.5; color: rgba(255,255,255,.74);
  max-width: 46rem; margin: 28px 0 0; font-weight: 400;
}
.hero-credits {
  margin: 38px 0 0; display: flex; flex-wrap: wrap; gap: 28px 44px; align-items: flex-start;
}
.hero-credit .k {
  font-family: var(--font-ui); font-weight: 700; font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--indigo-300); margin-bottom: 6px;
}
.hero-credit .v { font-size: 15px; color: rgba(255,255,255,.92); line-height: 1.5; }
.hero-credit .v span { color: rgba(255,255,255,.55); }

.hero-figure { position: relative; margin-top: 64px; padding-bottom: 0; }
.hero-figure .browser { box-shadow: 0 40px 100px rgba(0,0,0,.5); }
.hero-figure::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 130px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

/* ============================================================
   BROWSER FRAME
   ============================================================ */
.browser {
  border-radius: 14px; overflow: hidden; background: #fff;
  border: 1px solid rgba(16,15,51,.12); box-shadow: var(--shadow-lg);
}
.browser-bar {
  display: flex; align-items: center; gap: 8px; padding: 11px 16px;
  background: #f3f2f8; border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 7px; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.browser-dots i:nth-child(1){ background:#FF5F57; }
.browser-dots i:nth-child(2){ background:#FEBC2E; }
.browser-dots i:nth-child(3){ background:#28C840; }
.browser-url {
  flex: 1; margin-left: 8px; max-width: 360px;
  font-family: var(--font-ui); font-size: 12px; color: var(--slate-500);
  background: #fff; border: 1px solid var(--border); border-radius: 7px;
  padding: 5px 12px; text-align: center;
}
.browser-body { background: #fff; }
.browser-body img { width: 100%; display: block; }
.browser-scroll { max-height: 560px; overflow: hidden; }

figure { margin: 0; }
.figcap {
  font-family: var(--font-ui); font-size: 13px; color: var(--slate-500);
  margin-top: 14px; line-height: 1.5; display: flex; gap: 8px;
}
.figcap b { color: var(--slate-700); font-weight: 600; }
.figcap .tag {
  font-weight: 700; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary); background: var(--indigo-50); padding: 2px 8px; border-radius: 5px;
  white-space: nowrap; height: fit-content;
}

/* ============================================================
   GENERIC GRID + CARDS
   ============================================================ */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split.wide-r { grid-template-columns: 0.85fr 1.15fr; }
.split.wide-l { grid-template-columns: 1.15fr 0.85fr; }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 28px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--indigo-100); }
.card h3 {
  font-family: var(--font-ui); font-weight: 600; font-size: 18px; line-height: 1.3;
  margin: 0 0 10px; color: var(--ink);
}
.card p { margin: 0; font-size: 15px; color: var(--slate-600); line-height: 1.55; }
.card-num {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  color: var(--indigo-300); margin-bottom: 16px;
}

/* stat band */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.stat { padding: 34px 30px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat .big {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 5vw, 60px);
  line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.stat .big .unit { font-size: 0.5em; color: var(--primary); }
.stat .lab { margin-top: 12px; font-size: 14.5px; color: var(--slate-600); line-height: 1.5; }

/* pull quote */
.pull {
  border-left: 3px solid var(--primary); padding: 6px 0 6px 28px; margin: 8px 0;
}
.pull p {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(22px, 3vw, 30px); line-height: 1.35; color: var(--ink); margin: 0;
}
.pull cite { display: block; margin-top: 16px; font-style: normal; font-family: var(--font-ui); font-size: 14px; color: var(--slate-500); }

/* ============================================================
   CONSTRAINT CHIPS
   ============================================================ */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-ui); font-weight: 600; font-size: 13px;
  padding: 5px 12px 5px 10px; border-radius: 999px; line-height: 1;
}
.chip .d { width: 7px; height: 7px; border-radius: 50%; }
.chip.hard { background: var(--c-hard-bg); color: var(--c-hard-fg); }
.chip.hard .d { background: var(--c-hard-dot); }
.chip.cond { background: var(--c-cond-bg); color: var(--c-cond-fg); }
.chip.cond .d { background: var(--c-cond-dot); }
.chip.soft { background: var(--c-soft-bg); color: var(--c-soft-fg); }
.chip.soft .d { background: var(--c-soft-dot); }

.ctype { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; background: #fff; position: relative; overflow: hidden; }
.ctype::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; }
.ctype.hard::before { background: var(--c-hard-dot); }
.ctype.cond::before { background: var(--c-cond-dot); }
.ctype.soft::before { background: var(--c-soft-dot); }
.ctype h3 { display: flex; align-items: center; gap: 12px; font-family: var(--font-ui); font-weight: 700; font-size: 19px; margin: 6px 0 14px; color: var(--ink); }
.ctype p { font-size: 15px; color: var(--slate-600); margin: 0 0 16px; line-height: 1.55; }
.ctype .ex { font-size: 13.5px; color: var(--slate-500); border-top: 1px dashed var(--border); padding-top: 14px; }
.ctype .ex b { color: var(--slate-700); font-weight: 600; }

/* ============================================================
   HIERARCHY / DATA MODEL LADDER
   ============================================================ */
.ladder { display: flex; flex-direction: column; gap: 2px; }
.rung {
  display: grid; grid-template-columns: 132px 1fr; gap: 24px; align-items: start;
  padding: 22px 0; border-bottom: 1px solid var(--border);
}
.rung:last-child { border-bottom: none; }
.rung .lvl { display: flex; align-items: center; gap: 12px; }
.rung .lvl .glyph {
  width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff; font-weight: 700;
  font-family: var(--font-ui); font-size: 15px;
}
.rung .lvl .nm { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--ink); }
.rung .body p { margin: 0; color: var(--slate-600); font-size: 15.5px; line-height: 1.6; }
.rung .body .role { color: var(--ink); font-weight: 600; }
.rung .body .eg { margin-top: 8px; font-size: 13.5px; color: var(--slate-500); font-style: italic; }

/* ============================================================
   INTERACTIVE CANVAS
   ============================================================ */
.canvas-shell {
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-md);
}
.canvas-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; border-bottom: 1px solid var(--border); background: #fff;
}
.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 30px; }
.crumb {
  font-family: var(--font-ui); font-weight: 600; font-size: 13px; color: var(--slate-500);
  padding: 5px 11px; border-radius: 7px; background: var(--slate-100); border: none;
  cursor: pointer; transition: background .2s, color .2s;
}
.crumb:hover { background: var(--indigo-50); color: var(--primary); }
.crumb.active { background: var(--indigo-100); color: var(--indigo-700); cursor: default; }
.crumb-sep { color: var(--slate-300); font-size: 12px; }
.zoom-hint { font-family: var(--font-ui); font-size: 12px; color: var(--slate-400); display: flex; align-items: center; gap: 7px; }
.zoom-hint .kbd { font-weight: 600; color: var(--slate-600); background: var(--slate-100); border: 1px solid var(--border); border-radius: 5px; padding: 2px 7px; font-size: 11px; }

.canvas-stage {
  position: relative; height: 540px; overflow: hidden;
  background-color: #FAFAFD;
  background-image: radial-gradient(var(--slate-200) 1px, transparent 1px);
  background-size: 22px 22px;
}
.canvas-layer { position: absolute; inset: 0; padding: 30px; }

/* world view */
.world-grid { position: relative; width: 100%; height: 100%; }
.part-node {
  position: absolute; border-radius: 16px; border: 1.5px solid; cursor: pointer;
  padding: 16px; transition: transform .25s, box-shadow .25s; background: #fff;
  display: flex; flex-direction: column;
}
.part-node:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16,15,51,.13); z-index: 5; }
.part-node .pn-head { display: flex; align-items: center; gap: 9px; margin-bottom: auto; }
.part-node .pn-dot { width: 11px; height: 11px; border-radius: 4px; }
.part-node .pn-name { font-family: var(--font-ui); font-weight: 700; font-size: 15px; color: var(--ink); }
.part-node .pn-meta { font-family: var(--font-ui); font-size: 11.5px; color: var(--slate-400); margin-top: 8px; display: flex; gap: 14px; white-space: nowrap; }
.part-node .pn-cta { font-size: 11px; font-weight: 600; color: var(--primary); opacity: 0; transition: opacity .2s; }
.part-node:hover .pn-cta { opacity: 1; }
.weight-tag { font-family: var(--font-ui); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-400); }

/* aspect (diamond) view */
.aspect-field { position: relative; width: 100%; height: 100%; }
.diamond {
  position: absolute; width: 150px; height: 150px; transform: rotate(45deg);
  border: 1.5px solid var(--indigo-300); background: rgba(255,255,255,.9);
  border-radius: 18px; cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s;
  display: grid; place-items: center;
}
.diamond:hover { background: var(--indigo-50); box-shadow: 0 12px 28px rgba(78,72,240,.18); }
.diamond .dlabel {
  transform: rotate(-45deg); font-family: var(--font-ui); font-weight: 600; font-size: 14px;
  color: var(--ink); text-align: center; max-width: 110px; line-height: 1.25;
}
.diamond .dcount { transform: rotate(-45deg); position: absolute; bottom: 30px; font-size: 11px; color: var(--slate-400); font-weight: 600; }

/* points list view */
.points-scroll { position: absolute; inset: 0; padding: 26px 30px; overflow-y: auto; }
.point-row {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px;
  margin-bottom: 14px; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.point-row:hover { border-color: var(--indigo-200, #c7c5f5); box-shadow: var(--shadow-sm); transform: translateX(2px); }
.point-row .pr-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.point-row .pr-text { font-family: var(--font-ui); font-weight: 600; font-size: 18px; color: var(--ink); line-height: 1.3; }
.point-row .pr-cond { font-size: 12.5px; color: var(--c-cond-fg); margin-top: 7px; font-weight: 500; }
.point-row .pr-foot { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--slate-400); font-weight: 600; white-space: nowrap; }
.point-row .pr-foot .lnk { color: var(--primary); }

/* stories view */
.stories-scroll { position: absolute; inset: 0; padding: 26px 30px; overflow-y: auto; }
.story-head { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--ink); margin: 0 0 6px; }
.story-sub { font-family: var(--font-ui); font-size: 13.5px; color: var(--slate-500); margin: 0 0 22px; }
.story-card {
  background: var(--c-soft-bg); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px;
  border: 1px solid #d9d2ff;
}
.story-card .quote { font-family: var(--font-display); font-style: italic; font-size: 18px; color: #3f2f86; line-height: 1.45; }
.story-empty { font-size: 14px; color: var(--slate-400); font-style: italic; padding: 20px 0; }

.canvas-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 18px; border-top: 1px solid var(--border); background: #fff;
  font-family: var(--font-ui); font-size: 12.5px; color: var(--slate-500);
}
.canvas-foot .legend { display: flex; gap: 16px; flex-wrap: wrap; }
.canvas-foot .legend span { display: inline-flex; align-items: center; gap: 6px; }
.canvas-foot .legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.back-btn {
  font-family: var(--font-ui); font-weight: 600; font-size: 13px; color: var(--primary);
  background: var(--indigo-50); border: none; border-radius: 8px; padding: 7px 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; transition: background .2s; opacity: 0; pointer-events: none;
}
.back-btn.show { opacity: 1; pointer-events: auto; }
.back-btn:hover { background: var(--indigo-100); }

/* ============================================================
   FEATURE ROWS (zoom, linking, manipulation)
   ============================================================ */
.feat-list { display: flex; flex-direction: column; gap: 18px; }
.feat {
  display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.feat:last-child { border-bottom: none; }
.feat .ic {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: var(--indigo-50); color: var(--primary);
}
.feat .ic svg { width: 22px; height: 22px; }
.feat h4 { font-family: var(--font-ui); font-weight: 600; font-size: 17px; margin: 4px 0 7px; color: var(--ink); }
.feat p { margin: 0; font-size: 15px; color: var(--slate-600); line-height: 1.55; }

/* ============================================================
   STUDY CONDITIONS
   ============================================================ */
.conditions { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.cond {
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px;
  background: #fff; position: relative;
}
.cond.c3 { border-color: var(--primary); box-shadow: 0 10px 30px rgba(78,72,240,.12); }
.cond .tag { font-family: var(--font-ui); font-weight: 700; font-size: 12px; letter-spacing: .1em; color: var(--slate-400); }
.cond.c3 .tag { color: var(--primary); }
.cond h3 { font-family: var(--font-ui); font-weight: 600; font-size: 19px; margin: 10px 0 12px; color: var(--ink); }
.cond p { font-size: 14.5px; color: var(--slate-600); line-height: 1.55; margin: 0 0 18px; }
.cond .flags { display: flex; flex-direction: column; gap: 9px; border-top: 1px solid var(--border); padding-top: 16px; }
.cond .flag { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--slate-600); }
.cond .flag .mk { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.cond .flag .mk.y { background: var(--c-cond-bg); color: var(--c-cond-fg); }
.cond .flag .mk.n { background: #F0F0F4; color: var(--slate-400); }
.cond .badge-best {
  position: absolute; top: -11px; right: 22px; font-family: var(--font-ui);
  font-weight: 700; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--primary); padding: 4px 12px; border-radius: 999px;
}

/* hypothesis bar */
.hypo {
  background: var(--night); color: #fff; border-radius: var(--radius-lg); padding: clamp(32px,5vw,56px);
  position: relative; overflow: hidden;
}
.hypo::before { content:""; position:absolute; inset:0; background: radial-gradient(80% 120% at 90% 0, rgba(120,108,255,.3), transparent 60%); }
.hypo .inner { position: relative; }
.hypo .overline { color: var(--indigo-300); }
.hypo p {
  font-family: var(--font-display); font-size: clamp(22px,3vw,32px); line-height: 1.4;
  font-weight: 500; margin: 16px 0 0; max-width: 30rem;
}
.hypo p .hl { color: var(--indigo-100); font-style: italic; }

/* ideation timeline */
.ideation-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.scenario {
  border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: #fff;
  display: flex; flex-direction: column;
}
.scenario .sc-top { padding: 22px 24px 18px; }
.scenario .sc-n { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--indigo-300); }
.scenario h3 { font-family: var(--font-ui); font-weight: 700; font-size: 19px; margin: 6px 0 4px; color: var(--ink); }
.scenario .sc-theme { font-size: 13px; color: var(--primary); font-weight: 600; }
.scenario p { font-size: 14px; color: var(--slate-600); line-height: 1.55; margin: 14px 0 0; padding: 0 24px; }
.scenario .sc-foot { margin-top: auto; padding: 18px 24px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--slate-500); display: flex; gap: 14px; }
.scenario .sc-foot b { color: var(--slate-700); }

/* encounters */
.encounters { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 8px; }
.encounter { padding: 26px; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--border); }
.encounter .who { font-family: var(--font-ui); font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 10px; display:flex; align-items:center; gap:10px; }
.encounter .who .av { width: 34px; height: 34px; border-radius: 50%; background: var(--indigo-50); color: var(--primary); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.encounter p { font-size: 14.5px; color: var(--slate-600); line-height: 1.55; margin: 0; }

/* related work / reading list */
.reading { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 40px; }
.read-item { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); align-items: start; }
.read-item .ri-title { font-family: var(--font-ui); font-weight: 600; font-size: 15.5px; color: var(--ink); line-height: 1.35; }
.read-item .ri-note { font-size: 13.5px; color: var(--slate-500); margin-top: 5px; line-height: 1.5; }
.read-item .ri-cat { font-family: var(--font-ui); font-weight: 700; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-400); white-space: nowrap; padding-top: 3px; }

/* product gallery */
.gallery { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.shot { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: #fff; }
.shot .shot-img { background: #F7F8F9; overflow: hidden; max-height: 320px; display: flex; }
.shot .shot-img img { width: 100%; object-fit: cover; object-position: top left; }
.shot .shot-cap { padding: 18px 22px; border-top: 1px solid var(--border); }
.shot .shot-cap h4 { font-family: var(--font-ui); font-weight: 600; font-size: 16px; margin: 0 0 5px; color: var(--ink); }
.shot .shot-cap p { font-size: 13.5px; color: var(--slate-500); margin: 0; line-height: 1.5; }

/* "is not" list */
.notlist { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.notcard { border: 1px dashed var(--border-strong); border-radius: var(--radius-md); padding: 24px; background: var(--slate-50); }
.notcard .x { width: 30px; height: 30px; border-radius: 8px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; color: var(--c-hard-fg); margin-bottom: 14px; }
.notcard h4 { font-family: var(--font-ui); font-weight: 600; font-size: 16px; margin: 0 0 8px; color: var(--ink); }
.notcard p { font-size: 14px; color: var(--slate-600); margin: 0; line-height: 1.55; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--night); color: #fff; padding: clamp(72px,9vw,110px) 0 48px; position: relative; overflow: hidden; }
.footer::before { content:""; position:absolute; inset:0; background: radial-gradient(90% 90% at 50% -20%, rgba(120,108,255,.28), transparent 55%); pointer-events:none; }
.footer .wrap { position: relative; }
.footer h2 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(30px,4.6vw,52px);
  line-height: 1.12; margin: 0 0 20px; max-width: 18ch; text-wrap: balance;
}
.footer h2 em { font-style: italic; color: var(--indigo-100); }
.footer .f-lede { font-size: 18px; color: rgba(255,255,255,.72); max-width: 40rem; margin: 0 0 36px; line-height: 1.55; }
.footer-cta {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-ui); font-weight: 600;
  font-size: 16px; text-decoration: none; background: #fff; color: var(--ink);
  padding: 14px 26px; border-radius: 999px; transition: transform .2s, box-shadow .2s;
}
.footer-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,.3); }
.f-credits { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; margin-top: 72px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.14); }
.f-cr .k { font-family: var(--font-ui); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--indigo-300); margin-bottom: 10px; }
.f-cr .v { font-size: 14.5px; color: rgba(255,255,255,.86); line-height: 1.6; }
.f-cr .v span { color: rgba(255,255,255,.5); }
.f-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.f-tag { font-family: var(--font-ui); font-size: 12px; color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.16); padding: 5px 12px; border-radius: 999px; }
.f-bottom { margin-top: 44px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: rgba(255,255,255,.45); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .navlinks { display: none; }
  .split, .split.wide-r, .split.wide-l { grid-template-columns: 1fr; }
  .g3, .g4, .conditions, .ideation-grid, .encounters, .notlist, .reading { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .f-credits { grid-template-columns: repeat(2,1fr); }
  .gallery { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .g2 { grid-template-columns: 1fr; }
  .rung { grid-template-columns: 1fr; gap: 10px; }
  .topnav, .topnav.scrolled { padding: 12px 20px; }
  .f-credits { grid-template-columns: 1fr; }
  .canvas-stage { height: 460px; }
}
