/* Layout: one left-aligned editorial column on a 12-col grid; big serif display, quiet grotesk body, mono for facts. */
:root {
  --paper: #F3F4F1;
  --surface: #FFFFFF;
  --ink: #15171A;
  --muted: #5B615F;
  --rule: #D6D9D3;
  --accent: #2E43A3;
  --accent-soft: #E3E7F6;
  --ph: #E6E8E3;
  --font-display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121416; --surface: #1A1D20; --ink: #ECEDEA; --muted: #A1A7A4;
    --rule: #2D3236; --accent: #9DAEF2; --accent-soft: #232A45; --ph: #202427;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121416; --surface: #1A1D20; --ink: #ECEDEA; --muted: #A1A7A4;
  --rule: #2D3236; --accent: #9DAEF2; --accent-soft: #232A45; --ph: #202427;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; padding-block: 22px; }
.brand { font-family: var(--font-display); font-size: 22px; text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* Type */
.eyebrow { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; }
h3 { font-size: 24px; line-height: 1.2; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); max-width: 62ch; }
.prose { max-width: 66ch; display: grid; gap: 18px; }
.prose h3 { margin-top: 14px; }
.prose ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; }
.prose strong { font-weight: 600; }

/* Sections */
section { padding-block: clamp(56px, 8vw, 104px); }
section + section { border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }

/* Hero */
.hero { padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 72px); display: grid; gap: 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn:hover { border-color: var(--accent); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }

/* Image band */
.band { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 14px; }
.band figure { margin: 0; overflow: hidden; background: var(--ph); border-radius: 4px; }
.band img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }

/* Work index */
.index { border-top: 1px solid var(--ink); }
.index a { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 0.9fr) auto; gap: 8px 32px; align-items: baseline; padding-block: 26px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.index a:hover .t { color: var(--accent); }
.index .t { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; transition: color .15s; }
.index .d { color: var(--muted); font-size: 16px; }
.index .s { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.index .arrow { font-size: 20px; color: var(--muted); }

/* Columns */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cols > div { display: grid; gap: 10px; align-content: start; border-top: 1px solid var(--ink); padding-top: 18px; }
.cols p { color: var(--muted); }

/* Callout */
.closing { display: grid; gap: 24px; }
.closing h2 { font-size: clamp(34px, 5vw, 64px); max-width: 16ch; }
.contact-line { font-family: var(--font-mono); font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.contact-line a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.contact-line a:hover { border-color: var(--accent); }

/* Case study */
.cs-head { padding-block: clamp(48px, 8vw, 104px) 32px; display: grid; gap: 22px; }
.meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.meta div { padding: 14px 16px 16px 0; display: grid; gap: 4px; }
.meta dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.meta dd { margin: 0; font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; padding-block: 40px; }
.stat { display: grid; gap: 6px; }
.stat .n { font-family: var(--font-display); font-size: clamp(44px, 5vw, 64px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; }
.stat .l { color: var(--muted); font-size: 15px; max-width: 26ch; }
.cs-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px 48px; }
.cs-body > h2 { font-size: 28px; }
.figure-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 8px; }
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.ph { background: var(--ph); border: 1px dashed var(--rule); border-radius: 4px; aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 20px; text-align: center; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.ph.wide { aspect-ratio: 16 / 9; }
.tools { font-family: var(--font-mono); font-size: 13.5px; color: var(--muted); }
.next { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.next a { font-family: var(--font-display); font-size: 26px; text-decoration: none; }
.next a:hover { color: var(--accent); }

/* Flow diagram */
.flow { display: grid; gap: 22px; }
.flow-row { display: grid; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip { font-size: 14px; padding: 7px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); }
.chip.on { border-color: var(--accent); background: var(--accent-soft); }
.chips .sep { color: var(--muted); font-size: 14px; }

/* Gallery */
.project { display: grid; gap: 18px; padding-block: 40px; border-top: 1px solid var(--rule); }
.project:first-of-type { border-top: 1px solid var(--ink); }
.project-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px 40px; align-items: start; }
.project-head p { color: var(--muted); max-width: 60ch; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gallery-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px; }
.gallery-feature .grid-2 { align-content: start; }
.shot { background: var(--ph); border-radius: 4px; overflow: hidden; }
.shot img { width: 100%; }
.card-img { border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; background: #fff; }

/* Studio + case cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 18px; }
.card { display: grid; gap: 12px; align-content: start; text-decoration: none; }
.card .ph { aspect-ratio: 4 / 3; }
.card h3 { font-size: 22px; }
.card p { color: var(--muted); font-size: 15px; }

/* Resume */
.resume { display: grid; gap: 34px; max-width: 860px; }
.resume-block { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 7fr); gap: 10px 32px; border-top: 1px solid var(--rule); padding-top: 18px; }
.resume-block ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; }
.resume-job { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-bottom: 10px; }
.resume-job .when { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.skills { display: grid; gap: 8px; }
.skills b { font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px; font-size: 14px; color: var(--muted); }

@media (max-width: 860px) {
  .band { grid-template-columns: 1fr 1fr; }
  .band figure:first-child { grid-column: 1 / -1; }
  .band figure:first-child img { aspect-ratio: 4 / 3; }
  .index a { grid-template-columns: minmax(0, 1fr) auto; }
  .index .d, .index .s { grid-column: 1; }
  .index .arrow { grid-row: 1; grid-column: 2; }
  .cols, .cards, .grid-3 { grid-template-columns: 1fr; }
  .meta { grid-template-columns: 1fr 1fr; }
  .cs-body, .project-head, .gallery-feature, .resume-block { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid-2 { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* v2: hero facts, ink bands, comparison table */
:root { --navy: #1B2238; --navy-ink: #EEF0F6; --navy-muted: #A9B0C6; --navy-accent: #A9B8F5; --navy-rule: #323B57; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --navy: #1A2034; --navy-ink: #EEF0F6; --navy-muted: #A9B0C6; --navy-accent: #A9B8F5; --navy-rule: #323B57; } }
:root[data-theme="dark"] { --navy: #1A2034; --navy-ink: #EEF0F6; --navy-muted: #A9B0C6; --navy-accent: #A9B8F5; --navy-rule: #323B57; }

.hero-top { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); gap: 32px 56px; align-items: end; }
.hero-main { display: grid; gap: 24px; }
.now { margin: 0; border-top: 1px solid var(--ink); display: grid; }
.now div { display: grid; gap: 2px; padding-block: 10px; border-bottom: 1px solid var(--rule); }
.now dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.now dd { margin: 0; font-size: 15px; }

.ink-band { background: var(--navy); color: var(--navy-ink); }
section.ink-band + section, section + section.ink-band { border-top: 0; }
.ink-band .eyebrow, .ink-band .stat .l, .ink-band .lede { color: var(--navy-muted); }
.ink-band h2 em { color: var(--navy-accent); }
.ink-band .stats { padding-block: clamp(40px, 6vw, 72px); }
.ink-band .stat { border-top: 1px solid var(--navy-rule); padding-top: 16px; }
.ink-band .stat .n { color: var(--navy-ink); }
.ink-band .contact-line a { border-color: var(--navy-rule); }
.ink-band .contact-line a:hover { border-color: var(--navy-accent); color: var(--navy-accent); }
.cs-head { padding-bottom: clamp(40px, 6vw, 72px); }

.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 560px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); }
.compare thead th { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; border-bottom: 1px solid var(--ink); }
.compare tbody th { font-weight: 600; width: 22%; }
.compare td:nth-child(2) { color: var(--muted); width: 36%; }
.compare td:nth-child(3) { color: var(--ink); }
.compare thead th:nth-child(3) { color: var(--accent); }

@media (max-width: 860px) { .hero-top { grid-template-columns: 1fr; } }

/* v3: Familjen Grotesk display */
h1 { font-weight: 700; letter-spacing: -0.02em; line-height: 0.98; }
h3 { font-weight: 600; }
.brand { font-weight: 700; }
.index .t, .next a { font-weight: 600; }
.stat .n { font-weight: 700; }
h1 em, h2 em { font-style: normal; }

/* v4: oxblood palette + home layout with personality */
:root { --paper: #FAF9F8; --surface: #FFFFFF; --ink: #1A1414; --muted: #5E5555; --rule: #E4DEDC; --accent: #8A2A2E; --accent-soft: #F4E6E6; --ph: #EEEAE8;
  --navy: #3A1518; --navy-ink: #F7EDEC; --navy-muted: #D2B3B1; --navy-accent: #F2A9A3; --navy-rule: #5A2A2D; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper: #141111; --surface: #1D1918; --ink: #F1ECEB; --muted: #ADA3A2; --rule: #322B2A; --accent: #E58C88; --accent-soft: #3A2223; --ph: #221D1C;
  --navy: #2A1012; --navy-ink: #F7EDEC; --navy-muted: #C9A9A7; --navy-accent: #F2A9A3; --navy-rule: #4A2326; } }
:root[data-theme="dark"] { --paper: #141111; --surface: #1D1918; --ink: #F1ECEB; --muted: #ADA3A2; --rule: #322B2A; --accent: #E58C88; --accent-soft: #3A2223; --ph: #221D1C;
  --navy: #2A1012; --navy-ink: #F7EDEC; --navy-muted: #C9A9A7; --navy-accent: #F2A9A3; --navy-rule: #4A2326; }

.home-hero .wrap { display: grid; gap: 28px; padding-block: clamp(40px, 7vw, 96px) clamp(32px, 5vw, 56px); }
.name { font-size: clamp(64px, 15vw, 210px); line-height: .86; letter-spacing: -0.045em; font-weight: 700; margin: 0; }
.hero-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 28px 56px; align-items: start; border-top: 2px solid var(--ink); padding-top: 22px; }
.thesis { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.15; letter-spacing: -0.015em; max-width: 22ch; text-wrap: balance; }
.thesis em { font-style: normal; color: var(--accent); }
.home-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-hero .now { border-top: 0; }
.home-hero .now div:first-child { padding-top: 0; }

/* Printed pieces laid out like they're on a desk */
.desk { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; padding-block: 24px 48px; }
.desk figure { margin: 0; background: var(--surface); padding: 8px 8px 0; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 14px 30px -12px rgba(40,10,10,.28); transition: transform .3s ease; }
.desk figure img { width: 100%; display: block; }
.desk figcaption { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 2px 10px; margin: 0; }
.desk .p1 { grid-column: 1 / span 5; transform: rotate(-1.5deg); z-index: 2; }
.desk .p2 { grid-column: 5 / span 3; margin-top: 70px; transform: rotate(2deg); z-index: 3; }
.desk .p3 { grid-column: 8 / span 5; margin-top: 10px; transform: rotate(-1deg); z-index: 1; }
.desk .p4 { grid-column: 8 / span 4; margin-top: -150px; margin-left: 30px; transform: rotate(1.5deg); z-index: 4; }
.desk figure:hover { transform: rotate(0deg) translateY(-6px); z-index: 5; }

/* Tool ticker */
.ticker { border-block: 1px solid var(--ink); overflow: hidden; background: var(--paper); }
.ticker-track { display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker-track span { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.4vw, 30px); padding: 14px 28px; white-space: nowrap; }
.ticker-track span::after { content: "✦"; color: var(--accent); margin-left: 56px; font-size: .6em; vertical-align: middle; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Stat-forward work tiles */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.tile { position: relative; display: grid; gap: 10px; align-content: end; min-height: 340px; padding: clamp(20px, 3vw, 32px); border-radius: 6px; text-decoration: none; overflow: hidden; transition: transform .25s ease; }
.tile:hover { transform: translateY(-4px); }
.tile .big { font-family: var(--font-display); font-weight: 700; font-size: clamp(72px, 10vw, 150px); line-height: .85; letter-spacing: -0.05em; margin-bottom: auto; }
.tile .big small { font-size: .45em; margin-inline: .08em; vertical-align: middle; }
.tile .tl { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.1; }
.tile .td { font-size: 15px; max-width: 40ch; opacity: .85; }
.tile .go { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-top: 6px; }
.t-oa { grid-column: span 4; background: var(--navy); color: var(--navy-ink); }
.t-oa .big { color: var(--navy-accent); }
.t-ops { grid-column: span 2; background: var(--accent-soft); color: var(--ink); }
.t-ops .big { color: var(--accent); }
.t-flow { grid-column: span 2; background: var(--surface); color: var(--ink); border: 1px solid var(--rule); }
.t-print { grid-column: span 4; background: #111; color: #fff; }
.t-print img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.t-print > span { position: relative; }

/* Pull quote */
.pull { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4.4vw, 58px); line-height: 1.05; letter-spacing: -0.025em; margin: 18px 0 clamp(40px, 6vw, 72px); max-width: 22ch; text-wrap: balance; }
.pull em { font-style: normal; color: var(--accent); }
.studio-link { margin-top: 36px; }

@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; }
  .desk { grid-template-columns: 1fr 1fr; gap: 16px; }
  .desk figure { grid-column: auto !important; margin: 0 !important; }
  .desk .p1 { grid-column: 1 / -1 !important; }
  .tiles { grid-template-columns: 1fr; }
  .tile { grid-column: auto !important; min-height: 260px; }
}
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .desk figure, .tile { transition: none; } }
/* v4.1 desk fix */
.desk { gap: 18px; }
.desk .p1 { grid-column: 1 / span 5; grid-row: 1 / span 2; margin: 0; }
.desk .p3 { grid-column: 6 / span 7; grid-row: 1; margin: 24px 0 0; }
.desk .p2 { grid-column: 6 / span 3; grid-row: 2; margin: -10px 0 0 10px; }
.desk .p4 { grid-column: 9 / span 4; grid-row: 2; margin: 30px 0 0 0; }
.tile .big { line-height: .95; padding-top: .05em; }
@media (max-width: 860px) { .desk figure { grid-row: auto !important; } }

/* v5: dark cover headers, fewer hairlines */
.cover { background: var(--navy); color: var(--navy-ink); box-shadow: 0 0 0 100vmax var(--navy); clip-path: inset(0 -100vmax); padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 88px); }
.cover .eyebrow, .cover .lede { color: var(--navy-muted); }
.cover h1 { font-size: clamp(48px, 8vw, 112px); line-height: .92; letter-spacing: -0.035em; }
.cover h1 em { color: var(--navy-accent); }
.cover .meta { border-top-color: var(--navy-ink); border-bottom-color: var(--navy-rule); }
.cover .meta dt { color: var(--navy-muted); }
.cover a { color: var(--navy-ink); }
.cover + .ink-band .stats { padding-top: 0; }
.cover .prose p { color: var(--navy-ink); }
.cover .prose .lede { color: var(--navy-muted); }
section + section { border-top: 0; }
section { padding-block: clamp(48px, 7vw, 96px); }
.t-wide { grid-column: span 6; min-height: 280px; }
.t-wide .big { margin-bottom: 0; }
.cs-body > h2 { font-size: clamp(26px, 2.6vw, 34px); }
.cs-body > h2::before { content: ""; display: block; width: 40px; height: 4px; background: var(--accent); margin-bottom: 14px; }
.project { border-top: 2px solid var(--ink); }
.project:first-of-type { border-top: 2px solid var(--ink); }
.cover-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.cover-text { display: grid; gap: 22px; }
.cover-art { position: relative; min-height: 380px; }
.cover-art img { position: absolute; background: #fff; padding: 7px; box-shadow: 0 20px 40px -14px rgba(0,0,0,.55); }
.cover-art .ca1 { width: 62%; left: 4%; top: 0; transform: rotate(-3deg); }
.cover-art .ca2 { width: 44%; right: 2%; top: 22%; transform: rotate(4deg); }
@media (max-width: 860px) { .cover-split { grid-template-columns: 1fr; } .cover-art { min-height: 300px; max-width: 420px; } }
.grid-mag { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 14px; align-items: start; }
.grid-mag .shot img { width: 100%; }
@media (max-width: 860px) { .grid-mag { grid-template-columns: 1fr; } }

/* v6: no white frames around work */
.desk figure { background: none; padding: 0; box-shadow: none; }
.desk figure img { border-radius: 2px; box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 22px 40px -16px rgba(40,10,10,.38); }
.desk figcaption { padding: 10px 0 0; }
.card-img { border: 0; background: none; border-radius: 0; overflow: visible; }
.card-img img { border-radius: 2px; box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 16px 32px -14px rgba(40,10,10,.3); }
.shot { background: none; border-radius: 4px; }
.cover-art img { background: none; padding: 0; border-radius: 2px; }
.project > figure.shot img { width: 100%; max-height: 720px; object-fit: cover; }

/* v7: campaigns */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.timeline li { display: grid; gap: 10px; align-content: start; counter-increment: step; }
.tl-step { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 10px; }
.tl-step::before { content: counter(step, decimal-leading-zero); color: var(--ink); }
.tl-step::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.timeline .shot img { box-shadow: 0 16px 32px -16px rgba(40,10,10,.35); border-radius: 3px; }
.blog-card { display: grid; gap: 14px; align-content: end; aspect-ratio: 4 / 5; padding: clamp(20px, 2.4vw, 28px); background: var(--navy); color: var(--navy-ink); border-radius: 3px; text-decoration: none; transition: transform .25s ease; }
.blog-card:hover { transform: translateY(-4px); }
.blog-card .eyebrow { color: var(--navy-muted); }
.bc-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2vw, 26px); line-height: 1.15; }
.blog-card .go { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-accent); }
.campaign { gap: 24px; }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }

/* v8: real case study images */
.figure-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.figure-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figure-row.five { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; }
.figure-row .shot img, .wide-fig .shot img { width: 100%; border-radius: 3px; box-shadow: 0 14px 30px -16px rgba(40,10,10,.35); }
.figure-row.three .shot img { opacity: .9; filter: saturate(.85); }
.ba-label { margin-bottom: -24px; }
.ba-after { color: var(--accent); }
@media (max-width: 860px) { .figure-row.four, .figure-row.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } .figure-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .figure-row.three { grid-template-columns: 1fr 1fr; } }
/* v9: studio */
.figure-row.wc { align-items: end; }
.figure-row.wc .shot img { box-shadow: none; opacity: 1; filter: none; }
.more { border-top: 2px solid var(--ink); }
.more-item { display: flex; justify-content: space-between; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--rule); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.2vw, 28px); }
.more-item .go { font-family: var(--font-mono); font-weight: 400; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); align-self: center; }
.more-item:hover { color: var(--accent); }
.figure-row.pats .shot img { aspect-ratio: 1 / 1.4; object-fit: cover; box-shadow: none; }

/* v10: studio bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 15vw, 200px); gap: 12px; }
.bento .b { position: relative; margin: 0; grid-column: span var(--c); grid-row: span var(--r); overflow: hidden; border-radius: 4px; background: var(--ph); }
.bento .b img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.bento .b:hover img { transform: scale(1.03); }
.bento .b.paper { background: #fbfaf7; }
.bento .b.paper img { object-fit: contain; padding: 14px 14px 34px; }
.bento .b.paper:hover img { transform: none; }
.bento figcaption { position: absolute; left: 12px; bottom: 10px; margin: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #5e5555; }
@media (max-width: 860px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; }
  .bento .b { grid-column: span 1; grid-row: span 1; }
  .bento .b:first-child { grid-column: span 2; grid-row: span 2; }
}
@media (prefers-reduced-motion: reduce) { .bento .b img { transition: none; } }
.slides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.slides .shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
@media (max-width: 640px) { .slides { grid-template-columns: 1fr; } }
.slides.sq .shot img { aspect-ratio: 1 / 1; }

/* v11: 10-second summary */
.tldr { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 4px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
.tldr .eyebrow { color: var(--accent); }
.tldr dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px; }
.tldr dt { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.tldr dd { margin: 0; font-size: 15.5px; line-height: 1.5; }
@media (max-width: 760px) { .tldr dl { grid-template-columns: 1fr; } }

/* v12: home bento replaces tilted desk */
.home-bento { margin-block: 24px 56px; }
.hb figcaption { left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; background: linear-gradient(transparent, rgba(20,8,8,.65)); }
.shot.vid { position: relative; display: block; text-decoration: none; }
.shot.vid .play { position: absolute; left: 12px; bottom: 12px; background: rgba(20,8,8,.75); color: #fff; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; padding: 7px 11px; border-radius: 999px; }
.shot.vid:hover .play { background: var(--accent); }

/* v13: social wall */
.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.post { margin: 0; position: relative; border-radius: 4px; overflow: hidden; background: var(--ph); }
.post img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; transition: transform .4s ease; }
.post:hover img { transform: scale(1.03); }
.post figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px; background: linear-gradient(transparent, rgba(20,8,8,.75)); color: #fff; display: grid; gap: 2px; opacity: 0; transition: opacity .2s; }
.post:hover figcaption, .post:focus-within figcaption { opacity: 1; }
.post figcaption b { font-family: var(--font-display); font-size: 15px; }
.post figcaption span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
@media (hover: none) { .post figcaption { opacity: 1; } }
@media (max-width: 860px) { .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* v14: social switcher (replaces wall) */
.sw-head { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,6fr); gap: 16px 48px; align-items: end; margin-bottom: 24px; }
.sw-head .lede { font-size: 16px; }
.sw-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sw-tabs button { font: 500 14px var(--font-body); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer; }
.sw-tabs button:hover { border-color: var(--accent); }
.sw-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.sw-meta { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.sw-meta b { color: var(--ink); font-weight: 600; }
.sw-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 12px) / 6); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.sw-track img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; scroll-snap-align: start; }
@media (max-width: 860px) { .sw-head { grid-template-columns: 1fr; } .sw-track { grid-auto-columns: 42%; } }

/* v15: notion frame, AI band, about headshot */
.app-frame { margin: 0 auto; max-width: 860px; border-radius: 10px; overflow: hidden; background: #191919; box-shadow: 0 24px 60px -24px rgba(40,10,10,.45); }
.app-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #2a2a2a; }
.app-bar i { width: 11px; height: 11px; border-radius: 50%; background: #555; }
.app-bar i:nth-child(1){background:#ff5f57}.app-bar i:nth-child(2){background:#febc2e}.app-bar i:nth-child(3){background:#28c840}
.app-bar span { margin-left: 10px; font-family: var(--font-mono); font-size: 11.5px; color: #aaa; }
.app-frame img { width: 100%; display: block; }
.app-frame figcaption { background: var(--paper); padding: 12px 2px 0; margin: 0; }
.ai-band { background: var(--accent-soft); }
.about-cover { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px 56px; align-items: center; }
.about-text { display: grid; gap: 22px; }
.headshot { margin: 0; }
.headshot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: 6px; }
.btn.light { background: var(--navy-ink); color: var(--navy); border-color: var(--navy-ink); }
.btn.ghost { border-color: var(--navy-rule); color: var(--navy-ink); }
.about-cover .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.resume-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; max-width: 860px; }
@media (max-width: 860px) { .about-cover { grid-template-columns: 1fr; } .headshot { max-width: 320px; } }
/* v16: ad creative */
.ads { display: grid; gap: 12px; }
.ads-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.ads-2 { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: 640px; }
.ads img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; box-shadow: 0 14px 30px -16px rgba(40,10,10,.35); }
.sizes { background: #F3EFEE; border-radius: 6px; padding: clamp(10px,2vw,20px); }
.sizes img { width: 100%; }
@media (max-width: 860px) { .ads-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* v17 — work gallery + modals */
.g-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 900px) { .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.g-card { all: unset; box-sizing: border-box; display: grid; gap: 4px; cursor: pointer; align-content: start; }
.g-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--ph); margin-bottom: 8px; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.g-card:hover .g-thumb img, .g-card:focus-visible .g-thumb img { transform: scale(1.04); }
.g-card:focus-visible .g-thumb { outline: 2px solid var(--accent); outline-offset: 3px; }
.g-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.g-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.2; }
.g-sub { color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.g-modal { border: 0; padding: 0; width: min(1100px, calc(100% - 32px)); max-height: calc(100dvh - 48px); border-radius: 10px; background: var(--paper); color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.g-modal::backdrop { background: rgba(20, 10, 11, .72); }
.g-modal-inner { position: relative; padding: clamp(20px, 4vw, 48px); }
.g-modal-inner .project { margin: 0; padding: 0; border: 0; }
.g-close { position: sticky; top: 0; float: right; margin: -8px -8px 0 12px; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; z-index: 2; }
.g-close:hover { border-color: var(--ink); }
html.g-lock { overflow: hidden; }


/* v19 — prev/next arrows in oxblood */
.next a .arr { color: var(--accent); display: inline-block; transition: transform .2s ease; }
.next a:hover .arr.l { transform: translateX(-4px); }
.next a:hover .arr.r { transform: translateX(4px); }

/* v20 — scroll reveal (JS adds .mo only when motion is allowed) */
.mo .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.mo .rv.in { opacity: 1; transform: none; }
.stat .n, .tile .big { font-variant-numeric: tabular-nums; }

/* v21 — fresh-eyes fixes */
.name { font-size: clamp(56px, 10.5vw, 150px); }
.tile .big.big-sm { font-size: clamp(52px, 5.4vw, 86px); white-space: nowrap; }

/* v22 — layouts that follow each image's real proportions (no awkward crops) */
/* justified row: widths ∝ aspect ratio, so every image in the row is the same height and shown whole */
.jrow { display: flex; gap: 12px; align-items: flex-start; }
.jrow > figure { margin: 0; flex: var(--ar, 1) 1 0; min-width: 0; position: relative; }
.jrow > figure img { width: 100%; height: auto; aspect-ratio: var(--ar, 1); object-fit: cover; display: block; border-radius: 4px; }
.jrow > figure figcaption { margin-top: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.jrow.paper > figure img { background: #fbfaf7; }
.jstack { display: grid; gap: 12px; }
@media (max-width: 600px) {
  .jrow { gap: 8px; }
  .jrow.paper { flex-wrap: wrap; }
  .jrow.paper > figure:last-child { min-width: 100%; }
  .jrow > figure figcaption { font-size: 9.5px; }
}
/* home mosaic: tall booth photo left; review cards over magazine + tee right */
.mosaic { display: flex; gap: 12px; align-items: stretch; }
.mosaic .m-l { flex: .82 1 0; min-width: 0; margin: 0; position: relative; overflow: hidden; border-radius: 4px; }
.mosaic .m-l img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.mosaic .m-r { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.mosaic .m-r > figure { margin: 0; position: relative; overflow: hidden; border-radius: 4px; }
.mosaic .m-r > figure img { width: 100%; height: auto; display: block; }
.mosaic .hb { overflow: hidden; border-radius: 4px; }
.mosaic .hb figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 28px 14px 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: linear-gradient(transparent, rgba(20,8,8,.65)); }
.mosaic .hb img { transition: transform .4s ease; }
.mosaic .hb:hover img { transform: scale(1.03); }
@media (max-width: 600px) { .mosaic, .mosaic .m-r, .mosaic .jrow { gap: 6px; } .mosaic .hb figcaption { display: none; } }
/* gallery thumbs: 3:2 frame; art that doesn't match is shown whole on a mat */
.g-thumb { aspect-ratio: 3 / 2; }
.g-thumb.fit { background: var(--mat, var(--ph)); }
.g-thumb.fit img { object-fit: contain; padding: 7% 0; }
/* Flow wide tile: text left, video thumbnail right at its true 16:9 */
.t-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-content: stretch; padding: 0; min-height: 0; }
.t-wide > span:not(.tw-media) { grid-column: 1; padding-inline: clamp(20px, 3vw, 32px); }
.t-wide > .big { padding-top: clamp(20px, 3vw, 32px); align-self: start; font-size: clamp(64px, 7vw, 120px); }
.t-wide > .go { padding-bottom: clamp(20px, 3vw, 32px); }
.t-wide .tw-media { grid-column: 2; grid-row: 1 / span 4; position: relative; align-self: stretch; background: #3d3e40; display: flex; align-items: center; }
.t-wide .tw-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; display: block; }
.t-wide .tw-tag { position: absolute; top: 12px; right: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: rgba(20,10,11,.8); color: #fff; padding: 6px 10px; border-radius: 999px; }
@media (max-width: 860px) {
  .t-wide { grid-template-columns: 1fr; }
  .t-wide .tw-media { grid-column: 1; grid-row: 1; }
  .t-wide > .big { padding-top: 20px; }
}

/* v23 — blog screenshot frame */
.blog-shot img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border: 1px solid var(--rule); border-radius: 4px; display: block; }
.shot.vid.blog-shot .play { left: auto; right: 10px; bottom: auto; top: 17.5%; }

/* v24 — Content Ops "What I did" as an accordion */
.acc-hint { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.acc { border-top: 1px solid var(--rule); }
.acc:last-of-type { border-bottom: 1px solid var(--rule); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.25; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; color: var(--accent); font-family: var(--font-mono); font-size: 20px; line-height: 1; transition: transform .2s ease; flex: none; }
.acc[open] summary::after { transform: rotate(45deg); }
.acc summary:hover { color: var(--accent); }
.acc > *:not(summary) { margin: 0 0 16px; max-width: 64ch; }
.cw-intro { margin: 0 0 18px; max-width: 64ch; color: var(--muted); }

/* v25 — What I did: grouped, numbered steps instead of an FAQ list */
.acc-groups { display: grid; gap: 28px; counter-reset: accn; }
.acc-g { margin: 0 0 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 10px; }
.acc-g::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.acc-group .acc { counter-increment: accn; border-top: 0; border-bottom: 1px solid var(--rule); }
.acc-group .acc:last-of-type { border-bottom: 0; }
.acc summary { justify-content: flex-start; align-items: baseline; gap: 18px; padding: 12px 10px; margin-inline: -10px; border-radius: 6px; transition: background .2s ease, color .2s ease; }
.acc summary::before { content: counter(accn, decimal-leading-zero); font-family: var(--font-mono); font-weight: 400; font-size: 13px; color: var(--accent); flex: none; width: 2.2em; }
.acc .acc-t { flex: 1; }
.acc summary:hover { background: var(--accent-soft); color: var(--ink); }
.acc[open] summary { background: var(--accent-soft); }
.acc > *:not(summary) { margin: 12px 0 18px calc(2.2em + 18px); }
.acc summary:focus { outline: none; }
.acc summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.acc[open] > *:not(summary) { animation: accIn .25s ease; }
@keyframes accIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .acc[open] > *:not(summary) { animation: none; } }

/* v26 — Result cards with before/after bars */
.res-wrap { display: grid; gap: 18px; }
.res-intro { margin: 0; color: var(--muted); max-width: 60ch; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.res-card { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--accent); border-radius: 8px; padding: clamp(18px, 2vw, 24px); display: flex; flex-direction: column; gap: 6px; }
.res-client { margin: 0; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.res-big { margin: 4px 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 4.2vw, 58px); line-height: 1; letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.res-big small { font-size: .5em; margin-inline: .06em; vertical-align: middle; }
.res-label { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.25; }
.res-bars { display: grid; gap: 8px; margin-top: 10px; }
.rb { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13px; }
.rb-l { color: var(--muted); }
.rb-v { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; min-width: 3.2em; text-align: right; }
.rb-track { height: 10px; border-radius: 4px; background: transparent; }
.rb-fill { display: block; height: 100%; width: var(--w); border-radius: 0 4px 4px 0; background: var(--muted); opacity: .35; transition: width .9s cubic-bezier(.2,.7,.2,1) .15s; }
.rb-after .rb-fill { background: var(--accent); opacity: 1; }
.mo .rv:not(.in) .rb-fill { width: 0; }
.res-chips { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.res-chips li { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); }
.res-note { margin: 8px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .rb-fill { transition: none; } }
.rb { grid-template-columns: 4.2em minmax(0, 1fr) auto; }
@media (min-width: 700px) { .res-grid.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .res-grid.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 699px) { .res-grid { grid-template-columns: 1fr; } }
.g-role { margin-top: 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--ink); opacity: .75; }

/* v27 — mobile fixes */
.cs-body > *, .compare-wrap { min-width: 0; }
@media (max-width: 700px) {
  .compare { min-width: 0; font-size: 15px; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto !important; }
  .compare tr { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .compare tbody tr:first-child { border-top: 1px solid var(--ink); }
  .compare th, .compare td { border: 0; padding: 0; }
  .compare tbody th { font-family: var(--font-display); font-size: 17px; margin-bottom: 8px; }
  .compare td { display: grid; grid-template-columns: 4.2em 1fr; gap: 10px; margin-top: 6px; }
  .compare td::before { content: attr(data-label); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
  .compare td[data-label="Now"]::before { color: var(--accent); }
}
.blog-btn { margin-top: 4px; justify-self: start; width: max-content; }
/* prev / next */
.next { align-items: flex-start; }
.next a { display: grid; gap: 6px; }
.next .nx-k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.next .nx-next { text-align: right; margin-left: auto; }
@media (max-width: 600px) {
  .next { flex-direction: column; gap: 22px; }
  .next a { font-size: 20px; width: 100%; }
  .next .nx-prev { padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
}

/* v28 — mom feedback: hamburger, hero hierarchy, tile labels, back links, CTA */
.nav-toggle { display: none; }
@media (max-width: 700px) {
  .site-header .wrap { align-items: center; padding-block: 16px; }
  .nav-toggle { display: inline-grid; gap: 5px; place-content: center; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; color: var(--ink); }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header .nav { display: none; width: 100%; flex-direction: column; gap: 0; padding: 6px 0 4px; }
  .nav-open .nav { display: flex; }
  .site-header .nav a { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--ink); padding: 12px 0; border-top: 1px solid var(--rule); }
}
/* hero */
.hero-lead { display: grid; gap: 14px; align-content: start; }
.subhead { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.1; letter-spacing: -0.015em; }
.thesis-i { margin: 0; font-style: italic; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; color: var(--muted); max-width: 34ch; }
.thesis-i em { font-style: italic; color: var(--accent); font-weight: 600; }
.hero-lead .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
@media (max-width: 700px) {
  .home-hero .wrap { gap: 18px; padding-block: 28px 32px; }
  .name { font-size: clamp(54px, 17vw, 76px); }
  .hero-split { padding-top: 16px; gap: 24px; }
}
/* tile number label */
.tile .bl { display: block; font-size: 14px; line-height: 1.35; max-width: 34ch; margin: -2px 0 6px; opacity: .9; font-weight: 500; }
.tile .big + .bl { margin-top: 2px; }
.t-ops .bl { color: var(--accent); }
.t-wide > .bl { grid-column: 1; padding-inline: clamp(20px, 3vw, 32px); }
.t-wide .tw-media { grid-row: 1 / span 5; }
/* back link + CTA */
.back-link { justify-self: start; font-family: var(--font-mono); font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--navy-ink, #F7EDEC); opacity: .85; }
.back-link:hover { opacity: 1; text-decoration: underline; }
.back-link span { color: var(--navy-accent, #F2A9A3); }
.cs-cta .wrap { display: grid; gap: 16px; justify-items: start; }
.cs-cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.tiles > .tile { min-width: 0; } .t-oa .bl { color: var(--wine-accent, #FFD3CF); }

/* v29 — tile hierarchy: project eyebrow > stat > subheading > body > link */
.tile .tk { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.tile .tk + .big { margin-top: 6px; }
.tile .big + .tl { margin-top: 4px; }
.t-ops .tk { color: var(--accent); opacity: 1; }
.t-wide > .tk { grid-column: 1; padding-inline: clamp(20px, 3vw, 32px); padding-top: clamp(20px, 3vw, 32px); }
.t-wide > .tk + .big { padding-top: 0; }
.t-wide .tw-media { grid-row: 1 / span 5; }
.tile .tk { margin-bottom: auto; } .tile .tk + .big { margin-bottom: 0; margin-top: 18px; } .t-wide > .tk { margin-bottom: 0; }
.tile:not(.t-wide) { display: flex; flex-direction: column; justify-content: flex-end; }

/* v30 — round 2 */
.home-hero .wrap { padding-block: clamp(24px, 4vw, 56px) clamp(28px, 4vw, 48px); gap: 20px; }
.name { font-size: clamp(54px, 9vw, 132px); }
.hero-split { padding-top: 18px; }
.did-list { margin: 0 0 8px; padding-left: 1.1em; display: grid; gap: 6px; font-weight: 500; }
.did-list li::marker { color: var(--accent); }
.res-big small { font-size: .42em; margin-inline: .12em; vertical-align: middle; font-weight: 600; letter-spacing: 0; }
@media (min-width: 701px) and (max-height: 860px) {
  .name { font-size: clamp(54px, 13.5vh, 120px); }
  .home-hero .wrap { padding-block: 20px 28px; gap: 16px; }
  .now div { padding-block: 7px; }
}
@media (max-width: 700px) { .home-hero .wrap > .eyebrow { display: none; } }
.cs-body .acc:first-of-type { border-top: 1px solid var(--rule); } .cs-body .acc { counter-increment: accn; } .prose:has(> .acc) { counter-reset: accn; }
.frame-pair { display: grid; grid-template-columns: 1.18fr 1.21fr; gap: 20px; align-items: start; }
.frame-pair .app-frame { margin: 0; }
@media (max-width: 760px) { .frame-pair { grid-template-columns: 1fr; } }
.res-big { white-space: normal; } .res-card .res-big:has(small) { font-size: clamp(32px, 3.2vw, 46px); white-space: nowrap; }

/* v31 — email before/after */
.email-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.email-ba figure { margin: 0; display: grid; gap: 10px; }
.email-shot { max-height: 760px; overflow-y: auto; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
.email-shot img { width: 100%; display: block; }
@media (max-width: 700px) { .email-ba { grid-template-columns: 1fr; } .email-shot { max-height: 560px; } }
@media (min-width: 901px) { .g-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* v32 mail-window email shots */
.email-shot { border: 0; background: #fff; border-radius: 10px; }
