/*
  VOICE   confident, field-tested, precise — a commercial leader, not a template
  IDEA    a territory brief: field map, clusters, KPIs, case files
  PICTURE an interactive field map where competitor clusters get converted, beside the portrait
  COLOUR  ink / paper ground · shelf-teal support (from the portrait) · signage-vermilion accent
  TYPE    Archivo condensed heavy for display · Inter for reading
  LAYOUT  1240px column, full-bleed bands, generous air, numbers large
*/

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light dark;
  --bg: light-dark(#f4f2ec, #0f1413);
  --bg2: light-dark(#ebe8df, #151b1a);
  --card: light-dark(#fbfaf6, #172020);
  --ink: light-dark(#121615, #eef1ee);
  --ink2: light-dark(#3d4543, #b9c2bf);
  --muted: light-dark(#6a726f, #8b9693);
  --line: light-dark(#d9d5ca, #26302f);
  --teal: light-dark(#167a71, #45c3b5);
  --teal-soft: light-dark(#d6ebe7, #183331);
  --verm: light-dark(#e8401f, #ff6a4a);
  --verm-soft: light-dark(#fbe0d8, #3a1d17);
  --on-accent: #fff;
  --shadow: 0 1px 0 light-dark(#fff8, #fff1) inset, 0 20px 50px -24px light-dark(#1d2a2866, #000c);
  --display: 'Archivo', 'Arial Narrow', 'Roboto Condensed', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --wrap: 1240px;
  --pad: max(5vw, 18px);
}
:root[data-theme=light] { color-scheme: light; }
:root[data-theme=dark] { color-scheme: dark; }

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, canvas { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-stretch: 78%; font-weight: 800; line-height: 1.04; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--verm); color: #fff; }
:focus-visible { outline: 2px solid var(--verm); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin-inline: auto; }
.band { padding: clamp(72px, 10vw, 140px) var(--pad); position: relative; }
.mono { font-family: var(--mono); font-size: .85em; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: .55em; min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .3s var(--ease), background .25s, color .25s, border-color .25s; will-change: transform; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-solid { background: var(--verm); color: var(--on-accent); }
.btn-solid:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn.wide { width: 100%; justify-content: center; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); transition: border-color .2s, transform .3s var(--ease); }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }

/* ── Loader / progress / cursor ─────────────────────────────────────────── */
.loader { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; align-content: center; gap: 18px; background: var(--bg); transition: opacity .5s var(--ease), visibility .5s; }
.js .loader { display: grid; }
.loader.done { opacity: 0; visibility: hidden; }
.loader-mark { font: 900 64px/1 var(--display); font-stretch: 70%; letter-spacing: -.02em; }
.loader-bar { width: 120px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.loader-bar i { display: block; height: 100%; width: 100%; background: var(--verm); transform-origin: left; animation: load 1s var(--ease) forwards; }
@keyframes load { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--verm); transform-origin: left; transform: scaleX(0); }
.cursor { position: fixed; left: 0; top: 0; z-index: 80; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid var(--verm); border-radius: 50%; pointer-events: none; opacity: 0; transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), opacity .25s, background .25s; }
.cursor.on { opacity: 1; }
.cursor.hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: color-mix(in srgb, var(--verm) 14%, transparent); }

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--pad); transition: transform .45s var(--ease), background .3s, box-shadow .3s; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav.hide { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--bg); font: 900 17px/1 var(--display); font-stretch: 75%; }
.nav-links { display: flex; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--card) 70%, transparent); }
.nav-links a { display: block; padding: 8px 16px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink2); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { background: var(--ink); color: var(--bg); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-cv svg { width: 17px; height: 17px; }
#theme .i-moon, :root[data-theme=dark] #theme .i-sun { display: none; }
:root[data-theme=dark] #theme .i-moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) #theme .i-sun { display: none; } :root:not([data-theme=light]) #theme .i-moon { display: block; } }
.menu-btn { display: none; }
.menu-btn .i-close, .menu-btn[aria-expanded=true] .i-open { display: none; }
.menu-btn[aria-expanded=true] .i-close { display: block; }
.menu { position: fixed; inset: 0; z-index: 45; background: var(--bg); padding: 110px var(--pad) 40px; display: flex; flex-direction: column; justify-content: space-between; }
.menu[hidden] { display: none; }
.menu ol { counter-reset: m; }
.menu li a { display: flex; align-items: baseline; gap: 14px; padding: 6px 0; font: 800 clamp(38px, 10vw, 64px)/1.1 var(--display); font-stretch: 75%; text-decoration: none; opacity: 0; transform: translateY(16px); animation: menuIn .5s var(--ease) forwards; }
.menu li:nth-child(2) a { animation-delay: .04s } .menu li:nth-child(3) a { animation-delay: .08s } .menu li:nth-child(4) a { animation-delay: .12s } .menu li:nth-child(5) a { animation-delay: .16s } .menu li:nth-child(6) a { animation-delay: .2s } .menu li:nth-child(7) a { animation-delay: .24s }
@keyframes menuIn { to { opacity: 1; transform: none; } }
.menu-foot { color: var(--muted); }
body.menu-open { overflow: hidden; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(28px, 4vw, 64px); padding: 120px var(--pad) 90px; max-width: calc(var(--wrap) + 2 * var(--pad)); margin-inline: auto; position: relative; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink2); background: var(--card); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 var(--teal); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero-title { margin: 26px 0 24px; font-size: clamp(46px, 7.4vw, 108px); font-weight: 900; font-stretch: 72%; line-height: .94; letter-spacing: -.02em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .w { display: inline-block; }
.hero-title .accent { color: var(--verm); }
.js .hero-title .w { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .hero-title .line + .line .w { transition-delay: .12s; }
.ready .hero-title .w { transform: none; }
.hero-intro { font-size: clamp(17px, 1.35vw, 20px); color: var(--ink2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 28px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; color: var(--ink2); font-size: 15px; }
.socials a:hover { color: var(--verm); }
.socials svg { width: 18px; height: 18px; }

.hero-visual { position: relative; height: min(76svh, 640px); min-height: 440px; }
.map { position: absolute; inset: 0 0 0 8%; border-radius: 28px; background: radial-gradient(120% 90% at 70% 10%, var(--teal-soft), transparent 60%), var(--card); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); touch-action: pan-y; }
.map canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.map-hud { position: absolute; top: 16px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; pointer-events: none; font-size: 13px; }
.map-label { font-weight: 600; color: var(--muted); }
.map-count { padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font-variant-numeric: tabular-nums; }
.map-count b { color: var(--verm); }
.map-hint { position: absolute; right: 14px; bottom: 14px; margin: 0; max-width: 20em; padding: 8px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; color: var(--ink2); pointer-events: none; transition: opacity .4s; }
.map-done { position: absolute; right: 18px; top: 58px; width: max-content; max-width: min(340px, calc(100% - 36px)); padding: 14px 18px; border-radius: 16px; background: var(--ink); color: var(--bg); text-decoration: none; font-size: 15px; box-shadow: var(--shadow); animation: pop .5s var(--ease); }
.map-done span { display: inline-flex; align-items: center; gap: 6px; color: var(--verm); font-weight: 600; margin-left: 6px; }
.map-done svg { width: 16px; height: 16px; }
.map-done[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(-8px); } }
.map-play { position: absolute; left: 18px; bottom: 14px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 500; }
.map-play:hover { border-color: var(--ink); }
.badge { position: absolute; left: 0; bottom: 8%; width: clamp(170px, 17vw, 230px); margin: 0; padding: 10px 10px 14px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.badge img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--bg2); }
.badge figcaption { display: grid; gap: 1px; padding: 12px 6px 0; font-size: 13px; color: var(--muted); }
.badge strong { font: 800 22px/1.1 var(--display); font-stretch: 78%; color: var(--ink); }
.badge .loc { display: inline-flex; align-items: center; gap: 4px; }
.badge .loc svg { width: 13px; height: 13px; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); color: var(--muted); animation: bob 2.4s ease-in-out infinite; }
.scroll-cue svg { width: 18px; height: 18px; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ── Marquee ────────────────────────────────────────────────────────────── */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; background: var(--bg2); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; flex: none; }
.marquee li { font: 800 clamp(22px, 2.6vw, 34px)/1 var(--display); font-stretch: 72%; padding-inline: 28px; color: var(--ink2); white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.marquee li::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--verm); margin-right: -32px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Section heads ──────────────────────────────────────────────────────── */
.sec-head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 900px; }
.sec-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; }
.sec-head.row > div { max-width: 820px; }
.sec-tag { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 15px; font-weight: 600; color: var(--teal); }
.sec-tag::before { content: ''; width: 26px; height: 2px; background: currentColor; }
.sec-head h2, .contact h2 { font-size: clamp(34px, 4.6vw, 62px); }
.sec-aside { max-width: 22em; color: var(--muted); margin: 0; }
.sub { font-size: clamp(24px, 2.4vw, 32px); margin: clamp(56px, 7vw, 88px) 0 28px; }

/* ── Stats ──────────────────────────────────────────────────────────────── */
.stats { padding-block: clamp(56px, 7vw, 96px); }
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.stat { padding: 28px 22px 8px 0; border-right: 1px solid var(--line); padding-left: 22px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat-v { margin: 0 0 10px; font: 900 clamp(40px, 4.3vw, 68px)/1 var(--display); white-space: nowrap; font-stretch: 70%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat:nth-child(2) .stat-v, .stat:nth-child(3) .stat-v { color: var(--verm); }
.stat-l { color: var(--ink2); font-size: 15px; margin: 0; max-width: 16em; }
.note { margin-top: 26px; font-size: 14px; color: var(--muted); }

/* ── About ──────────────────────────────────────────────────────────────── */
.about { background: var(--bg2); }
.about .sec-head h2 { font-size: clamp(36px, 5.2vw, 72px); max-width: 15em; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-story p { font-size: clamp(17px, 1.3vw, 19px); color: var(--ink2); max-width: 40em; }
.goal { margin-top: 30px; padding: 22px 24px; border-left: 3px solid var(--teal); background: var(--card); border-radius: 0 var(--r) var(--r) 0; color: var(--ink) !important; }
.goal span { display: block; font-size: 13px; font-weight: 600; color: var(--teal); margin-bottom: 6px; }
.about-side { position: sticky; top: 100px; padding: 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.facts { margin: 0 0 22px; display: grid; gap: 16px; }
.facts div { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.approach { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.approach li { position: relative; padding: 26px 22px 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s; }
.approach li:hover { transform: translateY(-4px); border-color: var(--teal); }
.step { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font: 800 18px/1 var(--display); margin-bottom: 26px; }
.approach h4, .diff h4 { font-size: 23px; margin-bottom: 10px; }
.approach p, .diff p { color: var(--ink2); font-size: 16px; margin: 0; }
.diff { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.diff > div { padding: 24px 28px 8px 0; }
.diff > div + div { padding-left: 28px; border-left: 1px solid var(--line); }

/* ── Expertise ──────────────────────────────────────────────────────────── */
.areas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.areas li { padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15px; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; scrollbar-width: thin; }
.filters button, .tabs button { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; font-weight: 500; color: var(--ink2); transition: all .2s; white-space: nowrap; }
.filters small, .tabs small { color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.filters button[aria-selected=true], .tabs button[aria-selected=true] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filters button[aria-selected=true] small, .tabs button[aria-selected=true] small { color: inherit; opacity: .6; }
.skill-board { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.skills { display: flex; flex-wrap: wrap; gap: 10px; }
.skills li { transition: opacity .3s, transform .3s var(--ease); }
.skills li.dim { opacity: .18; transform: scale(.96); }
.skills li.gone { display: none; }
.skill { position: relative; min-height: 46px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 16px; font-weight: 500; transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s; }
.skill.top::after, .legend i { content: ''; position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--verm); }
.skill:hover { transform: translateY(-2px); border-color: var(--ink); }
.skill[aria-pressed=true] { background: var(--verm); color: #fff; border-color: var(--verm); }
.skill[aria-pressed=true]::after { background: #fff; }
.evidence { position: sticky; top: 100px; min-height: 220px; padding: 26px; border-radius: var(--r); background: var(--ink); color: var(--bg); }
.evidence h3 { font-size: 30px; margin: 4px 0 18px; }
.evidence .ev-k { font-size: 13px; opacity: .65; margin: 0; }
.evidence ul { display: grid; gap: 10px; }
.evidence li { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--bg) 10%, transparent); font-size: 15px; animation: pop2 .4s var(--ease) both; }
.evidence li:nth-child(2) { animation-delay: .06s; }
.evidence li a { color: var(--verm); font-weight: 600; text-decoration: none; display: inline-block; margin-top: 4px; }
@keyframes pop2 { from { opacity: 0; transform: translateY(8px); } }
.ev-empty { margin: 0; opacity: .8; }
.legend { display: block; margin-top: 14px; font-size: 14px; opacity: .8; position: relative; padding-left: 16px; }
.legend i { top: 7px; left: 0; right: auto; }

/* ── Work ───────────────────────────────────────────────────────────────── */
.work { background: var(--bg2); }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }
.project:first-child, .project:last-child:nth-child(even) { grid-column: 1 / -1; }
.project-link { display: grid; height: 100%; text-decoration: none; border-radius: 24px; overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.project:first-child .project-link, .project:last-child:nth-child(even) .project-link { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.project:last-child:nth-child(even) .project-art { order: 2; aspect-ratio: auto; min-height: 320px; }
.project-link:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.project-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.project:first-child .project-art { aspect-ratio: auto; min-height: 340px; }
.project-art .art { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.project-link:hover .art { transform: scale(1.06); }
.project-body { padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; }
.project-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.project h3 { font-size: clamp(28px, 2.8vw, 40px); margin-bottom: 12px; }
.project-body > p { color: var(--ink2); }
.project-kpi { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.project-kpi span { font-size: 14px; padding: 8px 12px; border-radius: 10px; background: var(--bg2); color: var(--ink2); }
.project-kpi b { color: var(--ink); font-weight: 700; }
.project-open { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; color: var(--verm); }
.project-open svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.project-link:hover .project-open svg { transform: translate(3px, -3px); }

/* Generative art palettes */
.art { --c0: #2b3735; --c1: #ff6a4a; --c2: #45c3b5; background: #0f1413; }
.art-teal { --c1: #45c3b5; --c2: #ff6a4a; background: #0e2523; }
.art-ink { --c1: #ffffff; --c2: #45c3b5; background: #121615; }
.art-vermilion { background: #1a1210; }
.art circle, .art rect, .art path, .art line { stroke: none; }
.art .a0 { fill: var(--c0); }
.art .a1 { fill: var(--c1); }
.art .a2 { fill: var(--c2); }
.art .ring { stroke: var(--c1); stroke-width: 1.4; fill: none; opacity: .55; }
.art .ring0 { stroke: var(--c0); stroke-width: 1.2; fill: none; }
.art .ray { stroke: var(--c1); stroke-width: 2; opacity: .8; }
.art .line { stroke: var(--c1); stroke-width: 4; fill: none; }
.art .area { fill: var(--c1); opacity: .12; stroke: none; }
.art .base { stroke: var(--c0); stroke-dasharray: 4 6; }

/* Case dialog */
.case { width: min(980px, 100%); max-width: 100%; max-height: 100%; height: 100%; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--bg); color: var(--ink); box-shadow: -30px 0 80px -20px #0008; }
.case[open] { animation: slideIn .55s var(--ease); }
.case::backdrop { background: color-mix(in srgb, #050807 60%, transparent); backdrop-filter: blur(4px); }
@keyframes slideIn { from { transform: translateX(60px); opacity: 0; } }
.case-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 14px clamp(18px, 4vw, 48px); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
#case-prev svg { transform: rotate(180deg); }
.case-pos { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; margin-right: auto; padding-left: 6px; order: 0; }
#case-prev { order: -2; } #case-next { order: -1; }
.case-scroll { padding: 0 clamp(18px, 4vw, 48px) 64px; }
.case-hero { margin: 0 calc(-1 * clamp(18px, 4vw, 48px)) 34px; height: clamp(200px, 32vw, 320px); position: relative; }
.case-hero .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.case-cat { color: var(--teal); font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.case-title { font-size: clamp(36px, 5vw, 64px); margin-bottom: 12px; }
.case-meta { color: var(--muted); }
.case-lede { font-size: clamp(19px, 1.6vw, 22px); max-width: 36em; }
.case-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 30px 0 40px; }
.case-results div { padding: 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 6px; }
.case-results b { font: 900 clamp(34px, 4vw, 48px)/1 var(--display); font-stretch: 70%; color: var(--verm); }
.case-results span { font-size: 14px; color: var(--ink2); }
.case-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; }
.case-content h3 { font-size: 24px; margin: 28px 0 12px; }
.case-content p, .case-content li { color: var(--ink2); }
.case-cols ul { display: grid; gap: 10px; }
.case-cols li { position: relative; padding-left: 22px; }
.case-cols li::before { content: ''; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--verm); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--ink2); }
.media-list { display: grid; gap: 8px; }
.media-list li { padding: 12px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.case-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

/* ── Journey ────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 34px; scrollbar-width: thin; }
.timeline { position: relative; display: grid; gap: 12px; }
.timeline::before { content: ''; position: absolute; left: 70px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.tl-item { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 26px; position: relative; }
.tl-year { padding-top: 26px; font: 800 20px/1 var(--display); font-stretch: 75%; color: var(--muted); }
.tl-item::after { content: ''; position: absolute; left: 65px; top: 29px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--teal); }
.tl-item:first-child::after { background: var(--verm); border-color: var(--verm); box-shadow: 0 0 0 5px var(--verm-soft); }
.tl-item details { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); transition: border-color .25s; }
.tl-item details[open] { border-color: color-mix(in srgb, var(--teal) 50%, var(--line)); }
.tl-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; gap: 8px 24px; align-items: center; padding: 20px 22px; }
.tl-item summary::-webkit-details-marker { display: none; }
.tl-head { display: grid; gap: 2px; }
.tl-head strong { font: 800 clamp(21px, 2vw, 26px)/1.1 var(--display); font-stretch: 78%; }
.tl-head span { color: var(--ink2); }
.tl-when { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-when em { display: block; font-style: normal; font-weight: 400; font-size: 14px; color: var(--muted); white-space: normal; }
.tl-toggle { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.tl-toggle::before, .tl-toggle::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; translate: -50% -50%; transition: rotate .3s var(--ease); }
.tl-toggle::after { rotate: 90deg; }
details[open] .tl-toggle::after { rotate: 0deg; }
.tl-body { padding: 0 22px 22px; }
.tl-body > ul:first-child { display: grid; gap: 8px; margin-bottom: 16px; }
.tl-body > ul:first-child li { position: relative; padding-left: 20px; color: var(--ink2); }
.tl-body > ul:first-child li::before { content: ''; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--teal); }
.tags.hl li { border-color: transparent; background: var(--teal-soft); color: var(--ink); }
.inline-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; color: var(--verm); text-decoration: none; min-height: 44px; }
.inline-link svg { width: 17px; height: 17px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.card h3 { font-size: 24px; margin: 6px 0 8px; }
.card p { color: var(--ink2); margin-bottom: 6px; }
.card-when { font-size: 14px; color: var(--teal) !important; font-weight: 600; }
.card-note { font-size: 15px; color: var(--muted) !important; overflow-wrap: anywhere; }
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.awards li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.aw-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--verm-soft); color: var(--verm); }
.aw-ico svg { width: 22px; height: 22px; }
.awards h3 { font-size: 21px; margin-bottom: 4px; }
.awards p { margin: 0 0 4px; color: var(--ink2); font-size: 15px; }
.panel[hidden] { display: none; }
.panel { animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

/* ── Writing ────────────────────────────────────────────────────────────── */
.writing { background: var(--ink); color: var(--bg); --line: color-mix(in srgb, var(--bg) 16%, transparent); }
.writing .sec-tag { color: var(--verm); }
.writing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); }
.writing .sec-head { position: sticky; top: 100px; align-self: start; }
.wstats { display: grid; gap: 18px; margin-top: 36px; }
.wstats p { display: grid; margin: 0; opacity: .85; }
.wstats b { font: 900 clamp(48px, 5vw, 72px)/1 var(--display); font-stretch: 70%; color: var(--verm); }
.articles { border-top: 1px solid var(--line); }
.articles li > a, .articles li > div { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 4px 16px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.a-outlet { grid-column: 1; font-size: 13px; opacity: .6; }
.a-title { grid-column: 1; font: 700 clamp(21px, 2vw, 26px)/1.2 var(--display); font-stretch: 85%; }
.a-blurb { grid-column: 1; font-size: 15px; opacity: .7; }
.a-go { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background .25s, color .25s; }
.a-go svg { width: 18px; height: 18px; }
.articles a:hover .a-go { background: var(--verm); color: #fff; border-color: var(--verm); }
.articles a:hover .a-title { color: var(--verm); }
.writing-grid > .interviews { grid-column: 2; }
.interviews h3 { font-size: clamp(22px, 2vw, 28px); margin: 8px 0 18px; }
.interviews ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.interviews li { display: grid; gap: 4px; align-content: start; padding: 18px; border-radius: 16px; border: 1px solid var(--line); }
.interviews .a-outlet { opacity: .75; }

/* ── Words ──────────────────────────────────────────────────────────────── */
.quotes { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; }
.quote { margin: 0; padding: clamp(28px, 4vw, 48px); border-radius: 26px; background: var(--card); border: 1px solid var(--line); position: relative; }
.quote .q { width: 54px; height: 54px; fill: var(--verm); stroke: none; margin-bottom: 18px; }
.quote blockquote { margin: 0 0 30px; }
.quote blockquote p { font: 600 clamp(22px, 2.3vw, 32px)/1.3 var(--display); font-stretch: 90%; letter-spacing: -.005em; margin: 0; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.quote figcaption > span { display: grid; }
.quote figcaption span span { color: var(--ink2); font-size: 15px; }
.quote small { color: var(--muted); font-size: 13px; }
.quote img, .initials { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.initials { display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); font: 800 18px/1 var(--display); }
.quote-invite { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; background: transparent; border-style: dashed; }
.quote-invite p { font: 700 24px/1.25 var(--display); font-stretch: 85%; margin: 0; }

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact { background: var(--bg2); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact-pitch > p { color: var(--ink2); font-size: 18px; max-width: 30em; margin-top: 22px; }
.direct { display: grid; gap: 4px; margin-top: 30px; }
.direct li { display: flex; align-items: center; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.direct li > svg { width: 20px; height: 20px; color: var(--teal); flex: none; }
.direct a { font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.direct a:hover { color: var(--verm); }
.copy { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; }
.copy svg { width: 15px; height: 15px; }
.form { padding: clamp(24px, 3vw, 40px); border-radius: 26px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; }
.field label, .field legend { font-size: 15px; font-weight: 600; }
.opt { color: var(--muted); font-weight: 400; }
.field input:not([type=radio]), .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 18%, transparent); }
.field .invalid { border-color: var(--verm) !important; }
.err { margin: 0; min-height: 0; font-size: 14px; color: var(--verm); }
.err:empty { display: none; }
.intent { display: flex; flex-wrap: wrap; gap: 8px; }
.intent legend { margin-bottom: 8px; width: 100%; }
.intent label { position: relative; }
.intent input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.intent span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 15px; transition: all .2s; }
.intent input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.intent input:focus-visible + span { outline: 2px solid var(--verm); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-size: 15px; }
.form-status.ok { color: var(--teal); font-weight: 600; }
.form-status.bad { color: var(--verm); }
#f-submit[disabled] { opacity: .6; pointer-events: none; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer { padding: clamp(56px, 8vw, 110px) var(--pad) 36px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; gap: 30px; }
.foot-big a { display: inline; font: 900 clamp(40px, 8vw, 120px)/.95 var(--display); font-stretch: 68%; letter-spacing: -.02em; text-decoration: none; transition: color .3s; }
.foot-big a:hover { color: var(--verm); }
.foot-big svg { display: inline-block; width: .6em; height: .6em; vertical-align: baseline; margin-left: .1em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.foot-links a { text-decoration: none; color: var(--ink2); display: inline-block; min-height: 44px; line-height: 44px; }
.foot-links a:hover { color: var(--verm); }
.foot-small { font-size: 14px; color: var(--muted); margin: 0; }

/* ── Reveal ─────────────────────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── 404 ────────────────────────────────────────────────────────────────── */
.nf-main { min-height: 100svh; display: grid; place-items: center; padding: 40px var(--pad); position: relative; }
#nf-canvas { position: fixed; inset: 0; width: 100%; height: 100%; }
.nf-box { position: relative; max-width: 640px; padding: clamp(28px, 5vw, 56px); border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.nf-box h1 { font-size: clamp(40px, 7vw, 76px); margin-bottom: 18px; }
.nf-box p { color: var(--ink2); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(4) { padding-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .approach { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-top: 110px; }
  .hero-visual { height: 460px; min-height: 0; }
  .map { left: 0; }
  .badge { left: 14px; bottom: 60px; width: 150px; }
  .scroll-cue { display: none; }
  .about-grid, .skill-board, .writing-grid, .contact-grid, .quotes, .case-cols { grid-template-columns: minmax(0, 1fr); }
  .about-side, .evidence, .writing .sec-head { position: static; }
  .writing-grid > .interviews { grid-column: 1; }
  .projects { grid-template-columns: minmax(0, 1fr); }
  .project:first-child .project-link, .project:last-child:nth-child(even) .project-link { grid-template-columns: minmax(0, 1fr); }
  .project:first-child .project-art, .project:last-child:nth-child(even) .project-art { aspect-ratio: 16 / 10; min-height: 0; order: 0; }
  .diff { grid-template-columns: minmax(0, 1fr); }
  .diff > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand-name { display: none; }
  .nav-cv span { display: none; }
  .nav-cv { padding: 0 14px; }
  .hero-visual { height: 420px; }
  .badge { width: 124px; padding: 7px 7px 10px; border-radius: 16px; bottom: 64px; }
  .badge figcaption { font-size: 11px; padding-top: 8px; }
  .badge strong { font-size: 17px; }
  .badge .loc { display: none; }
  .map-hint { display: none; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat, .stat:first-child { padding: 22px 14px 6px 0; border-right: 0; }
  .stat:nth-child(n) { padding-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(odd) { padding-right: 14px; border-right: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 14px; }
  .stat:last-child { grid-column: 1 / -1; border-right: 0; }
  .approach { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .timeline::before, .tl-item::after { display: none; }
  .tl-item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tl-year { padding-top: 6px; }
  .tl-item summary { grid-template-columns: minmax(0, 1fr) 28px; }
  .tl-when { grid-column: 1; grid-row: 2; text-align: left; white-space: normal; }
  .tl-toggle { grid-column: 2; grid-row: 1; }
  .awards { grid-template-columns: minmax(0, 1fr); }
  .interviews ul { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .case { width: 100%; }
  .copy span { display: none; }
}

/* ── Motion & print preferences ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal, .js .hero-title .w { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .cursor { display: none; }
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media print {
  .nav, .loader, .progress, .cursor, .marquee, .map, .scroll-cue, .form, .menu, .case { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  body { background: #fff; color: #000; }
}
