/* Fury Oktria Putra, portfolio v2. Source of truth: research/work/spec-v2.md (sections 3, 4, 6, 7).
   Every piece of content is visible without JS. Start states of reveals hide only under
   html.motion.ready, and only when the visitor allows motion. html.paused and reduced motion
   show final states. Type, spacing and radii resolve to the Tailwind steps of spec 6. */

@font-face {
  font-family: 'Geist';
  src: url('/vendor/fonts/geist-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/vendor/fonts/geist-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@property --year {
  syntax: '<integer>';
  inherits: false;
  initial-value: 2026;
}

:root {
  /* colour, light (6.2) */
  --paper: #f7f6f2;
  --card: #ffffff;
  --sunk: #efede6;
  --raised: #ffffff;
  --ink: #101114;
  --ink-2: #4b4f58;
  --ink-3: #62666e;
  --accent: #0b63c4;
  --accent-hover: #0a57ad;
  --on-accent: #ffffff;
  --live: #157a3c;
  --beta: #6d3fc0;
  --build: #a8520a;
  --proto: #5d6168;
  --line: #d9d6cc;
  --line-strong: #83868e;
  --grad-from: #000000;
  --grad-to: #666666;
  --scrim: rgba(16, 17, 20, 0.4);

  /* motion (7.1) */
  --dur-swap: 140ms;
  --dur-stamp: 220ms;
  --dur-hover: 200ms;
  --dur-half: 250ms;
  --dur-stroke: 480ms;
  --dur-beat: 500ms;
  --dur-rise: 600ms;
  --dur-reveal: 700ms;
  --dur-flip: 600ms;
  --dur-count: 800ms;
  --dur-camera: 900ms;
  --dur-print: 1200ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-rise: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-camera: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-flip: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-exit: cubic-bezier(0.5, 0, 0.75, 0);
  --ease-spring: linear(0, 0.055, 0.179, 0.331, 0.482, 0.618, 0.732, 0.822, 0.89, 0.939, 0.972, 0.994, 1.006, 1.013, 1.015, 1.015, 1.013, 1.011, 1.009, 1.007, 1.005, 1.003, 1.002, 1.001, 1);
  --ease-critical: linear(0, 0.045, 0.144, 0.264, 0.385, 0.496, 0.594, 0.677, 0.745, 0.801, 0.845, 0.881, 0.908, 0.93, 0.947, 0.96, 0.969, 0.977, 0.983, 0.987, 0.99, 0.993, 0.995, 0.996, 1);
  --stagger: 60ms;
  --stagger-cap: 400ms;

  /* type steps */
  --text-sm: 0.875rem;
  --font: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* layout (6.3): side margin and section rhythm per breakpoint */
  --mx: 16px;
  --sec: 64px;
  --head-gap: 24px;
  --entry-gap: 32px;
  --sub: 40px;
  --name-fs: 48px;
  color-scheme: light;
}

/* Dark tokens are kept, but nothing sets data-theme: the page is always light (Fury, 7 Nov 2026). */
@media all {
  :root[data-theme="dark"] {
    --paper: #131209;
    --card: #1f1f1f;
    --sunk: #181818;
    --raised: #272727;
    --ink: #f3f1ea;
    --ink-2: #b3afa4;
    --ink-3: #9a968c;
    --accent: #5aa8f5;
    --accent-hover: #7ab9f7;
    --on-accent: #131209;
    --live: #4cc27a;
    --beta: #b394f2;
    --build: #e8a24a;
    --proto: #a3a7ae;
    --line: #313131;
    --line-strong: #787878;
    --grad-from: #ffffff;
    --grad-to: #9b9b9b;
    --scrim: rgba(0, 0, 0, 0.6);
  }
}

@media (min-width: 640px) {
  :root { --mx: 32px; --sec: 80px; --sub: 64px; --head-gap: 40px; --entry-gap: 48px; --name-fs: 72px; }
}
@media (min-width: 1024px) {
  :root { --sec: 96px; --sub: 80px; --head-gap: 48px; --entry-gap: 64px; --name-fs: 96px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 76px;
}
@media (min-width: 640px) { html { scroll-padding-top: 88px; } }
html.menu-open { overflow: clip; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 var(--font);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
svg.i { display: inline-block; flex: none; vertical-align: middle; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
code, pre, .mono { font-family: var(--mono); }
code { font-size: 0.875em; }
h1, h2, h3, h4 { font-weight: 600; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
main p { max-width: min(34em, 720px); }
main .ev p { max-width: none; }
::selection { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--ink); }

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-thickness var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
#main:focus { outline: none; }

.vh, .skip:not(:focus) {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 8px 12px; border-radius: 8px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; text-decoration: none;
}

/* containers: every top level block carries the side margin */
main > *, .foot, .plain__main { padding-inline: var(--mx); }
@media (min-width: 1024px) {
  main > *, .foot, .plain__main { padding-inline: max(32px, calc((100% - 1280px) / 2)); }
}

/* ---------- buttons and small parts ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 8px 12px; border-radius: 8px;
  font-size: 1rem; line-height: 1.5rem; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-hover) var(--ease-out), transform 80ms var(--ease-out);
}
@media (min-width: 640px) { .btn { min-height: 44px; } }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--secondary { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn:active { transform: translateY(1px); }

.mark { border-radius: 9999px; }
.mark--inline { display: inline-block; width: 20px; height: 20px; vertical-align: middle; margin: -2px 4px 0 0; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font: 500 0.875rem/1.25rem var(--font); letter-spacing: 0;
  white-space: nowrap; vertical-align: middle;
}
.badge--live { color: var(--live); }
.badge--beta { color: var(--beta); }
.badge--build { color: var(--build); }
.badge--submitted, .badge--prototype { color: var(--proto); }
.entry__name .badge { margin-left: 8px; position: relative; top: -2px; }

.help-line, .price-line, .trust-line { font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-2); }
main :is(.help-line, .price-line, .trust-line) { max-width: 680px; }

/* details.more: phone compaction toggles; open and plain from 640 up */
details.more > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; cursor: pointer; list-style: none;
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--ink);
}
details > summary::-webkit-details-marker { display: none; }
details.more > summary::after {
  content: ''; width: 8px; height: 8px; margin-right: 4px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--dur-half) var(--ease-rise);
}
details[open].more > summary::after, .ev__all[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
@media (min-width: 640px) {
  details.more > summary { display: none; }
  details.more::details-content { content-visibility: visible; display: contents; }
}

/* ---------- bar (4.1) ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  height: 56px; margin: 0; padding: 8px var(--mx);
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
}
.wordmark {
  margin-right: auto; color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 1rem; line-height: 1.5rem; white-space: nowrap;
}
.dot { color: var(--accent); }
.bar__nav { display: none; }
.bar__nav ul { display: flex; gap: 24px; }
.bar__nav a, .pause { color: var(--ink); text-decoration: none; font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.bar__nav a { display: inline-flex; align-items: center; min-height: 40px; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.bar__nav a[aria-current='true'] { text-decoration-line: underline; text-decoration-color: var(--ink); }
.pause { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.pause--bar { display: none; }
.pause[aria-pressed='true'] .pause__icon--pause, .pause[aria-pressed='false'] .pause__icon--play { display: none; }
.bar .btn--book { min-height: 36px; padding: 8px 12px; font-size: 0.875rem; line-height: 1.25rem; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: 0.875rem; font-weight: 500;
}
.lines line { transform-box: view-box; transform-origin: 10px 10px; transition: transform var(--dur-half) var(--ease-rise); }
@media (max-width: 419px) {
  .menu-btn { padding: 0; }
  .menu-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media (max-width: 359px) { .wordmark__rest { display: none; } }
@media (min-width: 640px) {
  .bar { top: 16px; height: 56px; margin: 16px 32px 0; padding: 8px 8px 8px 16px; }
}
@media (min-width: 1024px) {
  .bar { width: fit-content; margin-inline: auto; gap: 24px; }
  .wordmark { margin-right: 0; }
  .bar__nav, .pause--bar { display: flex; }
  .menu-btn { display: none; }
}

/* ---------- menu dialog (4.2) ---------- */
.menu {
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none;
  margin: 0; padding: 76px 16px 32px; border: 0;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  overflow-y: auto; overscroll-behavior: contain; scroll-padding-block: 16px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 160ms var(--ease-exit), transform 160ms var(--ease-exit), overlay 160ms allow-discrete, display 160ms allow-discrete;
}
.menu[open] { opacity: 1; transform: none; transition-duration: var(--dur-half); transition-timing-function: var(--ease-rise); }
@starting-style { .menu[open] { opacity: 0; transform: translateY(8px); } }
.menu::backdrop { background: var(--scrim); }
@media (min-width: 640px) { .menu { padding: 88px 32px 40px; } }
.menu__close {
  position: absolute; top: 12px; right: 20px;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px;
}
@media (min-width: 640px) { .menu__close { top: 22px; right: 40px; } }
.menu[open] .menu__close-icon .lines__a { transform: rotate(45deg) translateY(3px); }
.menu[open] .menu__close-icon .lines__b { transform: rotate(-45deg) translateY(-3px); }
@starting-style {
  .menu[open] .menu__close-icon .lines__a, .menu[open] .menu__close-icon .lines__b { transform: none; }
}
.menu__nav a {
  display: flex; align-items: center; min-height: 56px;
  font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
/* 10 Nov 2026: 8 links now. The whole entrance ends by 305 ms, so an early tap never lands on a
   row that is still sliding (E08 at 320x256). */
.menu__nav li { transition: opacity 200ms var(--ease-rise), transform 200ms var(--ease-rise); }
.menu__nav li:nth-child(2) { transition-delay: 15ms; }
.menu__nav li:nth-child(3) { transition-delay: 30ms; }
.menu__nav li:nth-child(4) { transition-delay: 45ms; }
.menu__nav li:nth-child(5) { transition-delay: 60ms; }
.menu__nav li:nth-child(6) { transition-delay: 75ms; }
.menu__nav li:nth-child(7) { transition-delay: 90ms; }
.menu__nav li:nth-child(n + 8) { transition-delay: 105ms; }
@starting-style { .menu[open] .menu__nav li { opacity: 0; transform: translateY(24px); } }
.menu__actions { display: grid; gap: 16px; justify-items: start; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.menu__actions .btn { width: 100%; }
.menu__email { font-size: 1rem; }
@media (max-height: 480px) {
  .menu__nav a { min-height: 44px; font-size: 1.25rem; line-height: 1.75rem; }
}

/* ---------- story grid, hero, portrait (3, 4.3, 4.4) ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero, .portrait { grid-area: 1 / 1; }
.about { grid-row: 2; }
.hero { display: flex; flex-direction: column; align-items: flex-start; padding-top: 12px; }
.portrait { justify-self: end; width: 176px; margin-top: 12px; }
.portrait__frame { position: relative; aspect-ratio: 240 / 264; }
.portrait__frame img, .portrait__frame canvas { width: 100%; height: 100%; object-fit: contain; }
.portrait__frame canvas, .portrait__canvas { position: absolute; inset: 0; }
html:is([data-scene='running'], [data-scene='idle'], [data-scene='paused']) .portrait__still { visibility: hidden; }
.portrait__cap { display: none; }

.name {
  width: fit-content; max-width: calc(100% - 192px);
  font-size: var(--name-fs); line-height: 1; letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--grad-from), var(--grad-to));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.name__line { display: block; }
.name .dot { font-size: 0; display: inline-block; }
.name .dot::after {
  content: ''; display: inline-block;
  width: calc(var(--name-fs) * 0.16); height: calc(var(--name-fs) * 0.16);
  margin-left: calc(var(--name-fs) * 0.05);
  border-radius: 9999px; background: var(--accent);
}
.hero__meta { max-width: calc(100% - 192px); margin-top: 8px; font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-2); }
.hero__claim { margin-top: 12px; font-size: 1.5rem; line-height: 2rem; font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
main .hero__claim { max-width: 680px; }
.hero__sub { order: 9; margin-top: 16px; color: var(--ink-2); }
.hero__cta { order: 1; align-self: stretch; margin-top: 12px; }
.hero__help { order: 2; margin-top: 8px; }
.live-link { order: 3; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-top: -2px; font-size: 1rem; }
.price-line { order: 4; margin-top: 2px; }
.trust-line { order: 5; margin-top: 8px; }
.trust__name { color: var(--ink); font-weight: 500; }
.proof { order: 6; align-self: stretch; margin-top: 8px; }
.proof__item {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: center;
  min-height: 48px; padding-block: 4px; border-top: 1px solid var(--line);
}
.proof__item:last-child { border-bottom: 1px solid var(--line); }
.hero .proof__item { grid-template-columns: 104px minmax(0, 1fr); }
.proof__value { font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.proof__caption { font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-2); }

@media (min-width: 640px) {
  .hero { display: block; padding-top: 24px; }
  .portrait { width: 280px; margin-top: 24px; }
  .name { max-width: calc(100% - 304px); }
  .hero__meta { max-width: calc(100% - 304px); margin-top: 16px; font-size: 1.125rem; line-height: 1.75rem; }
  main .hero__claim { max-width: calc(100% - 304px); }
  .hero__claim { margin-top: 24px; font-size: 1.875rem; line-height: 2.25rem; }
  .hero__sub { margin-top: 16px; font-size: 1.125rem; line-height: 1.75rem; }
  .hero__cta { margin: 24px 24px 0 0; vertical-align: baseline; }
  .live-link { margin-top: 0; vertical-align: baseline; }
  .hero__help { margin-top: 12px; }
  .price-line { margin-top: 8px; }
  .proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
  .proof__item, .proof__item:last-child { display: block; min-height: 0; padding: 0; border: 0; }
  .proof__value { display: block; font-size: 1.875rem; line-height: 2.25rem; }
  .proof__caption { display: block; margin-top: 8px; }
  .trust-line { margin-top: 24px; }
}
@media (min-width: 1024px) {
  .story { grid-template-columns: minmax(0, 1fr) min(520px, 41vw); grid-template-rows: auto 1fr; column-gap: 24px; }
  .hero { grid-area: 1 / 1; padding-top: 32px; }
  .about { grid-area: 2 / 1; }
  .portrait {
    grid-area: 1 / 2 / 3 / 3; justify-self: stretch; align-self: start;
    position: sticky; top: 96px; width: auto; margin-top: 24px;
  }
  .portrait__frame { max-height: calc(100dvh - 176px); margin-inline: auto; }
  .portrait__cap { display: block; margin-top: 16px; font: 400 0.875rem/1.25rem var(--mono); color: var(--ink-2); }
  .cap__label { margin-right: 4px; }
  .name, .hero__meta, main .hero__claim { max-width: 680px; }
  .hero__claim { font-size: 2.25rem; line-height: 2.5rem; }
  .proof__value { font-size: 2.25rem; line-height: 2.5rem; }
}

/* caption year odometer (4.4), only once main.js runs */
html.ready .cap__year { font-size: 0; counter-reset: y var(--year); transition: --year var(--dur-count) var(--ease-out); }
html.ready .cap__year::after { content: counter(y); font-size: var(--text-sm); }

/* ---------- sections, heads (4.0, 4.5) ---------- */
.about, .wwm, .products, .faq, .contact { padding-top: var(--sec); }
.section-head { display: grid; gap: 8px; margin-bottom: 24px; }
@media (min-width: 640px) { .section-head { gap: 12px; margin-bottom: var(--head-gap); } }
.section-head h2, .contact h2 {
  font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.03em;
  overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em;
}
.h2__in { display: inline-block; }
.dek { font-size: 1.125rem; line-height: 1.75rem; color: var(--ink-2); }
.dek a { color: inherit; }
@media (min-width: 640px) {
  .section-head h2, .contact h2 { font-size: 3rem; line-height: 1; }
}
@media (min-width: 1024px) {
  .section-head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .section-head .dek { padding-top: 4px; }
  .section-head h2 { grid-column: 1 / 5; }
  .section-head .dek { grid-column: 6 / 13; }
  .about .section-head { grid-template-columns: 3fr 4fr; }
  .about .section-head h2, .about .section-head .dek { grid-column: auto; }
  .faq .section-head { display: block; }
  .faq .section-head .dek { margin-top: 12px; }
}

/* ---------- chapters (4.6 to 4.9) ---------- */
.chapter { margin-top: var(--sub); }
.section-head + .chapter { margin-top: 0; }
.chapter__head h3, .teaching h3, .steps__head, .group__head h3, .open-source h3 {
  font-size: 1.5rem; line-height: 2rem; letter-spacing: -0.02em;
}
.chapter__head .n { font: 400 1.5rem/2rem var(--mono); color: var(--ink-3); margin-right: 4px; letter-spacing: 0; }
.chapter__meta { margin-top: 4px; font: 400 0.875rem/1.25rem var(--font); color: var(--ink-2); }
.lead { margin-top: 16px; font-size: 1.125rem; line-height: 1.75rem; }
main .lead { max-width: 600px; }
@media (min-width: 640px) {
  .chapter__head h3, .teaching h3, .steps__head, .group__head h3, .open-source h3 { font-size: 1.875rem; line-height: 2.25rem; }
  .chapter__head .n { font-size: 1.875rem; line-height: 2.25rem; }
  .lead { font-size: 1.25rem; line-height: 1.75rem; }
}

/* career plates and thread */
.plates { position: relative; margin-top: 32px; }
.plates::before {
  content: none;
}
.plate { position: relative; display: grid; gap: 4px; }
.plate + .plate { margin-top: 40px; }
.plate::before {
  content: none;
}
.plate__dates { font: 400 0.875rem/1.25rem var(--font); color: var(--ink-2); }
.plate__org { font-size: 1.25rem; line-height: 1.75rem; }
.plate__role { color: var(--ink-2); }
.plate__results { display: grid; gap: 12px; margin-top: 12px; }
.plate__more { margin-top: 4px; }
@media (min-width: 640px) { .plate__more { margin-top: 12px; } }
.legend-more .legend { margin-top: 0; border-block: 0; }
.plate__results li { position: relative; padding-left: 16px; }
.plate__results li::before { content: ''; position: absolute; left: 0; top: 11px; width: 6px; height: 1px; background: var(--ink-2); }
@media (min-width: 640px) {
  .plate { grid-template-columns: 136px minmax(0, 1fr); column-gap: 24px; }
  .plate__dates { padding-top: 4px; }
  .flow { grid-column: 1 / -1; }
}

/* D8 flow diagram */
.flow { margin-top: 32px; color: var(--ink); }
.flow__svg { width: 100%; height: auto; overflow: visible; }
@media (min-width: 640px) { .flow__svg--narrow { display: none; } }
.flow__link { color: var(--ink-3); stroke-dasharray: 1; }
.flow__node--gw rect { fill: var(--card); }
.flow__packet { fill: var(--ink); opacity: 0; }
.flow__packet.in { opacity: 1; }
.flow text { font-family: var(--mono); }

/* studio */
.studio-row { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.mark--studio { width: 48px; height: 48px; flex: none; }
.studio-row__name { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.studio-row__line { font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-2); }
.client-work__head, .studio-more__head, .ops__head { margin-top: 32px; font-size: 1.25rem; line-height: 1.75rem; }
.client { margin-top: 24px; }
.client + .client { margin-top: 40px; }
.client__name { font-size: 1.25rem; line-height: 1.75rem; }
.client__name a { color: var(--ink); }
.client__dates { margin-left: 8px; font: 400 0.875rem/1.25rem var(--font); color: var(--ink-2); white-space: nowrap; }
.client__scope { margin-top: 8px; }
.client > .media { margin-top: 16px; width: 300px; max-width: 100%; }
@media (min-width: 640px) { .client > .media { width: 100%; } }
@media (min-width: 1024px) {
  .client-work__head, .studio-more__head, .client__name { font-size: 1.5rem; line-height: 2rem; }
  .client > .media { width: 616px; }
}
.strip, .shelf { position: relative; }
.strip {
  display: flex; gap: 16px; margin-top: 16px; padding-bottom: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.strip > .media { flex: none; width: 300px; scroll-snap-align: start; }
.strip > .client-shot--phone { width: 240px; }
@media (min-width: 640px) {
  .strip { gap: 24px; }
  .strip > .media { width: 480px; }
  .strip > .client-shot--phone { width: 280px; }
}
@media (min-width: 1024px) {
  .strip > .media { width: 616px; }
  .strip > .client-shot--phone { width: 320px; }
}
.zoom { display: block; border-radius: 8px; }
.studio-more { display: grid; gap: 12px; margin-top: 12px; }
.studio-more li, .teaching__list li { padding-block: 12px; border-top: 1px solid var(--line); }
.studio-more li { padding-block: 12px 0; }
.partner { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.partner__photo { width: 56px; height: 56px; flex: none; border-radius: 9999px; object-fit: cover; }

/* agents ledger */
.ops { margin-top: 16px; }
.ops__row:last-child { border-bottom: 1px solid var(--line); }
.ops__note { margin-top: 16px; font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-2); }


/* teaching */
.teaching { margin-top: var(--sub); padding-bottom: 8px; }
.teaching__list { margin-top: 16px; }
.teaching__list li:last-child { border-bottom: 1px solid var(--line); }
.teaching__list:has(+ .teaching__more) li:last-child { border-bottom: 0; }
.teaching__more { border-top: 1px solid var(--line); }
.teaching__more > .teaching__list { margin-top: 0; }
@media (min-width: 640px) { .teaching__more { border-top: 0; } }

/* ---------- tagline (4.10) ---------- */
.tagline { padding-block: var(--sec); }
.tagline__text {
  font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance;
}
main .tagline__text { max-width: 680px; }
.tagline .line { display: block; }
.tagline .line + .line { margin-top: 12px; }
@media (min-width: 640px) { .tagline__text { font-size: 3rem; line-height: 1; } }

/* ---------- work with me (4.11) ---------- */
.wwm { padding-bottom: 0; }
.offers { display: grid; gap: 32px; }
.offer { display: grid; align-content: start; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line-strong); }
.offer__title { font-size: 1.5rem; line-height: 2rem; letter-spacing: -0.02em; }
.offer__price { font-size: 1.875rem; line-height: 2.25rem; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.offer__meta { font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-2); }
.offer__body { margin-top: 8px; }
.offer__list { display: grid; gap: 12px; margin-top: 8px; }
.offer__list li { display: flex; gap: 8px; align-items: flex-start; }
.offer__list .i { margin-top: 2px; color: var(--ink-2); }
.offer__book { margin-top: 8px; justify-self: start; }
.offer .more { margin-top: 4px; }
@media (min-width: 640px) and (max-width: 1023px) {
  .offer { grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: 24px; }
  .offer > :is(.offer__title, .offer__price, .offer__meta) { grid-column: 1 / 4; }
  .offer > :is(.offer__body, .more, .offer__book) { grid-column: 4 / 9; }
  .offer__body { grid-row: 1 / span 2; margin-top: 0; }
  .offer > .more { grid-row: 3 / span 2; }
  .offer__book { grid-row: 5; }
}
@media (min-width: 1024px) {
  .offers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .offer__body, .offer__list { font-size: 1rem; }
}

/* steps (P28) */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: var(--sub); }
.steps__head { grid-row: 1; margin-bottom: 24px; }
.steps__line, .steps__list { grid-row: 2; grid-column: 1; }
.steps__line { color: var(--line-strong); }
.steps__line line { stroke-dasharray: 1; }
.steps__line--h { display: none; }
.steps__list { display: grid; gap: 24px; padding-left: 0; }
.step { position: relative; display: grid; gap: 4px; align-content: start; }
.step__dot { position: absolute; left: -32px; top: 6px; width: 8px; height: 8px; border-radius: 9999px; background: var(--ink); box-shadow: 0 0 0 4px var(--paper); }
.step__n { font: 400 0.875rem/1.25rem var(--font); color: var(--ink-2); }
.step__title { font-size: 1.125rem; line-height: 1.75rem; }
@media (max-width: 639px) {
  .step { grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: baseline; }
  .step > :not(.step__n, .step__title, .step__dot) { grid-column: 1 / -1; }
  .steps__list { gap: 16px; }
  .group__lead { font-size: 0.875rem; line-height: 1.25rem; }
}
@media (min-width: 1024px) {
  .steps__line--h { display: block; align-self: start; width: calc((200% + 48px) / 3); height: 2px; margin: 3px 0 0 4px; }
  .steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0; }
  .step { padding-top: 24px; }
  .step__dot { left: 0; top: 0; }
}
.ledger__intro { margin-top: 12px; color: var(--ink-2); }
.ledger__table { width: 100%; border-collapse: collapse; }
.ledger__table tbody, .ledger__table tr, .ledger__table th, .ledger__table td { display: block; }
.ledger__detail > .more > summary { min-height: 32px; }
.ledger__product { grid-column: 1; text-align: left; font-weight: 600; }
.ledger__date { grid-column: 2; grid-row: 1; font: 400 0.875rem/1.5rem var(--mono); color: var(--ink-2); white-space: nowrap; }
.ledger__detail { grid-column: 1 / -1; }
@media (max-width: 639px) {
  .ledger__detail { grid-column: 2; grid-row: 2; justify-self: end; align-self: center; }
  .offer { grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; }
  .offer > * { grid-column: 1 / -1; }
  .offer > .more:not([open]) { grid-column: 1; }
  .offer > .more:not([open]) + .offer__book { grid-column: 2; grid-row: auto; align-self: center; margin-top: 4px; }
}
@media (min-width: 640px) {
  .ledger__table thead { position: static; width: auto; height: auto; overflow: visible; clip-path: none; display: table-header-group; }
  .ledger__table tr, .ledger__row { display: table-row !important; }
  .ledger__table thead th { padding-block: 4px 12px; font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--ink-2); }
  .ledger__product { padding-top: 18px !important; }
  .ledger__date { padding-top: 18px !important; }
}
.wwm__close { display: grid; justify-items: start; gap: 12px; margin-top: var(--sub); padding-top: 32px; border-top: 1px solid var(--line); }
.wwm__line { font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; }
main .wwm__line { max-width: 680px; }
.wwm__close .btn { margin-top: 12px; }
@media (max-width: 639px) {
  .offers { gap: 24px; }
  .offer__body { margin-top: 0; }
  .wwm__close { padding-top: 16px; }
}
@media (min-width: 1024px) { .wwm__line { font-size: 1.5rem; line-height: 2rem; } }

/* ---------- products (4.12) ---------- */
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter__label { margin-right: 4px; font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-2); }
@media (max-width: 639px) {
  .filter__chips > * { flex: none; }
}
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 9999px; box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--ink);
  transition: box-shadow var(--dur-hover) var(--ease-out);
}
.chip__n { font-family: var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chip[aria-pressed='true'] { background: var(--card); box-shadow: inset 0 0 0 2px var(--accent); }
@media (min-width: 1024px) { .chip { min-height: 36px; } }
.status-line, .filter-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-2); }
.status-line:focus-visible { outline-offset: 4px; }
.show-all { min-height: 44px; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.filter-note { margin-top: var(--entry-gap); }

.legend { display: grid; gap: 4px; margin-top: 24px; padding: 8px 0; border-block: 1px solid var(--line); font-size: 0.875rem; line-height: 1.25rem; }
.legend__row { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.legend dt { display: flex; align-items: center; gap: 8px; }
.legend .n { font-family: var(--mono); color: var(--ink-2); }
.legend dd { color: var(--ink-2); }
@media (min-width: 1024px) {
  .legend { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding: 16px 0; }
  .legend__row { display: grid; grid-template-columns: none; gap: 4px; }
}

.group { margin-top: var(--sub); }
@media (max-width: 639px) { .products .group { margin-top: 32px; } }
.group__head { display: grid; gap: 8px; margin-bottom: 16px; }
@media (min-width: 640px) { .group__head { margin-bottom: var(--head-gap); } }
.group__count { margin-left: 4px; font: 400 1rem/1 var(--mono); color: var(--ink-3); vertical-align: super; letter-spacing: 0; }
.group__lead { color: var(--ink-2); }
@media (min-width: 1024px) {
  .group__head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: baseline; }
  .group__head h3 { grid-column: 1 / 6; }
  .group__lead { grid-column: 6 / 13; font-size: 1.125rem; line-height: 1.75rem; }
}

.entries > * + *, .entries > .shelf { margin-top: calc(var(--entry-gap) / 2); padding-top: calc(var(--entry-gap) / 2); border-top: 1px solid var(--line); }
.entry { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; }
.entry__name { font-size: 1.25rem; line-height: 1.75rem; letter-spacing: -0.01em; }
.entry__tag { font-size: 1.125rem; line-height: 1.75rem; color: var(--ink-2); }
.entry__note, .media__cap { font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-2); }
.entry__desc, .entry__evidence { margin-top: 4px; }
.entry__cta { margin-top: 4px; }
.cta { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 500; }
.cta .i { transition: transform var(--dur-hover) var(--ease-out); }

/* media frames (6.6) */
.media { min-width: 0; }
.media img, .media__frame img {
  width: 100%; border-radius: 8px; background: var(--sunk);
  box-shadow: 0 0 0 1px var(--line);
}
.media__frame { border-radius: 8px; }
.media__cap { margin-top: 8px; }
.media--phone { width: 160px; max-width: 100%; }
.media--no-phone, .media--desktop-only, .entry__media > .media--second { display: none; }
@media (min-width: 640px) {
  .media--no-phone { display: block; }
  .media--phone { width: 280px; }
  .entry--flagship .media--phone.media--second { width: 240px; }
}
@media (min-width: 1024px) { .media--desktop-only, .entry__media > .media--second { display: block; } }

/* flagship */
.entry__media { display: grid; gap: 16px; justify-items: start; }
.entry__media > .media:not(.media--phone) { width: 100%; }
.entry__media .ev { width: 100%; }
.entry__media > .more { width: 100%; }
@media (min-width: 640px) { .entry__media > .more { display: contents; } }
.entry--flagship .entry__text { display: grid; gap: 8px; margin-top: 16px; align-content: start; }
@media (min-width: 1024px) {
  .entry--flagship { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; gap: 0 24px; align-items: start; }
  .entry--flagship .entry__media { display: contents; }
  .entry--flagship .media--first { grid-column: 1 / 8; grid-row: 1 / 3; }
  .entry--flagship .media--second { grid-column: 8 / 13; grid-row: 2; margin-top: 32px; }
  .entry--flagship .entry__text { grid-column: 8 / 13; grid-row: 1; margin-top: 0; }
  .entry--flagship .media--phone.media--first { grid-column: 1 / 4; }
  .entry--flagship .entry__media .ev { grid-column: 4 / 8; grid-row: 1 / 3; }
  .entry--flagship .entry__name { font-size: 1.5rem; line-height: 2rem; }
}

/* evidence and lab: text column and card column */
@media (min-width: 1024px) {
  .entry--evidence { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto auto 1fr; gap: 8px 24px; align-items: start; }
  .entry--evidence > * { grid-column: 1 / 6; }
  .entry--evidence .entry__name { font-size: 1.5rem; line-height: 2rem; }
  .entries--lab { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--entry-gap) 24px; }
  .entries--lab > :nth-child(n + 3) { padding-top: calc(var(--entry-gap) / 2); margin-top: calc(var(--entry-gap) / -2); border-top: 1px solid var(--line); }
}

/* phone: lab screenshots stay on larger screens, the proof line says what they show */


/* shelf */
.shelf { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--mx) * -1); padding-inline: var(--mx); scroll-padding-inline: var(--mx); padding-bottom: 12px; scrollbar-width: thin; }
.tile { flex: none; width: 300px; scroll-snap-align: start; }
.tile .media { margin-bottom: 8px; }
.tile .media img { aspect-ratio: 960 / 536; object-fit: cover; }
.tile .entry__name { font-size: 1.125rem; line-height: 1.75rem; }
.tile .entry__tag { font-size: 1rem; line-height: 1.5rem; color: var(--ink); font-weight: 500; }
.tile .entry__desc { margin-top: 0; color: var(--ink-2); }
.tile .entry__cta { margin-top: 0; }
@media (min-width: 640px) {
  .shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; overflow: visible; margin-inline: 0; padding: 0; }
  .entries > .shelf { padding-top: calc(var(--entry-gap) / 2); }
  .tile { width: auto; }
  .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .shelf { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .tile { grid-column: span 4; }
  .tile--wide { grid-column: span 6; }
  .tile:last-child:nth-child(odd) { grid-column: span 4; }
}

/* evidence cards (6.4: radius 16, padding 12, inner blocks 4) */
.ev {
  display: grid; gap: 12px; align-content: start; min-width: 0;
  padding: 12px; border-radius: 16px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.875rem; line-height: 1.25rem;
}
.ev__head { font-family: var(--mono); color: var(--ink-2); }
.ev__req { padding: 8px 12px; border-radius: 4px; background: var(--sunk); font-family: var(--mono); }
.req { display: inline-block; }
.ev__pre {
  margin: 0; padding: 12px; border-radius: 4px; background: var(--sunk);
  font: 400 0.875rem/1.25rem var(--mono); white-space: pre-wrap; overflow-wrap: anywhere;
}
.ev__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 8px; border-top: 1px solid var(--line); }
.ev__v { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.pass { display: inline-flex; align-items: center; gap: 4px; flex: none; font: 500 0.875rem/1.25rem var(--mono); color: var(--live); }
.pass .i { width: 16px; height: 16px; }
.ev__all > summary { border-top: 1px solid var(--line); color: var(--accent); }
.ev__list li { padding: 4px 12px; border-radius: 9999px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.ev__foot { color: var(--ink-2); }
.ev__table th, .ev__table td { padding: 8px 12px 8px 0; text-align: left; border-top: 1px solid var(--line); font-weight: 400; }
.ev__table tbody th { font-weight: 500; }
.bars { display: grid; gap: 8px; }
.bars__label { font-family: var(--mono); }
.bars__bar { transform-box: fill-box; transform-origin: left; }

/* open source */
.open-source { margin-top: var(--sub); }
.os { margin-top: 16px; }
.open-source > .more > .os { margin-top: 0; }
@media (min-width: 640px) { .open-source > .more > .os { margin-top: 16px; } }
.os__row { display: grid; gap: 4px; padding: 12px 8px; margin-inline: -8px; border-top: 1px solid var(--line); border-radius: 4px; transition: background-color var(--dur-hover) var(--ease-out); }
.os__row:last-child { border-bottom: 1px solid var(--line); }
.os__desc { color: var(--ink-2); }
@media (min-width: 1024px) { .os__row { grid-template-columns: 280px minmax(0, 1fr); gap: 24px; } }

/* ---------- FAQ (4.13) ---------- */
.faq__list { border-bottom: 1px solid var(--line); }
.qa { border-top: 1px solid var(--line); }
.qa > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding-block: 8px; cursor: pointer; list-style: none;
  font-size: 1.125rem; line-height: 1.75rem; font-weight: 600;
}
.qa > summary .i { color: var(--ink-2); }
.qa[open] .qa__plus, .qa:not([open]) .qa__minus { display: none; }
.qa__a { padding-bottom: 16px; color: var(--ink-2); }
main .qa__a p { max-width: 640px; }
@media (min-width: 1024px) {
  .faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .faq .section-head { grid-column: 1 / 5; margin: 0; }
  .faq__list { grid-column: 5 / 13; }
}

/* ---------- contact (4.14) ---------- */
.contact { display: grid; gap: 32px; padding-bottom: 32px; }
@media (min-width: 640px) { .contact { padding-bottom: var(--sec); } }
.contact__text { display: grid; justify-items: start; gap: 12px; align-content: start; }
@media (min-width: 640px) { .contact__text { gap: 16px; } }
.contact__line { font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.contact__body { color: var(--ink-2); }
.contact__text .btn { margin-top: 8px; }
.contact__text .help-line { margin-top: -4px; }
.contact__email { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 8px; }
.copy-email { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 132px; padding: 0 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 0.875rem; font-weight: 500; }
.copy-email__check { display: none; }
.contact__linkedin a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.contact__photo {
  position: relative; overflow: clip; aspect-ratio: 240 / 264; width: 100%;
  border-radius: 8px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line);
}
.contact__img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 100%; scale: 0.96; }
.develop__ink { display: none; }
@media (max-width: 639px) { .contact__photo { width: 272px; } }
.develop__ink img { width: 100%; height: 100%; background: var(--paper); border-radius: 8px; }
@media (min-width: 640px) {
  .contact { grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: 24px; }
  .contact__text { grid-column: 1 / 6; }
  .contact__photo { grid-column: 6 / 9; align-self: start; }
  .contact__line { font-size: 2.25rem; line-height: 2.5rem; }
  .contact__body { font-size: 1.125rem; line-height: 1.75rem; }
}
@media (min-width: 1024px) {
  .contact { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .contact__text { grid-column: 1 / 7; }
  .contact__photo { grid-column: 7 / 13; justify-self: end; width: 520px; }
  .contact__line { font-size: 3rem; line-height: 1; }
}

/* ---------- footer (4.15) ---------- */
.foot { padding-block: 48px 32px; border-top: 1px solid var(--line); font-size: 0.875rem; line-height: 1.25rem; }
.foot__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.foot__studio, .foot__controls { grid-column: 1 / -1; }
.foot__studio { display: grid; gap: 12px; align-content: start; color: var(--ink-2); }
.foot__studio p { max-width: 34em; }
.mark--foot { width: 32px; height: 32px; }
.foot__head { margin-bottom: 8px; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.foot__col li a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-2); text-decoration: none; }
.foot__col li a:hover { color: var(--ink); }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-2); }
@media (min-width: 640px) { .foot__grid { gap: 40px 24px; } }
@media (min-width: 1024px) { .foot__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .foot__studio, .foot__controls { grid-column: auto; } .foot { padding-top: 64px; } .foot__bottom { margin-top: 48px; } }

/* ---------- zoom dialog ---------- */
.zoom-dialog {
  max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 48px 0 0;
  border: 0; border-radius: 16px; background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line);
  opacity: 0; transition: opacity 160ms var(--ease-out), overlay 160ms allow-discrete, display 160ms allow-discrete;
}
.zoom-dialog[open] { opacity: 1; }
@starting-style { .zoom-dialog[open] { opacity: 0; } }
.zoom-dialog::backdrop { background: var(--scrim); }
.zoom-dialog__close { position: absolute; top: 4px; right: 4px; min-height: 40px; padding: 0 12px; border-radius: 8px; font-size: 0.875rem; font-weight: 600; }
.zoom-dialog__frame { overflow: auto; max-height: calc(100dvh - 80px); }
.zoom-dialog__frame img { max-width: none; }

/* ---------- plain pages (4.16) ---------- */
.plain__main { padding-block: 64px var(--sec); }
.plain__main > * { max-width: 720px; padding-inline: 0 !important; }
.plain__main h1 { font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.03em; margin-bottom: 24px; }
.plain__main > p { margin-top: 16px; font-size: 1.125rem; line-height: 1.75rem; color: var(--ink-2); }
.plain__main > p:first-of-type { color: var(--ink); }
.plain__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px !important; }
.page-404 .plain__main { min-height: 60vh; padding-top: 96px; }
.page-404 .plain__main h1 { font-size: 3rem; line-height: 1; }
.plain__main section { margin-top: 48px; max-width: 960px; }
.plain__main h2 { font-size: 1.5rem; line-height: 2rem; margin-bottom: 16px; }
.plain__main table { width: 100%; border-collapse: collapse; font-size: 0.875rem; line-height: 1.25rem; }
.plain__main th, .plain__main td { padding: 8px 12px 8px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--line); font-weight: 400; }
.plain__main thead th { border-top: 0; color: var(--ink-2); font-weight: 500; }
.plain__main td code, .plain__main th code { overflow-wrap: anywhere; }
.plain__main pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; border-radius: 8px; background: var(--sunk); font-size: 0.875rem; }
@media (min-width: 640px) { .plain__main h1 { font-size: 3rem; line-height: 1; } .page-404 .plain__main h1 { font-size: 3.75rem; } }

/* ---------- hover (7.4), fine pointers only ---------- */
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration-thickness: 2px; }
  .btn--primary:hover { background: var(--accent-hover); }
  .btn--secondary:hover, .copy-email:hover { box-shadow: inset 0 0 0 1px var(--ink-2); }
  .bar__nav a:hover { text-decoration-line: underline; text-decoration-color: var(--line-strong); }
  .chip:hover { box-shadow: inset 0 0 0 1px var(--ink-2); }
  .chip[aria-pressed='true']:hover { box-shadow: inset 0 0 0 2px var(--accent); }
  .cta:hover .i, .os__row:hover .i { transform: translateX(2px); }
  /* 8 Nov 2026 (Fury): no grey hover box on product rows. Links carry the hover state. */
  .tile:hover .media img { box-shadow: 0 0 0 1px var(--line-strong); }
  .tile .media img { transition: box-shadow var(--dur-hover) var(--ease-out); }
}

/* ---------- motion: start states, only with JS ready and motion allowed (4.0, 7) ---------- */
@keyframes stamp { from { transform: scale(1.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes print-failsafe { to { clip-path: inset(0); } }
@keyframes show { from { opacity: 0; } to { opacity: 1; } }
@keyframes type { to { clip-path: inset(0); } }
@keyframes wipe-x { from { transform: scaleX(0); } to { transform: none; } }
@keyframes thread { from { transform: scaleY(0); } to { transform: none; } }
@keyframes ink { to { color: var(--ink); } }
@keyframes rise8 { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media screen and (prefers-reduced-motion: no-preference) {
  /* print pass and dot stamp (3.1, 4.4) */
  html.intro .portrait__still { clip-path: inset(0 0 100% 0); animation: print-failsafe 0ms 2500ms both; }
  html.intro.printing .portrait__still { animation: print var(--dur-print) var(--ease-camera) 120ms both; }
  html.intro.printed .portrait__still { clip-path: none; animation: none; }
  html.intro .name .dot { animation: show 0ms 2500ms both; }
  html.intro.printing .name .dot { transform-origin: 70% 80%; animation: stamp var(--dur-stamp) var(--ease-spring) 1320ms both; }
  html.intro.printed .name .dot { animation: none; }

  /* reveal units: section heads (D13 mask rise + dek), chapter heads, media, evidence cards */
  html.motion.ready .reveal:not(.in):not(:focus-within) .h2__in { transform: translateY(105%); }
  html.motion.ready .reveal:not(.in):not(:focus-within) .dek,
  html.motion.ready .chapter__head.reveal:not(.in):not(:focus-within),
  html.motion.ready .ev.reveal:not(.in):not(:focus-within) { opacity: 0; transform: translateY(32px); }
  html.motion.ready .media.reveal:not(.in):not(:focus-within) { opacity: 0; transform: translateY(24px) scale(0.985); }
  html.motion.ready .reveal.in .h2__in { transition: transform var(--dur-rise) var(--ease-rise); }
  html.motion.ready .reveal.in .dek { transition: opacity var(--dur-reveal) var(--ease-rise) 80ms, transform var(--dur-reveal) var(--ease-rise) 80ms; }
  html.motion.ready :is(.chapter__head, .ev, .media).reveal.in { transition: opacity var(--dur-reveal) var(--ease-rise), transform var(--dur-reveal) var(--ease-rise); }
  /* focus shows the unit at once (WCAG 2.4.11): no fade while a keyboard user is inside it */
  html.motion.ready .reveal:focus-within :is(.h2__in, .dek),
  html.motion.ready :is(.chapter__head, .ev, .media).reveal:focus-within { transition: none; }

  /* typed request lines, response lines, Ganita bars, Mandate stamps (4.12) */
  html.motion.ready .ev--typed:not(.in) .req { clip-path: inset(0 100% 0 0); }
  html.motion.ready .ev--typed.in .req { animation: type calc(var(--chars, 29) * 40ms) steps(var(--chars, 29), end) both; }
  html.motion.ready .ev--titah:not(.in) .l { opacity: 0; }
  .ev__pre .l:nth-child(2) { --n: 1; } .ev__pre .l:nth-child(4) { --n: 3; } .ev__pre .l:nth-child(6) { --n: 5; } .ev__pre .l:nth-child(8) { --n: 7; }
  html.motion.ready .ev--ganita.in .bars__bar { animation: wipe-x var(--dur-camera) var(--ease-rise) calc(var(--chars, 23) * 40ms + 200ms) both; }
  .ev--mandate > .ev__rows li:nth-child(2) .pass { animation-delay: 40ms; }
  .ev--mandate > .ev__rows li:nth-child(4) .pass { animation-delay: 120ms; }
  .ev--mandate > .ev__rows li:nth-child(6) .pass { animation-delay: 200ms; }

  /* career thread draws with scroll (D10) */
  @supports (animation-timeline: view()) {
    html.motion .plates { view-timeline: --plates block; }
    html.motion .plates::before { animation: thread linear both; animation-timeline: --plates; animation-range: cover 15% cover 70%; }
  }

  /* tagline ghost to ink (B11, D13) */
  @supports (animation-timeline: view()) {
    html.motion.ready .tagline { view-timeline: --tag block; }
    html.motion.ready .tagline .w {
      color: color-mix(in srgb, var(--ink) 30%, var(--paper));
      animation: ink linear both; animation-timeline: --tag; animation-timing-function: var(--ease-out);
      animation-range: cover calc(20% + var(--i, 0) * 1.3%) cover calc(26% + var(--i, 0) * 1.3%);
    }
  }
  @supports not (animation-timeline: view()) {
    html.motion.ready .tagline .w { transition: color var(--dur-half) var(--ease-out); }
    html.motion.ready .tagline .w:not(.on) { color: color-mix(in srgb, var(--ink) 30%, var(--paper)); }
  }

  /* contact develop (4.14) */
  html.motion.ready .develop__ink { display: block; position: absolute; inset: 0; }

  /* FAQ answer */
  .qa[open] .qa__a { animation: rise8 var(--dur-half) var(--ease-rise); }
}

/* Pause motion (7.5): every animation and transition lands on its final frame */
html.paused *, html.paused *::before, html.paused *::after {
  animation-duration: 0.01ms !important;
  animation-delay: 0ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  transition-delay: 0ms !important;
}
html.paused { scroll-behavior: auto; }

/* Reduced motion (7.6): final states at load; fades of 150 ms or less only */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .menu, .zoom-dialog { transform: none !important; transition: opacity 120ms linear, overlay 120ms allow-discrete, display 120ms allow-discrete !important; }
  .menu__nav li, .menu .lines line { transition: none !important; }
}

/* Print (4.0) */
@media print {
  .bar, .menu, .zoom-dialog, .pause, .skip, .portrait__frame canvas, .develop__ink, .copy-email { display: none !important; }
  .portrait__still { clip-path: none !important; }
  body { background: #fff; color: #000; }
  details.more::details-content { content-visibility: visible; }
  details.more > summary { display: none; }
}

/* Section sales lines (Fury, 7 Nov 2026: each section sells) */
.sell { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-top: var(--sub); }
.sell__line { font-size: 1.125rem; line-height: 1.75rem; font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; max-width: 40rem; }
.sell__cta { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.sell__cta:hover { color: var(--accent-hover); }
.sell__cta svg { width: 18px; height: 18px; }
@media (max-width: 639px) {
  .sell { margin-top: 24px; gap: 0 16px; }
  .sell__line { font-size: 1rem; line-height: 1.5rem; }
}

/* proof line (7 Nov 2026): one plain sentence with the tested numbers */
.entry__proof { margin-top: 8px; font-weight: 500; color: var(--ink); max-width: 40rem; }

/* ---------- layout pass, 8 Nov 2026 (spec 13) ---------- */
/* The portrait belongs to the hero only. About uses the full width. */
@media (min-width: 1024px) {
  .portrait { grid-area: 1 / 2 / 2 / 3; position: static; }
  .about { grid-area: 2 / 1 / 3 / 3; }
}

/* Chapters: a sticky side column (title, dates, lead, call) and a wide body column. */
.chapter__body > :first-child, .chapter__side > :first-child { margin-top: 0; }
.chapter__side .sell { margin-top: 24px; }
.chapter--studio .chapter__body { margin-top: 32px; }
.chapter--agents .chapter__body .sell { margin-top: 16px; }
@media (min-width: 1024px) {
  .chapter, .teaching { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .chapter__side { grid-column: 1 / 5; position: sticky; top: 88px; }
  .chapter__body { grid-column: 6 / 13; }
  .chapter--studio .chapter__body { margin-top: 0; }
  .chapter__side .lead { font-size: 1.125rem; line-height: 1.75rem; }
  .chapter__side .sell { display: grid; gap: 8px; }
  .chapter__side .sell__line { font-size: 1rem; line-height: 1.5rem; }
  .chapter--agents .chapter__body .sell { margin-top: 0; padding: 24px 0; border-block: 1px solid var(--line); }
  .chapter--agents .chapter__body .sell__line { font-size: 1.5rem; line-height: 2rem; }
  .plates { margin-top: 0; }
  .plate + .plate { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
  .client-work__head { margin-top: 0; }
  .client > .media, .strip > .media { width: 100%; }
  .strip > .client-shot--phone { width: 240px; }
  .teaching__list { margin-top: 0; }
  .teaching__list li:first-child { border-top: 0; padding-top: 0; }
}

/* Products: text entries pair up in two columns, so no half row stays empty. */
@media (min-width: 1024px) {
  .entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .entries > .entry--flagship, .entries > .shelf { grid-column: 1 / -1; }
  .entries > .entry--evidence { display: flex; }
  .entries > .entry--evidence > * { grid-column: auto; }
  /* A text entry alone after a flagship uses both columns: name left, story right. */
  .entries > .entry--flagship + .entry--evidence:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 8px 24px; align-content: start; }
  .entries > .entry--flagship + .entry--evidence:last-child > * { grid-column: 2; margin-top: 0; }
  .entries > .entry--flagship + .entry--evidence:last-child > .entry__head { grid-column: 1; grid-row: 1 / span 4; }
  .entries > .entry--flagship + .entry--evidence:last-child .entry__name { font-size: 1.5rem; line-height: 2rem; }
  /* A flagship with a phone screen: text sits next to the phone, not in the far column. */
  .entry--flagship:has(.media--phone.media--first) .entry__text { grid-column: 4 / 10; padding-top: 24px; }
  .entry--flagship:has(.media--phone.media--first) .entry__name { font-size: 1.875rem; line-height: 2.25rem; }
  .entry--flagship:has(.media--phone.media--first) .entry__desc { font-size: 1.125rem; line-height: 1.75rem; }
}

/* iPhone 14 Pro Max frame (430 x 932 screen) for phone screens. */
.media--phone, .client-shot--phone { container-type: inline-size; }
.media--phone .media__frame, .client-shot--phone .zoom {
  position: relative; padding: 3.4cqi; border-radius: 15cqi;
  background: var(--ink); box-shadow: 0 0 0 1px var(--line-strong), 0 12px 32px -16px rgb(16 17 20 / 0.45);
}
.media--phone .media__frame::after, .client-shot--phone .zoom::after {
  content: ''; position: absolute; top: 5.6cqi; left: 50%; width: 27cqi; height: 7.6cqi;
  transform: translateX(-50%); border-radius: 9999px; background: #000; pointer-events: none;
}
.media--phone .media__frame img {
  display: block; aspect-ratio: 430 / 932; object-fit: cover; object-position: top center;
  border-radius: 11.6cqi; box-shadow: none; background: var(--paper);
}
/* A partial screen sits in the top of the frame, and the frame fades out below it. */
.client-shot--phone .zoom { padding-bottom: 0; border-end-start-radius: 0; border-end-end-radius: 0; box-shadow: none;
  -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.client-shot--phone .zoom img { display: block; border-radius: 11.6cqi 11.6cqi 0 0; box-shadow: none; }
/* Phone and tablet: one column, and the chapter call comes after the chapter content. */
@media (max-width: 1023px) {
  .chapter { display: flex; flex-direction: column; }
  .chapter__side { display: contents; }
  .chapter__side > .sell { order: 9; margin-top: 24px; }
  .chapter__body { order: 5; }
}
/* Desktop: every entry in a product grid starts on the same rule line, so pairs align. */
@media (min-width: 1024px) {
  .entries { row-gap: 0; }
  .entries > *, .entries > * + *, .entries > .shelf,
  .entries--lab > *, .entries--lab > * + *, .entries--lab > :nth-child(n + 3) {
    margin-top: 0; padding-block: calc(var(--entry-gap) / 2); border-top: 1px solid var(--line);
  }
  .entries > :first-child { border-top: 0; padding-top: 0; }
  .entries--lab > :nth-child(-n + 2) { border-top: 0; padding-top: 0; }
}
/* Desktop: a client phone screen stays readable (E19: 0.6 of its natural width or more). */
@media (min-width: 1024px) { .strip > .client-shot--phone { width: 340px; } }
/* Desktop: a flagship with a wide screen and a phone screen puts both next to the text in one row. */
@media (min-width: 1024px) {
  .entry--flagship:has(.media--phone.media--second) .media--first { grid-column: 1 / 7; grid-row: 1; }
  .entry--flagship:has(.media--phone.media--second) .media--second { grid-column: 7 / 9; grid-row: 1; width: auto; margin-top: 0; }
  .entry--flagship:has(.media--phone.media--second) .entry__text { grid-column: 9 / 13; grid-row: 1; }
}

/* ---------- Mintlify pass, 10 Nov 2026 (spec 15) ---------- */
/* One centred column (1088 px of content) with thin side rails, and rule lines between sections. */
@media (min-width: 1024px) {
  main > *, .foot { padding-inline: max(32px, calc((100% - 1088px) / 2)); }
  /* rails as a border-only overlay, not a background image: contrast checks read real backgrounds */
  main { position: relative; }
  main::after { content: ''; position: absolute; inset: 0 max(0px, calc(50% - 560px));
    border-inline: 1px solid var(--line); pointer-events: none; }
  main > section + section, main > .story + section, main > .tagline + section { border-top: 1px solid var(--line); }
  .tagline { border-top: 1px solid var(--line); }
}
/* Buttons: ink, small corners, medium weight. */
.btn { border-radius: 6px; font-weight: 500; }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--ink-2); }
/* Two tone heads: the label in ink, the line under it in grey and nearly as large. */
@media (min-width: 1024px) {
  .section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: end; }
  .section-head h2, .about .section-head h2, .section-head .dek, .about .section-head .dek { grid-column: 1; }
  .section-head .dek { max-width: 44rem; padding-top: 0; font-size: 1.875rem; line-height: 2.375rem; font-weight: 500; letter-spacing: -0.02em; color: var(--ink-3); text-wrap: balance; }
  .section-head__action { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
  .about .section-head { grid-template-columns: minmax(0, 1fr) auto; }
}
.section-head__action { margin-top: 8px; }
.hero__claim .claim__more { color: var(--ink-3); }

/* Trust strip: the company names in one quiet row. */
.trust-line { font-size: 0.875rem; }
@media (min-width: 1024px) { .trust-line { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); max-width: none; } }

/* Achievements: a row of large numbers on rule lines. */
.achievements { padding-top: var(--sec); padding-bottom: 8px; }
.achievements .results { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 0; list-style: none; padding: 0; }
@media (min-width: 640px) {
  .achievements .results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding-top: 0; border-top: 1px solid var(--line); }
  .achievements .proof__item { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
}
@media (min-width: 1024px) {
  .achievements .results { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .achievements .proof__item { padding: 32px 24px 32px 0; }
  .achievements .proof__item:not(:nth-child(4n + 1)) { padding-left: 24px; border-left: 1px solid var(--line); }
  .achievements .proof__value { font-size: 2.5rem; line-height: 2.75rem; letter-spacing: -0.03em; }
}

/* Build with me teaser: the heading left, the three offers on rule lines right. */
.teaser { padding-block: var(--sec); display: grid; gap: 24px; }
.teaser h2 { font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.03em; }
.teaser .dek { margin-top: 8px; }
.teaser__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.teaser__list { border-top: 1px solid var(--line); }
.teaser__row a { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.teaser__row a:hover .teaser__title { text-decoration: underline; }
.teaser__title { font-size: 1.125rem; line-height: 1.75rem; font-weight: 500; }
.teaser__price { color: var(--ink-2); white-space: nowrap; }
@media (min-width: 1024px) {
  .teaser { grid-template-columns: 5fr 6fr; column-gap: 64px; align-items: start; }
  .teaser h2 { font-size: 3rem; line-height: 1; }
  .teaser .dek { font-size: 1.5rem; line-height: 2rem; font-weight: 500; color: var(--ink-3); }
}

/* Sub pages (work, work with me): a page head like the home sections. */
.page-head { padding-top: 48px; padding-bottom: 32px; }
.page-head__kicker { font-size: 0.875rem; color: var(--ink-2); }
.page-head__kicker a { color: inherit; }
.page-head__title { margin-top: 8px; font-size: 2.75rem; line-height: 1; letter-spacing: -0.04em; }
.page-head__dek { margin-top: 16px; max-width: 44rem; font-size: 1.25rem; line-height: 1.75rem; color: var(--ink-3); font-weight: 500; }
@media (min-width: 1024px) {
  .page-head { padding-top: 96px; padding-bottom: 48px; }
  .page-head__title { font-size: 4rem; }
  .page-head__dek { font-size: 1.875rem; line-height: 2.375rem; letter-spacing: -0.02em; }
}
.page-wwm .wwm { padding-top: 0; }

/* ---------- 10 Nov 2026: All work marketplace + product pages (spec 14) ---------- */
.filters { display: grid; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.filters[hidden] { display: none; }
.filters__top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.filters__search { flex: 1 1 260px; }
.filters__search input {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 6px;
  font: 400 1rem/1.5rem var(--font); color: var(--ink); background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.filters__search input::placeholder { color: var(--ink-3); }
.filters__search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.filters__sort { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--ink-2); }
.filters__sort select {
  min-height: 44px; padding: 8px 12px; border: 0; border-radius: 6px; background: var(--card);
  font: 500 0.875rem/1.25rem var(--font); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong);
}
.filters__group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; border: 0; padding: 0; margin: 0; min-width: 0; }
.filters__legend { float: left; width: 64px; font-size: 0.875rem; font-weight: 600; color: var(--ink); padding: 0; }
.opt { position: relative; display: inline-flex; align-items: baseline; gap: 4px; min-height: 32px; padding: 4px 0; cursor: pointer; font-size: 0.9375rem; color: var(--ink-2); }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt__n { font-size: 0.75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.opt:has(input:checked) { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.work__count { margin-top: 16px; font-size: 0.875rem; color: var(--ink-2); }

.work__list { display: grid; grid-template-columns: 1fr; gap: 40px 32px; margin-top: 24px; }
@media (min-width: 640px) { .work__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .work__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; } }
.work__list > .card[hidden] { display: none; }
.card { display: flex; flex-direction: column; gap: 16px; padding: 0; margin: 0; border: 0; min-width: 0; }
.card__link-art { display: block; border-radius: 8px; text-decoration: none; }
.card__link-art:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card__art {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--sunk);
  display: flex; align-items: center; justify-content: center;
}
.card__art > div:not(.media--phone) { width: 100%; height: 100%; }
.card__art > div:not(.media--phone) .media__frame { width: 100%; height: 100%; border-radius: 0; }
.card__art > div:not(.media--phone) img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card__art--phone { align-items: flex-start; }
.card__art--phone .media--phone { width: 46%; margin-top: 8%; }
.card__art--type { align-items: flex-end; justify-content: flex-start; padding: 20px; }
.card__art--type span { font-size: 2rem; line-height: 2.25rem; font-weight: 500; letter-spacing: -0.03em; color: var(--ink); max-width: 16ch; }
.card__art--code { background: var(--ink); }
.card__art--code span { color: var(--paper); font-family: var(--mono, ui-monospace, monospace); font-size: 1.125rem; }
@media (hover: hover) {
  .card__link-art .card__art img { transition: transform var(--dur-rise) var(--ease-out); }
  .card:hover .card__link-art .card__art img { transform: scale(1.02); }
}
.card__body { display: grid; gap: 8px; align-content: start; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 0.8125rem; line-height: 1.25rem; color: var(--ink-2); }
.card__meta .badge { font-size: 0.8125rem; }
.work-item__type { font-weight: 600; color: var(--ink); }
.card__name { font-size: 1.25rem; line-height: 1.75rem; letter-spacing: -0.01em; font-weight: 600; margin: 0; }
.card__name a { color: inherit; text-decoration: none; }
.card__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card .entry__tag { font-size: 1rem; line-height: 1.5rem; color: var(--ink-2); margin: 0; }
.card .entry__proof { font-size: 0.875rem; line-height: 1.375rem; color: var(--ink-2); margin: 0; }
.card__actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin-top: 4px; font-size: 0.875rem; }
.card__more { font-weight: 600; color: var(--ink); }
.work__empty { margin-top: 40px; padding: 32px 0; border-top: 1px solid var(--line); }
.work__empty[hidden] { display: none; }

/* product page */
.detail__head .page-head__title .badge { font-size: 1rem; margin-left: 12px; vertical-align: middle; }
.detail__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.detail__actions .cta { min-height: 44px; }
.detail { display: grid; gap: 40px; padding-top: 40px; padding-bottom: 56px; border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .detail { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } .detail__text { position: sticky; top: 96px; } }
.detail__desc { font-size: 1.125rem; line-height: 1.75rem; color: var(--ink); max-width: 40rem; }
.detail__proof { margin-top: 16px; color: var(--ink-2); }
.detail__facts { margin-top: 32px; display: grid; border-top: 1px solid var(--line); }
.detail__fact { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.detail__fact dt { color: var(--ink-2); }
.detail__fact dd { margin: 0; color: var(--ink); }
.detail__def { display: block; color: var(--ink-2); font-size: 0.875rem; }
.detail__gallery { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.detail__shot { margin: 0; flex: 1 1 100%; }
.detail__shot.media--phone { flex: 0 1 260px; width: 260px; }
.detail__more { padding-top: 48px; padding-bottom: 64px; border-top: 1px solid var(--line); }
.detail__more > h2 { font-size: 1.875rem; line-height: 2.25rem; letter-spacing: -0.02em; font-weight: 500; }
.detail__more > p { margin-top: 40px; }
.card__art .media--phone .media__frame img { aspect-ratio: auto; height: auto; object-fit: initial; }
/* a lone card on the last row takes the whole row (work.js sets card--wide) */
@media (min-width: 640px) {
  .work__list > .card--wide { grid-column: 1 / -1; flex-direction: row; gap: 32px; align-items: start; }
  .work__list > .card--wide > .card__link-art { flex: 0 0 calc((100% - 32px) / 2); }
  .work__list > .card--wide > .card__body { flex: 1 1 0; padding-top: 8px; }
}
@media (min-width: 1024px) { .work__list > .card--wide > .card__link-art { flex-basis: calc((100% - 64px) / 3); } }
@media (max-width: 639px) {
  .filters__group { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; gap: 20px; }
  .filters__group::-webkit-scrollbar { display: none; }
  .filters__legend { float: none; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .opt { flex: 0 0 auto; white-space: nowrap; }
  .filters__sort { margin-left: auto; }
  .work__list { gap: 28px; }
  .work__list > .card { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: start; }
  .card .card__art { aspect-ratio: 1; border-radius: 6px; }
  .card__art--type { padding: 10px; }
  .card__art--type span { font-size: 1rem; line-height: 1.25rem; letter-spacing: -0.01em; }
  .card__art--code span { font-size: 0.75rem; line-height: 1rem; word-break: break-all; }
  .card__art--phone .media--phone { width: 64%; margin-top: 10%; }
  .card__name { font-size: 1.125rem; line-height: 1.5rem; }
  .card .entry__tag { font-size: 0.9375rem; line-height: 1.375rem; }
}
/* 10 Nov 2026: the hero proof row and trust line stay inside the first 900 px at 1440 (E03) */
@media (min-width: 1024px) {
  .hero__claim { font-size: 2rem; line-height: 2.375rem; }
  .hero .proof { gap: 20px; }
  .hero .proof__value { font-size: 1.875rem; line-height: 2.25rem; white-space: nowrap; letter-spacing: -0.02em; }
  .hero .proof__caption { font-size: 0.8125rem; line-height: 1.125rem; margin-top: 4px; }
  .hero { padding-top: 16px; }
  .hero .proof { margin-top: 16px; }
  .hero .trust-line { margin-top: 16px; padding-top: 12px; }
  .hero__sub { margin-top: 12px; }
}
