@font-face {
  font-family: Geist;
  src: url("assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #24232b;
  --muted: #696671;
  --accent: #7153b5;
  --accent-light: #f3effb;
  --line: rgba(64, 42, 94, .12);
  --glass: rgba(255, 255, 255, .76);
  --glass-edge: rgba(255, 255, 255, .95);
  --stage: #f7f5fb;
  --width: 1120px;
  --media-width: 960px;
  --reading: 660px;
  --pad: clamp(22px, 5vw, 60px);
  --display: Manrope, -apple-system, BlinkMacSystemFont, sans-serif;
  --body: Geist, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --title: clamp(36px, 4.5vw, 52px);
  --section-title: clamp(27px, 3vw, 32px);
  --sub-title: 23px;
  --body-size: 18px;
  --caption: 13px;
  --ease: cubic-bezier(.22, .68, 0, 1);
}
[data-theme="dark"] {
  color-scheme: dark;
  --paper: #000;
  --ink: #f5f5f7;
  --muted: #b0aeb9;
  --line: rgba(255, 255, 255, .15);
  --glass: rgba(25, 25, 28, .73);
  --glass-edge: rgba(255, 255, 255, .18);
  --stage: #101014;
}
body[data-page="tiktok"] { --accent: #78ece8; --accent-light: #152629; --stage: #111619; }
body[data-page="bytedance"] { --accent: #7451bd; --accent-light: #f0eafa; --stage: #f7f3fc; }
body[data-page="uber"] { --accent: #b4c8fa; --accent-light: #17202e; --stage: #10141b; }
body[data-page="audi"] { --accent: #38557b; --accent-light: #edf2f8; --stage: #f2f4f7; }
body[data-page="safebook"] { --accent: #297449; --accent-light: #eaf5ef; --stage: #f2f7f4; }
body[data-page="index"], body[data-page="about"] { --paper: #fdfcfe; }

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); font-synthesis: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; text-decoration-skip-ink: auto; }
a:hover { text-decoration: underline; text-underline-offset: 5px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
p { overflow-wrap: break-word; }
::selection { background: var(--accent-light); color: var(--accent); }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 24px; padding: 12px; background: var(--paper); }
.skip-link:focus { top: 12px; }
.nav-inner, .site-footer, .home, .article { width: min(var(--width), calc(100% - 2 * var(--pad))); margin-inline: auto; }

/* Glass stays at the navigation; the article's reading surface remains calm. */
.site-nav { position: sticky; top: 0; z-index: 30; height: 68px; background: var(--glass); backdrop-filter: blur(34px) saturate(150%); -webkit-backdrop-filter: blur(34px) saturate(150%); border-bottom: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 -1px 0 rgba(255, 255, 255, .07); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: -.025em; }
.brand:hover { text-decoration: none; }
.brand-flower { font-size: 25px; line-height: 1; color: var(--accent); transition: transform 180ms var(--ease); }
.nav-inner nav { display: flex; gap: 32px; font-size: 14px; }
.nav-inner nav a { position: relative; min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); }
.nav-inner nav a::after { content: ""; position: absolute; inset: auto 0 5px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 150ms var(--ease); }
.nav-inner nav a[aria-current] { color: var(--accent); }
.nav-inner nav a[aria-current]::after { transform: scaleX(1); }
.site-footer { padding: 30px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--caption); display: flex; justify-content: space-between; gap: 20px; }
.site-footer div { display: flex; gap: 26px; }

.home-intro { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: center; padding: 64px 0 68px; }
.intro-copy { position: relative; z-index: 1; }
.home-intro h1 { font-size: clamp(42px, 4.6vw, 62px); line-height: 1.15; font-weight: 650; letter-spacing: -.045em; }
.home-intro h1 span { position: relative; white-space: nowrap; color: var(--accent); }
.home-intro h1 span::after { content: ""; position: absolute; inset: auto 2px -7px; height: 9px; border-bottom: 2px solid #c3b1e3; border-radius: 50%; transform: rotate(-3deg); }
.home-dek { max-width: 590px; margin-top: 24px; font-size: 25px; line-height: 1.5; letter-spacing: -.02em; text-wrap: pretty; }
.home-bio { margin-top: 20px; font-size: 15px; color: var(--muted); line-height: 1.7; }
.intro-contact { margin-top: 20px; }
.hero-companion { position: relative; --turn: 0deg; --lift: 0px; width: 340px; height: 320px; display: grid; place-items: center; }
.companion-art { position: absolute; top: 50%; left: 50%; width: 320px; height: 290px; --companion-scale: 1; transform: translate(-50%, calc(-50% + var(--lift))) rotate(var(--turn)) scale(var(--companion-scale)); transition: transform 220ms var(--ease); }
.pebble { position: absolute; z-index: 2; top: 38px; left: 36px; width: 220px; height: 202px; border-radius: 43% 49% 45% 44%; transform: rotate(-12deg); background: radial-gradient(ellipse at 27% 17%, #f2eaff, transparent 46%), radial-gradient(ellipse at 68% 82%, #ae90d7, transparent 58%), linear-gradient(135deg, #e5d7fa, #c6ade6 68%, #b79bdc); box-shadow: inset 4px 7px 16px rgba(255,255,255,.85), inset -9px -12px 24px rgba(102,67,158,.15), 0 24px 34px -27px rgba(101,72,142,.3); }
.pebble-face { position: absolute; top: 95px; left: 77px; width: 68px; transform: rotate(8deg); color: #514163; }
.pebble-eyes { display: flex; justify-content: space-between; }
.pebble-eyes i { display: block; width: 18px; height: 8px; border-bottom: 3px solid currentColor; border-radius: 50%; }
.pebble-smile { display: block; width: 21px; height: 12px; border-bottom: 3px solid currentColor; border-radius: 50%; margin: 10px auto 0; }
.glass-orb { position: absolute; z-index: 3; right: 21px; bottom: 49px; width: 74px; height: 74px; border-radius: 50%; border: 1px solid rgba(255,255,255,.8); background: radial-gradient(circle at 28% 20%, rgba(255,255,255,.95) 0, rgba(255,255,255,.05) 28%), radial-gradient(circle at 73% 72%, rgba(126,218,227,.32), transparent 62%), linear-gradient(145deg, rgba(255,255,255,.38), rgba(206,216,247,.16)); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); box-shadow: inset 2px 3px 7px rgba(255,255,255,.8), inset -4px -4px 8px rgba(158,155,208,.2), 0 9px 20px -10px rgba(100,91,146,.25); }
.pebble-shadow { position: absolute; z-index: 0; bottom: 10px; left: 25px; width: 255px; height: 24px; border-radius: 50%; background: radial-gradient(ellipse, rgba(153,124,187,.13), transparent 68%); }
.companion-spark { position: absolute; top: 52px; right: 16px; color: #a78bd0; font-size: 38px; transform: rotate(-12deg); transition: transform 220ms var(--ease); }
.selected-work { padding-bottom: 64px; }
.selected-work > h2 { display: flex; align-items: center; gap: 20px; font-size: 16px; font-weight: 650; margin-bottom: 30px; }
.selected-work > h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.project-grid { display: grid; gap: 42px; }
.project { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 46px; align-items: center; padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.project:last-child { border-bottom: 0; padding-bottom: 0; }
.project-image-link { display: block; overflow: hidden; border-radius: 16px; background: var(--stage); aspect-ratio: 1.95; outline: 1px solid rgba(0,0,0,.035); outline-offset: -1px; transition: transform 160ms var(--ease); }
.project-image-link img { width: 100%; height: 100%; object-fit: contain; transition: transform 220ms var(--ease); }
.project-copy { min-width: 0; }
.project-label { font-size: var(--caption); font-weight: 500; color: var(--accent); line-height: 1.6; margin-bottom: 16px; }
.project[data-project="tiktok"] .project-label { color: #21736f; }
.project[data-project="uber"] .project-label, .project[data-project="audi"] .project-label { color: #44658d; }
.project[data-project="safebook"] .project-label { color: #297449; }
.project h3 { font-size: 42px; line-height: 1.2; font-weight: 750; letter-spacing: -.04em; }
.project h3 a:hover { text-decoration: none; color: var(--accent); }
.project .project-work-title { font-family: var(--display); font-size: 22px; line-height: 1.45; font-weight: 550; letter-spacing: -.025em; margin-top: 16px; text-wrap: pretty; }
.project .project-description { font-size: 16px; line-height: 1.65; margin-top: 14px; color: var(--muted); text-wrap: pretty; }
.project-read { display: inline-block; font-size: 14px; margin-top: 24px; text-decoration: underline; text-underline-offset: 5px; }
.home-note { max-width: var(--reading); padding: 22px 0 82px; }
.home-note h2 { font-size: var(--section-title); line-height: 1.3; font-weight: 650; letter-spacing: -.03em; }
.home-note p { margin: 20px 0 24px; font-size: var(--body-size); line-height: 1.7; color: var(--muted); }
.story-link, .cta { display: inline-block; font-size: 16px; line-height: 1.7; text-decoration: underline; text-underline-offset: 5px; color: var(--accent); }

.article-header { max-width: var(--reading); margin: 72px auto 38px; }
.article-kicker { font-size: 14px; line-height: 1.6; color: var(--accent); margin-bottom: 22px; font-weight: 500; }
.article-header h1 { font-size: var(--title); line-height: 1.15; letter-spacing: -.04em; font-weight: 650; }
.article-header .company-title { font-size: clamp(48px, 6vw, 76px); line-height: 1.1; font-weight: 750; letter-spacing: -.045em; }
.article-header .article-work-title { margin-top: 22px; font-family: var(--display); font-size: 30px; line-height: 1.35; font-weight: 550; letter-spacing: -.03em; text-wrap: balance; color: var(--ink); }
.article-dek, .article-header > p:not(.article-kicker):not(.byline):not(.article-work-title) { margin-top: 24px; font-size: 20px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.article-header .byline { margin-top: 26px; font-size: 14px; font-weight: 500; }
.project-details { margin-top: 10px; color: var(--muted); font-size: var(--caption); line-height: 1.7; }
.project-details summary { cursor: pointer; width: fit-content; min-height: 34px; padding-block: 6px; color: var(--accent); }
.project-details p { margin-top: 10px; }
.story-section { padding-top: 58px; }
.process-nav { width: min(var(--media-width), 100%); margin: 38px auto 0; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-nav > p { font-family: var(--display); font-size: 16px; font-weight: 650; margin-bottom: 18px; }
.process-nav ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.process-nav a { display: inline-flex; align-items: baseline; gap: 12px; font-size: 14px; line-height: 1.6; }
.process-nav a span { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--accent); }
.story-section .step-number { display: block; color: var(--accent); font-family: var(--body); font-size: 13px; font-weight: 500; letter-spacing: 0; line-height: 1.5; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.story-section .step-insight { color: var(--muted); font-size: 20px; line-height: 1.6; margin-top: -4px; margin-bottom: 26px; text-wrap: pretty; }
.story-section .finding-insight { color: var(--muted); }
.story-section > h2, .story-section > h3, .story-section > p, .story-section > blockquote, .story-section > a { max-width: var(--reading); margin-inline: auto; }
.story-section h2 { font-size: var(--section-title); line-height: 1.35; font-weight: 650; letter-spacing: -.03em; margin-bottom: 24px; }
.story-section h2::before { content: ""; display: block; width: 28px; height: 3px; background: var(--accent); border-radius: 2px; margin-bottom: 20px; opacity: .65; }
.story-section h3 { font-size: var(--sub-title); line-height: 1.4; font-weight: 650; letter-spacing: -.025em; margin-top: 46px; margin-bottom: 18px; }
.story-section p { font-size: var(--body-size); line-height: 1.75; margin-bottom: 22px; }
.story-section strong { font-weight: 600; }
.story-section > a { display: block; width: fit-content; margin-top: 22px; }
.story-media { width: min(var(--media-width), 100%); margin: 36px auto 32px; }
.media-grid { display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); align-items: stretch; gap: 20px; }
.media-item { min-width: 0; display: grid; place-items: center; background: var(--stage); border-radius: 14px; overflow: hidden; padding: 24px; aspect-ratio: 16 / 10; }
.media-item[data-shape="wide"] { aspect-ratio: 2.4; }
.media-item[data-shape="square"], .media-item[data-shape="portrait"] { aspect-ratio: 1.4; }
.media-open { border: 0; border-radius: 8px; padding: 0; background: none; cursor: zoom-in; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 0; min-width: 0; }
.media-item img, .media-item video { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.media-open img { transition: transform 180ms var(--ease); }
.story-media[data-layout="paired"] .media-item { aspect-ratio: 4 / 3; }
.story-media[data-layout="phones"] { max-width: 820px; }
.story-media[data-layout="phones"] .media-item { aspect-ratio: 1 / 2.05; padding: 20px; }
.story-media[data-layout="phones"] img { border-radius: 12px; }
.story-media figcaption { max-width: var(--reading); margin: 14px auto 0; color: var(--muted); font-size: var(--caption); line-height: 1.65; }
.article-cover { max-width: var(--media-width); margin: 0 auto 8px; }
.article-cover .media-grid { aspect-ratio: 16 / 9; background: var(--stage); border-radius: 18px; overflow: hidden; gap: 28px; padding: 34px; }
.article-cover .media-item { aspect-ratio: auto !important; padding: 0; background: transparent; border-radius: 8px; }
.article-cover .media-grid img, .article-cover .media-grid video { max-height: 472px; }
body[data-page="bytedance"] .article-cover .media-grid { padding: 38px 170px; gap: 44px; }
body[data-page="tiktok"] .article-cover .media-grid { background: #05090a; box-shadow: inset 0 0 60px rgba(37,244,238,.035); }
body[data-page="uber"] .article-cover .media-grid { background: #101218; }
.demo-videos { max-width: 820px; }
.demo-videos .media-item { aspect-ratio: 4 / 5 !important; padding: 24px; }
.demo-videos img, .demo-videos video { max-height: 440px; }
.personal-photo { max-width: var(--media-width); }
.personal-photo .media-item { aspect-ratio: 16 / 10; }
.personal-photo img { max-height: 520px; }
.personal-photos .media-item { aspect-ratio: 3 / 4 !important; }
.about-portrait .media-item { aspect-ratio: 16 / 10; }
.about-portrait { max-width: var(--media-width); }
#photography { padding-top: 84px; }
.photography { width: var(--gallery-width, 100vw); max-width: none; margin-inline: calc(50% - var(--gallery-width, 100vw) / 2); margin-top: 38px; margin-bottom: 0; }
.photography-grid { display: grid; gap: 6px; }
.photo-row { display: grid; gap: 6px; align-items: start; }
.photography .media-item { aspect-ratio: auto !important; padding: 0; border-radius: 0; background: none; overflow: hidden; }
.photography .media-open { height: auto; border-radius: 0; }
.photography img { width: 100%; height: auto; max-height: none; border-radius: 0; }
.photography .media-open img { transition: transform 220ms var(--ease); }
.project-logo { max-width: var(--reading); }
.project-logo .media-item { width: 90px; aspect-ratio: 1; padding: 0; background: none; justify-self: start; }
.comparison .media-grid { grid-template-columns: 1fr 40px 1fr; align-items: center; }
.comparison .media-item:nth-child(2) { padding: 0; background: transparent; aspect-ratio: 1; }
.icon-study { max-width: var(--reading); }
.icon-study .media-item { aspect-ratio: 1 !important; padding: 20px; }
.portrait-flow .media-item { aspect-ratio: 1.4; }
.prototype-media .media-grid { grid-template-columns: minmax(0, 1fr) 180px; align-items: center; }
.prototype-media .media-item:last-child { aspect-ratio: 1; padding: 14px; }
blockquote { padding: 16px 0 16px 26px; border-left: 2px solid var(--accent); margin-block: 30px; }
blockquote p { margin-bottom: 12px !important; }
blockquote cite { font-size: var(--caption); font-style: normal; color: var(--muted); }
.next-story { max-width: var(--reading); margin: 76px auto 70px; padding-top: 28px; border-top: 1px solid var(--line); }
.next-story p { font-size: var(--caption); color: var(--accent); margin-bottom: 14px; }
.next-story a { font-family: var(--display); font-size: 27px; font-weight: 650; line-height: 1.35; letter-spacing: -.03em; }
.next-story .next-focus { margin-top: 12px; margin-bottom: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
body[data-page="about"] .article { padding-bottom: 78px; }

.media-lightbox { width: min(1280px, calc(100% - 40px)); max-height: calc(100dvh - 40px); border: 1px solid var(--line); border-radius: 20px; padding: 56px 28px 22px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px rgba(0,0,0,.18); }
.media-lightbox::backdrop { background: rgba(15, 13, 20, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.viewer-close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; background: var(--accent-light); border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: transform 150ms var(--ease); }
.viewer-close svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.viewer-image { display: flex; justify-content: center; }
.viewer-image img { max-height: calc(100dvh - 180px); width: auto; height: auto; object-fit: contain; }
.viewer-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; font-size: var(--caption); line-height: 1.6; color: var(--muted); margin-top: 16px; }
.viewer-caption a { white-space: nowrap; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.photo-controls[hidden] { display: none; }
.media-lightbox.photo-mode { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; padding: 58px 42px 88px; background: #08090b; color: #f5f5f7; box-shadow: none; overflow: hidden; }
.photo-mode .viewer-close { z-index: 2; color: #f5f5f7; background: rgba(255,255,255,.12); }
.photo-mode .viewer-image { height: 100%; align-items: center; touch-action: pan-y; }
.photo-mode .viewer-image img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.photo-mode .viewer-caption { position: absolute; bottom: 20px; inset-inline: 30px; font-size: 12px; color: #b7b9be; }
.photo-mode .viewer-caption a { color: #d9d9df; }
.photo-controls { position: absolute; bottom: 42px; left: 50%; transform: translateX(-50%); display: flex; gap: 26px; align-items: center; }
.photo-controls button { min-width: 68px; min-height: 44px; border: 0; padding: 0; color: #f5f5f7; background: none; cursor: pointer; font-size: 14px; }
.photo-controls button:disabled { opacity: .35; cursor: default; }
.photo-position { font-size: 13px; font-variant-numeric: tabular-nums; color: #b7b9be; white-space: nowrap; }

@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand-flower { transform: rotate(35deg); }
  .nav-inner nav a:hover { color: var(--accent); text-decoration: none; }
  .nav-inner nav a:hover::after { transform: scaleX(1); }
  .project:has(.project-image-link:hover) .project-image-link img { transform: scale(1.025); }
  .project:has(h3 a:hover) .project-image-link img { transform: scale(1.025); }
  .hero-companion:hover .companion-spark { transform: rotate(12deg) scale(1.08); }
  .media-open:hover img { transform: scale(.985); }
  .photography .media-open:hover img { transform: scale(1.015); }
}
.project-image-link:active, .viewer-close:active { transform: scale(.98); }
@media (prefers-reduced-motion: no-preference) {
  .intro-copy { animation: intro-in 300ms var(--ease) both; }
  .hero-companion { animation: intro-in 300ms var(--ease) 60ms both; }
  .media-lightbox[open] { animation: viewer-in 180ms var(--ease); }
}
@keyframes intro-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes viewer-in { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 900px) {
  .home-intro { grid-template-columns: minmax(0, 1fr) 250px; }
  .hero-companion { width: 250px; height: 270px; }
  .companion-art { --companion-scale: .8; }
  .project { gap: 28px; }
  .project h3 { font-size: 36px; }
  .article-cover .media-grid { padding: 26px; }
  body[data-page="bytedance"] .article-cover .media-grid { padding: 28px 100px; gap: 34px; }
}
@media (max-width: 680px) {
  :root { --body-size: 17px; --sub-title: 22px; }
  .site-nav { height: 62px; }
  .brand { font-size: 14px; gap: 7px; }
  .brand-flower { font-size: 22px; }
  .nav-inner nav { gap: 18px; font-size: 13px; }
  .home-intro { display: block; padding: 44px 0 46px; }
  .home-intro h1 { font-size: 40px; max-width: calc(100% - 122px); min-height: 94px; }
  .home-dek { font-size: 22px; margin-top: 22px; }
  .home-bio { font-size: 14px; margin-top: 18px; }
  .intro-contact { margin-top: 18px; }
  .hero-companion { position: absolute; top: 20px; right: -16px; width: 154px; height: 160px; }
  .companion-art { --companion-scale: .48; }
  .companion-spark { top: 24px; right: 4px; font-size: 26px; }
  .selected-work > h2 { margin-bottom: 24px; }
  .project { grid-template-columns: 1fr; gap: 20px; padding-bottom: 30px; }
  .project-grid { gap: 30px; }
  .project-image-link { border-radius: 12px; }
  .project-label { margin-bottom: 10px; }
  .project h3 { font-size: 36px; }
  .project .project-work-title { margin-top: 12px; font-size: 21px; }
  .project .project-description { margin-top: 12px; }
  .project-read { margin-top: 18px; }
  .selected-work { padding-bottom: 44px; }
  .home-note { padding-bottom: 56px; }
  .article-header { margin: 46px auto 30px; }
  .article-kicker { font-size: var(--caption); margin-bottom: 18px; }
  .article-header .article-work-title { font-size: 25px; margin-top: 18px; }
  .article-dek, .article-header > p:not(.article-kicker):not(.byline):not(.article-work-title) { font-size: 18px; line-height: 1.65; margin-top: 20px; }
  .article-header .byline { margin-top: 22px; }
  .story-section { padding-top: 42px; }
  .process-nav { margin-top: 28px; padding: 22px 0; }
  .process-nav ol { grid-template-columns: 1fr; gap: 12px; }
  .process-nav a { min-height: 32px; }
  .story-section .step-insight { font-size: 18px; margin-bottom: 22px; }
  .story-section h2 { margin-bottom: 20px; }
  .story-section h2::before { margin-bottom: 16px; width: 24px; }
  .story-section h3 { margin-top: 36px; }
  .story-section p { margin-bottom: 20px; }
  .story-media { margin-block: 28px; }
  .media-grid { gap: 12px; }
  .media-item { padding: 14px; border-radius: 10px; }
  .story-media[data-layout="paired"]:not(.article-cover):not(.comparison):not(.demo-videos):not(.icon-study):not(.prototype-media) .media-grid { grid-template-columns: 1fr; }
  .story-media[data-layout="phones"] .media-item { padding: 7px; border-radius: 10px; }
  .story-media[data-layout="phones"] .media-grid { gap: 8px; }
  .story-media[data-layout="phones"] img { border-radius: 8px; }
  .article-cover .media-grid { padding: 14px; border-radius: 12px; gap: 16px; }
  body[data-page="bytedance"] .article-cover .media-grid { padding: 16px 48px; gap: 24px; }
  .article-cover .media-grid img, .article-cover .media-grid video { max-height: 175px; }
  .demo-videos .media-item { padding: 12px; }
  .demo-videos video, .demo-videos img { max-height: 250px; }
  #photography { padding-top: 56px; }
  .photography { margin-top: 30px; }
  .photography-grid { gap: 4px; }
  .photo-row { grid-template-columns: 1fr !important; gap: 4px; }
  .photography .media-item { padding: 0; }
  .comparison .media-grid { grid-template-columns: 1fr; gap: 16px; }
  .comparison .media-item:nth-child(2) { width: 24px; justify-self: center; transform: rotate(90deg); }
  .icon-study .media-grid { gap: 10px; }
  .icon-study .media-item { padding: 10px; }
  .prototype-media .media-grid { grid-template-columns: 1fr; }
  .prototype-media .media-item:last-child { max-width: 160px; justify-self: center; }
  .next-story { margin: 54px auto 48px; }
  .next-story a { font-size: 25px; }
  .site-footer { font-size: 12px; padding-block: 24px; }
  .site-footer div { gap: 18px; }
  .media-lightbox { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 58px 16px 20px; border-radius: 16px; }
  .viewer-caption { flex-direction: column; gap: 10px; }
  .viewer-image img { max-height: calc(100dvh - 220px); }
  .media-lightbox.photo-mode { width: 100vw; max-width: none; height: 100dvh; max-height: none; padding: 58px 12px 104px; border-radius: 0; }
  .photo-mode .viewer-image img { max-height: 100%; }
  .photo-mode .viewer-caption { inset-inline: 20px; bottom: 18px; gap: 4px; font-size: 11px; }
  .photo-mode .viewer-caption p { display: none; }
  .photo-controls { bottom: 45px; gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .companion-art { --turn: 0deg; --lift: 0px; }
}

/* TikTok shares the editorial rhythm of the other stories. */
.search-chapter .artifact-note { font-size: 13px; line-height: 1.7; color: var(--muted); margin-top: 24px; }
.search-detail { max-width: 500px; }
.search-working-board { max-width: 960px; }
.search-summaries, .search-personal { max-width: 660px; }
.search-detail .media-item, .search-working-board .media-item, .search-summaries .media-item,
.search-references .media-item {
  aspect-ratio: auto !important; padding: 0 !important; background: none; border-radius: 0;
}
.search-detail .media-open, .search-working-board .media-open, .search-summaries .media-open,
.search-references .media-open { height: auto; border-radius: 0; }
.search-detail img, .search-working-board img, .search-summaries img, .search-references img {
  width: 100%; height: auto; max-height: none; border-radius: 8px;
}
.story-media.search-references[data-layout="phones"] { max-width: 960px; }
.search-references .media-grid { gap: 36px; align-items: start; }
.phone-reference-label { display: block; margin-top: 14px; font-size: 12px; line-height: 1.6; color: var(--muted); }
@media (max-width: 680px) {
  .search-references .media-grid {
    grid-template-columns: repeat(3, 230px); gap: 20px; overflow-x: auto;
    scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin;
  }
  .search-references .media-item { scroll-snap-align: start; }
}
