/* Case study system (reusable across case studies).
   Per project, set only --accent and --accent-ink on :root. Everything else stays the same.
   Type, after shruti.framer.ai: Space Grotesk for the title, Inter Tight for headings and text, Space Mono for small labels. White page. */
:root {
  --accent: #E23744;          /* Zomato red for this case study */
  --accent-ink: #B4202F;
  --paper: #FFFFFF;
  --card: #FFFFFF;
  --ink: #161513;
  --muted: #5E5B54;
  --faint: #8E8A80;
  --line: #E7E7E4;
  --soft: #F5F5F4;
  --note: #FFF2BF;            /* problem / finding sticky */
  --note-ink: #5B4500;
  --good: #E2F3E7;            /* decision / change sticky */
  --good-ink: #12502B;
  --info: #E7EEFC;            /* data / source sticky */
  --info-ink: #1E3A78;
  --serif: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Inter Tight", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --r: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.bar .who { font-size: 14px; font-weight: 600; letter-spacing: .02em; text-decoration: none; }
.bar nav { display: flex; gap: 20px; font-size: 14px; color: var(--muted); }
.bar nav a { text-decoration: none; }
.bar nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 15px var(--sans); text-decoration: none; white-space: nowrap; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn:hover { opacity: .9; }

/* hero */
.hero { padding: 72px 0 40px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
h1 { font: 500 clamp(52px, 8.5vw, 112px)/.95 var(--display); letter-spacing: -.06em; margin: 14px 0 18px; }
.lede { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.45; color: var(--muted); max-width: 720px; margin: 0; }
.spec { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 36px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec div { padding: 14px 16px 14px 0; }
.spec dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.spec dd { margin: 4px 0 0; font-weight: 600; font-size: 15px; }
.disclaim { font-size: 13px; color: var(--faint); margin-top: 14px; }

/* sections */
section.s { padding: 88px 0 24px; }
.s-head { max-width: 760px; margin-bottom: 36px; }
.s-num { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.s-num b { color: var(--accent-ink); font-weight: 700; }
h2 { font: 500 clamp(30px, 4vw, 44px)/1.1 var(--serif); margin: 12px 0 10px; letter-spacing: -.02em; }
.sub { font-size: 19px; color: var(--muted); margin: 0; line-height: 1.5; }
h3 { font: 600 19px/1.3 var(--sans); margin: 0 0 6px; }
p.small { font-size: 15px; color: var(--muted); }

/* tags that say where a claim comes from */
.src { display: inline-block; font: 600 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px; border-radius: 6px; background: var(--soft); color: var(--muted); margin-top: 8px; }
.src.saw { background: #DDF1E4; color: #155A31; }
.src.worked { background: #E8EEFB; color: #24448A; }
.src.guess { background: #FBEAD6; color: #8A4B08; }

/* cards and grids */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.card.tint { background: var(--soft); border-color: transparent; }
.stat b { display: block; font: 700 48px/1 var(--serif); letter-spacing: -.03em; }
.stat span { font-size: 15px; color: var(--muted); }
.tldr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tldr div { background: var(--card); padding: 20px; }
.tldr h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.tldr p { margin: 0; font-size: 16px; line-height: 1.45; }

/* sticky notes (research quotes, annotations) */
.sticky { position: relative; border-radius: 4px 14px 14px 14px; padding: 16px 16px 14px; font-size: 15px; line-height: 1.45; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 8px 18px -12px rgba(0,0,0,.25); }
.sticky.y { background: var(--note); color: var(--note-ink); }
.sticky.g { background: var(--good); color: var(--good-ink); }
.sticky.b { background: var(--info); color: var(--info-ink); }
.sticky .k { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .75; margin-bottom: 6px; }
.sticky q { quotes: "“" "”"; font-style: italic; }

/* phones */
.phone { position: relative; width: 100%; max-width: 300px; border-radius: 34px; padding: 9px; background: #121212; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.phone img { border-radius: 26px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: #fff; }
.phone.crop img { aspect-ratio: auto; }
.phones { display: flex; gap: 22px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.phones .phone { flex: 0 1 260px; }
.cap { font-size: 14px; color: var(--muted); text-align: center; margin-top: 12px; }
.shot { border-radius: 14px; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.mark { position: relative; }
.mark .x, .mark .ok { position: absolute; top: -10px; right: -10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; z-index: 2; }
.mark .x { background: #B4202F; }
.mark .ok { background: #12763B; }

/* annotated figure: notes left and right, phone in the middle, dashed lines drawn by annotate.js */
.annot { position: relative; display: grid; grid-template-columns: 1fr minmax(240px, 300px) 1fr; gap: 28px; align-items: start; }
.annot .notes { position: relative; display: flex; flex-direction: column; gap: 18px; padding-top: 30px; }
.annot .notes.l { text-align: left; }
.annot .note { position: relative; z-index: 2; }
.annot .stage { position: relative; }
.annot svg.lines { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: visible; }
.pin { position: absolute; left: var(--x); top: var(--y); width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 11px/20px var(--sans); text-align: center; box-shadow: 0 0 0 4px rgba(255,255,255,.85); z-index: 3; }
.note .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; margin-right: 6px; vertical-align: 1px; }

/* before | callouts | after (BigBasket pattern) */
.ba { display: grid; grid-template-columns: minmax(200px, 270px) 1fr minmax(200px, 270px); gap: 26px; align-items: start; position: relative; }
.ba .lab { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); text-align: center; margin-bottom: 10px; }
.ba .mid { display: flex; flex-direction: column; gap: 14px; padding-top: 40px; position: relative; z-index: 2; }
.ba .call { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-size: 14.5px; line-height: 1.4; text-align: center; box-shadow: 0 6px 16px -12px rgba(0,0,0,.3); }
.ba .call b { color: var(--ink); }
.ba svg.lines { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: visible; }
.ba .why { margin-top: 10px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* journey strip */
.strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: st; }
.strip > div { position: relative; padding: 18px 16px 0 0; }
.strip > div::before { counter-increment: st; content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 12px; position: relative; z-index: 1; }
.strip > div::after { content: ''; position: absolute; top: 35px; left: 34px; right: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.strip > div:last-child::after { display: none; }
.strip .emo { font-size: 26px; }
.strip p { margin: 4px 0 0; font-size: 15.5px; line-height: 1.45; }
.strip .bad::before { background: var(--accent); }

/* decision cards */
.dec { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: start; }
.dec img { border-radius: 12px; border: 1px solid var(--line); }
.dec .chose { font: 600 21px/1.25 var(--serif); margin: 0; letter-spacing: -.01em; }
.dec .over { color: var(--faint); text-decoration: line-through; text-decoration-thickness: 1px; }
.dec .because { margin: 8px 0 0; font-size: 15.5px; color: var(--muted); }

/* states grid */
.states { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.states figure { margin: 0; }
.states .phone { max-width: none; padding: 6px; border-radius: 26px; }
.states .phone img { border-radius: 20px; }
.states figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.states figcaption b { display: block; color: var(--ink); font-size: 15px; }

/* split (decided / AI) */
.split { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.split > div { padding: 22px; background: var(--card); }
.split > div + div { border-left: 1px solid var(--line); background: var(--soft); }
.split ul { margin: 8px 0 0; padding-left: 18px; }
.split li { margin: 4px 0; }

/* try it */
.try { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: center; }
.device { width: 380px; height: 790px; border-radius: 48px; padding: 12px; background: #111; box-shadow: 0 40px 80px -40px rgba(0,0,0,.5); }
.device iframe { width: 100%; height: 100%; border: 0; border-radius: 38px; background: #fff; }

footer { padding: 72px 0 56px; border-top: 1px solid var(--line); margin-top: 88px; font-size: 14px; color: var(--muted); }

/* mobile: notes stack under the phone, numbered pins stay on the screen */
@media (max-width: 900px) {
  .annot { grid-template-columns: 1fr; }
  .annot .stage { order: -1; justify-self: center; width: min(300px, 82vw); }
  .annot .notes { padding-top: 0; }
  .annot svg.lines { display: none; }
  .ba { grid-template-columns: 1fr 1fr; }
  .ba .mid { grid-column: 1 / -1; order: 3; padding-top: 0; }
  .ba svg.lines { display: none; }
  .g3, .g4, .tldr, .states { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: 1fr; }
  .strip > div::after { display: none; }
  .try { grid-template-columns: 1fr; }
  .device { width: min(380px, 100%); height: 760px; margin: 0 auto; }
  .bar nav { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .g2, .g3, .g4, .tldr, .spec { grid-template-columns: 1fr 1fr; }
  .states { grid-template-columns: 1fr 1fr; gap: 14px; }
  .dec { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split > div + div { border-left: 0; border-top: 1px solid var(--line); }
  section.s { padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* problem / solution / goal row under the title */
.psg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; max-width: 920px; }
.psg div { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; }
.psg span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.psg p { margin: 4px 0 0; font-size: 16px; line-height: 1.45; }
@media (max-width: 900px) { .ba { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .annot { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 560px) { .psg { grid-template-columns: 1fr; } .grid, .states, .tldr, .spec { min-width: 0; } .grid > *, .states > * { min-width: 0; } }

/* small labels in Space Mono, like the reference portfolio */
.eyebrow, .s-num, .spec dt, .psg span, .sticky .k, .ba .lab, .tldr h4, .src { font-family: var(--mono); font-weight: 400; letter-spacing: .02em; }
.s-num b { font-weight: 700; }
.stat b { font-family: var(--display); font-weight: 500; letter-spacing: -.05em; }


/* tighter rhythm: space separates sections, it should not read as empty */
.hero { padding: 44px 0 8px; }
section.s { padding: 56px 0 8px; }
.s-head { margin-bottom: 24px; }
.spec { margin-top: 24px; }
.disclaim { margin-top: 10px; }
footer { margin-top: 56px; padding: 32px 0; }
.how-h { margin: 32px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); text-align: center; }
figcaption.how { max-width: 260px; margin: 12px auto 0; text-align: left; font-size: 14.5px; line-height: 1.4; color: var(--muted); }
figcaption.how span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; margin-right: 8px; vertical-align: 1px; }
figcaption.how b { color: var(--ink); font-size: 16px; display: inline; }
figcaption.how b::after { content: ""; display: block; }
@media (max-width: 560px) { section.s { padding-top: 44px; } }

/* reference screens shown whole, at phone size, with a red box on the part that matters */
.bench { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: start; }
.bench .phone { max-width: 250px; margin: 0 auto; }
.scr { position: relative; }
.scr img { aspect-ratio: auto !important; }
.rbox { position: absolute; border: 2.5px solid var(--accent); border-radius: 8px; box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(226,55,68,.18); }
@media (max-width: 900px) { .bench { grid-template-columns: 1fr 1fr; } }

/* decision cards: a whole screen with a red box, and Chose / Over / Because */
.dec { grid-template-columns: 150px 1fr; gap: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.dec .phone.mini { max-width: 150px; padding: 5px; border-radius: 20px; }
.dec .phone.mini img { border-radius: 15px; border: 0; }
.dec .lbl { margin: 10px 0 2px; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.dec .lbl:first-child { margin-top: 2px; }
.dec .chose { font: 600 20px/1.25 var(--serif); color: var(--ink); margin: 0; }
.dec .over { font-size: 16px; color: var(--muted); margin: 0; text-decoration: none; }
.dec .because { margin: 0; font-size: 15px; color: var(--muted); }
@media (max-width: 560px) { .dec { grid-template-columns: 110px 1fr; } .dec .phone.mini { max-width: 110px; } }
.dec > div { min-width: 0; }
@media (max-width: 1000px) { .dec-grid { grid-template-columns: 1fr; } }

/* notes and callouts placed level with their targets (annotate.js) */
.ba .mid.placed, .annot .notes.placed { position: relative; display: block; padding-top: 0; }
.ba .mid.placed .call { position: absolute; left: 50%; transform: translateX(-50%); width: max-content; max-width: 92%; }
.annot .notes.placed .note { position: absolute; left: 0; right: 0; margin-top: 0 !important; }

/* Fit a section's heading and its whole screen in one laptop view: phone width follows the window height */
:root { --ph: min(300px, calc((100vh - 230px) * .44)); }
h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 8px 0 6px; }
.sub { font-size: 17.5px; }
.s-head { margin-bottom: 18px; }
.annot { grid-template-columns: 1fr var(--ph) 1fr; }
.annot .stage { width: var(--ph); }
.annot .stage .phone, .ba .phone, .phones .phone, .bench .phone { max-width: var(--ph); }
.ba { grid-template-columns: var(--ph) 1fr var(--ph); }
.ba .lab { margin-bottom: 6px; }
.bench .phone { max-width: min(250px, var(--ph)); }
@media (max-width: 900px) { .annot { grid-template-columns: 1fr; } .annot .stage { width: min(300px, 82vw); } .ba { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }

/* thinner phone bezel everywhere */
.phone { padding: 4px; border-radius: 28px; }
.phone img { border-radius: 24px; }
.states .phone, .dec .phone.mini { padding: 3px; border-radius: 22px; }
.states .phone img, .dec .phone.mini img { border-radius: 19px; }
.device { padding: 6px; border-radius: 44px; }
.device iframe { border-radius: 38px; }

/* bezel scales with the screen: thin on small screens, a little thicker on large ones (1.5% of the phone width, at least 2px) */
.phone, .states .phone, .dec .phone.mini { container-type: inline-size; padding: 0; background: none; border-radius: 0; box-shadow: none; }
.phone img, .states .phone img, .dec .phone.mini img { box-sizing: border-box; border: max(2px, 1.5cqw) solid #121212; border-radius: 9cqw; box-shadow: 0 24px 48px -28px rgba(0,0,0,.45); }
/* size containment needs explicit widths */
.phone { width: 100%; }
.phones > figure { flex: 0 1 var(--ph); width: var(--ph); min-width: 0; }
.phones > figure.mark { flex-basis: min(200px, var(--ph)); width: min(200px, var(--ph)); }

/* live prototype: keep its real 390x844 layout and scale the whole phone to fit the window height (scale set in index.html) */
.try { grid-template-columns: 1fr auto; }
.device { width: calc(390px * var(--s, 1) + 12px); height: calc(844px * var(--s, 1) + 12px); padding: 6px; overflow: hidden; }
.device iframe { width: 390px; height: 844px; transform: scale(var(--s, 1)); transform-origin: 0 0; border-radius: calc(38px / var(--s, 1)); }
@media (max-width: 900px) { .device { margin: 0 auto; } }

/* research board: every cluster of sticky notes, read through a hover magnifier, opened full size on click */
.board-fig { margin: 36px 0 0; }
.board { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 10px; background: #F3F1EC; border: 1px solid var(--line); border-radius: 16px; cursor: zoom-in; }
.bcol { display: flex; flex-direction: column; gap: 10px; }
.bcol img { width: 100%; border-radius: 8px; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.lens { position: absolute; width: 400px; height: 250px; border-radius: 14px; border: 3px solid #fff; box-shadow: 0 18px 40px -12px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.08); background-repeat: no-repeat; background-color: #fff; pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 2; }
.board-fig .cap { margin-top: 10px; }
.hint-touch { display: none; }
@media (hover: none) { .lens { display: none; } .hint-hover { display: none; } .hint-touch { display: inline; } }
@media (max-width: 700px) { .board { grid-template-columns: 1fr; } }
.jtbd { font: 600 clamp(22px, 2.6vw, 30px)/1.3 var(--serif); letter-spacing: -.015em; margin: 32px auto 0; max-width: 900px; text-align: center; }
dialog.zoom { padding: 0; border: 0; border-radius: 14px; max-width: min(96vw, 1260px); max-height: 92vh; overflow: auto; background: #fff; }
dialog.zoom::backdrop { background: rgba(10,10,10,.72); }
dialog.zoom img { display: block; width: auto; max-width: none; }
dialog.zoom .zx { position: sticky; top: 10px; float: right; margin: 10px 10px -46px 0; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #121212; color: #fff; font-size: 16px; cursor: pointer; z-index: 1; }

/* research board, drawn from the FigJam data (board.js): overview + hover magnifier + full-screen zoom */
.fj-row { display: grid; grid-template-columns: minmax(0, 560px) 1fr; gap: 48px; align-items: center; margin-top: 36px; }
.fj-fig { margin: 0; }
.fj { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 40px -28px rgba(0,0,0,.35); cursor: zoom-in; outline-offset: 3px; }
.fj > .fj-c { transform-origin: 0 0; }
.fj-c { position: absolute; left: 0; top: 0; transform-origin: 0 0; font-family: "Inter", "Inter Tight", system-ui, sans-serif; color: #1E1E1E; }
.fj-c > div { position: absolute; }
.fj-num { font-size: 64px; line-height: 96px; color: #3D9BF2; }
.fj-h { font-size: 40px; line-height: 60px; font-weight: 500; white-space: nowrap; }
.fj-p { font-size: 24px; line-height: 36px; color: #333; }
.fj-n { box-sizing: border-box; padding: 18px 18px 22px; font-size: 15px; line-height: 1.38; color: #1E1E1E; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 14px -8px rgba(0,0,0,.25); }
.fj-lens { position: absolute; left: 0; top: 0; width: 360px; height: 230px; overflow: hidden; background: #fff; border-radius: 14px; border: 3px solid #fff; box-shadow: 0 22px 44px -14px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.1); pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 2; }
.fj-lens .fj-c { transform-origin: 0 0; }
.fj-fig .cap { margin-top: 10px; }
.fj-side .lbl { margin: 28px 0 10px; font: 400 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.fj-side .jtbd { text-align: left; margin: 0; max-width: none; }
.fj-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fj-stats div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; line-height: 1.3; color: var(--muted); }
.fj-stats b { display: block; font: 500 34px/1.05 var(--display); letter-spacing: -.04em; color: var(--ink); margin-bottom: 4px; }
.fj-dlg { width: 96vw; height: 92vh; max-width: none; max-height: none; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #F5F5F3; }
.fj-dlg::backdrop { background: rgba(10,10,10,.72); }
.fj-pan { position: absolute; inset: 0; overflow: auto; cursor: grab; }
.fj-pan.grab { cursor: grabbing; user-select: none; }
.fj-size { position: relative; margin: 0 auto; background: #fff; }
.fj-tools { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 6px; background: #121212; border-radius: 999px; color: #fff; font: 500 13px/1 var(--sans); }
.fj-tools button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: #2A2A2A; color: #fff; font-size: 17px; cursor: pointer; }
.fj-tools .fj-x { margin-left: 6px; background: var(--accent); font-size: 14px; }
.fj-pct { min-width: 42px; text-align: center; }
@media (max-width: 900px) { .fj-row { grid-template-columns: 1fr; gap: 28px; } }
@media (hover: none) { .fj-lens { display: none; } }
@media (max-width: 900px) { .try { grid-template-columns: 1fr; } }

/* hero: which AARRR stage this solves for */
.aarrr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; font-size: 13px; color: var(--faint); }
.aarrr .k { font: 400 12px/1 var(--mono); letter-spacing: .08em; margin-right: 6px; }
.aarrr span:not(.k) { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; }
.aarrr .on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.aarrr .on em { font-style: normal; font-weight: 400; opacity: .85; margin-left: 4px; }

/* Back (in the bar) and Top, the same as on the portfolio's own project pages */
.bar .back { display: inline-flex; align-items: center; gap: .45em; padding: 8px 16px; border: 1.5px solid currentColor; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s; }
.bar .back:hover { background: #1c1c1e; color: #fff; border-color: #1c1c1e; }
.to-top { position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 60; display: inline-flex; align-items: center; gap: .4em; padding: 11px 17px; border: 1.5px solid #1c1c1e; border-radius: 999px; background: #fff; color: #1c1c1e; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; box-shadow: 0 10px 24px rgba(0,0,0,.12); opacity: 0; translate: 0 12px; pointer-events: none; transition: opacity .25s, translate .25s, background-color .2s, color .2s; }
.to-top.on { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top:hover { background: #1c1c1e; color: #fff; }
