/* Project detail pages. They use the story page's design system (index.html): the same tokens, Manrope throughout,
   the same header (transparent, inverting over any background), pill buttons with pixel arrows, and the same dark
   closing screen as the footer. Always light, as on the story page.

   Layout rules (one system for every project page):
   - Spacing sits on an 8px grid. Every margin, padding and gap is a multiple of 8 (4 only inside small chips).
   - Corners: 8px for pictures inside things, 16px for cards and panels, 24px for the big hero and feature panels,
     and full pills for buttons and tags. An inner corner is always smaller than the one around it.
   - Text breathes: body copy is 18px on a 28px line, kept to about 60 characters, and each section has 160px above it. */
:root {
  --fg: #141414; --bg: #F5F5F2; --muted: #6E6D69; --rule: #DDDBD5; --panel: #FFFFFF; --soft: #ECEBE6;
  --ph: #E4E3DE; --ph-line: #C6C4BD; --note: #2E5BFF; --fill: #FFE9A8; --fill-fg: #4A3A00;
  --text: #3A3936; /* body copy: a touch softer than headings */
  --dark-bg: #111111; --dark-fg: #EDEDEA;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head: var(--sans); --body: var(--sans); --card: var(--panel);
  /* 8px grid */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s7: 56px; --s8: 64px; --s10: 80px; --s12: 96px; --s16: 128px; --s20: 160px;
  /* corners */
  --r-s: 8px; --r-m: 16px; --r-l: 24px; --r-pill: 999px;
  --section: var(--s20);
  --measure: 60ch;
}
/* Always light: the site does not follow the system's dark mode. Dark screens are designed in, not switched. */
:root { color-scheme: light; }
@media (max-width: 1024px) { :root { --section: var(--s16); } }
@media (max-width: 600px) { :root { --section: var(--s12); } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--note); outline-offset: 4px; }
mark.fill { background: var(--fill); color: var(--fill-fg); padding: 0 2px; }
svg.px { display: inline-block; vertical-align: middle; image-rendering: pixelated; }
.btn svg.px { margin-left: var(--s1); opacity: .9; }
.back svg.px { margin-right: var(--s1); }

/* Header: identical to the story page. White text with a difference blend reads black on paper and white on dark. */
.top { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  padding-block: var(--s2); padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px));
  background: none; mix-blend-mode: difference; }
.brand { font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: #fff; white-space: nowrap; }
.nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav a { font-size: 13px; font-weight: 500; line-height: 16px; text-decoration: none; color: #fff; padding: var(--s1) var(--s2); border: 1px solid transparent; border-radius: var(--r-pill); transition: border-color .15s; }
.nav a:hover { border-color: #fff; }
@media (max-width: 600px) {
  .top { gap: var(--s1); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .brand { font-size: 12px; } .nav { flex-wrap: nowrap; gap: 0; } .nav a { padding: var(--s1); font-size: 12px; }
}

main { width: min(1184px, calc(100% - 48px)); margin: 0 auto; padding: var(--s16) 0 var(--s20); }
@media (max-width: 600px) { main { width: calc(100% - 32px); padding: var(--s12) 0 var(--s16); } }
.back { display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; line-height: 16px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--fg); }

/* Hero */
.tags { display: flex; flex-wrap: wrap; gap: var(--s1); margin: var(--s4) 0 0; padding: 0; list-style: none; }
.tags li { padding: 7px 12px; border-radius: var(--r-pill); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--rule); color: var(--muted); }
.tags li.b, .tags li.a { color: var(--fg); border-color: var(--fg); }
h1 { margin: var(--s3) 0 0; font-size: clamp(48px, 7vw, 96px); line-height: 1; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
h1 .w { display: inline-block; }
.lede { margin: var(--s3) 0 0; max-width: 880px; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.43; font-weight: 500; letter-spacing: -.01em; color: var(--text); text-wrap: pretty; }
.stage { position: relative; margin-top: var(--s8); height: clamp(360px, 50vw, 640px); border-radius: var(--r-l); background: var(--soft); overflow: hidden; isolation: isolate; }
@media (max-width: 600px) { .stage { margin-top: var(--s6); border-radius: var(--r-m); } }

/* Footer: the story page's closing screen, on every page. */
.site-end { background: var(--dark-bg); color: var(--dark-fg); --muted: #8D8B86; --rule: #2A2927;
  padding: var(--s16) max(24px, env(safe-area-inset-left, 0px)) var(--s10); }
.site-end .wrap { width: 100%; max-width: 1184px; margin-inline: auto; display: grid; gap: var(--s5); }
.site-end .big { margin: 0; font-size: clamp(40px, 6.4vw, 88px); line-height: 1.05; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
.site-end .links { display: flex; flex-wrap: wrap; gap: var(--s1); }
.site-end .btn { border-color: currentColor; }
.site-end .btn:hover { background: var(--dark-fg); color: var(--dark-bg); }
.site-end .fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); padding-top: var(--s4); border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.site-end .fine a { text-decoration: none; }
.site-end .fine a:hover { color: var(--dark-fg); }

/* Sections: label, heading, then the content. Every section starts the same way. */
section { padding-top: var(--section); }
h2 { margin: 0 0 var(--s3); max-width: 24ch; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.18; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
.kicker { display: flex; align-items: center; gap: var(--s1); margin: 0 0 var(--s2); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
section > p:not(.kicker), .two p:not(.kicker) { max-width: var(--measure); margin: 0 0 var(--s2); font-size: 18px; line-height: 28px; color: var(--text); }
section > p:last-child { margin-bottom: 0; }
.intro { margin: calc(var(--s1) * -1) 0 var(--s5) !important; color: var(--muted) !important; }
.two { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--s8); align-items: start; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; gap: var(--s5); } }
.facts { display: grid; gap: var(--s3); padding: var(--s4); border-radius: var(--r-m); background: var(--soft); }
.facts > div + div { padding-top: var(--s3); border-top: 1px solid var(--rule); }
.facts h3 { margin: 0 0 var(--s1); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts p, .two .facts p { margin: 0; font-size: 16px; line-height: 24px; color: var(--fg); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s1); }
.chips span { padding: 4px 12px; border-radius: var(--r-pill); background: var(--panel); border: 1px solid var(--rule); font-size: 13px; line-height: 22px; }
blockquote { margin: 0; padding: var(--s7) var(--s8); border-radius: var(--r-l); background: var(--soft); }
blockquote p { margin: 0; max-width: 32ch; font-family: var(--head); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.375; font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
blockquote cite { display: block; margin-top: var(--s3); font-style: normal; font-size: 14px; line-height: 20px; color: var(--muted); }
@media (max-width: 600px) { blockquote { padding: var(--s4) var(--s3); border-radius: var(--r-m); } }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(256px, 1fr)); gap: var(--s2); }
.card { display: flex; flex-direction: column; padding: var(--s4); border-radius: var(--r-m); border: 1px solid var(--rule); background: var(--card); }
.card .n { font-family: var(--head); font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.card h3 { margin: var(--s3) 0 var(--s1); font-family: var(--head); font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 26px; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card p + .btn { margin-top: var(--s3); }
@media (max-width: 600px) { .card { padding: var(--s3); } }
.btn { display: inline-flex; align-items: center; padding: 11px var(--s3); border-radius: var(--r-pill); border: 1px solid currentColor; background: none; color: inherit; white-space: nowrap; transition: background-color .15s, color .15s;
  font: inherit; font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--fg); color: var(--bg); }

/* At a glance: problem, what I did, result. A rule sits on top of each; GSAP draws it in (--line). */
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); padding-top: var(--s12); }
.glance > div { position: relative; padding-top: var(--s3); }
.glance > div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--fg); transform: scaleX(var(--line, 1)); transform-origin: 0 50%; }
.glance p:not(.kicker) { margin: 0; font-size: 18px; line-height: 28px; font-weight: 500; color: var(--fg); }
@media (max-width: 800px) { .glance { grid-template-columns: 1fr; gap: var(--s4); padding-top: var(--s8); } }
/* How I worked: numbered steps on a line that fills as you scroll. */
.path { --fill: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); margin: var(--s5) 0 0; padding: 0; list-style: none; counter-reset: st; }
.path::before, .path::after { content: ""; position: absolute; left: 16px; right: calc((100% - 96px) / 4 - 16px); top: 15px; height: 2px; background: var(--rule); }
.path::after { background: var(--fg); transform: scaleX(var(--fill)); transform-origin: 0 50%; }
.path li { position: relative; z-index: 1; counter-increment: st; display: grid; gap: var(--s1); align-content: start; }
.path li::before { content: counter(st); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: var(--s2); border-radius: 50%;
  border: 2px solid var(--rule); background: var(--bg); font-size: 13px; font-weight: 700; color: var(--muted); transition: background-color .3s, color .3s, border-color .3s; }
.path li.on::before { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.path b { font-size: 18px; line-height: 24px; font-weight: 600; }
.path span { color: var(--muted); font-size: 15px; line-height: 24px; max-width: 28ch; }
@media (max-width: 800px) {
  .path { grid-template-columns: 1fr; gap: var(--s4); padding-left: var(--s7); }
  .path::before, .path::after { left: 15px; right: auto; top: 16px; bottom: 16px; width: 2px; height: auto; }
  .path::after { transform: scaleY(var(--fill)); transform-origin: 50% 0; }
  .path li::before { position: absolute; left: calc(var(--s7) * -1); top: -4px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .path { --fill: 1; } .path li::before { background: var(--fg); border-color: var(--fg); color: var(--bg); } }
/* Flow: five steps before, five after. */
.flow { display: grid; gap: var(--s6); }
.flow > div { min-width: 0; } /* lets the step rows scroll sideways on phones instead of widening the page */
.flow h3 { margin: 0 0 var(--s2); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s2); }
.steps figure { margin: 0; }
.steps img { width: 100%; aspect-ratio: 402 / 873; object-fit: cover; object-position: top; border-radius: var(--r-s); background: var(--soft); box-shadow: 0 0 0 1px var(--rule); }
.steps figcaption { margin-top: var(--s2); font-size: 14px; line-height: 20px; }
.steps figcaption b { display: block; margin-bottom: 4px; font-family: var(--head); }
.steps figcaption span { color: var(--muted); }
@media (max-width: 800px) { .steps { grid-template-columns: repeat(5, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s1); } .steps figure { scroll-snap-align: start; } }

/* Decisions */
.decision { display: grid; grid-template-columns: 264px 1fr; gap: var(--s5); padding: var(--s5) 0; border-top: 1px solid var(--rule); }
.decision:first-of-type { border-top: 0; padding-top: var(--s2); }
.decision .n { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.decision h3 { margin: var(--s1) 0 0; font-family: var(--head); font-size: 22px; line-height: 30px; font-weight: 600; letter-spacing: -.01em; }
.decision dl { margin: 0; display: grid; gap: var(--s3); max-width: 64ch; }
.decision dt { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.decision dd { margin: var(--s1) 0 0; font-size: 17px; line-height: 28px; color: var(--text); }
@media (max-width: 800px) { .decision { grid-template-columns: 1fr; gap: var(--s2); } }

/* Before and after */
.ba { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: var(--s4); align-items: start; padding: var(--s6) 0; border-top: 1px solid var(--rule); }
.ba:first-of-type { border-top: 0; padding-top: var(--s2); }
.ba figure { margin: 0; }
.ba img { width: 100%; aspect-ratio: 402 / 873; object-fit: cover; object-position: top; border-radius: var(--r-s); background: var(--soft); box-shadow: 0 0 0 1px var(--rule); }
.ba figcaption { margin-top: var(--s2); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ba .tx h3 { margin: 0 0 var(--s3); font-family: var(--head); font-size: 26px; line-height: 32px; font-weight: 600; }
.ba .tx h3 small { display: block; margin-bottom: var(--s1); font-size: 12px; line-height: 16px; color: var(--muted); font-weight: 600; letter-spacing: .12em; }
.ba dl { margin: 0; display: grid; gap: var(--s3); }
.ba dt { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ba dd { margin: var(--s1) 0 0; font-size: 16px; line-height: 26px; color: var(--text); }
@media (max-width: 800px) { .ba { grid-template-columns: 1fr 1fr; } .ba .tx { grid-column: 1 / -1; } }
.grid-ba { display: grid; grid-template-columns: repeat(auto-fit, minmax(296px, 1fr)); gap: var(--s3); }
.mini { padding: var(--s3); border-radius: var(--r-m); background: var(--soft); }
.mini .pics { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.mini img { width: 100%; aspect-ratio: 402 / 873; object-fit: cover; object-position: top; border-radius: var(--r-s); background: var(--panel); }
.mini .pics span { display: block; margin-top: var(--s1); font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mini h3 { margin: var(--s3) 0 var(--s1); font-family: var(--head); font-size: 19px; line-height: 24px; font-weight: 600; }
.mini p { margin: 0; font-size: 15px; line-height: 24px; color: var(--muted); }
/* Screens are shown whole, never cropped: each box takes its image's own shape. The "before" shots from the live app
   already sit in a phone frame (640 x 1318), so they get no extra frame; the redesign screens are 402 x 883. */
.steps img, .ba img, .mini img { aspect-ratio: 402 / 883; object-fit: contain; }
.steps img[src^="ref/"], .ba img[src^="ref/"], .mini img[src^="ref/"] { aspect-ratio: 640 / 1318; background: none; box-shadow: none; border-radius: 0; }
/* Redesign screens get a phone frame (added by case.js) to match the framed "before" shots: dark bezel, metal edge,
   rounded screen and a dynamic island. Sizes are in container units so the frame scales with its column. */
.steps figure, .ba figure, .mini .pics > div { container-type: inline-size; } /* the frame's sizes are measured against this */
.dev { position: relative; display: block; container-type: inline-size; aspect-ratio: 640 / 1318; padding: 5.8cqw; border-radius: 15cqw; background: #16161a;
  box-shadow: inset 0 0 0 .9cqw #3a3a42, inset 0 0 0 1.4cqw #0c0c0e, 0 0 0 1px rgba(0, 0, 0, .25); }
.dev img { width: 100%; aspect-ratio: 402 / 883 !important; object-fit: cover !important; border-radius: 9.6cqw !important; box-shadow: none !important; background: #000 !important; }
.mini .pics .dev { margin-top: 0; } /* the label rule below the pictures also matches this span */
.dev .isl { position: absolute; left: 50%; top: 8.2cqw; width: 30cqw; height: 8.4cqw; translate: -50% 0; border-radius: 99px; background: #000; }

/* Design system */
.ds { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
@media (max-width: 800px) { .ds { grid-template-columns: 1fr; } }
.ds > div { padding: var(--s4); border-radius: var(--r-m); background: var(--soft); }
.ds h3 { margin: 0 0 var(--s1); font-family: var(--head); font-size: 20px; line-height: 28px; font-weight: 600; }
.scale { margin: var(--s3) 0 0; display: grid; gap: var(--s1); }
.scale div { display: grid; grid-template-columns: 72px 1fr 48px; gap: var(--s2); align-items: baseline; padding-bottom: var(--s1); border-bottom: 1px solid var(--rule); font-family: "Urbanist", var(--body); }
.scale div:last-child { border-bottom: 0; padding-bottom: 0; }
.scale small { color: var(--muted); font-family: var(--body); font-size: 13px; }
.sw { display: grid; gap: var(--s2); margin-top: var(--s3); }
.sw > div { display: grid; grid-template-columns: 120px 1fr; gap: var(--s2); align-items: center; }
.sw .chipset { display: flex; gap: var(--s1); }
.sw .chipset i { width: 32px; height: 32px; border-radius: var(--r-s); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.sw b { display: block; font-size: 15px; line-height: 24px; }
.sw small { display: block; font-size: 13px; line-height: 20px; color: var(--muted); }

/* Prototype frame */
.proto { display: grid; place-items: center; padding: clamp(24px, 4vw, 64px); border-radius: var(--r-l); background: var(--soft); }
.proto .frame { position: relative; width: 100%; overflow: hidden; background: #111; }
.proto.laptop .frame { max-width: 920px; aspect-ratio: 16 / 10; padding: var(--s1); border-radius: var(--r-m); }
.proto.laptop .frame iframe { position: absolute; inset: var(--s1); width: calc(100% - 16px); height: calc(100% - 16px); border: 0; border-radius: var(--r-s); }
.proto.phone .frame { max-width: 320px; padding: 12px; border-radius: 48px; }
.proto.phone .frame iframe { display: block; width: 100%; aspect-ratio: 402 / 883; border: 0; border-radius: 36px; }
@media (max-width: 600px) { .proto { border-radius: var(--r-m); } }
.hint { margin-top: var(--s2) !important; font-size: 14px !important; line-height: 20px !important; color: var(--muted) !important; }

ol.plain, ul.plain { margin: 0; padding-left: 20px; display: grid; gap: var(--s1); max-width: 760px; font-size: 17px; line-height: 28px; color: var(--text); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(256px, 1fr)); gap: var(--s5) var(--s8); padding-top: var(--s5); border-top: 1px solid var(--rule); }
.cols p:not(.kicker) { margin: 0; max-width: 52ch; font-size: 17px; line-height: 28px; color: var(--text); }
.cols h3 { margin: 0 0 var(--s2); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.swatch { display: grid; gap: var(--s1); font-size: 13px; }
.swatch i { display: block; width: 120px; height: 72px; border-radius: var(--r-s); box-shadow: 0 0 0 1px var(--rule); }
.shot { border-radius: var(--r-m); box-shadow: 0 0 0 1px var(--rule), 0 32px 64px -32px rgba(0, 0, 0, .25); }
.next { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); margin-top: var(--section); padding-top: var(--s5); border-top: 1px solid var(--rule); }

/* Hero motion: Subspace phones and the Vaya Via browser. */
.ph3 { position: absolute; inset: 0; display: grid; place-items: center; }
.mphone { position: absolute; width: clamp(152px, 19vw, 232px); aspect-ratio: 402 / 873; padding: var(--s1); border-radius: 36px; background: #111;
  box-shadow: 0 32px 64px -24px rgba(0, 0, 0, .45), inset 0 0 0 1.5px #2b2b2b; }
.mphone .sc { position: relative; width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: #000; }
.mphone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mphone.mid { z-index: 2; width: clamp(168px, 22vw, 264px); }
.mphone img + img { opacity: 0; } /* the first screen shows; the intro cycles the rest */
@media (prefers-reduced-motion: reduce) { .mphone.l { translate: -110% 10%; rotate: -8deg; } .mphone.r { translate: 110% 10%; rotate: 8deg; } }
.browser { position: absolute; left: 50%; top: 9%; width: min(78%, 760px); height: 100%; translate: -50% 0; border-radius: var(--r-m) var(--r-m) 0 0; background: #fff;
  overflow: hidden; box-shadow: 0 32px 72px -32px rgba(0, 0, 0, .4), 0 0 0 1px rgba(0, 0, 0, .06); }
.browser .bar { display: flex; align-items: center; gap: var(--s1); height: 40px; padding: 0 var(--s2); background: #EFEDE9; }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #D5D2CC; }
.browser .bar span { margin-left: var(--s2); padding: 4px var(--s2); border-radius: var(--r-pill); background: #fff; font-size: 12px; line-height: 16px; color: var(--muted); }
.browser .page { position: relative; height: calc(100% - 40px); overflow: hidden; }
.browser .page img { width: 100%; }
/* The site's nav stays pinned at the top of the window while the page scrolls under it, as on the live site. */
.browser .page .pnav { position: absolute; left: 0; top: 0; z-index: 2; box-shadow: 0 1px 0 rgba(12, 38, 70, .08); }
.float { position: absolute; right: 4%; bottom: 8%; width: min(46%, 440px); border-radius: var(--r-m); overflow: hidden; z-index: 3;
  box-shadow: 0 32px 64px -24px rgba(12, 38, 70, .45), 0 0 0 1px rgba(0, 0, 0, .06); }
.float img { width: 100%; }
.badge { position: absolute; z-index: 4; padding: var(--s1) var(--s2); border-radius: var(--r-pill); background: var(--panel); color: var(--fg); font-size: 13px; line-height: 16px; font-weight: 600;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .14); white-space: nowrap; }
@media (max-width: 640px) { .float { width: 62%; } .badge { font-size: 11px; } }

/* Photo pages (ModuMed, Milkmaid): a hero photo, simple picture rows and a note for work under NDA. */
.stage.photo { background: var(--soft); }
.stage.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shots { display: grid; grid-template-columns: repeat(var(--c, 4), 1fr); gap: var(--s2); margin: 0; padding: 0; list-style: none; }
* + .shots { margin-top: var(--s5); }
.shots figure { margin: 0; display: grid; gap: var(--s1); align-content: start; }
.shots img { width: 100%; aspect-ratio: var(--r, 4 / 3); object-fit: cover; border-radius: var(--r-m); background: var(--soft); }
.shots figcaption { font-size: 13px; line-height: 20px; color: var(--muted); }
.shots.contain img { object-fit: contain; background: #fff; padding: var(--s2); box-shadow: 0 0 0 1px var(--rule); }
.shots.dark img { object-fit: contain; background: #0A0A0A; padding: var(--s2); }
.rowlabel { margin: var(--s8) 0 var(--s2) !important; font-size: 12px !important; line-height: 16px !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted) !important; }
h2 + .rowlabel { margin-top: var(--s5) !important; }
.rowlabel + .shots { margin-top: 0; }
@media (max-width: 800px) { .shots { grid-template-columns: repeat(2, 1fr); } .shots[style*="--c:2"] { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .shots { gap: var(--s1); } .shots img { border-radius: var(--r-s); } }
.bigfig { margin: 0; }
.bigfig img { width: 100%; border-radius: var(--r-l); background: var(--soft); }
.bigfig figcaption { margin-top: var(--s1); font-size: 14px; color: var(--muted); }
.nda { display: grid; grid-template-columns: 1fr auto; gap: var(--s4) var(--s6); align-items: end; padding: var(--s7) var(--s8); border-radius: var(--r-l); background: var(--soft); }
.nda h2 { margin: 0 0 var(--s2); }
.nda p:not(.kicker) { margin: 0; max-width: 52ch; font-size: 18px; line-height: 28px; color: var(--text); }
@media (max-width: 800px) { .nda { grid-template-columns: 1fr; align-items: start; padding: var(--s4) var(--s3); border-radius: var(--r-m); } .nda .btn { justify-self: start; } }
.card .who { margin: 0; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card .who + h3 { margin-top: var(--s1); }
.card img.ico { width: 100%; height: 136px; object-fit: contain; margin-bottom: var(--s1); border-radius: var(--r-s); background: #000; padding: 0; filter: invert(1) hue-rotate(180deg); }
.card img.ico + h3 { margin-top: var(--s2); }

/* Section rhythm: every section opens with a short rule and its label, then the heading, then 40px to the content
   (24px when a line of intro text sits under the heading). */
section:not(.glance) > .kicker::before, .two > div > .kicker::before, .nda .kicker::before { content: ""; width: 16px; height: 1px; background: currentColor; }
section > h2:not(:last-child) { margin-bottom: var(--s5); }
section > h2 + p:not(.rowlabel) { margin-top: calc(var(--s2) * -1); }
section > h2 + p.intro { margin-top: calc(var(--s2) * -1) !important; }
.stage.photo > img { will-change: transform; }
section > h2 + .path, section > h2 + .shots, section > p.intro + .shots { margin-top: 0; }
h2 + .rowlabel { margin-top: 0 !important; }
