:root {
  --black: #0a0a0a;
  --white: #f5f3ef;
  --red: #d7182a;
  --red-deep: #a10f1e;
  --gray: #141414;
  --gray2: #262626;
  --muted: #8d8a84;
  --dim: rgba(245, 243, 239, .7);
  --border: rgba(245, 243, 239, .1);
  --max: 1180px;
  --pad: clamp(20px, 4vw, 44px);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, sans-serif;
  --body: "Bricolage Grotesque", "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --display: "Playfair Display", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
/* italic serif = red, upright sans = white: the site's core contrast */
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--red); letter-spacing: 0; }
::selection { background: var(--red); color: var(--white); }

.mono-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mono-label.red { color: var(--red); }

/* duotone photos: black + red, full colour on hover */
.duo { position: relative; overflow: hidden; background: var(--red); }
.duo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(1.05); mix-blend-mode: multiply; transition: filter .6s var(--ease); }
.duo:hover img { filter: none; mix-blend-mode: normal; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  padding: 16px var(--pad);
  background: rgba(10, 10, 10, .78);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.logo { font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.logo em { font-size: 1.3rem; }
.np-pill {
  display: inline-flex; align-items: center; gap: 8px; max-width: 320px;
  font-size: .75rem; color: var(--dim); padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px;
  transition: border-color .2s, color .2s;
}
.np-pill[hidden] { display: none; }
.np-pill:hover { border-color: var(--red); color: var(--white); }
.np-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #1ed760; flex-shrink: 0; animation: pulse 2s infinite; }
.np-pill-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(30,215,96,.6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(30,215,96,0); } }
.links { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: .9rem; }
.links a { color: var(--dim); transition: color .2s; position: relative; }
.links a:not(.links-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.links a:hover { color: var(--white); }
.links a:hover::after { transform: scaleX(1); transform-origin: left; }
.links-cta { color: var(--black) !important; background: var(--white); padding: 8px 16px; border-radius: 999px; font-weight: 500; }
.links-cta:hover { background: var(--red); color: var(--white) !important; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; width: 30px; height: 20px; position: relative; cursor: pointer; }
.menu-btn span { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--white); transition: .3s var(--ease); }
.menu-btn span:first-child { top: 5px; } .menu-btn span:last-child { bottom: 5px; }

/* ---------- HERO ---------- */
.hero { padding-top: 120px; min-height: 100vh; display: flex; flex-direction: column; }
.hero-grid {
  flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center;
}
.kicker { display: flex; align-items: center; gap: 14px; font-size: .85rem; color: var(--dim); margin-bottom: 28px; }
.kicker-line { width: 42px; height: 1px; background: var(--red); }

.hero-name { font-family: var(--sans); font-weight: 600; font-size: clamp(4.2rem, 12vw, 11rem); line-height: .9; letter-spacing: -.05em; cursor: default; user-select: none; }
.hero-name .line { display: block; padding-bottom: .04em; white-space: nowrap; }
.hero-name .word { display: inline-block; animation: rise 1.1s var(--ease) both; }
.hero-name .line:nth-child(2) .word { animation-delay: .12s; }
.hero-name .word.last { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--red); font-size: 1.12em; letter-spacing: -.02em; }
.red-dot { color: var(--red); }
@keyframes rise { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }

/* per-letter font states (set by JS on hover) */
.ch { display: inline-block; transition: color .15s; }
.ch[data-f="f-italic"]    { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--red); letter-spacing: 0; }
.ch[data-f="f-bold"]      { font-family: var(--sans); font-style: normal; font-weight: 800; color: var(--white); }
.ch[data-f="f-display"]   { font-family: var(--display); font-style: normal; font-weight: 900; color: var(--white); letter-spacing: 0; }
.ch[data-f="f-display-i"] { font-family: var(--display); font-style: italic; font-weight: 400; color: var(--red); letter-spacing: 0; }
.ch[data-f="f-mono"]      { font-family: var(--mono); font-style: normal; font-weight: 500; color: var(--white); letter-spacing: -.08em; }
.ch[data-f="f-light"]     { font-family: var(--sans); font-style: normal; font-weight: 300; color: var(--white); }
.word.last .ch[data-f="f-bold"], .word.last .ch[data-f="f-light"], .word.last .ch[data-f="f-mono"] { font-size: .89em; }

.hero-lede { font-family: var(--body); font-weight: 400; letter-spacing: -.01em; font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--dim); max-width: 520px; margin: 34px 0 44px; line-height: 1.5; animation: fade 1s .4s both; }
.hero-lede em { font-size: 1.15em; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 14px clamp(20px, 3vw, 44px); justify-content: start; animation: fade 1s .55s both; }
.hero-stats div { display: flex; flex-direction: column; padding-left: 14px; border-left: 1px solid var(--border); }
.hero-stats em { font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1; color: var(--white); }
.hero-stats div:first-child em { color: var(--red); }
.hero-stats span { font-size: .75rem; color: var(--muted); margin-top: 6px; white-space: nowrap; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero-photo { position: relative; justify-self: end; width: 100%; max-width: 430px; animation: fade 1.2s .25s both; }
.hero-frame { aspect-ratio: 4 / 5; box-shadow: 22px 22px 0 var(--red); background: var(--gray); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-photo figcaption { display: flex; justify-content: space-between; margin-top: 40px; font-family: var(--mono); font-size: .7rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.marquee { margin-top: 70px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 34px; width: max-content; animation: marquee 38s linear infinite; align-items: center; }
.marquee span { font-size: 1.05rem; white-space: nowrap; color: var(--white); }
.marquee span em { font-size: 1.35rem; margin-left: 6px; }
.marquee i { color: var(--red); font-style: normal; font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(90px, 11vw, 130px) 0; border-top: 1px solid var(--border); }
.wrap:first-of-type .section:first-child { border-top: 0; }
.section h2 {
  font-weight: 600; font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.02; letter-spacing: -.035em;
  margin: 18px 0 52px; max-width: 820px;
}
.section h2 em { font-size: 1.1em; letter-spacing: -.01em; }
.section, .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.section.in, .reveal.in { opacity: 1; transform: none; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 60px; align-items: start; }
.portrait { position: relative; }
.portrait .ph, .portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait::before { content: ""; position: absolute; inset: 14px -14px auto 14px; aspect-ratio: 4 / 5; border: 1px solid var(--red); z-index: -1; }
.portrait figcaption { margin-top: 26px; font-size: .6rem; }
.prose { max-width: 700px; }
.prose p { font-family: var(--body); font-size: 1.08rem; color: var(--dim); margin-bottom: 22px; }
.prose .lead { font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.25; letter-spacing: -.02em; color: var(--white); font-weight: 500; letter-spacing: -.03em; margin-bottom: 30px; }
.prose .lead em { font-size: 1.1em; }
.values { color: var(--muted) !important; }
.values u { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--red); padding-bottom: 1px; }

/* QUOTE — full-bleed red */
.quote { background: var(--red); color: var(--black); padding: clamp(80px, 10vw, 140px) var(--pad); position: relative; overflow: hidden; }
.quote-mark { position: absolute; top: -.12em; right: 3vw; font-family: var(--serif); font-size: clamp(16rem, 32vw, 30rem); line-height: 1; color: var(--red-deep); pointer-events: none; }
.quote blockquote { position: relative; max-width: var(--max); margin: 0 auto; font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 500; }
.quote blockquote em { color: var(--white); font-size: 1.1em; letter-spacing: -.01em; }
.quote-cite { position: relative; max-width: var(--max); margin: 34px auto 0; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(10,10,10,.7); }

/* WORK */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.work { background: var(--black); padding: 36px; transition: background .3s; position: relative; }
.work::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--red); transition: width .45s var(--ease); z-index: 1; }
.work:hover { background: var(--gray); }
.work:hover::before { width: 100%; }
.work.feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.work-img { margin: -36px -36px 28px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--gray); }
.work.feature .work-img { margin: -36px 0 -36px -36px; aspect-ratio: auto; height: calc(100% + 72px); min-height: 360px; }
.work-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) brightness(.85); transition: filter .5s, transform .8s var(--ease); }
.work:hover .work-img img { filter: none; transform: scale(1.04); }
.work-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.badge { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--white); background: var(--red); padding: 5px 10px; }
.work h3 { font-weight: 600; font-size: 1.85rem; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 14px; }
.work h3 em { font-size: 1.12em; }
.work.feature h3 { font-size: 2.6rem; }
.work p { font-family: var(--body); color: var(--dim); max-width: 760px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags li { font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); padding: 5px 10px; }

/* EXPERIENCE — tabbed board: org list on the left, one panel at a time */
.lead-board { display: grid; grid-template-columns: 300px 1fr; border: 1px solid var(--border); }
.lead-tabs { position: relative; display: flex; flex-direction: column; border-right: 1px solid var(--border); }
.lead-tab {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative;
  display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; row-gap: 4px; align-items: baseline;
  flex: 1; align-content: center; padding: 26px 26px 26px 24px; border-bottom: 1px solid var(--border);
  color: var(--muted); transition: background .3s, color .3s;
}
.lead-tab:last-child { border-bottom: 0; }
.lead-tab::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 3px; background: var(--red); transform: scaleY(0); transition: transform .4s var(--ease); }
.lead-tab:hover { color: var(--white); background: rgba(255,255,255,.02); }
.lead-tab:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.lead-tab[aria-selected="true"] { color: var(--white); background: var(--gray); }
.lead-tab[aria-selected="true"]::before { transform: scaleY(1); }
.lt-num { font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.lead-tab[aria-selected="true"] .lt-num { color: var(--red); }
.lt-name { font-weight: 600; font-size: 1.3rem; letter-spacing: -.025em; line-height: 1.15; }
.lt-name em { font-size: 1.12em; color: inherit; }
.lead-tab[aria-selected="true"] .lt-name em { color: var(--red); }
.lt-meta { grid-column: 2; font-size: .58rem; }

.lead-panels { position: relative; background: var(--gray); }
.lead-panel { display: grid; grid-template-columns: 220px 1fr; gap: 36px; padding: 36px; }
.lead-board:not(.tabs-ready) .lead-panel + .lead-panel { border-top: 1px solid var(--border); }
.tabs-ready .lead-panel { display: none; }
.tabs-ready .lead-panel.active { display: grid; animation: panel-in .55s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* visual: a photo, or a monogram tile standing in for a logo */
.lp-visual { position: relative; aspect-ratio: 3 / 4; overflow: hidden; align-self: start; }
.lp-visual.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.lp-visual.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,10,10,.75)); }
.lp-visual .lp-mark { position: absolute; left: 16px; bottom: 12px; z-index: 1; font-family: var(--serif); font-style: italic; font-size: 2.2rem; line-height: 1; color: var(--white); }
/* logo tile: white card so dark logo text stays readable on the black site */
.lp-visual.logo { background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 26px 22px 44px; border-top: 4px solid var(--red); }
.lp-visual.logo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.lead-panel:hover .lp-visual.logo img { transform: scale(1.04); }
.lp-visual.logo .mono-label { position: absolute; left: 16px; right: 16px; bottom: 14px; font-size: .55rem; color: #6b6862; }

.lp-body { min-width: 0; }
.lp-stat { display: flex; align-items: flex-end; gap: 18px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.lp-stat em { font-size: clamp(3.6rem, 6.5vw, 5.4rem); line-height: .82; letter-spacing: -.02em; flex-shrink: 0; }
.lp-stat span { font-family: var(--body); color: var(--dim); font-size: .98rem; line-height: 1.4; max-width: 300px; padding-bottom: 4px; }
.lp-body h3 { font-weight: 600; font-size: 1.55rem; letter-spacing: -.025em; line-height: 1.15; margin-bottom: 22px; }
.lp-body h3 em { font-size: 1.12em; }
.lp-body h3 .mono-label { display: block; font-size: .6rem; margin-top: 8px; letter-spacing: .12em; }
.lp-roles { list-style: none; counter-reset: role; }
.lp-roles li { counter-increment: role; position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 18px; padding: 14px 0 14px 38px; border-top: 1px solid var(--border); }
.lp-roles li::before { content: counter(role, decimal-leading-zero); position: absolute; left: 0; top: 17px; font-family: var(--mono); font-size: .62rem; color: var(--red); }
.lp-roles b { font-weight: 500; font-size: 1.02rem; }
.lp-roles .mono-label { font-size: .58rem; padding-top: 5px; }
.lp-roles p { flex-basis: 100%; font-family: var(--body); color: var(--dim); font-size: .95rem; line-height: 1.5; }

/* EDUCATION */
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.edu { padding: 34px 30px 30px; background: var(--gray); border: 1px solid var(--border); transition: border-color .3s, transform .5s var(--ease); }
.edu:hover { border-color: var(--red); transform: translateY(-4px); }
.edu-num { display: block; font-family: var(--serif); font-style: italic; font-size: clamp(4rem, 7vw, 5.6rem); line-height: .9; color: var(--red); margin-bottom: 22px; }
.edu h3 { font-weight: 600; font-size: 1.35rem; letter-spacing: -.02em; margin-top: 10px; }
.edu-deg { margin: 2px 0 16px; }
.edu-deg em { color: var(--white); font-size: 1.15em; }
.edu p:last-child { font-family: var(--body); color: var(--muted); font-size: .9rem; }

/* ---------- SPOTIFY ---------- */
.np { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.np > * { min-width: 0; }
.np-main {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; gap: 30px; align-items: center; padding: 34px;
  background: var(--gray); border: 1px solid var(--border); transition: border-color .3s;
}
.np-main:hover { border-color: var(--red); }
/* blurred album cover glowing behind the card */
.np-glow { position: absolute; inset: -40%; z-index: -1; background: var(--art, none) center / cover; filter: blur(60px) saturate(1.5); opacity: .55; transition: background-image .6s; }
.np-glow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,20,.2), rgba(20,20,20,.85) 70%); }
.np-cover { position: relative; width: 180px; height: 180px; flex-shrink: 0; transition: margin-right .8s var(--ease); }
.np-art { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; background: var(--gray2); box-shadow: 12px 0 30px rgba(0,0,0,.65); }
.vinyl {
  position: absolute; top: 6px; left: 6px; width: 168px; height: 168px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    conic-gradient(from 30deg, rgba(255,255,255,.1), transparent 18%, rgba(255,255,255,.07) 50%, transparent 68%, rgba(255,255,255,.1)),
    repeating-radial-gradient(circle, #050505 0 1.5px, #262626 1.5px 3px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 10px 30px rgba(0,0,0,.6);
  transition: translate .8s var(--ease);
}
/* the album cover printed on the record's centre label */
.vinyl-label { width: 38%; height: 38%; border-radius: 50%; object-fit: cover; background: var(--red); box-shadow: 0 0 0 3px #0a0a0a; }
.vinyl::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #0a0a0a; }
.listening.playing .vinyl { translate: 118px 0; animation: spin 3.2s linear infinite; }
.listening.playing .np-cover { margin-right: 118px; }
@keyframes spin { from { rotate: 0deg; } to { rotate: 360deg; } }
.np-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.np-status { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.listening.playing .np-status { color: var(--red); }
.eq { display: none; gap: 2px; align-items: flex-end; height: 12px; }
.listening.playing .eq { display: inline-flex; }
.eq i { width: 3px; background: var(--red); animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.np-title { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 3vw, 2.7rem); line-height: 1.02; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.np-artist { color: var(--white); font-weight: 500; }
.np-album { color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-bar { height: 2px; background: rgba(255,255,255,.12); margin: 16px 0 4px; }
.np-bar span { display: block; height: 100%; background: var(--red); transition: width 1s linear; }
.np-spotify { margin-top: 12px; font-size: .6rem; }
.np-main:hover .np-spotify { color: var(--white); }
.np-recent { padding: 30px; border: 1px solid var(--border); }
.np-recent ol { list-style: none; margin-top: 14px; }
.np-recent li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--border); }
.np-recent li a { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.np-recent li img, .np-recent li .ph { width: 42px; height: 42px; flex-shrink: 0; object-fit: cover; background: var(--gray2); }
.np-recent .txt { display: flex; flex-direction: column; min-width: 0; }
.np-recent .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-recent .a { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-recent li a:hover .t { color: var(--red); }
.np-recent li .mono-label { font-size: .58rem; flex-shrink: 0; }
@media (max-width: 1000px) { .np { grid-template-columns: 1fr; } }

/* CONTACT */
.contact { padding: clamp(110px, 14vw, 170px) 0; }
.contact-title { font-size: clamp(4.5rem, 14vw, 12rem) !important; font-weight: 600; letter-spacing: -.06em !important; line-height: .9 !important; margin: 26px 0 30px !important; max-width: none !important; }
.contact-sub { font-family: var(--body); color: var(--dim); font-size: 1.15rem; margin-bottom: 44px; }
.email {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 4.4vw, 3.2rem);
  padding-bottom: 6px; border-bottom: 2px solid var(--red); transition: color .3s;
}
.email span { font-family: var(--sans); font-style: normal; font-size: .55em; transition: transform .4s var(--ease); }
.email:hover { color: var(--red); }
.email:hover span { transform: translate(4px, -4px); }
.socials { display: flex; gap: 32px; margin-top: 52px; }
.socials a:hover { color: var(--white); }

.footer { max-width: var(--max); margin: 0 auto; padding: 26px var(--pad) 32px; display: flex; justify-content: space-between; border-top: 1px solid var(--border); }
.footer .mono-label { font-size: .6rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .section, .reveal { opacity: 1; transform: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) { .np-pill { display: none !important; } }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 30px; margin: 0;
    background: var(--black); font-size: 2rem; opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .links a { color: var(--white); }
  .links-cta { font-size: 1.2rem; }
  .menu-open .links { opacity: 1; pointer-events: auto; }
  .menu-open .menu-btn span:first-child { top: 9px; transform: rotate(45deg); }
  .menu-open .menu-btn span:last-child { bottom: 9px; transform: rotate(-45deg); }

  .hero { padding-top: 100px; min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; max-width: 340px; margin-top: 10px; }
  .hero-stats { grid-template-columns: repeat(2, auto); }
  .marquee { margin-top: 60px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait { max-width: 300px; }
  .work-grid, .edu-grid { grid-template-columns: 1fr; }
  .work { padding: 28px 24px; }
  .work-img { margin: -28px -24px 24px; }
  .work.feature { display: block; }
  .work.feature .work-img { margin: -28px -24px 24px; height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .lead-board { grid-template-columns: 1fr; }
  .lead-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; border-right: 0; border-bottom: 1px solid var(--border); scroll-snap-type: x mandatory; }
  .lead-tabs::-webkit-scrollbar { display: none; }
  .lead-tab { flex: 0 0 auto; padding: 18px 22px 16px; border-bottom: 0; border-right: 1px solid var(--border); grid-template-columns: auto; scroll-snap-align: start; }
  .lead-tab::before { left: 0; right: 0; top: auto; bottom: -1px; width: auto; height: 3px; transform: scaleX(0); }
  .lead-tab[aria-selected="true"]::before { transform: scaleX(1); }
  .lt-num { display: none; }
  .lt-name { font-size: 1.1rem; white-space: nowrap; }
  .lt-meta { grid-column: 1; }
  .lead-panel, .tabs-ready .lead-panel.active { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .lp-visual { aspect-ratio: 16 / 9; }
  .lp-visual.photo img { object-position: 50% 62%; }
  .lp-visual.logo { aspect-ratio: 16 / 9; padding: 18px 18px 38px; }
  .lp-stat { flex-direction: column; align-items: flex-start; gap: 10px; }

  .np-main { flex-direction: column; align-items: flex-start; padding: 26px; }
  .np-cover { width: 160px; height: 160px; }
  .vinyl { width: 148px; height: 148px; }
  .listening.playing .vinyl { translate: 104px 0; }
  .listening.playing .np-cover { margin-right: 0; }
  .np-recent { padding: 24px; }
}

/* =================================================================
   INTERACTIVE LAYER
   ================================================================= */

/* ---------- work cards that open case studies ---------- */
.work-hint { margin: -34px 0 30px; }
.work[data-case] { cursor: pointer; }
.work-open { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--white); border-bottom: 1px solid var(--red); padding-bottom: 4px; }
.work-open span { transition: transform .35s var(--ease); }
.work:hover .work-open span, .work-open:focus-visible span { transform: translateX(5px); }
.work-open:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.work.wide { grid-column: 1 / -1; }
.work-big { display: flex; align-items: flex-end; gap: 14px; margin: 0 0 26px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.work-big em { font-size: clamp(3.4rem, 6vw, 4.6rem); line-height: .82; letter-spacing: -.02em; }
.work-big span { font-family: var(--body); color: var(--muted); font-size: .92rem; line-height: 1.3; max-width: 200px; padding-bottom: 2px; }

/* ---------- case study drawer ---------- */
.case-drawer { position: fixed; inset: 0; z-index: 200; }
.case-drawer[hidden] { display: none; }
.cd-backdrop { position: absolute; inset: 0; background: rgba(5,5,5,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .45s var(--ease); }
.cd-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); background: var(--black); border-left: 1px solid var(--border); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .6s var(--ease); outline: none; }
.case-drawer.open .cd-backdrop { opacity: 1; }
.case-drawer.open .cd-panel { transform: none; }
.cd-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 28px; border-bottom: 1px solid var(--border); }
.cd-actions { display: flex; gap: 8px; align-items: center; }
.cd-nav, .cd-close { all: unset; cursor: pointer; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--border); padding: 8px 12px; transition: color .2s, border-color .2s, background .2s; }
.cd-nav:hover, .cd-close:hover { color: var(--white); border-color: var(--red); }
.cd-close { background: var(--white); color: var(--black); border-color: var(--white); }
.cd-close:hover { background: var(--red); color: var(--white); }
.cd-nav:focus-visible, .cd-close:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.cd-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.case { padding: 0 0 60px; }
.case.enter > * { animation: fade .7s var(--ease) both; }
.case.enter > *:nth-child(2) { animation-delay: .06s; } .case.enter > *:nth-child(3) { animation-delay: .12s; } .case.enter > *:nth-child(4) { animation-delay: .18s; } .case.enter > *:nth-child(n+5) { animation-delay: .24s; }
.case-hero { aspect-ratio: 16 / 8; overflow: hidden; }
.case-hero img { width: 100%; height: 100%; object-fit: cover; }
.case-video { position: relative; aspect-ratio: 16 / 9; background: var(--gray); }
.case-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.case-head { padding: 34px 40px 0; }
.case-head .work-top { margin-bottom: 18px; }
.case-head h3 { font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -.035em; }
.case-head h3 em { font-size: 1.1em; }
.case-sub { font-family: var(--body); color: var(--dim); font-size: 1.12rem; line-height: 1.45; margin-top: 14px; max-width: 560px; }
.case-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 32px 40px 8px; border: 1px solid var(--border); }
.case-stats div { padding: 20px 18px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.case-stats div:first-child { border-left: 0; }
.case-stats em { font-size: clamp(2.2rem, 4vw, 2.9rem); line-height: .9; white-space: nowrap; }
.case-stats span { font-family: var(--body); font-size: .82rem; color: var(--muted); line-height: 1.35; }
.case-sec { padding: 28px 40px 0; }
.case-sec h4 { font-family: var(--mono); font-weight: 500; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.case-sec p { font-family: var(--body); color: var(--dim); font-size: 1.02rem; line-height: 1.6; }
.case-list { list-style: none; counter-reset: c; display: grid; gap: 14px; }
.case-list li { counter-increment: c; position: relative; padding: 0 0 14px 40px; border-bottom: 1px solid var(--border); font-family: var(--body); color: var(--dim); font-size: 1rem; line-height: 1.55; }
.case-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.case-list li::before { content: counter(c, decimal-leading-zero); position: absolute; left: 0; top: 3px; font-family: var(--mono); font-size: .66rem; color: var(--red); }
.case-list b { color: var(--white); font-weight: 600; }
.rubric { list-style: none; display: grid; gap: 12px; }
.rubric li { display: grid; grid-template-columns: 190px 1fr 52px; align-items: center; gap: 14px; font-family: var(--body); font-size: .92rem; color: var(--dim); }
.rubric i { position: relative; height: 6px; background: var(--gray2); overflow: hidden; }
.rubric i::after { content: ""; position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease); }
.case.enter .rubric i::after { transform: scaleX(var(--v)); }
.case.enter .rubric li:nth-child(2) i::after { transition-delay: .06s; } .case.enter .rubric li:nth-child(3) i::after { transition-delay: .12s; } .case.enter .rubric li:nth-child(4) i::after { transition-delay: .18s; } .case.enter .rubric li:nth-child(n+5) i::after { transition-delay: .24s; }
.rubric b { font-family: var(--mono); font-weight: 500; font-size: .74rem; color: var(--white); text-align: right; }
.case-quote { margin: 30px 40px 0; padding: 22px 26px; border-left: 3px solid var(--red); background: var(--gray); font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.25; color: var(--white); }
.case-quote cite { display: block; margin-top: 10px; font-family: var(--mono); font-style: normal; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.case-links { padding: 34px 40px 0; display: flex; flex-wrap: wrap; gap: 12px; }
.case-link { display: inline-flex; align-items: center; gap: 10px; background: var(--white); color: var(--black); padding: 13px 20px; font-weight: 500; font-size: .95rem; transition: background .25s, color .25s; }
.case-link span { transition: transform .35s var(--ease); }
.case-link:hover { background: var(--red); color: var(--white); }
.case-link:hover span { transform: translate(3px, -3px); }
body.no-scroll { overflow: hidden; }

/* ---------- ticker: hover a win to see its photo ---------- */
.marquee span[data-case] { cursor: pointer; transition: color .25s, opacity .25s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee:hover span[data-case] { opacity: .45; }
.marquee span[data-case]:hover { opacity: 1; color: var(--white); }
.mq-peek { position: fixed; left: 0; top: 0; z-index: 150; width: 240px; aspect-ratio: 4 / 3; pointer-events: none; opacity: 0; transform: translate3d(-999px, -999px, 0); transition: opacity .25s; }
.mq-peek img { width: 100%; height: 100%; object-fit: cover; box-shadow: 10px 10px 0 var(--red); transform: scale(.85) rotate(-4deg); transition: transform .45s var(--ease); }
.mq-peek.show { opacity: 1; }
.mq-peek.show img { transform: scale(1) rotate(-2deg); }

/* ---------- custom cursor (mouse only) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor [data-case], .has-cursor .lead-tab { cursor: none; }
.has-cursor input { cursor: text; }
/* low-key: a small red dot, a thin ring that grows a little over clickable things, and a tiny caption beside it */
.cursor-dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--red); transition: opacity .2s, transform .2s; }
.cursor-ring { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 1px solid rgba(245,243,239,.18); transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), border-color .3s; }
.cursor-label { position: absolute; left: calc(100% + 10px); top: 50%; transform: translate(-4px, -50%); font-family: var(--mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); opacity: 0; transition: opacity .25s, transform .35s var(--ease); white-space: nowrap; }
.cursor.link .cursor-ring, .cursor.label .cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border-color: rgba(215,24,42,.7); }
.cursor.label .cursor-label { opacity: 1; transform: translate(0, -50%); }
.cursor.down .cursor-ring { transform: scale(.85); }
.cursor.hide { opacity: 0; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 450; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--white); color: var(--black); padding: 12px 20px; font-size: .92rem; font-weight: 500; display: flex; align-items: center; gap: 10px; box-shadow: 8px 8px 0 var(--red); transition: opacity .3s, transform .45s var(--ease); white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast em { font-size: 1.15em; }

/* ---------- email copy ---------- */
.email-icon { font-family: var(--sans) !important; font-style: normal; font-size: .5em !important; }
.email.copied { color: var(--red); }
.email-hint { margin-top: 18px; font-size: .62rem; }
.email-hint a { color: var(--dim); border-bottom: 1px solid var(--border); transition: color .2s, border-color .2s; }
.email-hint a:hover { color: var(--white); border-color: var(--red); }

/* ---------- spinnable record ---------- */
.vinyl { touch-action: none; cursor: grab; }
.vinyl.dragging { cursor: grabbing; }
.listening:not(.playing) .vinyl { translate: 92px 0; }
.listening:not(.playing) .np-cover { margin-right: 92px; }
.vinyl-hint { display: block; margin-top: 6px; font-size: .55rem; color: var(--muted); }

/* ---------- quick menu ---------- */
.kbd-btn { all: unset; cursor: pointer; display: inline-flex; gap: 3px; padding: 5px 7px; border: 1px solid var(--border); border-radius: 8px; transition: border-color .2s; }
.kbd-btn:hover, .kbd-btn:focus-visible { border-color: var(--red); }
.kbd-btn kbd, .footer-k kbd, .cmdk kbd { font-family: var(--mono); font-size: .66rem; color: var(--dim); background: var(--gray); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; min-width: 18px; text-align: center; }
.footer-k { all: unset; cursor: pointer; font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.footer-k:hover { color: var(--white); }
.cmdk { position: fixed; inset: 0; z-index: 300; display: flex; justify-content: center; align-items: flex-start; padding: 14vh 20px 20px; }
.cmdk[hidden] { display: none; }
.cmdk-backdrop { position: absolute; inset: 0; background: rgba(5,5,5,.65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadein .25s both; }
@keyframes fadein { from { opacity: 0; } }
.cmdk-box { position: relative; width: min(620px, 100%); background: var(--gray); border: 1px solid var(--border); box-shadow: 14px 14px 0 var(--red); animation: pop .35s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(-12px) scale(.98); } }
.cmdk-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.cmdk-icon { color: var(--red); font-size: 1.3rem; line-height: 1; }
.cmdk-top input { flex: 1; background: none; border: 0; outline: none; color: var(--white); font-family: var(--body); font-size: 1.1rem; }
.cmdk-top input::placeholder { color: var(--muted); }
#cmdk-list { list-style: none; max-height: min(52vh, 420px); overflow-y: auto; padding: 8px; }
.cmdk-group { font-family: var(--mono); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 12px 12px 6px; }
.cmdk-item { display: flex; align-items: center; gap: 14px; padding: 11px 12px; cursor: pointer; color: var(--dim); font-size: .98rem; }
.cmdk-item .ic { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--border); font-size: .8rem; color: var(--muted); flex-shrink: 0; }
.cmdk-item .hint { margin-left: auto; font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cmdk-item[aria-selected="true"] { background: var(--black); color: var(--white); box-shadow: inset 2px 0 0 var(--red); }
.cmdk-item[aria-selected="true"] .ic { border-color: var(--red); color: var(--red); }
.cmdk-item em { font-size: 1.12em; }
.cmdk-empty { padding: 22px 12px; color: var(--muted); font-size: .92rem; }
.cmdk-foot { display: flex; gap: 18px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--border); font-size: .56rem; }
.cmdk-foot b { color: var(--red); font-weight: 500; }

/* ---------- owl easter egg ---------- */
.owl-stage { position: fixed; inset: 0; z-index: 350; pointer-events: none; overflow: hidden; }
.owl { position: absolute; left: 0; top: 0; width: 150px; animation: owl-fly 3.6s cubic-bezier(.45,.05,.4,1) forwards; }
.owl svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(10px 12px 0 rgba(215,24,42,.35)); }
.owl .wing-l { transform-origin: 62px 70px; animation: flap-l .28s ease-in-out infinite alternate; }
.owl .wing-r { transform-origin: 98px 70px; animation: flap-r .28s ease-in-out infinite alternate; }
@keyframes flap-l { from { transform: rotate(28deg); } to { transform: rotate(-38deg); } }
@keyframes flap-r { from { transform: rotate(-28deg); } to { transform: rotate(38deg); } }
@keyframes owl-fly {
  0%   { transform: translate(-200px, 70vh) rotate(-8deg); }
  30%  { transform: translate(28vw, 34vh) rotate(4deg); }
  55%  { transform: translate(52vw, 46vh) rotate(-4deg); }
  80%  { transform: translate(78vw, 18vh) rotate(6deg); }
  100% { transform: translate(110vw, -20vh) rotate(10deg); }
}
.feather { position: absolute; width: 14px; height: 30px; border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%; background: var(--white); opacity: .9; animation: feather-fall 2.6s ease-in forwards; }
.feather:nth-child(odd) { background: var(--red); }
@keyframes feather-fall { to { transform: translate(var(--dx, 30px), 60vh) rotate(var(--r, 240deg)); opacity: 0; } }

@media (max-width: 900px) {
  .kbd-btn { display: none; }
  .work-big { margin-bottom: 20px; }
  .cd-bar { padding: 12px 18px; }
  .case-head, .case-sec, .case-links { padding-left: 22px; padding-right: 22px; }
  .case-stats { margin-left: 22px; margin-right: 22px; grid-template-columns: 1fr; }
  .case-stats div { border-left: 0; border-top: 1px solid var(--border); flex-direction: row; align-items: baseline; gap: 14px; }
  .case-stats div:first-child { border-top: 0; }
  .case-quote { margin-left: 22px; margin-right: 22px; font-size: 1.35rem; }
  .rubric li { grid-template-columns: 1fr 52px; gap: 6px 12px; }
  .rubric i { grid-column: 1 / -1; grid-row: 2; }
  .listening:not(.playing) .vinyl { translate: 80px 0; }
  .listening:not(.playing) .np-cover { margin-right: 0; }
  .cmdk { padding-top: 10vh; }
  .owl { width: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .cd-panel { transition: none; }
}

/* logo on a white card (FreshBowl / HBSA) */
.work-img.logo-img { background: #fff; display: grid; place-items: center; padding: 8% 12%; border-bottom: 3px solid var(--red); }
.work-img.logo-img img { width: 100%; height: 100%; object-fit: contain; filter: none; }
.work:hover .work-img.logo-img img { transform: scale(1.03); }
.case-hero.logo-hero { background: #fff; display: grid; place-items: center; padding: 6% 14%; aspect-ratio: 16 / 7; border-bottom: 3px solid var(--red); }
.case-hero.logo-hero img { object-fit: contain; }
/* wide card with the photo on the right (Finance Case) */
.work.feature.flip { grid-template-columns: 1fr 1.1fr; }
.work.feature.flip .work-img { order: 2; margin: -36px -36px -36px 0; }
@media (max-width: 900px) {
  .work.feature.flip .work-img { margin: -28px -24px 24px; }
}

/* résumé download */
.links-resume { font-family: var(--mono); font-size: .72rem !important; letter-spacing: .1em; text-transform: uppercase; }
.socials { align-items: center; flex-wrap: wrap; }
.resume-btn { display: inline-flex; align-items: center; gap: 12px; background: var(--white); color: var(--black); padding: 14px 22px; font-weight: 500; font-size: .98rem; transition: background .25s, color .25s; }
.resume-btn span { transition: transform .35s var(--ease); }
.resume-btn:hover { background: var(--red); color: var(--white); }
.resume-btn:hover span { transform: translateY(3px); }
