/* Max Zabramny — Director's Cut
   Built from Layout.pen (Iteration B — Director's Cut + case study frames). */

:root {
  /* Surfaces */
  --bg: #121110;
  --raised: #1B1A18;
  --paper: #F6F3EB;
  --white: #FFFFFF;
  --about-bg: #161511;

  /* Text on dark */
  --fg: #F6F3EB;
  --fg-muted: #8E887C;
  --fg-soft: #CFC9BD;
  --rule-dark: #55504A;
  --rule-hook: #2E2B27;

  /* Text on light */
  --ink: #121110;
  --ed-ink: #1C1A16;
  --muted: #6F6A61;
  --rule-light: #DDD6C8;

  /* About block */
  --about-body: #C9C4BA;
  --about-desc: #9B968C;
  --about-rule: #35332D;

  /* Accents */
  --accent: #B5542D;
  --copper: #C9875A;

  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1440px;
  --gutter: clamp(20px, 4.45vw, 64px);
  --pad-x-l: max(var(--gutter), env(safe-area-inset-left, 0px));
  --pad-x-r: max(var(--gutter), env(safe-area-inset-right, 0px));
  --section-y: clamp(72px, 7.6vw, 110px);

  /* Type scale */
  --t-display: clamp(46px, 6.67vw, 96px);
  --t-lead: clamp(28px, 3.06vw, 44px);
  --t-title: clamp(34px, 3.61vw, 52px);
  --t-cta: clamp(40px, 5.83vw, 84px);
  --t-card: clamp(30px, 3.2vw, 46px);
  --t-next: clamp(36px, 3.75vw, 54px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, figure, blockquote, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 400; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.page { max-width: var(--max); margin: 0 auto; background: var(--bg); overflow: hidden; }
.wrap { padding-left: var(--pad-x-l); padding-right: var(--pad-x-r); }

/* ---------- Shared type ---------- */
.label { font: 600 12px/1.25 var(--sans); letter-spacing: 2.5px; text-transform: uppercase; color: var(--fg-muted); }
.on-light .label, .label.on-light { color: var(--muted); }
.serif { font-family: var(--serif); }
.title { font: 400 var(--t-title)/1.1 var(--serif); letter-spacing: -1px; text-wrap: balance; }
.sub { font: 400 16px/1.6 var(--sans); color: var(--fg-muted); max-width: 640px; }
.body-serif { font: 400 18px/1.65 var(--serif); }

/* Surfaces */
.s-dark { background: var(--bg); color: var(--fg); }
.s-raised { background: var(--raised); color: var(--fg); }
.s-paper { background: var(--paper); color: var(--ink); }
.s-white { background: var(--white); color: var(--ink); }
.s-paper .sub, .s-white .sub { color: var(--muted); }
.s-paper .label, .s-white .label { color: var(--muted); }
.s-paper .body-serif { color: var(--ed-ink); }
.s-white .body-serif { color: var(--muted); }
.s-dark .body-serif, .s-raised .body-serif { color: var(--fg-muted); }

/* ---------- Nav ---------- */
.nav { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 30px; padding-bottom: 30px; }
.wordmark { font: 400 19px/1.3 var(--serif); color: var(--fg); }
.nav-links { display: flex; gap: 36px; }
.nav-links a { font: 400 14px/1.2 var(--sans); color: var(--fg-muted); transition: color .2s; }
.nav-links a:hover, .wordmark:hover { color: var(--fg); }
@media (max-width: 520px) { .nav-links { gap: 20px; } }

/* ---------- Home hero ---------- */
.home-hero { display: flex; flex-direction: column; gap: 48px; padding-top: clamp(72px, 9vw, 130px); padding-bottom: clamp(64px, 7.6vw, 110px); }
.home-hero h1 { font: 400 var(--t-display)/1.02 var(--serif); letter-spacing: -2px; max-width: 1200px; text-wrap: balance; }
.home-hero .letter { font: 400 19px/1.65 var(--serif); color: var(--fg-muted); max-width: 640px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-bottom: 96px; }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 24px 0 0 32px; border-left: 1px solid var(--rule-dark); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat .v { font: 400 54px/1.3 var(--serif); color: var(--fg); }
.stat .l { font: 400 13px/1.25 var(--sans); color: var(--fg-muted); }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; padding-bottom: 72px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat .v { font-size: 44px; }
}

/* ---------- Work cards (home) ---------- */
.card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; aspect-ratio: 2 / 1; isolation: isolate; }
.card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18,17,16,0) 45%, rgba(18,17,16,.9) 100%); }
.card.fade-50::after { background: linear-gradient(180deg, rgba(18,17,16,0) 50%, rgba(18,17,16,.8) 100%); }
.card:hover > img { transform: scale(1.025); }
.card .caption { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 44px; }
.card .t { font: 400 var(--t-card)/1.3 var(--serif); letter-spacing: -1px; color: var(--fg); }
.card .d { font: 400 14px/1.25 var(--sans); color: var(--fg-soft); margin-top: 6px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; }
.pair .card { aspect-ratio: 720 / 560; }
.pair .caption { padding: 0 48px 36px; }
.pair .t { font-size: clamp(26px, 2.22vw, 32px); letter-spacing: 0; }
@media (max-width: 760px) {
  .card { aspect-ratio: 4 / 3; }
  .pair { grid-template-columns: 1fr; }
  .pair .card { aspect-ratio: 4 / 3; }
  .pair .caption { padding-left: var(--pad-x-l); padding-right: var(--pad-x-r); padding-bottom: 32px; }
  .card .caption { padding-bottom: 32px; }
}

/* ---------- Quote / About ---------- */
.quote { display: flex; justify-content: center; padding-top: clamp(80px, 9vw, 130px); padding-bottom: clamp(80px, 9vw, 130px); }
.quote blockquote { font: 400 clamp(28px, 2.78vw, 40px)/1.3 var(--serif); text-align: center; max-width: 980px; text-wrap: balance; }

.about { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 96px; padding-top: 112px; padding-bottom: 112px; background: var(--about-bg); }
.about .portrait { width: 100%; aspect-ratio: 420 / 520; object-fit: cover; border-radius: 4px; }
.about-text { display: flex; flex-direction: column; gap: 40px; }
.about-text h2 { font: 400 56px/1.1 var(--serif); color: #FAF9F6; }
.about-text .bio { display: flex; flex-direction: column; gap: 1.7em; font: 400 17px/1.7 var(--sans); color: var(--about-body); max-width: 620px; }
.principles li { display: grid; grid-template-columns: 18px 220px minmax(0, 1fr); gap: 40px; padding: 24px 0; border-top: 1px solid var(--about-rule); }
.principles .n { font: 400 18px/1.3 var(--serif); color: var(--accent); }
.principles .pt { font: 600 17px/1.25 var(--sans); color: #FAF9F6; }
.principles .pd { font: 400 15px/1.6 var(--sans); color: var(--about-desc); }
@media (max-width: 1080px) {
  .about { grid-template-columns: 1fr; gap: 56px; padding-top: 88px; padding-bottom: 88px; }
  .about .portrait { max-width: 420px; }
  .about-text h2 { font-size: 44px; }
}
@media (max-width: 640px) {
  .principles li { grid-template-columns: 24px minmax(0, 1fr); gap: 8px 16px; }
  .principles .pd { grid-column: 2; }
}

/* ---------- Footer ---------- */
.footer { display: flex; flex-direction: column; gap: 56px; padding-top: 90px; padding-bottom: 44px; background: var(--paper); color: var(--ink); }
.footer .label { letter-spacing: 2px; color: var(--muted); }
.footer .cta { font: 400 var(--t-cta)/1.3 var(--serif); letter-spacing: -1px; color: var(--ink); overflow-wrap: anywhere; }
.footer .cta:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom .copy { font: 400 13px/1.25 var(--sans); color: var(--muted); }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font: 400 14px/1.2 var(--sans); color: var(--ink); }
.footer-links a:hover { color: var(--accent); }

/* ---------- Case study: hero + meta ---------- */
.case-hero { display: flex; flex-direction: column; gap: 40px; padding-top: clamp(72px, 7.6vw, 110px); padding-bottom: 80px; }
.back { display: inline-flex; align-items: center; gap: 10px; font: 400 13px/1.2 var(--sans); color: var(--fg-muted); width: max-content; }
.back:hover { color: var(--fg); }
.back svg { width: 15px; height: 15px; }
.case-hero h1 { font: 400 var(--t-display)/1.04 var(--serif); letter-spacing: -2px; max-width: 1200px; text-wrap: balance; }
.case-hero h1.h-88 { font-size: clamp(44px, 6.11vw, 88px); line-height: 1.05; }

.meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 88px; }
.meta div { display: flex; flex-direction: column; gap: 8px; padding: 20px 0 0 32px; border-left: 1px solid var(--rule-dark); }
.meta div:first-child { padding-left: 0; border-left: 0; }
.meta dt { font: 600 11px/1.2 var(--sans); letter-spacing: 2px; color: var(--fg-muted); }
.meta dd { margin: 0; font: 400 19px/1.3 var(--serif); color: var(--fg); }
@media (max-width: 760px) {
  .meta { grid-template-columns: 1fr; padding-bottom: 64px; }
  .meta div, .meta div:first-child { padding: 16px 0; border-left: 0; border-top: 1px solid var(--rule-dark); }
}

/* Full-bleed images */
.bleed { position: relative; width: 100%; overflow: hidden; }
.bleed > img { width: 100%; height: 100%; object-fit: cover; }
.bleed.fade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,17,16,0) 55%, rgba(18,17,16,.7) 100%); pointer-events: none; }
.ar-2-1 { aspect-ratio: 2 / 1; }
.ar-1440-560 { aspect-ratio: 1440 / 560; }
@media (max-width: 760px) { .ar-2-1, .ar-1440-560 { aspect-ratio: 4 / 3; } }
.plate { width: 100%; }

/* ---------- Challenge ---------- */
.challenge { display: flex; flex-direction: column; gap: 36px; padding-top: 120px; padding-bottom: 100px; }
.challenge.even { padding-bottom: 120px; }
.challenge .lead { font: 400 var(--t-lead)/1.25 var(--serif); letter-spacing: -.5px; color: var(--fg); text-wrap: pretty; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.cols p { font: 400 18px/1.65 var(--serif); color: var(--fg-muted); }
@media (max-width: 760px) {
  .challenge { padding-top: 80px; padding-bottom: 72px; }
  .challenge.even { padding-bottom: 80px; }
  .cols { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Generic section ---------- */
.section { display: flex; flex-direction: column; gap: 56px; padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section.gap-48 { gap: 48px; }
.section.gap-64 { gap: 64px; }
.section.gap-96 { gap: clamp(64px, 6.67vw, 96px); }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.head-left { display: flex; flex-direction: column; gap: 16px; }
.head-left.g20 { gap: 20px; }
.head .sub.w460 { max-width: 460px; }
/* Head split: fixed-width left block + body that fills */
.head-split { display: grid; grid-template-columns: 520px minmax(0, 1fr); gap: 80px; align-items: end; }
.head-split.w560 { grid-template-columns: 560px minmax(0, 1fr); }
@media (max-width: 980px) {
  .head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .head-split, .head-split.w560 { grid-template-columns: 1fr; gap: 24px; }
}

/* Split: text + media (cream strategy blocks) */
.split { display: grid; grid-template-columns: 520px minmax(0, 1fr); gap: 80px; align-items: center; padding-top: var(--section-y); padding-bottom: var(--section-y); }
.split.text-440 { grid-template-columns: 440px minmax(0, 1fr); }
.split.media-first { grid-template-columns: 620px minmax(0, 1fr); }
.split-text { display: flex; flex-direction: column; gap: 24px; }
.split-text .body-serif + .body-serif { margin-top: 0; }
.split-text .bio { display: flex; flex-direction: column; gap: 1.65em; }
.media { width: 100%; object-fit: cover; }
.media.contain { object-fit: contain; background: var(--white); }
.r16 { border-radius: 16px; }
.r4 { border-radius: 4px; }
.h-620 { aspect-ratio: 712 / 620; }
.h-560 { aspect-ratio: 712 / 560; }
@media (max-width: 1080px) {
  .split, .split.text-440, .split.media-first { grid-template-columns: 1fr; gap: 48px; }
  .split.media-first > :first-child { order: 2; }
}

/* Captioned figure grid */
.grid { display: grid; gap: 40px; }
.grid.g24 { gap: 24px; }
.grid.g32 { gap: 32px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.rows { row-gap: 48px; }
.fig { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.fig.g14 { gap: 14px; }
.fig img { width: 100%; object-fit: cover; }
.fig .ft { font: 400 24px/1.3 var(--serif); color: var(--ink); }
.fig .fd { font: 400 13.5px/1.6 var(--sans); color: var(--muted); }
.fig figcaption.serif-cap { font: 400 15px/1.4 var(--serif); color: var(--fg-muted); }
.s-paper .fig figcaption.serif-cap, .s-white .fig figcaption.serif-cap { color: var(--muted); }
.fig .cap-text { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 860px) {
  .grid.c2, .grid.c3 { grid-template-columns: 1fr; }
}

/* Phone screen rows */
.screens { display: flex; justify-content: space-between; gap: 24px; }
.screen { display: flex; flex-direction: column; align-items: center; gap: 14px; flex: 0 1 auto; min-width: 0; }
.screen img { width: 100%; height: auto; object-fit: cover; }
.screen.bordered img { border: 1px solid var(--rule-dark); }
.screen figcaption { font: 400 12.5px/1.25 var(--sans); color: var(--fg-muted); text-align: center; }
.screen.c13 figcaption { font-size: 13px; }
.screens.w198 .screen { width: 198px; } .screens.w198 img { aspect-ratio: 198 / 429; border-radius: 12px; }
.screens.w290 .screen { width: 290px; } .screens.w290 img { aspect-ratio: 290 / 572; border-radius: 14px; }
.screens.w232 .screen { width: 232px; } .screens.w232 img { aspect-ratio: 232 / 457; }
@media (max-width: 1100px) {
  .screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
  .screens .screen, .screens.w198 .screen, .screens.w290 .screen, .screens.w232 .screen { width: auto; }
  .screens.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .screens, .screens.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* In motion */
.motion { display: flex; flex-direction: column; align-items: center; gap: 48px; padding-top: 40px; padding-bottom: 120px; text-align: center; }
.motion .head-c { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.motion h2 { font: 400 clamp(32px, 3.06vw, 44px)/1.3 var(--serif); letter-spacing: -1px; }
.motion .anim { width: min(390px, 100%); aspect-ratio: 390 / 848; object-fit: cover; border-radius: 28px; border: 1px solid var(--rule-dark); }
.motion p { font: 400 16px/1.5 var(--serif); color: var(--fg-muted); max-width: 480px; }

/* Next case study */
.next { position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; aspect-ratio: 1440 / 480; overflow: hidden; isolation: isolate; }
@media (max-width: 960px) { .next { aspect-ratio: 4 / 3; } .next .caption { padding-bottom: 32px; } }
.next > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.next::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18,17,16,.2) 0%, rgba(18,17,16,.9) 100%); }
.next:hover > img { transform: scale(1.025); }
.next .caption { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 48px; }
.next .label { color: var(--fg-soft); }
.next .nt { font: 400 var(--t-next)/1.3 var(--serif); letter-spacing: -1px; color: var(--fg); margin-top: 8px; }
.next svg { width: 32px; height: 32px; color: var(--fg); flex: none; transition: transform .3s; }
.next:hover svg { transform: translateX(6px); }

/* ---------- Eight Sleep specifics ---------- */
.es-phones { display: flex; justify-content: center; gap: 48px; padding-top: 90px; background: linear-gradient(180deg, #121110 0%, #2A1C14 50%, #4A2E1E 100%); aspect-ratio: 2 / 1; overflow: hidden; }
.es-phones .ph { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 320px; flex: 0 1 320px; }
.es-phones .ph.down { padding-top: 60px; }
.es-phones img { width: 100%; aspect-ratio: 320 / 693; object-fit: cover; }
.es-phones .r12 { border-radius: 12px; }
.es-phones .r28 { border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.es-phones figcaption { font: 400 12.5px/1.25 var(--sans); color: var(--fg-muted); }
@media (max-width: 760px) { .es-phones { gap: 16px; padding-top: 48px; aspect-ratio: 4 / 3; } .es-phones .ph.down { padding-top: 32px; } }

.audit-img { width: 100%; border-radius: 16px; background: #DCDBD3; }

.hook { display: flex; flex-direction: column; padding: 48px 48px 40px; background: var(--bg); color: var(--fg); border-radius: 16px; }
.hook-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 28px; flex-wrap: wrap; }
.hook-head h3 { font: 400 28px/1.3 var(--serif); }
.hook-head span { font: 400 13px/1.25 var(--sans); color: var(--fg-muted); }
.hook li { display: grid; grid-template-columns: 28px 140px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-top: 1px solid var(--rule-hook); align-items: start; }
.hook .n { font: 600 12px/1.6 var(--sans); letter-spacing: 2px; color: var(--copper); }
.hook .ht { font: 400 22px/1.2 var(--serif); }
.hook .hd { font: 400 14.5px/1.55 var(--sans); color: var(--fg-muted); }
.hook-note { display: flex; align-items: center; gap: 10px; padding-top: 18px; border-top: 1px solid var(--rule-hook); font: 400 13.5px/1.4 var(--sans); color: var(--fg-soft); }
.hook-note svg { width: 16px; height: 16px; color: var(--copper); flex: none; }
@media (max-width: 560px) {
  .hook { padding: 32px 24px 28px; }
  .hook li { grid-template-columns: 28px minmax(0, 1fr); gap: 6px 12px; }
  .hook .hd { grid-column: 2; }
}

.pairs { display: flex; flex-direction: column; gap: clamp(64px, 6.67vw, 96px); }
.pair-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 672px); gap: 96px; align-items: center; }
.pair-row.flip { grid-template-columns: minmax(0, 672px) minmax(0, 1fr); }
.pair-text { display: flex; flex-direction: column; gap: 18px; }
.pair-text .num { font: 400 18px/1.3 var(--serif); color: var(--fg-soft); }
.pair-text h3 { font: 400 36px/1.15 var(--serif); letter-spacing: -.5px; }
.pair-text p { font: 400 17px/1.65 var(--serif); color: var(--fg-muted); max-width: 440px; }
.pair-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 32px; }
.pair-shots .fig { gap: 16px; }
.pair-shots img { aspect-ratio: 320 / 694; border-radius: 24px; }
.pair-shots figcaption { font: 400 13px/1.25 var(--sans); color: var(--fg-muted); }
@media (max-width: 980px) {
  .pair-row, .pair-row.flip { grid-template-columns: 1fr; gap: 32px; }
  .pair-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 672px; }
  .pair-row.flip .pair-text { order: -1; }
  .pair-shots { gap: 16px; }
  .pair-shots img { border-radius: 18px; }
}

.shot { width: 100%; border-radius: 8px; box-shadow: 0 12px 40px rgba(18,17,16,.1); }
.shot.r6 { border-radius: 6px; aspect-ratio: 416 / 265; object-fit: cover; object-position: top; }

.phone-panel { display: flex; justify-content: center; padding-top: 64px; border-radius: 16px; background: linear-gradient(180deg, #121110 0%, #3A2418 100%); aspect-ratio: 620 / 1278; overflow: hidden; }
.phone-panel img { width: 54.8%; height: auto; align-self: flex-start; border-radius: 28px; border: 1px solid var(--rule-dark); }
@media (max-width: 1080px) { .phone-panel { aspect-ratio: auto; padding-bottom: 64px; } }

.ruled-list { display: flex; flex-direction: column; gap: 24px; }
.ruled-list > div { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--rule-light); }
.ruled-list h3 { font: 400 22px/1.3 var(--serif); color: var(--ink); }
.ruled-list p { font: 400 17px/1.6 var(--serif); color: var(--ed-ink); }

/* ---------- Volvo specifics ---------- */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.points > div { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid var(--ink); }
.points .n { font: 400 16px/1.3 var(--serif); color: var(--muted); }
.points h3 { font: 400 32px/1.3 var(--serif); color: var(--ink); }
.points p { font: 400 18px/1.65 var(--serif); color: var(--ed-ink); }
@media (max-width: 860px) { .points { grid-template-columns: 1fr; gap: 32px; } }

.photo-row { display: grid; gap: 24px; }
.photo-row img { width: 100%; height: 100%; object-fit: cover; }
.photo-row.a { grid-template-columns: minmax(0, 1fr) 440px; }
.photo-row.a img { aspect-ratio: auto; height: 460px; }
.photo-row.b { grid-template-columns: 1fr 1fr; }
.photo-row.b img { height: 420px; }
@media (max-width: 860px) {
  .photo-row.a, .photo-row.b { grid-template-columns: 1fr; }
  .photo-row.a img, .photo-row.b img { height: auto; aspect-ratio: 4 / 3; }
}

.idea { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 96px; align-items: center; padding-top: 120px; padding-bottom: 120px; }
.idea-text { display: flex; flex-direction: column; gap: 28px; }
.idea-text h2 { font: 400 clamp(44px, 5vw, 72px)/1.05 var(--serif); letter-spacing: -1.5px; text-wrap: balance; }
.idea-text p { font: 400 19px/1.65 var(--serif); color: var(--fg-muted); }
.idea-text .aside { color: var(--fg-soft); line-height: 1.3; }
.cart { display: flex; flex-direction: column; padding: 36px 40px; background: var(--paper); color: var(--ink); border-radius: 6px; }
.cart-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--rule-light); }
.cart-head h3 { font: 400 26px/1.3 var(--serif); }
.cart-head span { font: 600 11px/1.2 var(--sans); letter-spacing: 2px; color: var(--muted); }
.cart li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule-light); }
.cart li:last-child { border-bottom: 2px solid var(--ink); }
.cart .box { width: 18px; height: 18px; border-radius: 3px; display: grid; place-items: center; flex: none; background: var(--ink); }
.cart .box svg { width: 12px; height: 12px; color: var(--paper); }
.cart .off .box { background: var(--paper); border: 1.5px solid #B8B09E; }
.cart .f { flex: 1; font: 400 15px/1.3 var(--sans); }
.cart .tm { font: 400 17px/1.3 var(--serif); }
.cart .off .f, .cart .off .tm { color: var(--about-desc); }
.cart-total { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 22px; padding-bottom: 6px; }
.cart-total .tl { display: flex; flex-direction: column; gap: 4px; }
.cart-total .tl span:first-child { font: 600 11px/1.2 var(--sans); letter-spacing: 2px; color: var(--muted); }
.cart-total .tl span:last-child { font: 400 13px/1.25 var(--sans); color: var(--about-desc); }
.cart-total strong { font: 400 48px/1.1 var(--serif); letter-spacing: -1px; font-variant-numeric: tabular-nums; }
@media (max-width: 1080px) { .idea { grid-template-columns: 1fr; gap: 56px; padding-top: 88px; padding-bottom: 88px; } .cart { max-width: 520px; } }
@media (max-width: 480px) { .cart { padding: 28px 22px; } }

/* ---------- Bond specifics ---------- */
.location-plate { display: flex; justify-content: center; align-items: center; gap: 80px; padding: 70px 40px; background: var(--raised); border-radius: 4px; }
.location-plate img { width: 301px; flex: 0 1 301px; min-width: 0; }
@media (max-width: 860px) { .location-plate { gap: 16px; padding: 40px 16px; } }

/* ---------- Porsche specifics ---------- */
.sketches { display: flex; flex-direction: column; gap: 24px; }
.sketches .grid img { aspect-ratio: 640 / 380; }
.zync-images { display: flex; flex-direction: column; gap: 24px; }
.zync-images img { width: 100%; object-fit: cover; }
.zync-images .profile { aspect-ratio: 792 / 460; object-fit: contain; background: var(--white); }
.zync-images .phone { aspect-ratio: 792 / 440; }

/* ---------- Bond: Designing for safety ---------- */
.safety { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 96px; align-items: center; padding-top: var(--section-y); padding-bottom: var(--section-y); }
.safety-text { display: flex; flex-direction: column; gap: 24px; }
.palette { display: flex; flex-direction: column; gap: 28px; padding-top: 16px; }
.palette-group { display: flex; flex-direction: column; gap: 12px; }
.palette-group > p { font: 600 11px/1.2 var(--sans); letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.swatch { height: 120px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 20px 22px; border-radius: 6px; color: var(--paper); }
.swatch b { font: 600 14px/1.2 var(--sans); }
.swatch span { font: 400 12.5px/1.2 var(--sans); }
.swatch.light { color: var(--ink); box-shadow: inset 0 0 0 1px #E2DDD2; }
.safety .device { width: 100%; aspect-ratio: 340 / 746; object-fit: cover; border-radius: 28px; box-shadow: 0 24px 60px rgba(18,17,16,.15); }
@media (max-width: 980px) {
  .safety { grid-template-columns: 1fr; gap: 56px; }
  .safety .device { max-width: 300px; }
}
@media (max-width: 480px) { .swatches { grid-template-columns: 1fr; } }

/* ---------- Bond: Launch film ---------- */
.film-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.film-src { display: inline-flex; align-items: center; gap: 10px; font: 400 13px/1.25 var(--sans); color: var(--fg-muted); }
.film-src:hover { color: var(--fg); }
.film-src svg { width: 18px; height: 18px; }
.video { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; isolation: isolate; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.video::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(18,17,16,.25); transition: background .3s; }
.video:hover img { transform: scale(1.02); }
.video:hover::after { background: rgba(18,17,16,.1); }
.video .play { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: rgba(246,243,235,.9); color: var(--ink); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.video:hover .play { transform: scale(1.06); }
.video .play svg { width: 34px; height: 34px; margin-left: 4px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 560px) { .video .play { width: 68px; height: 68px; } .video .play svg { width: 26px; height: 26px; } }

/* ---------- How I work with AI ---------- */
.ai-hero { display: flex; flex-direction: column; gap: 40px; padding-top: clamp(72px, 9vw, 130px); padding-bottom: clamp(72px, 8.3vw, 120px); }
.ai-hero h1 { font: 400 clamp(44px, 6.11vw, 88px)/1.04 var(--serif); letter-spacing: -2px; max-width: 1260px; text-wrap: balance; }
.ai-hero .intro { font: 400 20px/1.6 var(--serif); color: var(--fg-muted); max-width: 640px; }

.roles { display: grid; grid-template-columns: 1fr 1fr; }
.role { display: flex; flex-direction: column; gap: 20px; padding: 32px 56px 0 0; border-top: 1px solid var(--ink); }
.role + .role { padding: 32px 0 0 56px; border-left: 1px solid var(--ink); }
.role .who { font: 400 18px/1.3 var(--serif); color: var(--muted); }
.role h3 { font: 400 clamp(30px, 2.78vw, 40px)/1.15 var(--serif); letter-spacing: -.5px; color: var(--ink); text-wrap: balance; }
.role p { font: 400 18px/1.65 var(--serif); color: var(--ed-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { padding: 7px 14px; border-radius: 999px; background: #EAE5DA; font: 400 13px/1.2 var(--sans); color: var(--ink); }
@media (max-width: 860px) {
  .roles { grid-template-columns: 1fr; gap: 48px; }
  .role, .role + .role { padding: 28px 0 0; border-left: 0; }
}

.diagram { display: flex; flex-direction: column; }
.hub-row { display: grid; grid-template-columns: 360px minmax(48px, 1fr) 340px minmax(48px, 1fr) 360px; align-items: center; }
.tool-group { display: flex; flex-direction: column; gap: 14px; }
.tool-group > p { font: 600 11px/1.2 var(--sans); letter-spacing: 2px; text-transform: uppercase; color: var(--fg-muted); }
.tool { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px; border-radius: 10px; background: #1F1D1A; }
.tool h3 { display: flex; align-items: center; gap: 10px; font: 600 16px/1.2 var(--sans); color: var(--fg); }
.tool h3 svg { width: 18px; height: 18px; flex: none; }
.tool p { font: 400 14px/1.55 var(--sans); color: var(--fg-muted); }
.connector { display: flex; align-items: center; padding: 0 12px; color: var(--fg-muted); }
.connector::before, .connector::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.connector i { flex: 1; height: 1px; background: currentColor; }
.hub { display: flex; flex-direction: column; border-radius: 14px; background: var(--paper); overflow: hidden; }
.hub-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: #EAE5DA; font: 400 12px/1.3 "IBM Plex Mono", ui-monospace, Menlo, monospace; color: var(--muted); }
.hub-bar i { width: 10px; height: 10px; border-radius: 50%; }
.hub-term { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 28px; font: 400 13.5px/1.3 "IBM Plex Mono", ui-monospace, Menlo, monospace; color: var(--muted); }
.hub-term .cmd { color: var(--ink); white-space: pre; }
.hub-term .hub-name { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; }
.hub-term .hub-name b { font: 400 34px/1.3 var(--serif); letter-spacing: -.5px; color: var(--ink); }
.hub-term .hub-name span { font: 400 13.5px/1.2 var(--sans); color: var(--muted); }
.claude-band { display: flex; align-items: center; gap: 16px; padding-top: 40px; }
.claude-band::before, .claude-band::after { content: ""; flex: 1; height: 1px; background: #3A3732; }
.claude-band span { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; background: #2A2723; font: 400 14px/1.2 var(--sans); color: var(--fg); }
.claude-band svg { width: 16px; height: 16px; color: #D98C5F; }
@media (max-width: 1240px) {
  .hub-row { display: flex; flex-direction: column; align-items: stretch; max-width: 520px; width: 100%; margin: 0 auto; }
  .connector { flex-direction: column; height: 56px; padding: 10px 0; }
  .connector i { width: 1px; height: auto; flex: 1; }
}
@media (max-width: 560px) { .claude-band span { font-size: 13px; padding: 10px 16px; } }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.step { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid var(--ink); }
.step-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.step-top .n { font: 400 16px/1.3 var(--serif); color: var(--muted); }
.step-top .tl { font: 600 11px/1.2 var(--sans); letter-spacing: 1.5px; color: var(--muted); }
.step h3 { font: 400 32px/1.3 var(--serif); color: var(--ink); }
.step p { font: 400 17px/1.6 var(--serif); color: var(--ed-ink); }
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 36px; } }

.closing { display: flex; justify-content: center; padding-top: clamp(80px, 9vw, 130px); padding-bottom: clamp(80px, 9vw, 130px); }
.closing blockquote { font: 400 clamp(26px, 2.78vw, 40px)/1.3 var(--serif); text-align: center; max-width: 975px; text-wrap: pretty; }
