/* Minjun Byun portfolio — one system for every page.
   Only --accent changes per project. Type: Fraunces, soft (display) + Hanken Grotesk (text). */
:root {
  --paper: #f6f5f1;
  --surface: #ecebe5;
  --ink: #141414;
  --ink-2: #3a3a37;
  --muted: #6b6a64;
  --line: #e0ded7;
  --accent: #141414;
  --brand: #ffd12e;
  /* Small accent text uses a deeper mix of the project color so it stays readable on the cream background. */
  --radius: 14px;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --fs-display: clamp(34px, 4.2vw, 56px);
  --fs-title: clamp(56px, 9vw, 120px);
  --fs-h2: clamp(28px, 3.2vw, 42px);
  --fs-h3: 21px;
  --fs-lead: clamp(18px, 1.6vw, 21px);
  --fs-body: 17px;
  --fs-small: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-display: Fraunces, "Noto Serif KR", Georgia, serif;
  --font-text: "Hanken Grotesk", "Apple SD Gothic Neo", "Noto Sans KR", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  font-variation-settings: "SOFT" 60;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, ol, ul, dl, dd { margin: 0; }
ol, ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.label {
  font: 600 14px/1.4 var(--font-text);
  letter-spacing: 0;
  color: var(--muted);
}
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: 1px; flex: none; }
.text-link { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Display type: Fraunces with soft corners. Its even strokes stay legible at every size, unlike a hairline Didone.
   SOFT is set on body so it inherits everywhere; fonts without the axis ignore it. */
:is(h1, h2, .tagline, .feature h3, .footer-hi, .footer-big, .quote blockquote, .about-strip blockquote, .about-quote blockquote, .story-close, .stats dt, .stat b, .pin h2, .more-title-text, .decision-copy h3, .learnings h3) {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  letter-spacing: -.005em;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 64px; padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
/* Logo: cartoon chef Mj that flips to the mj monogram on a matching yellow circle. It peeks once on load. */
.sticker { width: 40px; height: 40px; perspective: 400px; flex: none; }
.sticker-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3, 1.4, .5, 1); animation: peek 5.6s 1s var(--ease) both; }
.sticker-face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.sticker-face.is-front { box-shadow: 0 0 0 2px var(--brand); background: var(--surface); }
.sticker-face.is-front img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; transform: scale(1.6) translateY(9%); transform-origin: 50% 18%; }
.sticker-face.is-back { transform: rotateY(180deg); background: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.sticker-face.is-back svg { position: absolute; inset: 0; }
.sticker-mark { stroke: var(--ink); fill: var(--ink); }
.sticker-mark path { fill: none; }
.wordmark:hover .sticker-inner, .wordmark:focus-visible .sticker-inner { animation: none; transform: rotateY(180deg) rotate(-8deg); }
/* Two peeks after load (about 1s and 4.5s in), then it only flips on hover */
@keyframes peek {
  0% { transform: none; }
  8%, 22% { transform: rotateY(180deg) rotate(-8deg); }
  30%, 62% { transform: none; }
  70%, 84% { transform: rotateY(180deg) rotate(-8deg); }
  92%, 100% { transform: none; }
}
.site-header nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 3px; text-underline-offset: 6px; }
::selection { background: var(--brand); color: var(--ink); }
.site-header nav { display: flex; gap: clamp(16px, 2.4vw, 32px); font-size: 15px; }
.site-header nav a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.site-header nav a:hover { color: var(--ink); }
/* Keep primary navigation in the same left rail on the portfolio's top-level pages. */
.site-side-nav { display: none; }
@media (min-width: 961px) {
  :is(.page-home, .page-about, .page-playground) .site-header,
  :is(.page-home, .page-about, .page-playground) .site-header.is-scrolled {
    position: absolute; inset: 0 0 auto; background: transparent;
    backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none;
  }
  :is(.page-home, .page-about, .page-playground) .site-header nav { display: none; }
  :is(.page-home, .page-about, .page-playground) main { padding-left: clamp(104px, 10vw, 144px); }
  .page-playground .site-header nav { display: flex; }
  .page-playground main { padding-left: 0; }
  .page-home .hero { padding-top: 112px; }
  .page-about .about-hero, .page-playground .kitchen-intro { padding-top: 112px; }
  .site-side-nav {
    position: fixed; z-index: 5; top: 112px; left: var(--gutter);
    display: grid; gap: 16px;
    padding: 6px 0 6px 16px; border-left: 1px solid var(--line);
    font: 600 14px/1.3 var(--font-text);
  }
  .site-side-nav a { color: var(--muted); text-decoration: none; transition: color .2s; }
  .site-side-nav a:hover, .site-side-nav a:focus-visible, .site-side-nav a[aria-current="page"] { color: var(--ink); }
  .site-side-nav a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
}

/* Home: hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 26vw, 400px); gap: clamp(32px, 6vw, 96px); align-items: start; padding-block: clamp(48px, 8vw, 96px) clamp(40px, 5vw, 72px); }
.hero-copy { display: grid; gap: 24px; }
.hero h1 { font-size: var(--fs-display); line-height: 1.24; font-weight: 500; letter-spacing: -.02em; max-width: 21ch; text-wrap: balance; }
.page-home .hero h1 { max-width: none; font-size: clamp(48px, 5.8vw, 84px); line-height: 1.05; font-variation-settings: "SOFT" 12, "WONK" 0; letter-spacing: -.03em; }
.page-home .hero-line { display: block; }
.page-home .hero-line-next { position: relative; max-width: 17ch; margin-top: .22em; margin-left: clamp(28px, 4vw, 60px); font-size: .78em; font-style: italic; font-variation-settings: "SOFT" 65, "WONK" 1; line-height: 1.12; }
.page-home .hero-line-next::before { content: "↳"; position: absolute; right: calc(100% + .15em); top: .06em; color: var(--brand); font: 500 .72em/1 var(--font-text); }
.page-home .hero-sub { max-width: 44ch; color: var(--ink-2); font-size: clamp(17px, 1.6vw, 21px); }
@media (max-width: 720px) {
  .page-home .hero h1 { font-size: clamp(42px, 10vw, 62px); }
  .page-home .hero-line-next { margin-left: 24px; }
}
.hero-sub { color: var(--muted); max-width: 52ch; font-size: var(--fs-lead); line-height: 1.5; }
.hero-portrait { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); filter: grayscale(1) contrast(1.05); }

/* Home: work */
.work { padding-bottom: clamp(24px, 3vw, 40px); }
.work > .label { margin-bottom: 28px; }
.featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(24px, 3vw, 40px); }
.luma-spotlight { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); min-height: 590px; overflow: hidden; border-radius: var(--radius); background: #eee7f4; }
.luma-spotlight-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; padding: clamp(32px, 5vw, 72px); }
.luma-spotlight-kicker { color: #655c70; font-size: 13px; font-weight: 600; }
.luma-spotlight h3 { font: 600 clamp(52px, 7vw, 94px)/.98 var(--font-display); letter-spacing: -.045em; }
.luma-spotlight-lede { max-width: 16ch; font-size: clamp(22px, 2.8vw, 34px); line-height: 1.2; letter-spacing: -.025em; }
.luma-spotlight-link { display: inline-flex; gap: 18px; align-items: center; padding-bottom: 3px; border-bottom: 1px solid currentColor; font-weight: 600; text-decoration: none; }
.luma-spotlight-link:hover { color: #a42260; }
.luma-spotlight-stage { min-width: 0; min-height: 590px; display: grid; place-items: center; padding: 24px; background: linear-gradient(145deg, #f8e2ec, #f8ebdf); }
.luma-spotlight-stage .luma-device { height: 540px; max-width: 100%; }
.luma-spotlight-stage .luma-device video { display: block; width: 100%; height: 100%; border-radius: 23px; object-fit: contain; background: #111014; }
.featured-supporting { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); margin-top: clamp(36px, 4vw, 56px); }
.featured-supporting .feature h3 { font-size: clamp(23px, 2.2vw, 28px); }
.feature { display: grid; gap: 10px; text-decoration: none; }
.feature-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface); margin-bottom: 14px; }
.featured .feature-media { margin-bottom: 2px; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.feature-media.is-contain img { object-fit: contain; }
.feature:hover .feature-media > img, .feature:focus-visible .feature-media > img { transform: scale(1.015); }
.featured .feature-media[data-category]::before {
  content: attr(data-category); position: absolute; z-index: 3; top: 14px; left: 14px;
  padding: 7px 12px; border-radius: 999px; background: rgb(255 255 255 / .94);
  color: #252521; font: 600 13px/1 var(--font-text); box-shadow: 0 2px 12px rgb(0 0 0 / .08);
  opacity: 0; transform: translateY(-5px) scale(.96);
  transition: opacity .18s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1);
  pointer-events: none;
}
.featured .feature:hover .feature-media::before, .featured .feature:focus-visible .feature-media::before { opacity: 1; transform: none; }
.feature h3 { font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.feature p { color: var(--ink-2); max-width: 46ch; }
.more-title { margin: clamp(64px, 8vw, 104px) 0 12px; }
.more-row {
  display: grid; grid-template-columns: 8px 200px minmax(0, 1fr) 96px 20px; align-items: baseline; gap: 20px;
  padding: 18px 16px; margin-inline: -16px; border-radius: 12px; text-decoration: none; transition: background .2s;
}
.more-row:hover { background: var(--surface); }
.more-title-text { font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.more-summary { color: var(--muted); }
.more-year { font: italic 400 14px/1 var(--font-text); color: var(--muted); text-align: right; }
.arrow { transition: transform .25s var(--ease); }
a:hover .arrow { transform: translateX(4px); }
.about-strip { display: grid; gap: 20px; padding-block: clamp(32px, 4vw, 56px) clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); }
.about-strip blockquote { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; letter-spacing: -.015em; color: var(--ink-2); }
.about-strip em { font-style: normal; color: var(--ink); }

/* Footer */
.site-footer { padding: clamp(56px, 8vw, 96px) var(--gutter) 28px; background: var(--ink); color: var(--paper); overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.footer-hi { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; font-weight: 500; max-width: 18ch; }
.footer-hi em { color: var(--brand); font-style: italic; }
.site-footer nav { display: flex; gap: 24px; font-size: 15px; }
.site-footer nav a { color: color-mix(in srgb, var(--paper) 75%, transparent); }
.site-footer nav a:hover { color: var(--brand); }
.page-playground .footer-name { display: none; }
.footer-big { display: flex; justify-content: space-between; margin: clamp(40px, 6vw, 72px) 0 12px; font-size: clamp(48px, 12.6vw, 210px); line-height: .85; font-weight: 800; letter-spacing: -.03em; color: var(--brand); user-select: none; }
.footer-big span { display: inline-block; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.footer-big span:hover { transform: translateY(-.14em) rotate(calc((var(--i) - 5) * 2deg)); }
.footer-big .gap { width: .25em; }
.footer-small { font-size: 13px; color: color-mix(in srgb, var(--paper) 55%, transparent); }
.site-footer a { text-decoration: none; }

/* Case study: hero */
.study-hero { display: grid; gap: 20px; padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 104px); }
.study-hero h1 { font-size: var(--fs-title); line-height: .95; font-weight: 600; letter-spacing: -.02em; }
.tagline { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.2; letter-spacing: -.02em; color: var(--ink-2); }
.study-lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); margin-top: 8px; }
.meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: clamp(32px, 5vw, 56px); }
.meta dd { margin-top: 8px; font-weight: 500; }
.meta dd span { display: block; margin-top: 4px; color: var(--muted); font-weight: 400; font-size: 15px; }

/* Case study: body */
.study-body { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.toc { position: sticky; top: 96px; }
.toc ol { display: grid; gap: 10px; font-size: var(--fs-small); }
.toc a { display: flex; align-items: center; gap: 10px; color: var(--muted); text-decoration: none; transition: color .2s; }
.toc a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: transparent; transition: background .2s; }
.toc a:hover, .toc a.is-active { color: var(--ink); }
.toc a.is-active::before { background: var(--accent); }
.toc .toc-subitems { display: none; margin-top: 10px; padding-left: 16px; font-size: 13px; gap: 8px; }
.toc li.is-open > .toc-subitems { display: grid; }
.toc li.is-open > a { color: var(--ink); }
.decision[id] { scroll-margin-top: 100px; }
.sections { min-width: 0; }
.study-section { display: grid; gap: 40px; padding-bottom: clamp(88px, 11vw, 144px); }
.section-head { display: grid; gap: 14px; max-width: 720px; }
.section-head .label { color: color-mix(in srgb, var(--accent) 76%, black); }
.section-head h2 { font-size: var(--fs-h2); line-height: 1.12; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); }
.study-section h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
.study-section p { color: var(--ink-2); }
.study-section a { text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.note { font-size: var(--fs-small); color: var(--muted) !important; max-width: 72ch; }
.note b { color: var(--ink); font-weight: 600; }

.phones { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.phones.is-small { max-width: 560px; }
.phone-item { display: grid; gap: 8px; align-content: start; }
.phone-item .label { margin-bottom: 4px; }
.phone-item h3 { margin-top: 16px; }
.phone img, .pass img { border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 24px 48px -28px rgb(0 0 0 / .35); cursor: zoom-in; }
.phone figcaption, .pass figcaption, .wide-figure figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }

.cards, .findings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.cards li, .findings li { display: grid; gap: 8px; align-content: start; }
.stat { color: var(--ink) !important; }
.stat b { display: block; font-size: 40px; line-height: 1.05; font-weight: 600; letter-spacing: -.01em; color: var(--accent); margin-bottom: 4px; }
/* "Led to" is a small tag at the foot of each finding: solid when it shaped the design, dashed when it didn't (yet) */
.led-to { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; align-self: end; margin-top: 10px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); font-size: 15px; font-weight: 600; color: color-mix(in srgb, var(--accent) 76%, black) !important; }
.led-to span { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .75; }
.led-to.is-open { border-top: 1px dashed rgb(0 0 0 / .2); font-weight: 500; color: var(--muted) !important; }

.decision { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 5vw, 64px); align-items: start; padding-top: 24px; }
.decision + .decision { padding-top: clamp(48px, 7vw, 88px); }
.decision-copy { display: grid; gap: 16px; position: sticky; top: 96px; }
.decision-copy h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -.02em; }
.aside { font-size: 15px; }
.aside b { display: block; font: 600 14px/1.4 var(--font-text); color: var(--muted); margin-bottom: 4px; }
.aside.is-learned { color: var(--ink) !important; }
.aside.is-learned b { color: color-mix(in srgb, var(--accent) 76%, black); }
.decision-media { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.process-strip { grid-column: 1 / -1; display: grid; gap: 20px; padding: clamp(24px, 3vw, 40px); background: var(--surface); border-radius: var(--radius); }
.process-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.pass img { box-shadow: none; background: transparent; border-radius: 12px; }
.compare { grid-column: 1 / -1; display: grid; gap: 14px; }
.compare div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: baseline; }
.compare dd { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.compare mark { background: none; color: color-mix(in srgb, var(--accent) 76%, black); font-weight: 600; }

.wide-figure img { border-radius: var(--radius); cursor: zoom-in; }
.wide-figure.is-narrow { max-width: 640px; }

.learnings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(32px, 5vw, 72px); counter-reset: learning; }
.learnings li { display: grid; gap: 12px; align-content: start; counter-increment: learning; }
.learnings li::before { content: counter(learning); font: italic 400 34px/1 var(--font-display); color: var(--accent); }

/* Photos, video, quotes, stats */
.photos { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); align-items: start; }
.photo img, .study-hero-media img { width: 100%; border-radius: var(--radius); background: var(--surface); cursor: zoom-in; }
.photo figcaption, .video figcaption, .study-hero-media figcaption, .quote figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }
.study-hero-media { margin-top: clamp(24px, 4vw, 48px); }
.study-hero-media.is-contained img {
  width: auto;
  max-width: 100%;
  max-height: min(60svh, 560px);
  object-fit: contain;
  margin-inline: auto;
}
.video video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #111; object-fit: contain; }
.quote blockquote { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; letter-spacing: -.015em; max-width: 34ch; color: var(--ink); }
.embed iframe { display: block; width: 100%; height: clamp(560px, 62vw, 760px); border: 0; border-radius: var(--radius); background: var(--surface); }
.embed figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; }
.stats dt { font-size: 40px; line-height: 1; font-weight: 600; letter-spacing: -.01em; color: var(--accent); }
.stats dd { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Next project */
.next-project { display: grid; gap: 16px; padding-block: 24px clamp(64px, 9vw, 120px); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; }
.lightbox::backdrop { background: rgb(20 20 20 / .82); backdrop-filter: blur(4px); }
.lightbox img { max-height: 88vh; width: auto; margin: auto; border-radius: 12px; cursor: zoom-out; }

/* Cross-page transitions: the project image glides from the card into the case study. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: var(--ease); }

/* Reading progress */
.progress { position: fixed; top: 64px; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; z-index: 6; pointer-events: none; }
.page-home .progress { display: none; }

.feature { transition: opacity .35s var(--ease), transform .35s var(--ease); }

/* Cursor label over project images */

/* Step-through process viewer */
.evolution { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px clamp(24px, 4vw, 56px); align-items: center; }
.evolution > .label { grid-column: 1 / -1; }
.evolution-stage { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); height: clamp(360px, 46vw, 560px); width: 100%; }
.evolution-frame { grid-area: 1 / 1; height: 100%; display: grid; place-items: center; opacity: 0; transform: translateY(8px) scale(.985); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; min-height: 0; }
.evolution-frame.is-active { opacity: 1; transform: none; pointer-events: auto; cursor: pointer; }
.evolution-frame { position: relative; }
.evolution-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.evolution-steps { display: grid; gap: 6px; counter-reset: none; }
.evolution-steps button { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: baseline; width: 100%; padding: 14px 16px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-size: 16px; text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.evolution-steps button:hover { color: var(--ink); }
.evolution-steps button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.step-num { font: italic 400 18px/1.2 var(--font-display); color: color-mix(in srgb, var(--accent) 76%, black); }
.process-strip.is-standalone { margin-top: 8px; }

/* Playground */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.page-playground .container { max-width: 1720px; padding-inline: clamp(24px, 3vw, 48px); }
@media (max-width: 700px) { .page-playground .container { padding-inline: 20px; } }
.playground-wheel-section { padding-top: 88px; padding-bottom: clamp(48px, 7vw, 80px); }
.wheel-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.wheel-toolbar .filters { margin: 0; }
.wheel-view-tools { display: flex; align-items: center; gap: 16px; }
.wheel-view-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.wheel-view-switch button { border: 0; border-radius: 999px; padding: 8px 14px; background: transparent; color: var(--ink-2); font: 600 13px/1 var(--font-text); cursor: pointer; }
.wheel-view-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.wheel-view-switch button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.wheel-count { color: var(--muted); font: 600 14px/1 var(--font-text); font-variant-numeric: tabular-nums; }
.wheel-stage { position: relative; margin-top: 12px; outline-offset: 4px; }
.wheel-stage:focus-visible { outline: 2px solid var(--ink); }
.wheel-canvas { position: relative; width: min(100%, 680px, 56vh); aspect-ratio: 1; margin-inline: auto; }
.wheel-items { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; transform: rotate(var(--wheel-rotation, 180deg)); transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.wheel-item { position: absolute; z-index: var(--layer, 1); top: var(--y); left: var(--x); width: 25%; height: 36%; transform: translate(-50%, -50%) rotate(var(--tilt)); filter: blur(1.5px); opacity: .8; transition: transform .7s cubic-bezier(.2, .8, .2, 1), filter .3s ease, opacity .3s ease; }
.wheel-item[hidden] { display: none; }
.wheel-item.is-active { z-index: 100; filter: none; opacity: 1; transform: translate(-50%, -50%) rotate(var(--selected-rotation, 0deg)) scale(1.2); transition: none; }
.wheel-pick { display: grid; grid-template-rows: minmax(0, 1fr) auto; width: 100%; height: 100%; padding: 4px; border: 0; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 7px 15px rgb(0 0 0 / .08); cursor: pointer; }
.wheel-pick img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.wheel-pick-label { display: block; padding: 4px 2px 1px; overflow: hidden; color: var(--ink); font: 600 clamp(9px, 1vw, 12px)/1.15 var(--font-text); text-overflow: ellipsis; white-space: nowrap; }
.wheel-item.is-active .wheel-pick { box-shadow: 0 15px 28px rgb(0 0 0 / .16); }
.wheel-pick:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.wheel-bottom { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 8px; max-width: 720px; margin: 14px auto 0; position: relative; z-index: 21; }
.wheel-bottom[hidden] { display: none; }
.wheel-arrow { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); font: 400 27px/1 var(--font-text); cursor: pointer; }
.wheel-arrow:hover, .wheel-arrow:focus-visible { background: var(--ink); color: var(--paper); }
.wheel-details { min-height: 155px; text-align: center; }
.wheel-detail[hidden] { display: none; }
.wheel-category { color: var(--muted); font: 600 13px/1.4 var(--font-text); }
.wheel-detail h2 { margin: 5px 0; font: 600 clamp(30px, 4vw, 48px)/1.06 var(--font-display); letter-spacing: -.025em; }
.wheel-detail p { max-width: 52ch; margin: 0 auto 10px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.wheel-action { border: 0; border-bottom: 2px solid var(--brand); padding: 0 0 2px; background: none; color: var(--ink); font: 600 15px/1.3 var(--font-text); text-decoration: none; cursor: pointer; }
.wheel-list-view { display: grid; grid-template-columns: minmax(240px, .3fr) minmax(0, .7fr); gap: clamp(28px, 4vw, 64px); height: min(68vh, 700px); margin-top: 20px; }
.wheel-list-view[hidden], .wheel-list li[hidden] { display: none; }
.wheel-list-panel { min-height: 0; overflow: hidden; background: transparent; }
.wheel-list-panel:first-child { display: flex; flex-direction: column; }
.wheel-list-heading { margin: 0; padding: 22px 24px 16px; color: var(--muted); font: 600 13px/1 var(--font-text); }
.wheel-list { min-height: 0; margin: 0; padding: 0; overflow: auto; list-style: none; scrollbar-color: var(--line) transparent; }
.wheel-list-pick { display: block; width: 100%; border: 0; padding: 11px 0; background: transparent; color: var(--ink-2); font: 500 clamp(17px, 1.7vw, 23px)/1.2 var(--font-text); text-align: left; cursor: pointer; }
.wheel-list-pick:hover, .wheel-list-pick:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.wheel-list-pick[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.wheel-list-panel-preview { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.wheel-list-media { position: relative; display: block; width: 100%; min-width: 0; min-height: 0; overflow: hidden; border: 0; padding: 0; background: transparent; cursor: pointer; }
.wheel-list-media[hidden] { display: none; }
.wheel-list-media:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.wheel-list-media:hover img { opacity: .9; }
.wheel-list-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.wheel-list-details { padding: 18px 0 4px; text-align: left; }
.wheel-list-details .wheel-detail p { margin-left: 0; }
.wheel-list-details .wheel-detail h2 { font-size: clamp(28px, 3vw, 40px); }
.wheel-list-details .wheel-detail p { font-size: 15px; }
.wheel-list-details .wheel-action { border-bottom-color: var(--ink); }
@media (max-width: 700px) { .wheel-list-view { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: min(76vh, 780px); } .wheel-list-heading { display: none; } .wheel-list { display: flex; gap: 4px; padding: 8px; overflow-x: auto; } .wheel-list li { flex: 0 0 auto; } .wheel-list-pick { width: auto; padding: 9px 12px; border-radius: 999px; font-size: 13px; white-space: nowrap; } .wheel-list-pick[aria-pressed="true"] { background: var(--ink); color: var(--paper); } .wheel-list-panel-preview { padding: 10px; } .wheel-toolbar { flex-wrap: wrap; } .wheel-view-tools { width: 100%; justify-content: space-between; } }
@media (max-width: 700px) { .wheel-canvas { width: min(100%, 440px, 55vh); } .wheel-pick { padding: 2px; } .wheel-pick-label { font-size: 8px; padding: 2px 1px; } .wheel-bottom { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 8px; margin-top: 12px; } .wheel-arrow { width: 40px; height: 40px; } .wheel-toolbar { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .wheel-items, .wheel-item { transition: none; } }
.page-intro { display: grid; gap: 20px; padding-block: clamp(56px, 9vw, 112px) clamp(32px, 5vw, 56px); }
.page-intro h1, .about-hero h1 { font-size: clamp(44px, 7vw, 96px); line-height: .98; font-weight: 600; letter-spacing: -.02em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 600 15px/1 var(--font-text); cursor: pointer; transition: background .2s, transform .2s; }
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.page-playground .wheel-toolbar .filters { gap: clamp(18px, 2vw, 30px); }
.page-playground .wheel-toolbar .filters .chip { padding: 9px 0 10px; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: none; color: var(--ink-2); font: 500 15px/1.2 var(--font-text); transition: color .2s, border-color .2s; }
.page-playground .wheel-toolbar .filters .chip:hover { transform: none; color: var(--ink); }
.page-playground .wheel-toolbar .filters .chip[aria-pressed="true"] { background: none; color: var(--ink); border-bottom-color: currentColor; font-weight: 600; }
.page-playground .wheel-toolbar .filters .chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.playground-work { padding-bottom: clamp(72px, 10vw, 128px); }
.playground-section[hidden] { display: none; }
.playground-section + .playground-section { margin-top: clamp(80px, 11vw, 144px); }
.playground-section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 0 0 18px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.playground-section-head h2 { font: 600 clamp(32px, 4vw, 52px)/1.05 var(--font-display); letter-spacing: -.025em; }
.playground-section-head > span, .playground-index { color: var(--muted); font: 600 12px/1.5 var(--font-text); }
.playground-index { margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; }
.pinboard { display: grid; margin: 0; padding: 0; list-style: none; }
.pinboard-feature { margin-bottom: clamp(48px, 7vw, 88px); }
.pinboard-feature .pin { grid-template-columns: minmax(0, 1.45fr) minmax(250px, .55fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding: clamp(18px, 3vw, 40px); background: var(--surface); border-radius: 16px; }
.pinboard-feature .pin-media { aspect-ratio: 16 / 10; background: #fff; }
.pinboard-feature .pin-info { align-content: center; gap: 18px; }
.pinboard-feature .pin h2 { font-size: clamp(36px, 4.2vw, 60px); }
.pinboard-feature .pin-title-row { display: grid; gap: 24px; }
.pinboard-feature .pin-cta { justify-self: start; }
.pinboard-experiments { border-top: 1px solid var(--line); }
.pinboard-experiments .pin-item { border-bottom: 1px solid var(--line); }
.pinboard-experiments .pin { grid-template-columns: minmax(180px, 32%) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: center; padding-block: clamp(24px, 3vw, 40px); }
.pinboard-experiments .pin-media { aspect-ratio: 4 / 3; }
.pinboard-experiments .pin-media.is-phone { aspect-ratio: 1 / 1.05; }
.pinboard-visual { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(16px, 2.5vw, 32px); }
.pinboard-visual .pin-media { aspect-ratio: 4 / 3; }
.pin-item[hidden] { display: none; }
/* The work is the visual system: quiet cards and a clear action for each project. */
.pin { display: grid; gap: 16px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.pin:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 6px; }
.pin-media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--surface); }
.pin-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.pin-media.is-phone { background: #f1e7f0; }
.phone-shell { position: absolute; top: 50%; left: 50%; display: block; height: 93%; aspect-ratio: 390 / 844; padding: 5px; border: 2px solid #4d4c52; border-radius: 29px; background: linear-gradient(105deg, #5e5d64, #121317 14%, #17181c 84%, #5b5a60); box-shadow: inset 0 0 0 2px #101115, 0 10px 20px rgb(0 0 0 / .17), 0 2px 4px rgb(0 0 0 / .15); transform: translate(-50%, -50%); }
.phone-button { position: absolute; width: 2px; background: #54535a; border-radius: 2px; }
.phone-button-left { left: -4px; top: 24%; height: 12%; box-shadow: 0 30px 0 #54535a; }
.phone-button-right { right: -4px; top: 34%; height: 15%; }
.phone-screen { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 22px; background: #100e18; }
.phone-island { position: absolute; z-index: 1; top: 3px; left: 50%; width: 28%; height: 8px; border-radius: 99px; background: #050507; transform: translateX(-50%); }
.pin-media.is-phone .phone-screen img { position: static; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.pin-info { display: grid; gap: 8px; }
.pin-category { color: var(--muted); font: 600 13px/1.3 var(--font-text); }
.pin-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pin h2 { font: 600 clamp(24px, 2.6vw, 32px)/1.15 var(--font-display); letter-spacing: -.02em; }
.pin-cta { flex: none; font: 600 15px/1.3 var(--font-text); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--brand); }
.pin-desc { max-width: 55ch; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
@media (max-width: 850px) { .pinboard-visual { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pinboard-feature .pin { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .pinboard-experiments .pin { grid-template-columns: minmax(130px, 40%) minmax(0, 1fr); } .pinboard-visual { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .pinboard-experiments .pin { grid-template-columns: 1fr; } .pinboard-experiments .pin-media:not(.is-phone) { max-height: 280px; } .playground-section-head h2 { font-size: 30px; } }
@media (max-width: 420px) { .pin-title-row { display: grid; gap: 6px; } }

/* About */
.about-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(32px, 6vw, 96px); align-items: end; padding-block: clamp(56px, 9vw, 112px) clamp(48px, 7vw, 88px); }
.about-hero-copy { display: grid; gap: 22px; }
/* Portrait: hover (or tap) swaps the black-and-white portrait for the colour chef photo */
.about-portrait { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; transform: rotate(2deg); transition: transform .5s cubic-bezier(.3, 1.5, .5, 1); }
.about-portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); filter: grayscale(1); transition: opacity .35s var(--ease); }
.about-portrait img.is-chef { position: absolute; inset: 0; height: 100%; filter: none; opacity: 0; }
.about-portrait:hover, .about-portrait:focus-visible, .about-portrait[aria-pressed="true"] { transform: rotate(-2deg) scale(1.02); }
.about-portrait:hover img.is-chef, .about-portrait:focus-visible img.is-chef, .about-portrait[aria-pressed="true"] img.is-chef { opacity: 1; }
.about-portrait:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: var(--radius); }
.portrait-hint { position: absolute; left: -14px; bottom: 22px; padding: 8px 14px; border-radius: 999px; background: var(--brand); color: var(--ink); font-size: 14px; font-weight: 600; transform: rotate(-6deg); box-shadow: 0 6px 16px -8px rgb(0 0 0 / .35); transition: opacity .3s; }
.about-portrait:hover .portrait-hint, .about-portrait[aria-pressed="true"] .portrait-hint { opacity: 0; }
.hint-tap { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-tap { display: inline; } }
.about-links { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 500; text-decoration: none; transition: transform .2s; }
.button:hover { transform: translateY(-2px); }
.button.is-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.about-quote { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(48px, 7vw, 88px); }
.hanja { display: flex; gap: 4px; }
.hanja span { display: grid; place-items: center; width: clamp(72px, 9vw, 120px); aspect-ratio: 1; border-radius: 50%; background: var(--brand); font-size: clamp(36px, 5vw, 64px); font-weight: 700; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.hanja span:last-child { background: var(--ink); color: var(--brand); margin-left: -18px; }
.hanja:hover span:first-child { transform: rotate(-12deg); }
.hanja:hover span:last-child { transform: rotate(12deg) translateX(10px); }
.about-quote blockquote { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.25; letter-spacing: -.02em; max-width: 30ch; }
.about-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-block: clamp(40px, 6vw, 72px); }
.story-text { display: grid; gap: 20px; font-size: 18px; max-width: 60ch; }
.story-text p { color: var(--ink-2); }
.story-text em { font-style: normal; background: linear-gradient(var(--brand), var(--brand)) no-repeat 0 90% / 100% .45em; color: var(--ink); }
.story-close { font-size: 22px; color: var(--ink) !important; font-weight: 500; letter-spacing: -.01em; }
.story-photos { display: grid; gap: 24px; position: sticky; top: 96px; }
.story-photos .photo:first-child img { transform: rotate(-1.5deg); }
.story-photos .photo:last-child img { transform: rotate(1deg); }
.about-schools { display: grid; gap: 24px; padding-block: clamp(40px, 6vw, 72px) clamp(72px, 10vw, 120px); }
.about-schools ul { display: flex; flex-wrap: wrap; gap: 24px 56px; align-items: center; }
.about-schools li { display: grid; gap: 8px; }
.school-logo { display: flex; align-items: center; height: 64px; }
.about-schools img { width: auto; max-width: 100%; }
.about-schools span { font-size: 14px; color: var(--muted); }

/* Lightbox controls */
.lightbox { overflow: visible; }
.lightbox-caption { margin-top: 12px; text-align: center; color: #ddd; font-size: 14px; }
.lightbox-nav, .lightbox-close { position: fixed; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; font-size: 20px; cursor: pointer; transition: background .2s; }
.lightbox-nav:hover, .lightbox-close:hover { background: rgb(255 255 255 / .24); }
.lightbox-nav.is-prev { left: 20px; }
.lightbox-nav.is-next { right: 20px; }
.lightbox-close { top: 20px; right: 20px; translate: none; font-size: 26px; }

/* Motion: content rises in once, only when the reader has not asked for less motion. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; animation-duration: 0s !important; }
  @view-transition { navigation: none; }
  .sticker-inner { animation: none; }
}

@media (max-width: 960px) {
  .study-body { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .decision { grid-template-columns: minmax(0, 1fr); }
  .decision-copy { position: static; }
  .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .luma-spotlight { grid-template-columns: minmax(0, 1fr); }
  .luma-spotlight-copy { padding: 32px 28px 12px; gap: 14px; }
  .luma-spotlight h3 { font-size: 56px; }
  .luma-spotlight-lede { max-width: 22ch; font-size: 22px; }
  .luma-spotlight-stage { min-height: 520px; }
  .luma-spotlight-stage .luma-device { height: 475px; }
  .featured-supporting { grid-template-columns: minmax(0, 1fr); }
  .site-header nav { gap: 16px; font-size: 14px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { order: -1; }
  .featured, .cards, .findings, .learnings { grid-template-columns: minmax(0, 1fr); }
  .more-row { grid-template-columns: 8px minmax(0, 1fr) 20px; gap: 4px 12px; }
  .more-summary { grid-column: 2 / -1; grid-row: 2; font-size: 15px; }
  .more-year { display: none; }
  .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photos { grid-template-columns: minmax(0, 1fr); }
  .decision-media { grid-template-columns: repeat(min(var(--n, 2), 2), minmax(0, 1fr)); }
  .phones .phone-item:nth-child(3) { grid-column: 1 / -1; max-width: calc(50% - 10px); }
  .process-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .compare div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .meta { gap: 20px; }
  .about-hero, .about-story, .about-quote { grid-template-columns: minmax(0, 1fr); }
  .about-portrait { max-width: 260px; }
  .story-photos { position: static; }
  .evolution { grid-template-columns: minmax(0, 1fr); }
  .evolution-stage { height: 420px; }
  .evolution-steps button { padding: 10px 12px; font-size: 15px; }
  .lightbox-nav { top: auto; bottom: 20px; translate: none; }
}

/* Reading-first case studies (after the Trouvaiz reference and mentor feedback):
   one column, a bold summary line per section, no boxes or card grids. */
.study-section { gap: 36px; }
.section-head, .study-section > .note, .study-section > .quote, .decision-copy, .aside.is-learned { min-width: 0; max-width: none; }
.section-head .lead { font-weight: 600; color: var(--ink); font-size: clamp(19px, 1.7vw, 22px); line-height: 1.45; }
.cards, .findings, .learnings { grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: none; }
/* Text follows its layout column instead of an additional character-count cap. */
.study .note, .study .quote blockquote { max-width: none; }
.findings .stat b { display: inline; font-size: 28px; margin-right: 6px; }
.learnings li { grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; }
.learnings li::before { grid-row: span 2; line-height: 1; }
.decision { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 0; }
.decision + .decision { padding-top: clamp(40px, 6vw, 72px); }
.decision-copy { position: static; }
.aside.is-learned { padding-top: 4px; font-size: 17px; }
.process-strip { background: none; padding: 0; }
.evolution-steps button[aria-selected="true"] { background: var(--surface); }

/* By the numbers: the scale of the process at a glance (after the PROS reference). */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 8px; padding-top: 28px; }
.numbers dt { font: 600 clamp(30px, 3.4vw, 44px)/1 var(--font-display); letter-spacing: -.02em; color: var(--accent); }
.numbers dd { margin-top: 8px; color: var(--muted); font-size: 15px; }
/* Same columns and gaps as .meta above it, so the two rows line up */
@media (max-width: 960px) { .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .numbers { gap: 20px; } }

/* Case study footer: every other project in a sideways row */
.next-project { gap: 20px; }
.next-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.next-nav { display: flex; gap: 8px; }
.next-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); font-size: 20px; cursor: pointer; transition: background .2s, opacity .2s; }
.next-btn:hover { background: color-mix(in srgb, var(--ink) 10%, var(--surface)); }
.next-btn:disabled { opacity: .35; cursor: default; }
.next-grid { display: grid; grid-auto-flow: column; grid-auto-columns: max(280px, calc((100% - 2 * clamp(24px, 3vw, 40px)) / 3.3)); gap: clamp(24px, 3vw, 40px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; padding-bottom: 16px; scrollbar-width: thin; }
.next-grid > .feature { scroll-snap-align: start; }
.next-grid { padding: 16px 16px 24px; margin-inline: -16px; scroll-padding-inline: 16px; gap: 40px; }
.next-grid:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 4px; }
.next-grid .feature h3 { font-size: 22px; }
.next-grid .feature p { font-size: 15px; }
@media (max-width: 900px) { .next-grid { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 560px) { .next-grid { grid-auto-columns: 82%; } .next-nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .next-grid { scroll-behavior: auto; } }

/* A restrained card interaction keeps the work itself in focus. */
.feature:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: var(--radius); }

/* Wide reading layout: text keeps a readable measure, media uses the full width, phone screens stay small */
@media (min-width: 721px) {
  /* Matches the Figma desktop frame: ~248px phones with ~112px between them */
  .phones .phone, .decision-media.is-phones .phone { max-width: 248px; }
  .phones, .decision-media.is-phones { column-gap: clamp(32px, 8vw, 112px); }
  .phones[style*="--n:4"], .decision-media.is-phones[style*="--n:4"] { column-gap: clamp(20px, 3vw, 40px); }
}

/* Case study: the side nav runs from the top of the page, and the title, sections and
   "More projects" all share the one column beside it */
@media (min-width: 961px) { .study-body { grid-template-columns: 128px minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); } }
.study-main { min-width: 0; }
.toc { margin-top: clamp(40px, 6vw, 72px); }

/* About: kitchen habit → design habit */
.about-kitchen { display: grid; gap: 24px; padding-block: clamp(40px, 6vw, 72px); }
.kitchen-pairs { display: grid; gap: 14px; }
.kitchen-pairs li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px clamp(16px, 3vw, 40px); align-items: center; padding: clamp(20px, 3vw, 28px); border-radius: var(--radius); background: var(--surface); transition: background .25s, transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.kitchen-pairs li:hover { background: color-mix(in srgb, var(--brand) 32%, var(--surface)); transform: translateX(6px); }
.kitchen-pairs p { display: grid; gap: 6px; }
.kitchen-side { color: var(--ink-2); }
.design-side { font-weight: 600; color: var(--ink); }
.kitchen-arrow { font-size: 26px; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.kitchen-pairs li:hover .kitchen-arrow { transform: translateX(6px); }

/* About: off-the-clock facts as tilted stickers */
.about-offclock { display: grid; gap: 20px; padding-top: clamp(24px, 4vw, 48px); }
.stickers { display: flex; flex-wrap: wrap; gap: 18px; }
.stickers li { display: grid; gap: 6px; padding: 18px 22px; border-radius: 18px; background: var(--surface); transform: rotate(var(--tilt)); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.stickers li:nth-child(4n + 1) { background: var(--brand); }
.stickers li:nth-child(4n + 3) { background: var(--ink); color: var(--paper); }
.stickers li:nth-child(4n + 3) .label { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.stickers li:hover { transform: rotate(0deg) scale(1.06); }
.stickers b { font: 600 clamp(20px, 2vw, 26px)/1.2 var(--font-display); letter-spacing: -.01em; }
@media (max-width: 720px) {
  .kitchen-pairs li { grid-template-columns: minmax(0, 1fr); }
  .kitchen-arrow { transform: rotate(90deg); justify-self: start; }
  .kitchen-pairs li:hover .kitchen-arrow { transform: rotate(90deg); }
}

/* Playground intro keeps the kitchen reference in one quiet line. */
.kitchen-intro { padding-block: clamp(64px, 8vw, 108px) clamp(36px, 5vw, 64px); }
.playground-intro { display: grid; gap: 18px; max-width: 850px; }
.playground-kicker { color: var(--muted); font: 600 14px/1.3 var(--font-text); }
.playground-intro h1 { max-width: 15ch; font: 600 clamp(48px, 6.5vw, 88px)/1.02 var(--font-display); letter-spacing: -.035em; }
.playground-intro > p:not(.playground-kicker) { max-width: 62ch; color: var(--ink-2); font-size: clamp(18px, 2vw, 21px); line-height: 1.45; }
.playground-intro .filters { margin-top: 16px; }
.page-playground .kitchen-intro { padding-block: 76px 18px; }
@media (min-width: 961px) { .page-playground .kitchen-intro { padding-top: 84px; } }
.page-playground .playground-intro { gap: 7px; max-width: none; }
.page-playground .playground-intro h1 { max-width: none; font-size: clamp(38px, 4.5vw, 60px); }
.page-playground .playground-intro > p:not(.playground-kicker) { font-size: 16px; }
@media (max-width: 700px) { .page-playground .kitchen-intro { padding-block: 88px 20px; } .page-playground .playground-intro h1 { font-size: 38px; } }

/* Keep the desktop Playground as one viewport. The project index scrolls inside its column. */
@media (min-width: 701px) and (min-height: 650px) {
  .page-playground { height: 100dvh; overflow: hidden; }
  .page-playground main { display: block; height: calc(100dvh - 54px); }
  .page-playground .kitchen-intro { padding-block: clamp(72px, 8vh, 88px) 8px; }
  .page-playground .playground-intro h1 { font-size: clamp(34px, 4vw, 48px); }
  .page-playground .playground-wheel-section { display: flex; flex-direction: column; min-height: 0; height: 100%; padding-top: clamp(84px, 11vh, 112px); padding-bottom: 12px; }
  .page-playground .wheel-toolbar { flex: none; }
  .page-playground .wheel-list-view { flex: 1 1 auto; min-height: 0; height: auto; margin-top: 12px; padding: 0; }
  .page-playground .wheel-list-panel-preview { min-height: 0; }
  .page-playground .wheel-list-details { padding: 8px 8px 2px; }
  .page-playground .wheel-list-details .wheel-detail h2 { font-size: clamp(26px, 3vw, 36px); }
  .page-playground .wheel-list-details .wheel-detail p { margin-bottom: 6px; font-size: 14px; line-height: 1.35; }
  .page-playground .wheel-stage { display: grid; flex: 1 1 auto; min-height: 0; place-items: center; margin-top: 4px; }
  .page-playground .wheel-stage[hidden] { display: none; }
  .page-playground .wheel-canvas { width: min(100%, 680px, calc(100dvh - 445px)); }
  .page-playground .wheel-bottom { flex: none; margin-top: 6px; }
  .page-playground .wheel-details { min-height: 120px; }
  .page-playground .wheel-detail h2 { font-size: clamp(28px, 3vw, 42px); }
  .page-playground .wheel-detail p { margin-bottom: 6px; font-size: 14px; line-height: 1.35; }
  .page-playground .site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 54px; padding: 0 var(--gutter); background: var(--ink); color: var(--paper); }
  .page-playground .footer-top { display: block; }
  .page-playground .footer-hi, .page-playground .footer-big { display: none; }
  .page-playground .footer-name { display: block; margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
  .page-playground .footer-small { font-size: 12px; }
}
@media (min-width: 701px) and (max-width: 960px) and (min-height: 650px) {
  .page-playground .footer-small { display: none; }
}

/* Videos keep only play, mute and the timeline: no fullscreen, picture-in-picture or overflow menu */
.video video::-webkit-media-controls-fullscreen-button,
.video video::-webkit-media-controls-picture-in-picture-button,
.video video::-webkit-media-controls-overflow-button { display: none; }

/* Hairline 3D figure (Take a Seat): white solids, one even hairline, one accent */
.iso { display: grid; gap: 12px; }
.iso figcaption { font-size: 13px; color: var(--muted); }
.iso-stage { position: relative; border-radius: var(--radius); background: #fbfaf6; overflow: hidden; }
.iso svg { display: block; width: 100%; height: auto; aspect-ratio: 2.4 / 1; cursor: grab; touch-action: pan-y; }
.iso.is-dragging svg { cursor: grabbing; }
.iso svg:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; border-radius: var(--radius); }
.iso polygon { stroke: rgb(20 20 20 / .55); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.iso-floor { fill: #f3f2ec; }
.iso-floor.is-corridor { fill: #e9e8e1; }
.iso-solid .top { fill: #fff; }
.iso-solid .front { fill: #efeee8; }
.iso-solid .side { fill: #e4e3dc; }
.iso-accent polygon { stroke: color-mix(in srgb, var(--accent) 70%, black); }
.iso-accent .top { fill: color-mix(in srgb, var(--accent) 22%, white); }
.iso-accent .front { fill: color-mix(in srgb, var(--accent) 42%, white); }
.iso-accent .side { fill: color-mix(in srgb, var(--accent) 32%, white); }
.iso-screen polygon { fill: #2b2b2b; stroke: #141414; }
.iso-tray polygon { fill: #d9c3a0; stroke: #8a6f45; }
/* The sensor cable: a dash that travels toward the laptop, so sitting reads as the trigger */
.iso-wire { fill: none; stroke: #7a7a74; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; animation: iso-signal .9s linear infinite; }
@keyframes iso-signal { to { stroke-dashoffset: -9; } }
@media (prefers-reduced-motion: reduce) { .iso-wire { animation: none; } }
.iso-label { opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
.iso-label line { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.iso-label circle { fill: var(--ink); }
.iso-label text { font: 500 13px/1 var(--font-text); fill: var(--ink); }
.iso[data-state="close"] .iso-label { opacity: 1; }
.iso-controls { position: absolute; left: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.iso-controls .chip { padding: 8px 14px; font-size: 13px; background: rgb(255 255 255 / .9); }
.iso-controls .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.iso-controls .iso-spin[aria-pressed] { background: rgb(255 255 255 / .9); color: var(--ink); }
.iso-hint { position: absolute; right: 16px; bottom: 18px; font: 500 12px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
@media (max-width: 720px) { .iso svg { aspect-ratio: 1.3 / 1; } .iso-controls { left: 10px; bottom: 10px; } .iso-hint { top: 12px; bottom: auto; right: 12px; } }
/* In the close-up, the block across the corridor turns see-through so both stools show */
.iso-ghost .top { fill: #fff; }
.iso-ghost .front { fill: #efeee8; }
.iso-ghost .side { fill: #e4e3dc; }
.iso-ghost polygon { transition: fill-opacity .5s var(--ease), stroke-opacity .5s var(--ease); }
.iso[data-state="close"] .iso-ghost polygon { fill-opacity: .12; stroke-opacity: .3; }

/* Findings sit side by side as one set of cards; the ones that shaped the design are tinted */
.findings li { padding: clamp(18px, 2vw, 24px); border-radius: var(--radius); background: var(--surface); grid-template-rows: auto auto auto 1fr auto; }
.findings li.is-led { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent); }
.findings h3 { font-size: 19px; line-height: 1.25; }
.findings li > p:not(.label):not(.led-to):not(.stat) { font-size: 15px; color: var(--ink-2); }
@media (min-width: 721px) {
  .findings { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; max-width: none; }
}

/* Desktop: reading progress runs down the side nav instead of across the top. Phones keep the top bar. */
.toc { padding-left: 14px; }
.toc-progress { position: absolute; left: 0; top: 2px; bottom: 2px; width: 2px; border-radius: 1px; background: var(--line); overflow: hidden; }
.toc-progress span { display: block; height: 100%; background: var(--accent); transform: scaleY(0); transform-origin: 50% 0; }
@media (min-width: 961px) { .page-study .progress { display: none; } }

/* Linked "Led to" tags jump to the decision they shaped, which flashes so you see where you landed */
a.led-to { text-decoration: none; }
a.led-to i { font-style: normal; transition: transform .25s var(--ease); }
a.led-to:hover { color: var(--ink) !important; }
a.led-to:hover i { transform: translateY(3px); }
.decision, .study-section { scroll-margin-top: 96px; }
.decision:target { animation: landed 2.2s var(--ease); border-radius: var(--radius); }
@keyframes landed { 0%, 30% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 16%, transparent); background: color-mix(in srgb, var(--accent) 7%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; background: transparent; } }
@media (prefers-reduced-motion: reduce) { .decision:target { animation: none; } }

/* Findings past the first three fold away */
.findings-more { margin-top: -12px; }
.findings-more summary { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--ink); font: 600 14px/1 var(--font-text); cursor: pointer; list-style: none; }
.findings-more summary::-webkit-details-marker { display: none; }
.findings-more summary::after { content: "+"; font-size: 16px; }
.findings-more[open] summary::after { content: "−"; }
.findings-more[open] summary { margin-bottom: 16px; }
.phone video.loop { display: block; width: 100%; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 24px 48px -28px rgb(0 0 0 / .35); }

/* Homepage portrait with the role underneath it as a caption */
.hero-figure { display: grid; gap: 12px; }
.hero-figure figcaption { margin: 0; }
/* The headline's first line starts level with the top of the portrait (the line box adds a little air above the letters) */
.hero h1 { margin-top: -.12em; }
.hero-figure figcaption b { color: var(--ink); font-weight: 600; }

/* About links: Resume stays a button (the main action) and fills with brand yellow on hover;
   LinkedIn is a highlighter link whose marker fills in on hover, like the homepage headline */
.about-links { align-items: center; gap: 22px; }
.about-links .button { transition: transform .2s, background .25s, color .25s; }
.about-links .button:not(.is-ghost):hover { background: var(--brand); color: var(--ink); }
.about-links .button.is-ghost { padding: 2px 4px; border-radius: 3px; box-shadow: none; font-weight: 600; background: linear-gradient(var(--brand), var(--brand)) no-repeat 0 100% / 100% .28em; transition: background-size .3s var(--ease); }
.about-links .button.is-ghost:hover { transform: none; background-size: 100% 100%; }

/* Phones: portrait and caption sit side by side like a profile chip, name over role */
@media (max-width: 720px) {
  .hero-figure { grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 16px; }
  .hero-figure figcaption { display: grid; gap: 4px; }
  .hero-figure figcaption b { font-size: 17px; }
  .hero-figure .sep { display: none; }
}

/* End of a case study: what's next, grouped so it scans in a second */
/* Question map: question, what it asks, what the answer changes */
.qmap { display: grid; gap: 12px; margin: 0; }
.qmap ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.qmap li { display: grid; grid-template-columns: var(--key, 3.2rem) minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.qmap li b { font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.qmap li span:nth-child(2) { font-weight: 500; }
.qmap li span:last-child { color: var(--muted); }
.qmap li.is-open b, .qmap li.is-open span:nth-child(2) { color: var(--muted); }
.qmap li i { font-style: normal; font-size: 13px; padding: 2px 10px; border: 1px dashed var(--line); border-radius: 999px; }
.qmap figcaption { font-size: 14px; color: var(--muted); }
@media (max-width: 720px) { .qmap li { grid-template-columns: minmax(2.6rem, auto) minmax(0, 1fr); row-gap: 4px; } .qmap li span:last-child { grid-column: 2; } }
.followups { display: grid; gap: 16px; padding-top: 8px; border-top: 1px solid var(--line); }
.followup-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px clamp(24px, 4vw, 48px); }
.followup-groups h3 { font: 600 15px/1.3 var(--font-text); margin-bottom: 8px; }
.followup-groups ul { display: grid; gap: 6px; }
.followup-groups li { position: relative; padding-left: 16px; color: var(--ink-2); font-size: 15px; }
.followup-groups li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Real reactions from people who used the work; the critical one is marked, not hidden */
.voices { display: grid; gap: 16px; }
.voices ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.voices li { display: grid; gap: 10px; align-content: start; padding: 20px; border-radius: var(--radius); background: var(--surface); }
.voices blockquote { font: 500 18px/1.4 var(--font-display); }
.voices li p { font-size: 13px; color: var(--muted); }
.voices li p span { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 600; }

/* The giant footer name goes fully soft and wonky so it stays the one playful moment */
.footer-big { font-family: Fraunces, Georgia, serif !important; font-variation-settings: "SOFT" 100, "WONK" 1; }

/* Case study summary: the whole story in three lines, right under the title */
.summary-card { display: grid; gap: 0; min-width: 0; margin-top: 8px; border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.summary-card > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px 22px; }
.summary-card > div + div { border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
.summary-card dt { font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 76%, black); padding-top: 3px; }
.summary-card dd { margin: 0; color: var(--ink); line-height: 1.5; }
.summary-card > div:last-child { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
@media (max-width: 560px) { .summary-card > div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 16px; } }

/* Project typefaces belong to the case-study title; figures stay in the site's legible body face. */
.study h1.has-own-type { font-family: var(--title-font), var(--font-display); font-weight: var(--title-weight); letter-spacing: var(--title-tracking); font-variation-settings: var(--title-variation, normal); }
.study :is(.numbers dt, .stats dt, .stat b) { font-family: var(--font-text); font-weight: 600; }

/* User flow as live cards. Cards build in one after another; connector lines draw in. */
.flow { display: grid; gap: 0; padding: clamp(20px, 3vw, 36px); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 4%, var(--paper)); }
.flow-title { font: 600 clamp(24px, 2.6vw, 34px)/1.15 var(--font-display); letter-spacing: -.01em; margin-bottom: 24px; }
.flow-row { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); column-gap: 44px; }
.flow-branch { column-gap: 6%; }
.flow-card { position: relative; display: grid; gap: 6px; align-content: start; padding: 18px 20px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent); }
.flow-card b { font: 600 20px/1.2 var(--font-display); }
.flow-card span:not(.flow-no) { font-size: 14px; color: var(--muted); }
.flow-no { font: 500 12px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.flow-row:not(.flow-branch) .flow-card + .flow-card::before { content: "→"; position: absolute; left: -32px; top: 50%; translate: 0 -50%; color: var(--accent); font-size: 18px; }
.flow-card.is-primary { background: var(--accent); box-shadow: none; color: #fff; }
.flow-card.is-primary span { color: rgb(255 255 255 / .82) !important; }
.flow-lines { position: relative; height: 56px; }
.flow-seg { position: absolute; display: block; background: color-mix(in srgb, var(--ink) 28%, transparent); }
.flow-seg.is-v { width: 1.5px; margin-left: -.75px; transform-origin: 50% 0; }
.flow-seg.is-h { height: 1.5px; margin-top: -.75px; transform-origin: 0 50%; }
.flow .flow-join { justify-self: center; padding: 9px 18px; border-radius: 999px; background: var(--ink); color: var(--paper) !important; font: 500 13px/1 ui-monospace, "SF Mono", Menlo, monospace; }
.flow-tabs-label { margin: 28px 0 12px; }
.flow figcaption { margin-top: 18px; font-size: 13px; color: var(--muted); }
/* Build-in: hidden until the figure scrolls into view (only when JS runs and motion is allowed) */
.js .flow :is(.flow-card, .flow-join, .flow-tabs-label) { opacity: 0; translate: 0 10px; transition: opacity .45s var(--ease), translate .45s var(--ease); transition-delay: var(--d); }
.js .flow.is-in :is(.flow-card, .flow-join, .flow-tabs-label) { opacity: 1; translate: 0 0; }
.js .flow .flow-seg.is-v { scale: 1 0; } .js .flow .flow-seg.is-h { scale: 0 1; }
.js .flow .flow-seg { transition: scale .45s var(--ease); transition-delay: var(--d); }
.js .flow.is-in .flow-seg { scale: 1 1; }
.js .flow.is-in .flow-card.is-primary { animation: tapped .9s var(--ease) calc(var(--d) + .5s); }
@keyframes tapped { 40% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 22%, transparent); } }
@media (prefers-reduced-motion: reduce) {
  .js .flow :is(.flow-card, .flow-join, .flow-tabs-label) { opacity: 1; translate: none; transition: none; }
  .js .flow .flow-seg { scale: 1 1; transition: none; }
  .js .flow.is-in .flow-card.is-primary { animation: none; }
}
@media (max-width: 720px) {
  .flow-row { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .flow-row:not(.flow-branch) .flow-card + .flow-card::before { left: 50%; top: -24px; translate: -50% 0; rotate: 90deg; }
  .flow-branch { row-gap: 12px; margin-top: 20px; }
  .flow-lines { display: none; }
  .flow-join { margin-top: 20px; }
}

/* Patterns borrowed from strong case studies: the option rejected, a status line, my part, iterations, the research turn */
.aside.is-considered b { color: var(--muted); }
.aside.is-considered { color: var(--ink-2); }
.study-status { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 15px; color: var(--ink-2); }
.study-status span { padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: color-mix(in srgb, var(--accent) 76%, black); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.contributions { display: grid; gap: 14px; margin-top: 8px; padding-top: 28px; border-top: 1px solid var(--line); }
.contributions dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 32px; }
.contributions dt { font-weight: 600; }
.contributions dd { margin-top: 4px; color: var(--muted); font-size: 15px; }
.contributions-team { font-size: 14px; color: var(--muted); }
/* Work done together, kept apart from the solo parts above so credit reads at a glance */
.contributions-shared { display: grid; gap: 8px; }
.contributions-shared ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.contributions-shared li { font-size: 14px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.iterations { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.iterations li { display: grid; gap: 12px; align-content: start; padding: 22px; border-radius: var(--radius); background: var(--surface); }
.iterations li.is-final { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent); }
.iter-tag { font: 500 12px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.iterations h3 { font: 600 19px/1.25 var(--font-text); }
.iterations dl { display: grid; gap: 10px; }
.iterations dt { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.iterations dd { margin: 2px 0 0; font-size: 15px; color: var(--ink-2); }
.stages { display: grid; gap: 14px; }
.stages ol { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 12px; }
.stages li { display: grid; gap: 6px; align-content: start; padding: 16px 18px; border-radius: 12px; background: var(--surface); }
.stages li span { font: 500 12px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--muted); }
.stages li b { font-size: 16px; }
.stages li p { font-size: 14px; color: var(--muted); }
.stages li.is-turn { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); box-shadow: inset 0 0 0 1.5px var(--accent); }
.stages li.is-turn span { color: color-mix(in srgb, var(--accent) 76%, black); }
@media (max-width: 720px) { .stages ol { grid-template-columns: minmax(0, 1fr); } }

/* Email: envelope icon in the top nav, footer, and About links (mailto) */
.icon-mail { display: inline-block; flex: none; }
.site-header nav { align-items: center; }
.site-header nav .nav-email { display: inline-grid; place-items: center; width: 36px; height: 36px; margin: -9px -6px -9px -8px; border-radius: 50%; color: var(--ink-2); transition: color .2s, background .2s, transform .2s; }
.site-header nav .nav-email:hover { color: var(--ink); background: color-mix(in srgb, var(--brand) 45%, transparent); transform: translateY(-1px); }
.site-header nav .nav-email:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.footer-email, .about-email { display: inline-flex; align-items: center; gap: 6px; }
.footer-email .icon-mail { width: 16px; height: 16px; }
.site-header nav a { white-space: nowrap; }
@media (max-width: 420px) { .site-header nav { gap: 12px; font-size: 14px; } .site-header nav .nav-email { width: 32px; height: 32px; margin: -8px -6px -8px -6px; } }
@media (max-width: 360px) { .site-header nav { gap: 10px; font-size: 13px; } .site-header nav a[href$="#work"] { display: none; } }

/* Home hero */
.hero-sub { margin: 0; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin: 4px 0 0; }
.hero-actions .button { padding: 7px 14px; font-size: 15px; line-height: 1.4; transition: transform .2s, background .25s; }
.hero-actions .button:hover { background: var(--brand); color: var(--ink); }
.hero-email { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 600; padding: 2px 4px; border-radius: 3px; background: linear-gradient(var(--brand), var(--brand)) no-repeat 0 100% / 100% .28em; transition: background-size .3s var(--ease); }
.hero-email:hover { background-size: 100% 100%; }

.hero-stage { border-radius: var(--radius); overflow: hidden; }
.hero-portrait { display: block; }

/* Case study: a way back to the work list, above the contents (and alone on narrow screens) */
.toc-rail { position: sticky; top: 96px; display: grid; gap: 28px; margin-top: clamp(40px, 6vw, 72px); }
.toc-rail .toc { position: relative; top: auto; margin-top: 0; }
.back-link { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 6px 12px 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: var(--fs-small); font-weight: 600; transition: background .2s, border-color .2s, transform .2s; }
.back-link span { transition: transform .2s var(--ease); }
.back-link:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: var(--accent); }
.back-link:hover span { transform: translateX(-3px); }
.back-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 960px) { .toc-rail { position: static; margin-top: 24px; } }

/* Center the article itself, with equal desktop space on either side.
   The contents rail occupies the left margin without shifting the article. */
.study-body.container {
  max-width: calc(1320px + var(--gutter) * 2);
  grid-template-columns: 128px minmax(0, 1000px) 128px;
  gap: 32px;
}
.study-body > .study-main { grid-column: 2; }
@media (max-width: 1279px) {
  .study-body.container {
    max-width: calc(1000px + var(--gutter) * 2);
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .study-body > .study-main { grid-column: 1; }
  .study-body > .toc-rail { position: static; margin-top: 24px; }
  .study-body .toc { display: none; }
}

/* Email fallback note: confirms the address was copied, with a Gmail link */
.mail-toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 16px; max-width: calc(100vw - 32px); padding: 12px 14px 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 12px 32px -12px rgb(0 0 0 / .45); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.mail-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.mail-toast b { font-weight: 600; }
.mail-toast a { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--brand); color: var(--ink); text-decoration: none; font-weight: 600; }
@media (max-width: 520px) { .mail-toast { flex-direction: column; align-items: flex-start; gap: 8px; border-radius: 16px; } }

/* Homepage cards: proof block under the summary (result, role, methods) */
.feature-proof { display: grid; gap: 2px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line, rgba(0,0,0,.12)); }
.feature-proof b { font: 600 19px/1.3 var(--font-text); color: var(--accent); letter-spacing: -.01em; }
.feature-proof span { font: 500 15px/1.4 var(--font-text); color: var(--ink-2); }
.feature-proof small { margin-top: 6px; font: 500 13px/1.4 var(--font-text); color: var(--muted); }
.feature-proof small i { font-style: normal; opacity: .5; }

/* Case studies: the nav scrolls away with the page; only the Mj logo stays pinned in the corner */
.page-study .site-header { position: relative; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.page-study .site-header nav { margin-left: auto; }
.page-study .wordmark { position: fixed; top: 12px; left: var(--gutter); z-index: 6; border-radius: 50%; }
.page-study .wordmark .sticker { filter: drop-shadow(0 4px 10px rgb(0 0 0 / .18)); }
.page-study .progress { top: 0; height: 3px; }

/* KO/EN toggle (About, Playground): both languages are in the page; <html data-lang="ko"> swaps them */
.l-ko { display: none; }
html[data-lang="ko"] .l-en { display: none; }
html[data-lang="ko"] .l-ko { display: inline; }
html[data-lang="ko"] body { word-break: keep-all; }
.lang-toggle { position: fixed; right: max(16px, var(--gutter)); bottom: 20px; z-index: 7; display: inline-grid; place-items: center; min-width: 64px; padding: 10px 16px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 14px/1 var(--font-text); text-decoration: none; cursor: pointer; box-shadow: 0 8px 24px -10px rgb(0 0 0 / .45); transition: transform .2s, background .2s, color .2s; }
.lang-toggle:hover { transform: translateY(-2px); background: var(--brand); color: var(--ink); }
.lang-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
html[data-lang="ko"] :is(h1, h2, blockquote, .story-close) { letter-spacing: -.01em; }

/* One phone with its process passes beside it: same height, same top edge, so they read as one unit. */
.decision-pair { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 248px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.process-strip.is-beside { grid-column: auto; align-self: stretch; }
.process-strip.is-beside .evolution { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; height: 100%; align-items: stretch; }
.process-strip.is-beside .evolution > .label { margin: 0; }
.process-strip.is-beside .evolution-stage { height: auto; min-height: 340px; background: var(--surface); border-radius: var(--radius); padding: 20px; }
.process-strip.is-beside .evolution-frame img { inset: 0; }
.process-strip.is-beside .evolution-steps { gap: 2px; }
.process-strip.is-beside .evolution-steps button { grid-template-columns: 26px 1fr; gap: 8px; padding: 8px 12px; font-size: 14px; border-radius: 10px; }
.process-strip.is-beside .evolution-steps button[aria-selected="true"] { background: var(--surface); }
@media (max-width: 760px) {
  .decision-pair { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .decision-pair .process-strip { width: 100%; }
  .process-strip.is-beside .evolution-stage { min-height: 380px; }
}

/* "Led to" link: say where it goes instead of a lone arrow. */
a.led-to .led-to-jump { flex-basis: 100%; display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 13px; font-weight: 600; letter-spacing: .01em; opacity: .8; transform: none !important; }
a.led-to .led-to-jump b { display: inline-block; transition: transform .25s var(--ease); }
a.led-to:hover .led-to-jump { opacity: 1; }
a.led-to:hover .led-to-jump b { transform: translateY(3px); }
/* The Pax prototype is a 600px phone; don't pad the frame far past it. */
.embed iframe[src*="pax-demo"] { height: 660px; }

/* Process steps read as buttons: an outline, a hover lift, and a fill bar that shows the autoplay timing. */
.evolution-steps button { position: relative; overflow: hidden; border: 1px solid var(--line, rgb(0 0 0 / .1)); background: var(--paper); }
.evolution-steps button:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--surface); }
.evolution-steps button[aria-selected="true"] { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.evolution-steps button::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
[data-playing] .evolution-steps button[aria-selected="true"]::after { animation: step-fill var(--dwell, 3200ms) linear forwards; }
@keyframes step-fill { to { transform: scaleX(1); } }
.evolution-steps { gap: 8px; }

/* Decisions with side notes: keep the main paragraph at a readable width and put the notes
   (Considered instead, Tradeoff) in the column to its right, with or without images below. */
@media (min-width: 901px) {
  .decision .decision-copy:has(> .aside) { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); grid-auto-flow: row dense; column-gap: clamp(32px, 5vw, 64px); align-items: start; }
  .decision .decision-copy:has(> .aside) > .label, .decision .decision-copy:has(> .aside) > h3 { grid-column: 1 / -1; }
  .decision .decision-copy:has(> .aside) > p:not(.label):not(.aside) { grid-column: 1; grid-row: 3 / span 4; }
  .decision .decision-copy > .aside { grid-column: 2; padding-left: 16px; border-left: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); }
}

/* Expand button on case study videos: an icon in the control row, just left of the mute button.
   Shows with the browser's controls (hover or focus), and always on touch screens. */
.video-expand { position: absolute; right: 41px; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #fff; cursor: pointer; opacity: 0; transition: opacity .2s, background .2s; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .5)); }
.video-expand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
figure.video:hover .video-expand, .video-expand:focus-visible, figure.video.is-expanded .video-expand { opacity: 1; }
.video-expand:hover { background: rgb(255 255 255 / .18); }
.video-expand:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: none) { .video-expand { opacity: 1; } }
figure.video.is-expanded { position: fixed !important; inset: 0; z-index: 1000; margin: 0; padding: clamp(16px, 3vw, 40px); background: rgb(10 10 10 / .96); display: grid; place-items: center; }
figure.video.is-expanded video { width: 100%; height: 100%; max-height: none; object-fit: contain; border-radius: 0; background: transparent; }
figure.video.is-expanded figcaption { display: none; }
figure.video.is-expanded .video-expand { right: calc(clamp(16px, 3vw, 40px) + 41px); bottom: calc(clamp(16px, 3vw, 40px) + 37px); }
.has-expanded-video { overflow: hidden; }
.has-expanded-video .lang-toggle { display: none; }

/* One phone and no process: the screen sits beside its text instead of under it, so the decision reads as one unit. */
@media (min-width: 901px) {
  .decision.is-solo { grid-template-columns: minmax(0, 1fr) minmax(0, 248px); column-gap: clamp(40px, 6vw, 88px); }
  .decision.is-solo > .decision-media { grid-column: 2; grid-row: 1; }
  .decision.is-solo > .decision-copy { grid-column: 1; grid-row: 1; }
  .decision.is-solo > .aside.is-learned { grid-column: 1 / -1; }
  .decision.is-solo .decision-copy:has(> .aside) { grid-template-columns: minmax(0, 1fr); }
  .decision.is-solo .decision-copy:has(> .aside) > p:not(.label):not(.aside) { grid-column: auto; grid-row: auto; }
  .decision.is-solo .decision-copy > .aside { grid-column: auto; }
}

/* Artifact-first case-study openings: shared in English and Korean. */
.study-hero h1 { font-size: clamp(52px, 7.5vw, 96px); }
.study-hero .study-hero-media { margin-top: 12px; }
.study-hero-media img { max-height: min(62svh, 600px); object-fit: contain; }
.study-hero-screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 3vw, 40px); padding: clamp(16px, 3vw, 32px); margin-top: 12px; background: var(--surface); border-radius: var(--radius); }
.study-hero-screens .phone { min-width: 0; width: 100%; max-width: 220px; margin: 0; justify-self: center; }
.study-hero-screens img { display: block; width: 100%; height: auto; object-fit: contain; border: 5px solid #292929; border-radius: 28px; background: #292929; box-shadow: 0 8px 20px rgb(0 0 0 / .10); cursor: zoom-in; }
.study-hero-screens figcaption { margin-top: 12px; text-align: center; font-size: 14px; color: var(--ink-2); }
.study-hero .summary-card { background: transparent; border-radius: 0; margin-top: 24px; overflow: visible; }
.study-hero .summary-card > div { padding: 20px 0; }
.study-hero .summary-card > div:last-child { background: transparent; }
.study-hero .summary-card dt { text-transform: none; letter-spacing: 0; font-size: 14px; }
@media (max-width: 560px) {
  .study-hero-screens { gap: 8px; padding: 12px; }
  .study-hero-screens img { height: auto; border-width: 3px; border-radius: 14px; }
  .study-hero-screens figcaption { font-size: 12px; line-height: 1.4; }
}

/* Clear destinations without widening or shifting the article. */
[data-study-anchor] { scroll-margin-top: 96px; }
.toc a::before { flex-shrink: 0; }
.toc a { align-items: baseline; line-height: 1.45; }
.toc li:focus-within > .toc-subitems { display: grid; }
@media (min-width: 1280px) {
  .toc-rail { max-height: calc(100svh - 112px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 8px; }
}
@media (max-width: 1279px) {
  .study-body .toc { display: block; padding-left: 0; }
  .toc > ol { display: flex; flex-wrap: wrap; gap: 12px 20px; }
  .toc > ol > li > a { font-size: 13px; }
  .toc-progress, .toc a::before { display: none; }
  .toc .toc-subitems, .toc li.is-open > .toc-subitems, .toc li:focus-within > .toc-subitems { display: none; }
}

/* Keep Nollution's evidence statistic and its explanation distinct. */
.research-stat-caption { display: block; font-size: 14px; line-height: 1.4; margin-top: 6px; }

/* Short parallel research steps; retain a readable stack on phones. */
@media (min-width: 700px) {
  .cards.cards-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
}

/* Keep the single Luma reconnection recording at phone scale and centered. */
#reconnection .decision-media .phone:has(video.loop) { width: 100%; max-width: 280px; margin-inline: auto; }

/* Homepage recording: preserve the entire phone screen within the card. */
.feature-media.is-video { display: flex; align-items: center; justify-content: center; padding: 16px; background: #eee9e5; }
.feature-media.is-video video { display: block; height: 100%; width: auto; max-width: 100%; aspect-ratio: 584 / 1264; object-fit: contain; border-radius: 16px; box-shadow: 0 8px 24px #00000012; }

/* Luma’s card tells the reconnection story alongside the actual recording. */
.feature-media.luma-story { position: relative; padding: 6%; gap: 7%; justify-content: space-between; background: linear-gradient(135deg, #eee7fb, #f8e2ec 65%, #f9eedb); container-type: inline-size; }
.luma-story-copy { width: 49%; align-self: stretch; display: flex; flex-direction: column; justify-content: center; color: #35283e; }
.luma-story-brand { font: 700 clamp(20px, 5cqw, 34px)/1 "Hanken Grotesk", sans-serif; letter-spacing: -.06em; margin-bottom: 9%; }
.luma-story-brand span { color: #986bea; margin-left: 3px; }
.luma-story-copy strong { font: 600 clamp(22px, 6.6cqw, 42px)/1.08 "Hanken Grotesk", sans-serif; letter-spacing: -.045em; }
.luma-story-steps { list-style: none; padding: 0; margin: 12% 0 0; display: grid; gap: 9px; }
.luma-story-steps li { font-size: clamp(10px, 2.8cqw, 16px); line-height: 1.25; opacity: .47; display: flex; align-items: center; gap: 8px; transition: opacity .3s; }
.luma-story-steps li::before { content: ''; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: currentColor; }
.luma-story-steps li.is-current { opacity: 1; font-weight: 650; }
.luma-story-steps li.is-current::before { background: #d33477; box-shadow: 0 0 0 3px #d3347717; }
/* A straight-on device shell keeps the original screen proportions intact. */
.luma-device { position: relative; flex: 0 0 auto; height: 100%; aspect-ratio: 596 / 1276; max-width: 44%; padding: 1%; border: 1px solid #777478; border-radius: 29px; background: #19181c; box-shadow: inset 0 0 0 1px #464348, 0 12px 24px #35283e25, 0 2px 5px #35283e18; }
.luma-device::before, .luma-device::after { content: ''; position: absolute; width: 2px; background: #555157; border-radius: 2px; }
.luma-device::before { left: -3px; top: 24%; height: 13%; }
.luma-device::after { right: -3px; top: 29%; height: 10%; }
.feature-media.luma-story .luma-device video { width: 100%; height: 100%; max-width: none; border: 0; border-radius: 23px; object-fit: contain; background: #111014; transform: none; box-shadow: none; }
.luma-device-island { position: absolute; z-index: 1; top: 2.6%; left: 36%; width: 28%; height: 2.7%; border-radius: 999px; background: #111014; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .luma-story-steps li { opacity: 1; transition: none; } }

/* Landscape buoy-to-app film retains both scenes without cropping. */
.feature-media.is-film { position: relative; background: #f7fbfd; }
.feature-media.is-film video { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.featured .feature:is(:hover, :focus-visible) .feature-media.is-film video { transform: scale(1.015); }
.featured .feature .luma-device { transition: transform .6s var(--ease); }
.featured .feature:is(:hover, :focus-visible) .luma-device { transform: scale(1.015); }
.feature-media.is-film figcaption { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); margin: 0; padding: 4px 9px; white-space: nowrap; border-radius: 10px; background: #ffffffed; color: #184653; font-size: clamp(9px, 1vw, 12px); }

#card-stool .feature-media.is-film { background: #000; }

/* Evidence stays beside the existing decision and artifact; no duplicate summary section. */
.decision-reasoning { display: grid; gap: 18px; grid-column: 1 / -1; }
.decision-reasoning > div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; }
.decision-reasoning dt, .decision-outcome > b { font-size: 13px; font-weight: 600; color: var(--accent); }
.decision-reasoning dd { margin: 0; }
.decision-reasoning strong { color: var(--ink); }
.decision-outcome { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; grid-column: 1 / -1; padding: 18px 0; border-top: 1px solid var(--line); }
.decision-reasoning a, .decision-outcome a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .decision-reasoning > div, .decision-outcome { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

/* Nollution: a real prototype and its companion screen share one quiet presentation. */
.feature-media.nollution-product { display: grid; grid-template-columns: 1.08fr 1fr; background: #103c4c; }
.nollution-context, .nollution-app { position: relative; min-width: 0; height: 100%; overflow: hidden; }
.feature-media.nollution-product .nollution-context > img { display: block; height: 100%; object-fit: cover; object-position: 52% 70%; transform: none; }
.featured .feature:is(:hover, :focus-visible) .nollution-context > img { transform: scale(1.015); }
.nollution-context::after { content: ''; position: absolute; inset: 65% 0 0; background: linear-gradient(transparent, #132d3590); }
.nollution-context > span, .nollution-app > span { position: absolute; bottom: 5%; left: 0; width: 100%; text-align: center; color: #fff; font-size: clamp(10px, 1vw, 13px); z-index: 1; }
.nollution-app { display: flex; justify-content: center; align-items: flex-start; padding-top: 7%; }
.nollution-phone { position: relative; height: 83%; aspect-ratio: 473 / 1024; border-radius: 8% / 4%; padding: 3px; background: #08232c; border: 1px solid #5c7981; overflow: hidden; transition: transform .6s var(--ease); }
.featured .feature:is(:hover, :focus-visible) .nollution-phone { transform: scale(1.015); }
.feature-media.nollution-product .nollution-phone img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: contain; border-radius: 7% / 3.5%; transform: none; transition: opacity .45s ease; }
.nollution-detector { opacity: 0; }
#card-nollution:is(:hover, :focus-visible) .nollution-detector { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .feature-media.nollution-product .nollution-phone img { transition: none; } }
