/* =========================================================
   PACER — Case study (poster edition)
   Matches the blueprint poster reference: technical frame with
   registration / crop marks, dense multi-column grid, mono body,
   heavy upright Roboto for titles. Brand = blue (#2E5BFF);
   product UI inside device frames uses a coral action accent.
   ========================================================= */
@import url("./tokens.css");

:root {
  --space-xs: 4px;  --space-sm: 8px;  --space-md: 16px;
  --space-lg: 24px; --space-xl: 40px; --space-2xl: 56px;

  /* product palette */
  --p-coral:      #F2674A;
  --p-coral-deep: #E8492A;
  --p-coral-soft: #FDE3DC;
  --p-blue:       #2E5BFF;
  --p-blue-soft:  #CBD7FF;
  --p-ink:        #1B2233;
  --p-mute:       #97A0B2;
  --p-line:       #EAEDF3;
  --p-bg:         #F4F6FA;

  --frame-line: rgba(46, 91, 255, 0.5);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
body {
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, var(--bg-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-grid) 1px, transparent 1px);
  background-size: var(--grid-unit) var(--grid-unit);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Reusable type -------------------------------- */
.mono { font-family: var(--font-mono); }
.sans { font-family: var(--font-display-alt); }

.eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
}
.eyebrow .n { color: var(--accent); }

.sec-title {
  font-family: var(--font-display-alt); font-weight: 800;
  font-size: 24px; line-height: 1.12; letter-spacing: -0.015em;
  color: var(--ink); margin: 12px 0 0; text-wrap: balance;
}
.sec-title.lg { font-size: 28px; }

.body {
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.62;
  color: var(--ink-soft); margin: 12px 0 0;
}
.lede { color: var(--ink-soft); }

.tag {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.tag.mute { color: var(--ink-mute); }

/* ============================================================
   POSTER FRAME + REGISTRATION MARKS
   ============================================================ */
.poster {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 48px 0;
}
/* outer technical frame */
.frame {
  position: absolute; inset: 16px 14px;
  border: 1px solid var(--frame-line);
  pointer-events: none; z-index: 0;
}
/* corner brackets that overhang the frame */
.frame .corner { position: absolute; width: 16px; height: 16px; }
.frame .corner::before, .frame .corner::after { content: ''; position: absolute; background: var(--accent); }
.frame .corner::before { width: 16px; height: 1.5px; }
.frame .corner::after  { width: 1.5px; height: 16px; }
.frame .corner.tl { top: -1px; left: -1px; }
.frame .corner.tr { top: -1px; right: -1px; } .frame .corner.tr::after { right: 0; }
.frame .corner.bl { bottom: -1px; left: -1px; } .frame .corner.bl::before { bottom: 0; }
.frame .corner.br { bottom: -1px; right: -1px; } .frame .corner.br::before { bottom: 0; } .frame .corner.br::after { right: 0; }

.poster > *:not(.frame) { position: relative; z-index: 1; }

/* plus / crop mark */
.plus { position: absolute; width: 11px; height: 11px; pointer-events: none; }
.plus::before, .plus::after { content: ''; position: absolute; background: var(--accent); }
.plus::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.plus::after  { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }

/* horizontal section rule with end crosses */
.rule { position: relative; height: 1px; background: var(--frame-line); margin: 0; }
.rule .plus { top: -5px; }
.rule .plus.l { left: -5px; }
.rule .plus.r { right: -5px; }

/* a block of vertical padding between rules */
.block { padding: 34px 0; position: relative; }

/* ---------- Topbar --------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  max-width: none; margin: 0; padding: 16px 48px;
  background: rgba(232, 238, 251, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.18em; color: var(--ink); text-decoration: none; background: none; }
.brand .ampersand { color: var(--ink-mute); font-style: italic; }
.nav { display: flex; gap: 32px; }
.nav a {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ink); text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat;
  background-size: 0% 1px; background-position: 0 100%; transition: background-size .3s var(--ease), color .2s var(--ease);
  padding-bottom: 3px;
}
.nav a:hover, .nav a.active { color: var(--accent); background-size: 100% 1px; }

/* ---------- Buttons -------------------------------------- */
.btn {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 12px 18px; border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 12px; background-size: 0 0;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--frame-line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Cards (thin border + corner ticks) ----------- */
.card {
  background: var(--surface); border: 1px solid var(--line-soft); padding: 20px;
  position: relative; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card.tick::before, .card.tick::after,
.card.tick > .t-bl, .card.tick > .t-br {
  content: ''; position: absolute; width: 9px; height: 9px; pointer-events: none;
}
.card.tick::before { top: -1px; left: -1px; border-top: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.card.tick::after  { top: -1px; right: -1px; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); }
.card.tick > .t-bl { bottom: -1px; left: -1px; border-bottom: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.card.tick > .t-br { bottom: -1px; right: -1px; border-bottom: 1px solid var(--accent); border-right: 1px solid var(--accent); }
.card.hover:hover { transform: translateY(-2px); box-shadow: var(--elev-floating); border-color: var(--accent-soft); }

/* Lift treatment for Problem / Goal / Outcome cards */
.card.lift {
  cursor: default; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card.lift .ico { transition: transform .35s var(--ease), color .35s var(--ease); }
.card.lift .ico svg { transition: stroke-width .35s var(--ease); }
.card.lift .body { transition: color .35s var(--ease); }
.card.lift:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(46,91,255,0.14); border-color: var(--accent); }
.card.lift:hover .ico { transform: translateY(-2px) scale(1.12) rotate(-4deg); color: var(--accent-deep); }
.card.lift:hover .ico svg { stroke-width: 1.8; }
.card.lift:hover .body { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .card.lift, .card.lift .ico { transition: none; }
  .card.lift:hover { transform: none; }
}

.ico {
  display: inline-grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto;
  color: var(--accent);
}
.ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm svg { width: 18px; height: 18px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { display: grid; grid-template-columns: 1fr 1.04fr; gap: var(--space-2xl); align-items: center; padding: 8px 0 38px; }
.hero-title {
  font-family: var(--font-display-alt); font-weight: 900;
  font-size: clamp(76px, 9vw, 132px); line-height: 0.86; letter-spacing: -0.04em;
  color: var(--ink); margin: 8px 0 0;
}
.hero-sub { font-family: var(--font-mono); font-size: 14px; line-height: 1.55; color: var(--ink); margin: 22px 0 0; max-width: 42ch; }
.hero-blurb { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.55; color: var(--ink-soft); margin: 16px 0 0; max-width: 44ch; border-left: 2px solid var(--accent); padding-left: 14px; }

.meta { display: grid; grid-template-columns: repeat(5, minmax(0, max-content)); gap: 18px 18px; margin: 26px 0 0; justify-content: start; }
.meta .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.meta .v { font-family: var(--font-mono); font-size: 11px; line-height: 1.4; color: var(--ink); margin-top: 6px; max-width: 13ch; }

.hero-ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.hero-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 360px; }

/* ============================================================
   DEVICE FRAMES
   ============================================================ */
.phone {
  --pw: 196px; width: var(--pw); aspect-ratio: 196 / 410;
  background: #0B1120; border-radius: 30px; padding: 7px; position: relative; flex: 0 0 auto;
  box-shadow: 0 16px 40px rgba(10,18,38,0.20), 0 2px 6px rgba(10,18,38,0.16);
}
.phone::after { content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 32%; height: 16px; background: #0B1120; border-radius: 0 0 10px 10px; z-index: 4; }
.phone-screen { width: 100%; height: 100%; background: #fff; border-radius: 24px; overflow: hidden; position: relative; font-family: var(--font-mono); color: var(--p-ink); }
.phone-status { height: 24px; display: flex; align-items: center; justify-content: space-between; padding: 8px 14px 0; font-size: 8px; font-weight: 700; }
.phone-status .b { width: 11px; height: 6px; border: 1px solid currentColor; border-radius: 2px; display: inline-block; }

.laptop { width: 460px; flex: 0 0 auto; }
.laptop-lid { background: #0B1120; border-radius: 11px 11px 0 0; padding: 7px; box-shadow: 0 18px 44px rgba(10,18,38,0.2); }
.laptop-screen { width: 100%; aspect-ratio: 16 / 10; background: #fff; border-radius: 4px; overflow: hidden; font-family: var(--font-mono); color: var(--p-ink); position: relative; }
.laptop-base { height: 12px; background: linear-gradient(#C7CCD6, #AEB4C0); border-radius: 0 0 11px 11px; position: relative; margin: 0 -9px; box-shadow: 0 8px 14px rgba(10,18,38,0.12); }
.laptop-base::after { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 5px; background: #9197A4; border-radius: 0 0 6px 6px; }

/* ---------- Real hi-fi screenshots inside frames --------- */
.phone-screen img.shot,
.laptop-screen img.shot {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: top center;
}

/* ---------- Product UI primitives ------------------------ */
.pui-logo { font-family: var(--font-display-alt); font-weight: 900; letter-spacing: -0.02em; color: var(--p-coral); }
.pui-coral { color: var(--p-coral); }
.pui-card { background: #fff; border: 1px solid var(--p-line); border-radius: 10px; }
.pui-cta { background: var(--p-coral); color: #fff; border: 0; border-radius: 8px; font-family: var(--font-mono); font-weight: 700; text-align: center; }
.pui-mute { color: var(--p-mute); }
.pui-h { font-family: var(--font-display-alt); font-weight: 800; letter-spacing: -0.01em; color: var(--p-ink); }
.pui-bars { display: flex; align-items: flex-end; gap: 3px; }
.pui-bars i { flex: 1; background: var(--p-blue-soft); border-radius: 2px 2px 0 0; display: block; }
.pui-bars i.on { background: var(--p-blue); }
.pui-week { display: flex; gap: 5px; }
.pui-week span { flex: 1; text-align: center; font-size: 7px; color: var(--p-mute); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pui-week span i { width: 15px; height: 15px; border-radius: 50%; background: var(--p-bg); display: block; }
.pui-week span.done i { background: var(--p-coral); }
.pui-week span.today i { background: var(--p-blue); }
.pui-tabbar { position: absolute; bottom: 0; left: 0; right: 0; height: 38px; background: #fff; border-top: 1px solid var(--p-line); display: flex; align-items: center; justify-content: space-around; padding-bottom: 3px; }
.pui-tabbar svg { width: 16px; height: 16px; stroke: var(--p-mute); fill: none; stroke-width: 1.7; }
.pui-tabbar .on svg { stroke: var(--p-coral); }
.pui-side { background: #fff; border-right: 1px solid var(--p-line); }
.pui-navitem { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 6px; color: var(--p-mute); font-size: 8.5px; }
.pui-navitem svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.pui-navitem.on { background: var(--p-coral-soft); color: var(--p-coral-deep); font-weight: 700; }
.pui-stat .n { font-family: var(--font-display-alt); font-weight: 800; color: var(--p-ink); letter-spacing: -0.01em; }
.pui-stat .l { font-size: 7px; color: var(--p-mute); text-transform: uppercase; letter-spacing: 0.06em; }
.pui-ring { border-radius: 50%; display: grid; place-items: center; }
.pui-map { position: relative; background: #E7EBF1; overflow: hidden; }
.pui-map .streets line { stroke: #D2D8E2; stroke-width: 1.2; }
.pui-map .route { fill: none; stroke: var(--p-blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pui-map .pin { fill: var(--p-coral); }

/* ============================================================
   01 — CHALLENGE
   ============================================================ */
.challenge { display: grid; grid-template-columns: 0.84fr 2.05fr; gap: var(--space-2xl); align-items: start; }
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tri .lab { display: flex; align-items: center; gap: 10px; }

/* ============================================================
   02 / 03 — USER + INSIGHTS
   ============================================================ */
.user-row { display: grid; grid-template-columns: 0.78fr 1.32fr; gap: var(--space-2xl); align-items: start; }
.persona-head { display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: start; }
.persona-photo { width: 132px; height: 158px; border: 1px solid var(--line-soft); background: var(--bg-elev); overflow: hidden; }
.persona-name { font-family: var(--font-display-alt); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); }
.persona-role { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); margin-top: 6px; line-height: 1.5; }
.persona-quote { margin: 14px 0 0; font-family: var(--font-mono); font-style: italic; font-size: 12px; line-height: 1.5; color: var(--accent); }
.persona-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.persona-cols ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.persona-cols li { font-family: var(--font-mono); font-size: 11px; line-height: 1.4; color: var(--ink); display: flex; gap: 7px; }
.persona-cols li::before { content: '•'; color: var(--accent); flex: 0 0 auto; }

.insights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.insight { display: flex; flex-direction: column; gap: 9px; padding: 16px; }
.insight .t { font-family: var(--font-display-alt); font-weight: 700; font-size: 13px; line-height: 1.18; letter-spacing: -0.01em; color: var(--ink); }
.insight p { font-family: var(--font-mono); font-size: 11px; line-height: 1.5; color: var(--ink-soft); margin: 0; }

.hmw { margin-top: 14px; background: rgba(46,91,255,0.06); border: 1px solid var(--accent-soft); padding: 16px 18px; display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: start; }
.hmw ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.hmw li { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.45; color: var(--ink); }
.hmw li::before { content: '• '; color: var(--accent); }

/* ============================================================
   04 / 05 — IA + FLOW
   ============================================================ */
.ia-row { display: grid; grid-template-columns: 1.18fr 0.82fr; gap: var(--space-2xl); align-items: start; }
.ia-nodes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 18px; }
.ia-node { display: flex; flex-direction: column; gap: 8px; }
.ia-node .nm { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; color: var(--ink); }
.ia-node .d { font-family: var(--font-mono); font-size: 11px; line-height: 1.45; color: var(--ink-mute); }

.flow-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 14px; }
.chip { padding: 8px 11px; background: var(--surface); border: 1px solid var(--accent-soft); font-family: var(--font-mono); font-size: 11px; color: var(--accent); white-space: nowrap; }
.flow-arr { color: var(--ink-mute); }

/* ============================================================
   06 — WIREFRAMES (text on top, big screens below)
   ============================================================ */
.wf-head { max-width: 46ch; }
.wf-head .body { max-width: 44ch; }

.wf-top {
  display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 52px;
  align-items: start;
}
.wf-notes {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px;
  padding-top: 4px;
}
.wf-cap { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 16px; }

.changed { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.changed li { display: flex; gap: 9px; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.45; color: var(--ink-soft); }
.changed li svg { width: 13px; height: 13px; stroke: var(--accent); fill: none; stroke-width: 2; flex: 0 0 auto; margin-top: 2px; }
.why p { font-family: var(--font-mono); font-size: 12px; line-height: 1.62; color: var(--ink-soft); margin-top: 12px; }

.wf-showcase {
  margin-top: 30px; padding: 30px 28px;
  background: rgba(46,91,255,0.035); border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: nowrap;
}
.wf-group { display: flex; flex-direction: column; align-items: center; }
/* lofi and hifi share one footprint */
.wf-showcase .phone { --pw: 140px !important; }
.wf-set { display: flex; gap: 14px; align-items: flex-end; }
.wf-bridge { display: flex; align-items: center; justify-content: center; padding-bottom: 8px; }
.wf-arr { color: var(--accent); font-size: 26px; }

.lofi { width: 140px; aspect-ratio: 196/410; background: #fff; border: 1px solid var(--line-soft); border-radius: 9px; padding: 10px; display: flex; flex-direction: column; gap: 7px; overflow: hidden; }
.lofi .blk { background: #DCE2EE; border-radius: 3px; }
.lofi .blk.d { background: #C6CEDF; }
.lofi .ln { height: 5px; background: #E3E7F0; border-radius: 2px; }
.lofi .ln.s { width: 55%; }
.lofi .circ { width: 30px; height: 30px; border-radius: 50%; background: #D2D8E6; }

/* movement: screens lift and lofi tilts on hover */
.wf-showcase .phone, .wf-showcase .lofi {
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  will-change: transform;
}
.wf-showcase .phone:hover { transform: translateY(-8px) rotate(-2deg); box-shadow: 0 16px 30px rgba(46,91,255,0.12); z-index: 5; }
.wf-showcase .lofi:hover { transform: translateY(-8px) rotate(-2deg); box-shadow: 0 16px 30px rgba(46,91,255,0.12); }
/* showcase phones stay static like the lofi — only the hover tilt moves them */
@keyframes wf-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ============================================================
   07 / 08 / 09 — full-width horizontal bands
   ============================================================ */
.band-head { max-width: 70ch; margin-bottom: var(--space-xl); }
.band-head.two {
  max-width: none; display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 40px; align-items: end;
}
.band-head.two .body { margin-top: 0; align-self: end; max-width: 46ch; }

/* 07 — final solution gallery */
.final-stage {
  display: flex; flex-direction: column; align-items: center; gap: 26px;
  padding: 8px 0 var(--space-xl);
}
.final-row {
  display: flex; align-items: flex-end; justify-content: center; gap: 20px;
  flex-wrap: wrap; width: 100%;
}
.final-stage .phone, .final-stage .laptop {
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  will-change: transform;
}
.final-stage .phone:hover { transform: translateY(-12px) scale(1.04); box-shadow: 0 26px 52px rgba(10,18,38,0.26); z-index: 5; }
.final-stage .laptop:hover { transform: translateY(-8px); box-shadow: 0 26px 52px rgba(10,18,38,0.22); }
@media (prefers-reduced-motion: no-preference) {
  .final-stage .phone.float { animation: wf-bob 5.5s var(--ease) infinite; }
  .final-stage .phone.float:nth-child(2) { animation-delay: .6s; }
  .final-stage .phone.float:nth-child(3) { animation-delay: 1.2s; }
  .final-stage .phone.float:nth-child(4) { animation-delay: 1.8s; }
  .final-stage .float:hover { animation-play-state: paused; }
}

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: var(--space-lg); }
.pillar { display: flex; flex-direction: column; gap: 9px; padding: 18px; }
.pillar .t { font-family: var(--font-display-alt); font-weight: 700; font-size: 14px; letter-spacing: -0.01em; color: var(--ink); }
.pillar p { font-family: var(--font-mono); font-size: 11px; line-height: 1.55; color: var(--ink-soft); margin: 0; }

/* 08 — key decisions & trade-offs: 4 across */
.demo-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.demo-card { display: flex; flex-direction: column; gap: 9px; padding: 18px; }
.demo-card .t { font-family: var(--font-display-alt); font-weight: 700; font-size: 14px; letter-spacing: -0.01em; color: var(--accent); }
.demo-card p { font-family: var(--font-mono); font-size: 11px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.demo-card .tradeoff {
  margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line-soft);
  font-family: var(--font-mono); font-size: 11px; line-height: 1.5; color: var(--ink-soft);
}
.demo-card .tradeoff .k { color: var(--ink); font-weight: 500; letter-spacing: 0.05em; }

/* 09 — reflection: 4 across */
.reflect-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.reflect-card { display: flex; flex-direction: column; gap: 9px; padding: 18px; }
.reflect-card .t { font-family: var(--font-display-alt); font-weight: 700; font-size: 14px; letter-spacing: -0.01em; color: var(--ink); }
.reflect-card p { font-family: var(--font-mono); font-size: 11px; line-height: 1.55; color: var(--ink-soft); margin: 0; }

/* ---------- Closing CTA ---------------------------------- */
.case-cta {
  display: grid; grid-template-columns: 1fr auto; gap: var(--space-xl);
  align-items: end; padding: 48px 0;
}
.case-cta .sec-title { font-size: 30px; }
.case-cta-actions { display: flex; gap: 12px; align-items: center; }

/* ---------- Footer --------------------------------------- */
.poster-foot { display: flex; justify-content: space-between; align-items: center; padding: 22px 0 40px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-mute); }
.poster-foot a { color: var(--ink-mute); text-decoration: none; background: none; }
.poster-foot a:hover { color: var(--accent); }
.poster-foot .sig { color: var(--ink-soft); }

/* ---------- Validation signals strip (09) ------------------ */
.hmw.signals { margin-top: 28px; grid-template-columns: 190px 1fr; }

/* ---------- Accessibility ----------------------------------- */
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Responsive ----------------------------------- */
@media (max-width: 1080px) {
  .poster { padding: 52px 28px 0; }
  .hero { grid-template-columns: 1fr; gap: var(--space-xl); }
  .hero-stage { min-height: 0; }
  .challenge, .user-row, .ia-row, .final-row { grid-template-columns: 1fr; gap: var(--space-xl); }
  .band-head.two { grid-template-columns: 1fr; gap: 16px; }
  .demo-cards, .reflect-grid, .pillars { grid-template-columns: 1fr 1fr; }
  .wf-top { grid-template-columns: 0.95fr 1.05fr; gap: 36px; }
  .wf-notes { grid-template-columns: 1.2fr 1fr; gap: 22px; }
  .insights, .pillars { grid-template-columns: 1fr 1fr; }
  .meta { grid-template-columns: repeat(3, auto); }
}
@media (max-width: 1000px) {
  /* below the width where 3+3 fits, let the row scroll horizontally instead of squishing */
  .wf-showcase { justify-content: flex-start; overflow-x: auto; padding: 26px 22px; }
}
/* thin, on-brand scrollbar for the wireframe strip */
.wf-showcase { scrollbar-width: thin; scrollbar-color: var(--accent-soft) transparent; }
.wf-showcase::-webkit-scrollbar { height: 6px; }
.wf-showcase::-webkit-scrollbar-thumb { background: var(--accent-soft); border-radius: 3px; }
.wf-showcase::-webkit-scrollbar-track { background: transparent; }

/* ---------- Accessibility ---------------------------------- */
.skip-link {
  position: fixed; left: 24px; top: -56px; z-index: 200;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; text-decoration: none;
  transition: top 200ms var(--ease);
}
.skip-link:focus-visible { top: 12px; }

/* keep anchored sections clear of the sticky topbar */
.block[id], section[id] { scroll-margin-top: 76px; }
@media (max-width: 680px) {
  /* keep navigation on mobile: wrap to a second row instead of hiding it */
  .topbar { flex-wrap: wrap; row-gap: 4px; }
  .topbar-cta { display: none; }
  .nav { gap: 18px; width: 100%; }
  .nav a { font-size: 12px; }
  .tri, .persona-cols, .ia-nodes, .insights, .pillars, .demo-cards { grid-template-columns: 1fr; }
  .wf-top, .wf-notes { grid-template-columns: 1fr; gap: 22px; }
  .persona-head { grid-template-columns: 1fr; }
  .hero-title { font-size: 80px; }
  .meta { grid-template-columns: 1fr 1fr; }
}

/* ---- mobile: hero device clusters ------------------------- *
   The hero mockups are absolutely positioned / overlapped for
   desktop composition. Below ~860px that pushed them off-canvas
   (html has overflow-x: clip, so they were silently cut off).
   Put them back in flow and let them wrap.                     */
@media (max-width: 860px) {
  .hero-stage { flex-wrap: wrap; justify-content: flex-start; gap: 16px !important; }
  .hero-stage .laptop {
    position: static !important; inset: auto !important;
    width: 100% !important; max-width: 430px;
  }
  .hero-stage .phone {
    position: static !important; inset: auto !important;
    margin: 0 !important; transform: none !important;
    --pw: 148px !important;
  }
  .hero-stage .hover-hint { display: none; }
  /* closing CTA: actions were clipped outside the viewport */
  .case-cta { grid-template-columns: 1fr; align-items: start; }
  .case-cta-actions { flex-wrap: wrap; }
}
/* hover-only affordance: never advertise it on touch devices */
@media (hover: none) {
  .hover-hint { display: none !important; }
}

/* ============================================================
   TABLET & PHONE — readability pass
   Measured at 390px and 834px: prose was rendering at 11–12.5px,
   the final galleries stacked one mock per row (pages over
   15,000px tall) and the before/after strip forced a horizontal
   drag. Type steps up on tablets, layout changes on phones.
   ============================================================ */
@media (max-width: 1024px) {
  .body { font-size: 14.5px; line-height: 1.68; }
  .hero-sub { font-size: 16px; }
  .hero-blurb { font-size: 14px; }
  .meta .v { font-size: 12.5px; }
  .persona-cols ul li, .hmw li, .changed li { font-size: 14px; line-height: 1.55; }
  .persona-quote { font-size: 15px; }
  .persona-role { font-size: 12.5px; }
  .insight p, .pillar p, .reflect-card p, .demo-card p, .why p { font-size: 13.5px; line-height: 1.6; }
  .demo-card .tradeoff { font-size: 12.5px; }
  .ia-node .d { font-size: 12.5px; }
  .chip { font-size: 12px; }
  .btn { font-size: 12.5px; padding: 13px 18px; }
  .poster-foot { font-size: 12px; }
}
@media (max-width: 1024px) {
  /* touch targets: tablets are touch devices too */
  .nav a { padding-block: 11px; }
  .brand { display: inline-block; padding-block: 11px; }
  .poster-foot a { padding-block: 10px; }
  .skip-link { padding: 13px 18px; }
}
@media (max-width: 680px) {
  .sec-title { font-size: 23px; }
  .sec-title.lg { font-size: 25px; }
  .hero-title { font-size: 64px; }
  .btn { width: 100%; justify-content: center; text-align: center; }
  .hero-ctas, .case-cta-actions { width: 100%; }
  .poster-foot { flex-direction: column; align-items: flex-start; gap: 2px; }
  .poster-foot a { padding-block: 9px; }
  /* final galleries: two phones per row instead of one */
  .final-row { gap: 12px; }
  .final-row .phone { --pw: 158px !important; }
  .final-row .laptop { width: 100% !important; }
  /* before / after: stack it instead of forcing a horizontal drag */
  .wf-showcase { flex-direction: column; align-items: stretch; overflow-x: visible; padding: 20px 0; }
  .wf-group { width: 100%; }
  .wf-set { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .wf-showcase .phone { --pw: 152px !important; }
  .wf-showcase .laptop { width: 100% !important; }
  .lofi { width: 152px; }
  .wf-bridge { padding: 4px 0; }
  .wf-arr { display: inline-block; transform: rotate(90deg); }
  .hmw, .hmw.signals { grid-template-columns: 1fr; gap: 10px; }
}

/* Touch devices: the "hover a screen" hints can never be acted on */
@media (hover: none){.hover-hint{display:none}}
