/* OIAIO — Dan Wynick portfolio */
:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --panel: #151517;
  --line: rgba(242, 239, 232, .09);
  --line-2: rgba(242, 239, 232, .16);
  --ink: #f2efe8;
  --ink-2: #b9b5ac;
  --ink-3: #7d7a73;
  --heat-0: #1b0b3a;
  --heat-1: #5b1a8c;
  --heat-2: #c42d7a;
  --heat-3: #ff6a2b;
  --heat-4: #ffc24a;
  --accent: #ff6a2b;
  --thermal: linear-gradient(90deg, var(--heat-1), var(--heat-2) 40%, var(--heat-3) 70%, var(--heat-4));
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --r: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
b { font-weight: 600; color: var(--ink); }
em { font-style: italic; }
.mono { font-family: var(--mono); font-size: .78em; letter-spacing: .02em; }
::selection { background: var(--accent); color: #140600; }
:focus-visible { outline: 2px solid var(--heat-4); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ───────── NAV ───────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; object-fit: contain; transition: transform 1.6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(360deg); }
.brand-word { font: 500 15px/1 var(--mono); letter-spacing: .32em; }
.nav nav { display: flex; gap: clamp(10px, 2.4vw, 30px); align-items: center; }
.nav nav a { text-decoration: none; font-size: 14px; color: var(--ink-2); transition: color .2s; }
.nav nav a:hover { color: var(--ink); }
.nav .nav-cta { color: var(--ink); padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 99px; }
.nav .nav-cta:hover { border-color: var(--ink); }
@media (max-width: 640px) {
  .nav nav a:not(.nav-cta) { display: none; }
}

/* ───────── HERO ───────── */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 9vh, 120px) var(--gutter) 56px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: center;
}
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; font: 400 13px/1.3 var(--mono); letter-spacing: .04em; color: var(--ink-2); text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 106, 43, .18); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(255, 106, 43, 0); } }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1 {
  font: 400 clamp(46px, 7.2vw, 104px)/.98 var(--serif);
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 em, h2 em {
  background: var(--thermal); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.lede { max-width: 34em; margin: 30px 0 0; font-size: clamp(17px, 1.35vw, 19px); color: var(--ink-2); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 99px; text-decoration: none;
  font: 500 15px/1 var(--sans);
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--heat-4); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* thermal */
.thermal { margin: 0; }
.thermal-frame {
  position: relative; isolation: isolate;
  aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden;
  background: #07040f;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -40px rgba(196, 45, 122, .45), 0 0 0 6px rgba(242, 239, 232, .02);
  cursor: crosshair; touch-action: pan-y;
}
.thermal-frame canvas { width: 100%; height: 100%; image-rendering: auto; }
.thermal-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .14) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
.thermal-hud {
  position: absolute; left: 14px; right: 14px; top: 12px; z-index: 2;
  display: flex; justify-content: space-between;
  font: 500 11px/1 var(--mono); letter-spacing: .14em; color: rgba(255, 255, 255, .82);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.reticle {
  position: absolute; z-index: 2; width: 46px; height: 46px; margin: -23px 0 0 -23px; left: 50%; top: 50%;
  border: 1.5px solid rgba(255, 255, 255, .9); border-radius: 4px; pointer-events: none;
  transition: left .12s linear, top .12s linear;
}
.reticle::before, .reticle::after { content: ""; position: absolute; background: rgba(255, 255, 255, .9); }
.reticle::before { left: 50%; top: -8px; bottom: -8px; width: 1.5px; margin-left: -.75px; clip-path: polygon(0 0, 100% 0, 100% 14px, 0 14px, 0 calc(100% - 14px), 100% calc(100% - 14px), 100% 100%, 0 100%); }
.reticle::after { top: 50%; left: -8px; right: -8px; height: 1.5px; margin-top: -.75px; clip-path: polygon(0 0, 14px 0, 14px 100%, 0 100%, 0 0, calc(100% - 14px) 0, 100% 0, 100% 100%, calc(100% - 14px) 100%); }
.reticle span {
  position: absolute; left: calc(100% + 10px); top: -4px; white-space: nowrap;
  font: 500 13px/1 var(--mono); color: #fff; background: rgba(0, 0, 0, .55); padding: 5px 7px; border-radius: 4px;
}
.thermal figcaption { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.thermal figcaption .mono { color: var(--ink-2); font-size: 12.5px; margin-right: 4px; }

/* stats */
.stats {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat { padding: 28px 24px 40px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 400 clamp(40px, 4.6vw, 64px)/1 var(--serif); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-3); max-width: 18em; }

/* ───────── SECTIONS ───────── */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--gutter) 0; }
.section-head { margin-bottom: clamp(40px, 6vw, 80px); max-width: 760px; }
.kicker { margin: 0 0 18px; font: 400 12.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
h2 { font: 400 clamp(40px, 5.6vw, 76px)/1 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.section-sub { margin: 20px 0 0; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }

/* case studies */
.case {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(36px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
}
.case-flip { grid-template-columns: 1fr 1.35fr; }
.case-flip .case-media { order: 2; }
.case-num { margin: 0 0 14px; font: 400 13px/1 var(--mono); color: var(--ink-3); }
.case h3, .case-mini h3 { font: 400 clamp(34px, 3.6vw, 52px)/1.02 var(--serif); letter-spacing: -.01em; display: flex; align-items: center; gap: 14px; }
.app-icon { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 1px var(--line-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 22px; }
.tags span { font: 400 12px/1 var(--mono); padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--ink-2); }
.case-copy > p:not(.case-num):not(.tags), .mini-copy p:not(.case-num) { color: var(--ink-2); margin: 0; text-wrap: pretty; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { min-width: 0; }
.facts dt { font: 400 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.facts dd { margin: 0; font-size: 15px; color: var(--ink); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; padding-bottom: 3px; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.link:hover { background-size: 100% 1.5px; color: #fff; }
.link span { transition: transform .3s var(--ease); }
.link:hover span { transform: translate(2px, -2px); }

/* browser frames */
.browser {
  position: relative; isolation: isolate;
  border-radius: var(--r); overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .9), 0 30px 80px -40px rgba(91, 26, 140, .5);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.case:hover .browser:not(.browser-float), .case-mini:hover .browser { transform: translateY(-4px); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #1b1b1e; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a3f; }
.browser-bar span { margin: 0 auto; transform: translateX(-20px); font: 400 11.5px/1 var(--mono); color: var(--ink-3); padding: 5px 14px; border-radius: 6px; background: rgba(255, 255, 255, .04); }
.browser-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.browser-view img { width: 100%; height: auto; transform: translateY(0); transition: transform 1.2s var(--ease); will-change: transform; }
.browser-view.still img { height: 100%; object-fit: cover; object-position: top left; }
.browser[data-scroll]::after {
  content: "Hover to scroll"; position: absolute; right: 12px; bottom: 12px; z-index: 2;
  font: 400 11px/1 var(--mono); padding: 7px 10px; border-radius: 99px;
  background: rgba(10, 10, 11, .72); color: var(--ink-2); border: 1px solid var(--line-2);
  backdrop-filter: blur(6px); transition: opacity .3s;
}
.browser[data-scroll].scrolling::after { opacity: 0; }

.stack { position: relative; padding-bottom: 16%; }
.stack .browser-float { position: absolute; width: 56%; right: -4%; bottom: 0; z-index: 2; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .9); }
.case-flip .stack .browser-float { right: auto; left: -4%; }
.stack .browser-float .browser-view { aspect-ratio: 16 / 10; }

/* phones */
.phones { position: relative; display: flex; justify-content: center; align-items: center; min-height: 520px; padding: 20px 0; }
.phones::before { content: ""; position: absolute; inset: 10% 8%; background: radial-gradient(closest-side, rgba(255, 106, 43, .35), rgba(196, 45, 122, .18) 50%, transparent 75%); filter: blur(30px); z-index: -1; }
.phone {
  width: 32%; max-width: 230px; height: auto; border-radius: 26px;
  border: 5px solid #1d1d20; box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -30px rgba(0, 0, 0, .9);
  transition: transform .8s var(--ease);
}
.phone.p1 { transform: translate(14%, 4%) rotate(-7deg); }
.phone.p2 { position: relative; z-index: 2; transform: translateY(-4%); width: 35%; }
.phone.p3 { transform: translate(-14%, 4%) rotate(7deg); }
.case-app:hover .phone.p1 { transform: translate(4%, 2%) rotate(-10deg); }
.case-app:hover .phone.p3 { transform: translate(-4%, 2%) rotate(10deg); }
.case-app:hover .phone.p2 { transform: translateY(-7%); }

.case-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); padding: clamp(36px, 5vw, 64px) 0 0; border-top: 1px solid var(--line); }
.mini-copy { padding-top: 28px; }
.mini-copy h3 { margin-bottom: 14px; }
.mini-copy .link { margin-top: 20px; }

/* lifecycle */
.lifecycle { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.life-copy > p:not(.kicker) { color: var(--ink-2); margin: 24px 0 0; text-wrap: pretty; }
.life-stats { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.life-stats li { background: var(--bg); padding: 22px; }
.life-stats b { display: block; font: 400 40px/1 var(--serif); background: var(--thermal); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.life-stats span { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.life-media { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; height: 680px; overflow: hidden; mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent); }
.email-col { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); align-self: start; animation: drift 38s linear infinite alternate; }
.email-col.offset { animation-duration: 46s; animation-direction: alternate-reverse; margin-top: 60px; }
.email-col img { width: 100%; }
@keyframes drift { to { transform: translateY(calc(-100% + 600px)); } }

/* films */
.film-feature, .film { all: unset; box-sizing: border-box; position: relative; display: block; cursor: pointer; overflow: hidden; border-radius: var(--r); background: #000; border: 1px solid var(--line-2); isolation: isolate; }
.film-feature:focus-visible, .film:focus-visible { outline: 2px solid var(--heat-4); outline-offset: 4px; }
.film-feature { aspect-ratio: 16 / 9; width: 100%; margin-bottom: 18px; }
.film-feature video, .film video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.film-feature:hover video, .film:hover video { transform: scale(1.03); }
.film-feature::after, .film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .8)); pointer-events: none; }
.film-feature.playing .film-meta, .film-feature.playing::after { opacity: 0; }
.film-meta, .film-feature::after { transition: opacity .5s var(--ease); }
.film-meta { position: absolute; left: clamp(18px, 3vw, 36px); bottom: clamp(18px, 3vw, 32px); z-index: 2; display: grid; gap: 8px; max-width: 520px; }
.film-meta .mono { color: var(--heat-4); }
.film-meta strong { font: 400 clamp(30px, 4vw, 56px)/1 var(--serif); }
.film-meta span:last-child { color: var(--ink-2); font-size: 15px; }
.play { position: absolute; right: clamp(18px, 3vw, 36px); bottom: clamp(18px, 3vw, 32px); z-index: 2; width: 64px; height: 64px; border-radius: 50%; background: var(--ink); transition: transform .3s var(--ease), background-color .3s; }
.play::before { content: ""; position: absolute; left: 26px; top: 21px; border-left: 16px solid var(--bg); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.film-feature:hover .play { transform: scale(1.1); background: var(--heat-4); }
.film-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.film { aspect-ratio: 9 / 16; }
.film-cap { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: grid; gap: 4px; }
.film-cap strong { font: 400 21px/1.05 var(--serif); }
.film-cap span { font: 400 11px/1.2 var(--mono); color: var(--ink-2); }

.lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 1200px); max-height: 90vh; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 5, 6, .9); backdrop-filter: blur(8px); }
.lightbox video { max-width: min(92vw, 1200px); max-height: 86vh; border-radius: 12px; background: #000; }
.lb-close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }

/* print & collateral: a light table, the one bright surface on the page */
.light-table {
  --paper: #ece8df; --paper-2: #e2ddd2; --paper-ink: #1a1814; --paper-ink-2: #6b665c;
  background: var(--paper); color: var(--paper-ink);
  border-radius: calc(var(--r) + 6px); padding: clamp(18px, 3vw, 36px);
  background-image: radial-gradient(rgba(26, 24, 20, .07) 1px, transparent 1px); background-size: 18px 18px;
}
.lt-label { margin: 0 0 16px; color: var(--paper-ink-2); letter-spacing: .1em; text-transform: uppercase; font-size: 11.5px; }
.sheet-grid + .lt-label { margin-top: clamp(32px, 4vw, 48px); }
.sheet-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 16px; }
.sheet { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.sheet.w2 { grid-column: span 2; }
.sheet.t2 { grid-row: span 2; }
.sheet-art {
  all: unset; box-sizing: border-box; flex: 1; min-height: 0; cursor: zoom-in;
  display: flex; gap: 10px; align-items: center; justify-content: center;
  padding: 14px; border-radius: 10px; background: var(--paper-2);
  transition: background-color .3s;
}
.sheet-art:focus-visible { outline: 2px solid var(--paper-ink); outline-offset: 3px; }
.sheet-art img {
  max-width: 100%; max-height: 100%; min-width: 0; object-fit: contain;
  box-shadow: 0 1px 2px rgba(26, 24, 20, .18), 0 14px 30px -14px rgba(26, 24, 20, .45);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.sheet-art.multi img { max-width: calc(50% - 5px); }
.sheet-art:hover { background: #d9d3c6; }
.sheet-art:hover img { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 2px 4px rgba(26, 24, 20, .16), 0 26px 40px -16px rgba(26, 24, 20, .5); }
.sheet-art.multi:hover img + img { transform: translateY(-4px) rotate(.8deg); }
.sheet figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 2px 0; }
.sheet figcaption b { font-weight: 500; font-size: 14px; color: var(--paper-ink); }
.sheet figcaption span { font: 400 11px/1.3 var(--mono); color: var(--paper-ink-2); text-align: right; }

.zoom { max-width: min(94vw, 1400px); }
.zoom-art { display: flex; gap: 14px; justify-content: center; align-items: center; }
.zoom-art img { max-width: min(92vw, 1300px); max-height: 82vh; object-fit: contain; border-radius: 6px; background: #fff; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
.zoom-art.multi img { max-width: min(45vw, 640px); }
.zoom-cap { margin: 14px 0 0; text-align: center; font: 400 13px/1.4 var(--mono); color: var(--ink-2); }

/* tools */
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tool {
  position: relative; display: flex; flex-direction: column; text-decoration: none;
  border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s, background-color .3s;
}
.tool:hover { transform: translateY(-5px); border-color: var(--line-2); background: var(--panel); }
.tool img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); transition: transform .8s var(--ease); }
.tool:hover img { transform: scale(1.04); }
.tool-type { position: absolute; top: 12px; left: 12px; font: 400 11px/1 var(--mono); padding: 6px 9px; border-radius: 99px; background: rgba(10, 10, 11, .78); border: 1px solid var(--line-2); color: var(--ink-2); backdrop-filter: blur(6px); }
.tool h3 { font: 500 17px/1.25 var(--sans); padding: 18px 18px 0; display: flex; justify-content: space-between; gap: 8px; }
.tool h3::after { content: "↗"; color: var(--ink-3); transition: color .3s, transform .3s var(--ease); }
.tool:hover h3::after { color: var(--accent); transform: translate(2px, -2px); }
.tool p { margin: 8px 0 0; padding: 0 18px 20px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }

.also { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.also ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.also b { display: block; font: 400 24px/1.1 var(--serif); font-weight: 400; margin-bottom: 8px; }
.also span { font-size: 14px; line-height: 1.5; color: var(--ink-3); }

/* ai */
.ai-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ai-card { background: var(--bg); padding: 28px 24px 32px; transition: background-color .3s; }
.ai-card:hover { background: var(--bg-2); }
.ai-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--accent); margin-bottom: 26px; }
.ai-card h3 { font: 500 18px/1.25 var(--sans); margin-bottom: 10px; }
.ai-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }

/* about */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); }
.about-copy > p:not(.kicker) { color: var(--ink-2); margin: 24px 0 0; max-width: 34em; text-wrap: pretty; }
.timeline { list-style: none; margin: 0; padding: 0; align-self: end; }
.timeline li { display: grid; grid-template-columns: 112px 1fr; column-gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.t-when { grid-row: span 2; color: var(--ink-3); padding-top: 4px; }
.timeline b { font-weight: 500; }
.timeline li > span:last-child { font-size: 14px; color: var(--ink-3); }

/* contact */
.contact { position: relative; isolation: isolate; margin-top: clamp(100px, 14vw, 180px); padding: clamp(90px, 14vw, 180px) var(--gutter); text-align: center; overflow: hidden; border-top: 1px solid var(--line); }
.contact canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .55; filter: blur(2px) saturate(1.2); }
.contact::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(10, 10, 11, .35), var(--bg) 78%); }
.contact-inner { max-width: 820px; margin: 0 auto; }
.contact h2 { font-size: clamp(52px, 8.5vw, 120px); }
.contact p:not(.kicker) { color: var(--ink-2); margin: 24px auto 0; max-width: 30em; }
.contact .hero-actions { justify-content: center; }

.foot { max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.tool-grid .reveal:nth-child(4n+2), .film-row .reveal:nth-child(6n+2), .ai-grid .reveal:nth-child(2) { transition-delay: .07s; }
.tool-grid .reveal:nth-child(4n+3), .film-row .reveal:nth-child(6n+3), .ai-grid .reveal:nth-child(3) { transition-delay: .14s; }
.tool-grid .reveal:nth-child(4n+4), .film-row .reveal:nth-child(6n+4), .ai-grid .reveal:nth-child(4) { transition-delay: .21s; }
.film-row .reveal:nth-child(6n+5) { transition-delay: .28s; }
.film-row .reveal:nth-child(6n+6) { transition-delay: .35s; }

/* ───────── RESPONSIVE ───────── */
@media (max-width: 1080px) {
  .sheet-grid { grid-template-columns: repeat(3, 1fr); }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .film-row { grid-template-columns: repeat(3, 1fr); }
  .ai-grid, .also ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .case, .lifecycle, .about { grid-template-columns: 1fr; }
  .case-flip { grid-template-columns: 1fr; }
  .case-flip .case-media { order: 0; }
  .case-pair { grid-template-columns: 1fr; }
  .stack .browser-float { right: -2%; }
  .case-flip .stack .browser-float { left: auto; right: -2%; }
  .life-media { height: 520px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .sheet-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 10px; }
  .sheet figcaption { flex-direction: column; gap: 2px; }
  .sheet figcaption span { text-align: left; }
  .zoom-art { flex-direction: column; }
  .zoom-art.multi img { max-width: 92vw; max-height: 40vh; }
  .tool-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tool h3 { font-size: 15px; padding: 14px 14px 0; }
  .tool p { padding: 0 14px 16px; font-size: 13px; }
  .film-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ai-grid, .also ul { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .life-stats { grid-template-columns: 1fr; }
  .phones { min-height: 380px; }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 12px; }
  .stat:nth-child(3) { padding-left: 0; }
  .browser[data-scroll]::after { content: "Tap to scroll"; }
  .play { width: 48px; height: 48px; }
  .play::before { left: 19px; top: 15px; border-left-width: 13px; border-top-width: 9px; border-bottom-width: 9px; }
  .film-meta span:last-child { display: none; }
}
@media (max-width: 420px) {
  .tool-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
