/* ---- shared subpage pieces (contact, research, articles, legal), built on core.css tokens ---- */
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.here { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--or-text); }
.here::before { content: ""; width: 1px; height: 18px; background: #d6cec2; }
.m-menu a[aria-current="page"] { background: var(--or-soft); }
.site-footer nav a[aria-current="page"] { color: var(--or-text); }
.paper { background: var(--paper); }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* text links keep a tight underline but get a 48px tap area */
.link-u, a.u { position: relative; }
.link-u::after, a.u::after { content: ""; position: absolute; inset: -12px -6px; }
a.u { border-bottom: 1.5px solid var(--line); transition: border-color .25s; }
a.u:hover { border-color: var(--or); }

/* page hero */
.ph { position: relative; padding: clamp(132px, 14vw, 190px) var(--g) clamp(48px, 6vw, 96px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ph h1 em { font-style: normal; color: var(--or); }
.ph .lede { max-width: 44ch; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 32px; }
.acts .link-u { margin-top: 0; }
.ph-art { position: relative; min-height: 360px; display: grid; place-items: center; }
.ph-stair { position: absolute; inset: 0; margin: auto; width: min(92%, 400px); height: auto; overflow: visible; pointer-events: none; }
.ph-stair path { fill: none; }
.ph-stair .s-base { stroke: #e9e2d7; stroke-width: 14; }
.ph-stair .s-top { stroke: var(--or); stroke-width: 14; stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw 1.4s .5s cubic-bezier(.6,0,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #fff; font: 500 15px var(--sans); border: 0; cursor: pointer; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(21,20,18,.16); }
.btn.or { background: var(--or-ink); }
.btn.or:hover { box-shadow: 0 12px 30px rgba(214,63,28,.24); }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: rgba(245,80,43,.45); box-shadow: 0 10px 26px rgba(245,80,43,.12); }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(3px); }
.copy { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: 500 14px var(--sans); color: var(--body); white-space: nowrap; transition: border-color .25s, color .25s, background .25s; }
.copy:hover { border-color: rgba(245,80,43,.45); color: var(--ink); }
.copy:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
.copy svg { width: 15px; height: 15px; flex: none; }
.copy.done { background: #e9f4ee; border-color: #b9dcc8; color: #1d7a4a; }

/* cards and chips */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 24px 60px rgba(60,40,20,.07); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px; background: rgba(255,255,255,.9); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(60,40,20,.1); font-size: 14px; color: var(--body); white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--or); flex: none; }
.chip b { color: var(--ink); font-weight: 600; }

/* closing call to action */
.close { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.close h2 { max-width: 16ch; margin: 0 auto; }
.close .sub { margin: 0; }
.close .wl { margin: 8px 0 0; width: 100%; }
.close .wl-msg { margin: 0; }

/* scroll reveal (only with JS) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .ph { grid-template-columns: minmax(0, 1fr); padding-top: 112px; }
  .ph-art { min-height: 280px; }
}
/* phones: big type, 48px+ targets, full-width main actions, forms that stack */
@media (max-width: 560px) {
  .here { display: none; }
  h1 span { white-space: normal; }
  section.blk { padding-top: 64px; padding-bottom: 64px; }
  .ph { padding: 104px var(--g) 40px; gap: 28px; }
  .ph .lede { font-size: 19px; line-height: 1.5; }
  .sub { font-size: 18px; line-height: 1.55; }
  h2 { font-size: clamp(30px, 9vw, 36px); line-height: 1.06; }
  .mono { font-size: 12px; }
  .acts { margin-top: 26px; gap: 6px 24px; }
  .acts .btn { width: 100%; min-height: 54px; font-size: 16px; }
  .btn { min-height: 52px; font-size: 16px; }
  .link-u { display: inline-flex; align-items: center; min-height: 48px; padding: 0; border-bottom: 0; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; font-size: 16px; }
  .link-u::after { inset: 0 -6px; }
  .copy { min-height: 48px; font-size: 15px; padding: 0 18px; }
  .wl { flex-direction: column; border-radius: 22px; padding: 8px; gap: 8px; }
  .wl input[type=email] { min-height: 52px; font-size: 17px; }
  .wl button { width: 100%; min-height: 52px; font-size: 16px; }
  .wl-msg { font-size: 16px; }
  .close { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .ph-stair .s-top { animation: none; stroke-dashoffset: 0; }
  .btn, .btn .arr { transition: none; }
}

/* ---- research index ---- */
.ph-art .fl { position: absolute; }
.ph-art .f1 { left: 4%; top: 20%; animation: bob 7s ease-in-out infinite; }
.ph-art .f2 { right: 4%; top: 42%; animation: bob 8s -2s ease-in-out infinite; }
.ph-art .f3 { left: 14%; bottom: 12%; animation: bob 9s -4s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -8px; } }

/* the wall: 654 answers, one dot each; a quarter turn orange */
.wall { padding-top: clamp(48px, 6vw, 96px); }
.wall-in { margin-top: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.wall-copy .sub { margin-top: 0; }
.wall-n { margin-top: 30px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.wall-n b { font-size: clamp(64px, 6.4vw, 104px); font-weight: 500; letter-spacing: -.055em; line-height: .9; font-variant-numeric: tabular-nums; min-width: 3.2ch; transition: color .5s; }
.wall-n.qq b { color: var(--or); }
.wall-n span { font-size: 16px; color: var(--body); max-width: 16ch; line-height: 1.35; }
.wall-note { margin: 18px 0 0; font-size: 12px; }
.wall-grid { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 6px; padding: clamp(16px, 2vw, 26px); background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 24px 60px rgba(60,40,20,.07); }
.wall-grid i { aspect-ratio: 1; border-radius: 50%; background: #e4ddd2; transition: transform .45s cubic-bezier(.34,1.56,.64,1), background .5s, opacity .4s; }
.js .wall-grid i { transform: scale(0); opacity: 0; }
.js .wall-grid i.on { transform: none; opacity: 1; }
.wall-grid i.y { background: var(--or); }
.wall-grid.qq i:not(.y) { background: #ebe5dc; }

/* report cards with a live headline stat */
.reports { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: clamp(36px, 5vw, 64px); }
.rep { position: relative; padding: clamp(18px, 2vw, 24px); display: flex; flex-direction: column; gap: 14px; box-shadow: 0 1px 0 rgba(60,40,20,.02); transition: box-shadow .4s, transform .4s cubic-bezier(.2,.8,.2,1), border-color .4s; }
.rep:hover, .rep:focus-within { box-shadow: 0 30px 70px rgba(60,40,20,.12); transform: translateY(-4px); border-color: #ddd3c6; }
.rep-viz { position: relative; height: 280px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 72px 18px 18px; overflow: hidden; }
.rep-viz .answers { margin-top: 0; max-width: 420px; }
.rep-viz .replay, .rep-viz .seg { z-index: 2; }
.rep-viz .seg button { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; font-size: 13px; }
.rep-viz .replay { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; font-size: 13px; }
.split { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 14px; font-size: 13.5px; color: var(--body); }
.split span { display: inline-flex; align-items: center; gap: 7px; }
.split i { width: 8px; height: 8px; border-radius: 50%; }
.split .you { background: var(--or); } .split .rv2 { background: #bdb4a8; }
.split b { color: var(--ink); font-weight: 600; }
.rep-viz .crowd { margin-top: 0; width: min(100%, 200px); }
.crowd-cap { margin-top: 14px; font-size: 12px; }
.crowd-cap b { color: var(--ink); font-weight: 500; }
.rep-top { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; }
.rep-top .mono { font-size: 12px; }
.rep-top .mono:first-child { color: var(--or-text); }
.rep-num b { font-size: clamp(64px, 6vw, 96px); font-weight: 500; letter-spacing: -.055em; line-height: .9; font-variant-numeric: tabular-nums; }
.rep h3 { margin: 0; font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: -.025em; line-height: 1.15; max-width: 24ch; }
.rep h3 a:focus-visible { outline: none; }
.rep:has(.cover:focus-visible) { outline: 2px solid var(--or); outline-offset: 3px; }
.cover::after { content: ""; position: absolute; inset: 0; border-radius: 24px; z-index: 1; }
.rep p { margin: 0; color: var(--body); line-height: 1.6; font-size: 16px; max-width: 54ch; }
.rep .go { margin-top: auto; padding-top: 6px; display: inline-flex; gap: 8px; align-items: center; font-weight: 500; min-height: 44px; }
.rep .go i { font-style: normal; transition: transform .3s; }
.rep:hover .go i { transform: translateX(4px); color: var(--or); }

/* the figures */
.fig-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.filter { display: inline-flex; background: #ece6dc; border-radius: 999px; padding: 4px; }
.filter button { all: unset; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; font: 500 14px var(--sans); color: var(--body); transition: background .25s, color .25s; white-space: nowrap; }
.filter button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.filter button:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
.figs { list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.fg { padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: none; transition: opacity .35s, transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.fg:hover { box-shadow: 0 20px 50px rgba(60,40,20,.09); }
.fg .mono { font-size: 12px; }
.fg[data-kind="own"] .mono { color: var(--or-text); }
.fg > b { font-size: 52px; font-weight: 500; letter-spacing: -.05em; line-height: .95; font-variant-numeric: tabular-nums; }
.fg > b small { font-size: .45em; letter-spacing: -.01em; color: var(--mute); font-weight: 400; }
.fg p { margin: 0; color: var(--body); line-height: 1.5; font-size: 15px; }
.fg .src { font: 400 12px/1.5 var(--mono); color: var(--mute); }
.fg-f { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fg-l { display: inline-flex; align-items: center; min-height: 48px; padding: 0 4px; font-size: 14px; font-weight: 500; }
.fg-l:hover { color: var(--or-text); }
.fg[hidden] { display: none; }
.fg.out { opacity: 0; transform: scale(.96); }
.fig-empty { margin-top: 20px; }

@media (max-width: 900px) {
  .reports { grid-template-columns: minmax(0, 1fr); }
  .ph-art { min-height: 250px; }
  .ph-art .f1 { left: 0; top: 10%; } .ph-art .f2 { right: 0; } .ph-art .f3 { left: 4%; bottom: 6%; }
  .wall-in { grid-template-columns: minmax(0, 1fr); }
  .wall-grid { grid-template-columns: repeat(26, minmax(0, 1fr)); gap: 4px; padding: 14px; }
}
@media (max-width: 560px) {
  /* The hero art becomes a row of facts under the lede: no tall blank box on a phone. */
  .ph-art { min-height: 0; display: flex; flex-wrap: wrap; gap: 8px; place-items: initial; }
  .ph-art .ph-stair { display: none; }
  .ph-art .fl { position: static; animation: none; box-shadow: none; font-size: 15px; padding: 10px 14px; }
  .wall-n { margin-top: 22px; }
  .wall-n span { font-size: 17px; }
  .wall-note { font-size: 12px; line-height: 1.5; }
  .wall-grid { grid-template-columns: repeat(22, minmax(0, 1fr)); gap: 3px; padding: 12px; border-radius: 18px; }
  .rep { padding: 16px; gap: 12px; }
  .rep-viz { height: auto; min-height: 270px; padding: 76px 14px 18px; }
  .rep-viz .seg { left: 10px; top: 10px; }
  .rep-viz .replay { right: 10px; top: 10px; }
  .rep-viz .seg button, .rep-viz .replay { min-height: 48px; font-size: 14px; }
  .ans { font-size: 14.5px; }
  .ans .shim { display: none; }
  .split { font-size: 14px; }
  .crowd-cap { font-size: 12px; }
  .rep-top .mono { font-size: 12px; }
  .rep h3 { font-size: 24px; }
  .rep p { font-size: 17px; }
  .rep .go { min-height: 48px; font-size: 17px; }
  .filter { width: 100%; } .filter button { flex: 1; justify-content: center; padding: 0 8px; min-height: 48px; font-size: 15px; }
  .figs { gap: 12px; }
  .fg { padding: 18px; }
  .fg .mono { font-size: 12px; }
  .fg > b { font-size: 56px; }
  .fg p { font-size: 17px; }
  .fg .src { font-size: 12.5px; }
  .fg-f { flex-wrap: wrap; }
  .fg-l { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-art .fl { animation: none; }
  .rep, .fg, .wall-grid i { transition: none; }
  .rep:hover { transform: none; }
}

/* ---- phones, direction B: calm, one idea per screen. Only at 900px and below; desktop is untouched. ---- */
@media (min-width: 901px) { .mb { display: none !important; } }
@media (max-width: 900px) {
  .dk { display: none !important; }
  main section.blk { padding-top: 88px; padding-bottom: 88px; }
  main .eyebrow { font-size: 11.5px; letter-spacing: .12em; }
  main h2 { font-size: clamp(30px, 8.8vw, 36px); line-height: 1.06; letter-spacing: -.035em; }
  main .sub { font-size: 17px; line-height: 1.5; }

  /* hero: headline and one line */
  .ph { padding: 112px var(--g) 24px; }
  .ph h1 { font-size: clamp(42px, 12.4vw, 50px); line-height: 1.02; }
  .ph h1 span { white-space: normal; }
  .ph .lede { font-size: 17.5px; line-height: 1.5; max-width: 32ch; margin-top: 16px; }
  .ph-art { display: none !important; }

  /* the 654 answers: a still version, one giant number */
  .wall { padding-top: 72px !important; }
  .wall-in { margin-top: 28px; gap: 0; }
  .wall-copy .sub, .wall-grid, .wall-note { display: none !important; }
  .wall-n { margin-top: 0; display: block; }
  .wall-n b, .wall-n.qq b { display: block; font-size: clamp(104px, 33vw, 132px); letter-spacing: -.06em; line-height: .88; color: var(--ink); min-width: 0; }
  .wall-n span { display: block; margin-top: 18px; max-width: 22ch; font-size: 20px; line-height: 1.35; letter-spacing: -.01em; color: var(--ink); }
  .wall-n::after { content: "SurgeLab, 654 AI answers, August 2026"; display: block; margin-top: 22px; font: 500 11.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }

  /* two report cards: number, headline, link */
  #reports { padding-top: 56px !important; }
  .reports { gap: 14px; margin-top: 32px; }
  .rep { padding: 24px 22px; gap: 10px; border-radius: 22px; box-shadow: 0 24px 50px -30px rgba(60,40,20,.3); }
  .rep:hover, .rep:focus-within { transform: none; }
  .rep-viz, .rep > p { display: none !important; }
  .rep-top { margin-top: 0; }
  .rep-top .mono { font-size: 11.5px; }
  .rep-num b { font-size: clamp(76px, 24vw, 96px); }
  .rep h3 { font-size: 21px; }
  .rep .go { font-size: 16px; }

  /* the figures: tidy rows in one card */
  .fig-head { gap: 0; }
  .filter { display: none; }
  .figs { margin-top: 32px; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 0 20px; }
  .fg { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 6px 14px; align-items: center; padding: 20px 0 22px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .fg + .fg { border-top: 1px solid var(--line); }
  .fg > .mono, .fg-l { display: none !important; }
  .fg > b { grid-column: 1; grid-row: 1; font-size: 44px; letter-spacing: -.05em; line-height: 1; }
  .fg > b small { font-size: .45em; }
  .fg p { grid-column: 1 / -1; font-size: 16px; line-height: 1.45; color: var(--ink); }
  .fg .src { grid-column: 1 / -1; font-size: 11.5px; }
  .fg-f { grid-column: 2; grid-row: 1; margin: 0; padding: 0; display: block; }
  .fg .copy { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; gap: 0; }
  .fg .copy span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fg .copy.done { width: 44px; }
}
