/* =============================================================
   CHRIS « REX » BLACK — styles
   Part 1: reset · ambient · nav · hero · buttons
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(135% 90% at 50% -10%, #0d1a13 0%, transparent 45%),
    radial-gradient(120% 70% at 100% 110%, #0c1810 0%, transparent 50%),
    var(--ink-900);
  background-attachment: fixed;
  color: var(--fg-1);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  cursor: auto;
}

img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold-40); color: var(--ink-1000); }

/* ---- icon glyph ---- */
.ic { width: 1em; height: 1em; fill: none; stroke: none; display: inline-block; vertical-align: -0.12em; }
.ic use { color: inherit; }

/* ---- shared utilities ---- */
.eyebrow {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  margin-bottom: var(--s-5);
}
.eyebrow::before {
  content: ""; width: 14px; height: 14px; flex: none;
  transform-origin: 50% 90%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21c-4.5-2.6-6.5-6.6-6.5-10.5 0-3 2-5.4 6.5-7.5 4.5 2.1 6.5 4.5 6.5 7.5C18.5 14.4 16.5 18.4 12 21z' fill='%23e3b04b'/%3E%3C/svg%3E") center/contain no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  .eyebrow::before { animation: leafSway 4.2s var(--ease) infinite; }
}
@keyframes leafSway {
  0%, 100% { transform: rotate(-7deg); }
  50% { transform: rotate(7deg); }
}

.gold-text {
  color: var(--gold);
  background: linear-gradient(100deg, var(--gold-deep) 0%, var(--gold) 28%, var(--gold-bright) 50%, var(--gold) 72%, var(--gold-deep) 100%);
  background-size: 250% 100%; background-position: 50% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  [data-split].is-in .gold-text, [data-reveal].is-in .gold-text { animation: goldSweep 1.3s var(--ease) .25s both; }
}
@keyframes goldSweep { from { background-position: 135% 0; } to { background-position: 50% 0; } }
.caption {
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--gold);
  opacity: 0.62;
  margin-top: var(--s-3);
  letter-spacing: 0.3px;
}
.caption code { font-family: var(--font-mono); font-style: normal; font-size: 0.78em; opacity: 0.8; }
.monogram {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 1px;
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  color: var(--ink-1000);
  background: linear-gradient(145deg, var(--gold-bright), var(--gold-deep));
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  box-shadow: var(--shadow-gold);
}
.monogram--sm { width: 30px; height: 30px; font-size: 0.78rem; }

/* ---- ambient layers ---- */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(130% 100% at 50% 0%, transparent 45%, rgba(0,0,0,0.55) 100%);
}
.embers {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

/* ---- jungle leaf watermarks ---- */
.leaf {
  position: absolute; z-index: -1; pointer-events: none;
  color: var(--emerald);
  opacity: 0.06;
  width: clamp(220px, 30vw, 460px); height: auto; aspect-ratio: 1;
  transform-origin: top center;
}
.leaf use { color: inherit; }
.leaf--hero { top: -4%; right: -6%; color: var(--gold); opacity: 0.07; width: clamp(260px, 34vw, 540px); }
.leaf--about { bottom: 4%; right: -8%; transform: scaleX(-1) rotate(8deg); }
.leaf--talks { top: 6%; left: -9%; opacity: 0.05; }
.leaf--projects { top: 12%; right: -7%; color: var(--gold); opacity: 0.05; }
.leaf--contact { bottom: -6%; left: -8%; transform: scaleX(-1); }
@media (prefers-reduced-motion: no-preference) {
  .leaf { animation: leafBreeze 14s var(--ease-in-out) infinite; }
  .leaf--about, .leaf--contact { animation-duration: 18s; }
}
@keyframes leafBreeze {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(2.5deg) translateY(-10px); }
}
/* keep the mirrored leaves mirrored while they sway */
@media (prefers-reduced-motion: no-preference) {
  .leaf--about { animation-name: leafBreezeMirror; }
  .leaf--contact { animation-name: leafBreezeMirror; }
}
@keyframes leafBreezeMirror {
  0%, 100% { transform: scaleX(-1) rotate(-2deg) translateY(0); }
  50% { transform: scaleX(-1) rotate(2.5deg) translateY(-10px); }
}
@media (max-width: 720px) { .leaf { opacity: 0.04 !important; width: 240px; } }

/* ---- custom cursor (desktop pointer only) ---- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border: 1px solid var(--gold-40); border-radius: 50%;
  transition: width .25s var(--ease), height .25s var(--ease),
              background-color .25s var(--ease), border-color .25s var(--ease);
  mix-blend-mode: difference; opacity: 0;
}
.cursor.is-active { opacity: 1; }
.cursor.is-hot { width: 52px; height: 52px; margin: -26px 0 0 -26px; background: var(--gold-20); border-color: transparent; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---- scroll progress ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 200; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  box-shadow: 0 0 12px var(--gold-glow);
}

/* =============================================================
   NAV
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background-color .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(10,10,14,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-2);
}
.nav__brand { display: flex; align-items: center; gap: var(--s-3); }
.nav__name { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; font-size: 0.95rem; text-transform: uppercase; }
.nav__name em { color: var(--gold); font-style: normal; font-weight: 500; }
.nav__links { display: flex; align-items: center; gap: var(--s-8); }
.nav__links > a[data-link]:not(.nav__cta) {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-2); position: relative; padding: 6px 0;
  transition: color .3s var(--ease);
}
.nav__links > a[data-link]:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .35s var(--ease);
}
.nav__links > a[data-link]:not(.nav__cta):hover { color: var(--bone); }
.nav__links > a[data-link]:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 9px 16px; border: 1px solid var(--line-gold); border-radius: var(--r-pill);
  color: var(--gold); transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.nav__cta .ic { font-size: 1rem; }
.nav__cta:hover { background: var(--gold); color: var(--ink-1000); border-color: var(--gold); }
.nav__burger { display: none; font-size: 1.6rem; color: var(--bone); padding: 6px; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 140;
  background: rgba(7,7,10,0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s-6); opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-serif); font-size: 1.8rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--fg-1); opacity: 0; transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
}
.mobile-menu.is-open a { opacity: 1; transform: none; }
.mobile-menu.is-open a:nth-child(1){ transition-delay:.08s } .mobile-menu.is-open a:nth-child(2){ transition-delay:.14s }
.mobile-menu.is-open a:nth-child(3){ transition-delay:.20s } .mobile-menu.is-open a:nth-child(4){ transition-delay:.26s }
.mobile-menu a:active { color: var(--gold); }
.mobile-menu__socials { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-8); max-width: 320px; padding: 0 var(--s-4); }

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-label); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 16px 30px; border-radius: var(--r-pill);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
  will-change: transform;
}
.btn .ic { font-size: 1.05rem; }
.btn--gold {
  background: linear-gradient(145deg, var(--gold-bright), var(--gold) 60%, var(--gold-deep));
  color: var(--ink-1000); font-weight: 500;
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 18px 48px -10px var(--gold-glow); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--fg-1); }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--line-gold); color: var(--gold); background: var(--gold-12); }
.btn--block { width: 100%; justify-content: center; }

/* =============================================================
   SECTION shell
   ============================================================= */
.section { position: relative; z-index: 2; padding: clamp(72px, 12vw, 150px) var(--gutter); max-width: var(--maxw); margin: 0 auto; }
.section__head { max-width: 640px; margin-bottom: var(--s-16); }
.section__title { font-family: var(--font-display); font-weight: 800; line-height: 1.0; font-size: clamp(2.2rem, 5.5vw, 3.9rem); letter-spacing: -0.02em; }
.section__lede { color: var(--fg-2); font-size: 1.05rem; margin-top: var(--s-4); max-width: 52ch; }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative; z-index: 2;
  min-height: 100svh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--nav-h) var(--gutter) 0;
  max-width: var(--maxw); margin: 0 auto;
}
.hero__glow {
  position: absolute; z-index: -1; top: 10%; left: 50%; transform: translateX(-50%);
  width: min(900px, 90vw); height: min(900px, 90vw);
  background: radial-gradient(circle, var(--gold-20) 0%, rgba(227,176,75,0.06) 35%, transparent 68%);
  filter: blur(10px); pointer-events: none;
}
.hero__sigil {
  position: absolute; z-index: -1; top: 46%; left: 50%; width: min(640px, 78vw); aspect-ratio: 1;
  transform: translate(-50%, -50%); color: var(--gold); opacity: .05; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) { .hero__sigil { animation: sigilSpin 90s linear infinite; } }
@keyframes sigilSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero__inner { max-width: 920px; }
.hero__eyebrow { margin-bottom: var(--s-6); }
.hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3.2rem, 12vw, 9rem); line-height: 0.9;
  letter-spacing: -0.035em; text-transform: uppercase;
  margin-bottom: var(--s-8);
}
.hero__line { display: block; }
.hero__alias { color: var(--gold); font-size: 0.62em; font-weight: 700; padding-left: 0.1em; }
/* ignite: each line starts dim, JS reveals one by one */
@media (prefers-reduced-motion: no-preference) {
  .hero__line[data-ignite] {
    color: transparent;
    -webkit-text-stroke: 1px var(--line-2);
    opacity: 0; transform: translateY(0.18em);
    transition: opacity .9s var(--ease), transform .9s var(--ease), color .9s var(--ease), -webkit-text-stroke-color .9s;
  }
  .hero__line.is-lit {
    opacity: 1; transform: none;
    color: var(--bone); -webkit-text-stroke: 0px transparent;
    text-shadow: 0 0 30px rgba(227,176,75,0.18);
  }
  .hero__line.hero__alias.is-lit { color: var(--gold); text-shadow: 0 0 36px var(--gold-glow); }
}
.hero__tagline {
  font-size: clamp(1rem, 2vw, 1.22rem); color: var(--fg-2); max-width: 56ch; line-height: 1.7;
}
.hero__tagline strong { color: var(--bone); font-weight: 600; }
.hero__tagline em { color: var(--gold); font-style: italic; font-family: var(--font-serif); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-10); }
.hero__scroll {
  position: absolute; bottom: var(--s-8); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--fg-3);
}
.hero__scroll .ic { font-size: 1.1rem; color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .hero__scroll .ic { animation: scrollBob 2s var(--ease) infinite; }
}
@keyframes scrollBob { 0%,100%{ transform: translateY(0); opacity:.6 } 50%{ transform: translateY(6px); opacity:1 } }

/* =============================================================
   ABOUT
   ============================================================= */
.about__grid {
  display: grid; grid-template-columns: 0.82fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start;
}
.about__portrait { position: sticky; top: calc(var(--nav-h) + 40px); }
.portrait-frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-gold); background: var(--ink-850);
  box-shadow: var(--shadow-2);
}
.portrait-frame img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(0.15) contrast(1.02); }
.portrait-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(170deg, transparent 55%, rgba(7,7,10,0.55));
  pointer-events: none;
}
.portrait-frame__corner { position: absolute; width: 18px; height: 18px; border: 1.5px solid var(--gold); z-index: 2; }
.portrait-frame__corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.portrait-frame__corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.portrait-frame__corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.portrait-frame__corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.about__text p { color: var(--fg-2); margin-top: var(--s-4); font-size: 1.04rem; }
.about__text strong { color: var(--bone); font-weight: 600; }
.section__title + .about__text { margin-top: var(--s-6); }

.stats { list-style: none; display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 56px); margin-top: var(--s-12); padding-top: var(--s-8); border-top: 1px solid var(--line-1); }
.stats li { display: flex; flex-direction: column; gap: 4px; }
.stats__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold); line-height: 1; }
.stats__lbl { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3); }

/* =============================================================
   TALKS
   ============================================================= */
.talks__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.talk-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--r-lg); overflow: hidden; background: var(--ink-800);
  border: 1px solid var(--line-1); cursor: pointer;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.talk-card:hover { transform: translateY(-6px); border-color: var(--line-gold); box-shadow: var(--shadow-2); }
.talk-card__thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--ink-700); }
.talk-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; filter: brightness(0.82); }
.talk-card:hover .talk-card__thumb img { transform: scale(1.06); filter: brightness(0.95); }
.talk-card__play {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.talk-card__play span {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-1000);
  background: var(--gold); box-shadow: 0 0 0 0 var(--gold-glow);
  font-size: 1.4rem; transition: transform .4s var(--ease), box-shadow .4s;
}
.talk-card:hover .talk-card__play span { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(227,176,75,0.12); }
.talk-card__body { padding: var(--s-5) var(--s-5) var(--s-6); }
.talk-card__meta { display: flex; gap: var(--s-3); font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--s-3); }
.talk-card__meta .dot { color: var(--fg-4); }
.talk-card__title { font-family: var(--font-serif); font-weight: 600; font-size: 1.12rem; line-height: 1.3; }
.talk-card__event { color: var(--fg-3); font-size: 0.86rem; margin-top: 6px; }

/* =============================================================
   PROJECTS
   ============================================================= */
.projects__list { display: flex; flex-direction: column; gap: var(--s-6); }
.project {
  position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px);
  align-items: center; padding: clamp(28px, 4vw, 48px);
  border-radius: var(--r-xl); background: var(--ink-850);
  border: 1px solid var(--line-1); overflow: hidden;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.project::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(120% 100% at 0% 0%, var(--gold-12), transparent 55%);
  transition: opacity .5s var(--ease); pointer-events: none;
}
.project:hover { border-color: var(--line-gold); }
.project:hover::before { opacity: 1; }
.project:nth-child(even) { grid-template-columns: 1fr 1.1fr; }
.project:nth-child(even) .project__visual { order: 2; }
.project__visual {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/11;
  border: 1px solid var(--line-2); background: var(--ink-700);
}
.project__visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project:hover .project__visual img { transform: scale(1.05); }
.project__index { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.22em; color: var(--fg-3); text-transform: uppercase; }
.project__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3.8vw, 2.7rem); line-height: 1.0; margin: var(--s-3) 0 var(--s-4); text-transform: uppercase; letter-spacing: -0.02em; }
.project__desc { color: var(--fg-2); font-size: 1rem; line-height: 1.7; }
.project__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-5) 0 var(--s-6); }
.project__tags span { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); padding: 5px 11px; border: 1px solid var(--line-2); border-radius: var(--r-pill); }
.project__link { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.project__link .ic { font-size: 1.05rem; transition: transform .35s var(--ease); }
.project__link:hover .ic { transform: translate(3px, -3px); }
.project__status { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-2); margin-bottom: var(--s-2); }
.project__status .led { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.project__status.is-soon .led { background: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* =============================================================
   CONTACT
   ============================================================= */
.contact { position: relative; }
.contact__glow {
  position: absolute; z-index: 0; bottom: -10%; right: -5%;
  width: 600px; height: 600px; max-width: 80vw;
  background: radial-gradient(circle, var(--gold-12), transparent 65%);
  filter: blur(8px); pointer-events: none;
}
.contact__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact__lede { color: var(--fg-2); font-size: 1.06rem; margin-top: var(--s-5); max-width: 44ch; }
.contact__direct { margin-top: var(--s-10); }
.contact__email {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-mono); font-size: 0.92rem; color: var(--bone);
  padding-bottom: 6px; border-bottom: 1px solid var(--line-gold);
  transition: color .3s var(--ease), border-color .3s;
}
.contact__email .ic { font-size: 1.2rem; color: var(--gold); }
.contact__email:hover { color: var(--gold); }
.socials { display: flex; gap: var(--s-4); margin-top: var(--s-8); }
.socials a, .mobile-menu__socials a {
  width: 46px; height: 46px; border-radius: var(--r-md); display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--fg-2); font-size: 1.1rem;
  transition: transform .35s var(--ease), border-color .35s, color .35s, background-color .35s;
}
.socials a:hover, .mobile-menu__socials a:hover { transform: translateY(-3px); border-color: var(--line-gold); color: var(--gold); background: var(--gold-12); }

/* booking form */
.booking {
  background: var(--ink-850); border: 1px solid var(--line-2); border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-2);
}
.booking .eyebrow { margin-bottom: var(--s-6); }
.hidden-field { position: absolute; left: -9999px; }
.field { margin-bottom: var(--s-5); }
.field label { display: block; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); margin-bottom: var(--s-2); }
.field input, .field textarea {
  width: 100%; background: var(--ink-900); border: 1px solid var(--line-2); border-radius: var(--r-md);
  padding: 13px 15px; font-size: 0.96rem; color: var(--bone); font-family: var(--font-sans);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-40); box-shadow: 0 0 0 3px var(--gold-12); background: var(--ink-850); }
.booking__status { font-family: var(--font-mono); font-size: 0.74rem; margin-top: var(--s-4); min-height: 1.2em; }
.booking__status.is-ok { color: #4ade80; }
.booking__status.is-err { color: #ff6b75; }

/* =============================================================
   FOOTER
   ============================================================= */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--line-1); padding: var(--s-12) var(--gutter); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: var(--s-5); text-align: center; }
.footer__mantra { font-family: var(--font-sans); font-style: italic; color: var(--gold); opacity: 0.72; font-size: 1.05rem; }
.footer__meta { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-4); }
.footer__top { display: inline-flex; align-items: center; gap: 0.5em; color: var(--gold); transition: gap .3s var(--ease); }
.footer__top:hover { gap: 0.9em; }
.footer__top .ic { font-size: 1rem; }

/* =============================================================
   LIGHTBOX
   ============================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: rgba(7,7,10,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; padding: var(--gutter);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__frame { width: min(960px, 100%); transform: translateY(20px) scale(0.98); transition: transform .5s var(--ease); }
.lightbox.is-open .lightbox__frame { transform: none; }
.lightbox__media { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-gold); background: #000; box-shadow: var(--shadow-2); }
.lightbox__media iframe, .lightbox__media video { width: 100%; height: 100%; border: 0; }
.lightbox__caption { font-family: var(--font-serif); text-align: center; color: var(--fg-2); margin-top: var(--s-5); font-size: 1rem; }
.lightbox__close { position: absolute; top: 20px; right: 24px; font-size: 1.8rem; color: var(--bone); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: transform .3s var(--ease), border-color .3s, color .3s; }
.lightbox__close:hover { transform: rotate(90deg); border-color: var(--gold); color: var(--gold); }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 980px) {
  .talks__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { position: relative; top: 0; max-width: 380px; }
  .project, .project:nth-child(even) { grid-template-columns: 1fr; }
  .project:nth-child(even) .project__visual { order: 0; }
  .contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .talks__grid { grid-template-columns: 1fr; }
  .hero { min-height: 100svh; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1; justify-content: center; min-width: 0; }
  .stats { gap: var(--s-8) var(--s-10); }
  .footer__meta { flex-direction: column; gap: var(--s-2); }
}

@media (max-width: 420px) {
  .nav__name { display: none; }
  .hero__title { font-size: clamp(2.6rem, 16vw, 4rem); }
}

/* safe-area for notched devices */
@supports (padding: max(0px)) {
  .nav { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
  .hero { padding-bottom: max(var(--s-8), env(safe-area-inset-bottom)); }
}

/* tap targets */
@media (hover: none) {
  .btn, .nav__cta, .socials a { min-height: 44px; }
  .talk-card:hover { transform: none; }
}

/* reduced motion — kill the heavy stuff */
@media (prefers-reduced-motion: reduce) {
  .embers, .cursor { display: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.12s !important; }
}

/* =============================================================
   EXTRAS — a11y, anchor offset, lightbox placeholder
   ============================================================= */
:where(section[id], #top) { scroll-margin-top: calc(var(--nav-h) + 8px); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .talk-card:focus-visible, [role="button"]:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--r-sm);
}

.lb-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: var(--s-8); color: var(--fg-2); font-family: var(--font-serif);
}
.lb-placeholder code { font-family: var(--font-mono); color: var(--gold); }

/* =============================================================
   v3 — PRO PASS (preloader, proof, reviews, marquee, rail,
   ghost numerals, ticks, media-reveal, split-text, footer plate)
   ============================================================= */

/* skip link */
.skip { position: fixed; top: 8px; left: 8px; z-index: 1100; background: var(--gold); color: var(--ink-1000);
  padding: 10px 16px; border-radius: var(--r-md); font-family: var(--font-label); font-weight: 600; font-size: .8rem;
  transform: translateY(-160%); transition: transform .25s var(--ease); }
.skip:focus { transform: none; outline: none; }

/* generic LED (reused by availability + project status) */
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px var(--emerald); flex: none; }
@media (prefers-reduced-motion: no-preference) { .led { animation: ledPulse 2.4s var(--ease) infinite; } }
@keyframes ledPulse { 0%,100% { opacity: 1; box-shadow: 0 0 8px var(--emerald); } 50% { opacity: .45; box-shadow: 0 0 2px var(--emerald); } }

/* preloader */
.preloader { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: var(--ink-1000); transition: opacity .6s var(--ease), visibility .6s; }
html:not(.js) .preloader { display: none; }
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: var(--s-5); }
.preloader__mark { width: 54px; height: 54px; font-size: 1.3rem; }
.preloader__bar { width: 120px; height: 2px; background: var(--line-2); overflow: hidden; position: relative; }
.preloader__bar span { position: absolute; inset: 0; transform-origin: left; background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); animation: preBar 1.3s var(--ease) forwards; }
@media (prefers-reduced-motion: no-preference) { .preloader__mark { animation: preBreathe 1.6s var(--ease) infinite; } }
@keyframes preBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes preBreathe { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .preloader { display: none; } }

/* hero word-rise (replaces the stroke ignite) */
.hero__line { display: block; overflow: hidden; padding-bottom: .04em; }
.js .hero__rise { display: inline-block; transform: translateY(115%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 120ms); }
.hero.is-ready .hero__rise { transform: none; }
.hero.is-ready .hero__line:nth-child(3) .hero__rise { text-shadow: 0 0 30px rgba(227,176,75,0.18); }
.hero.is-ready .hero__alias .hero__rise { text-shadow: 0 0 36px var(--gold-glow); }

/* availability badge */
.avail { display: inline-flex; align-items: center; gap: .6em; margin-top: var(--s-6);
  font-family: var(--font-label); font-weight: 500; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); }

/* button inner (for decoupled magnetic) */
.btn__i { display: inline-flex; align-items: center; gap: .55em; transition: transform .4s var(--ease); }

/* proof bar */
.proofbar { position: relative; z-index: 2; padding: var(--s-10) var(--gutter); border-top: 1px solid var(--line-1); border-bottom: 1px solid var(--line-1);
  display: flex; flex-direction: column; align-items: center; gap: var(--s-5); text-align: center; }
.proofbar__eyebrow { font-family: var(--font-label); font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); opacity: .85; }
.proofbar__list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-4) var(--s-6); max-width: 960px; }
.proofbar__list li { position: relative; font-family: var(--font-label); font-weight: 600; font-size: clamp(.8rem, 1.4vw, 1rem); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); opacity: .6; transition: color .3s var(--ease), opacity .3s; }
.proofbar__list li:not(:last-child)::after { content: ""; position: absolute; right: calc((var(--s-6) / -2) - 1px); top: 50%; width: 1px; height: 12px; background: var(--line-gold); transform: translateY(-50%); }
.proofbar__list li:hover { color: var(--gold); opacity: 1; }

/* marquee */
.marquee { position: relative; z-index: 2; overflow: hidden; padding: var(--s-8) 0; border-top: 1px solid var(--line-1); border-bottom: 1px solid var(--line-1);
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; }
@media (prefers-reduced-motion: no-preference) { .marquee__track { animation: mq 30s linear infinite; } .marquee:hover .marquee__track { animation-play-state: paused; } }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee__seq { display: flex; align-items: center; gap: var(--s-8); padding-right: var(--s-8); }
.marquee__seq span { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 4vw, 2.6rem); text-transform: uppercase; letter-spacing: -.01em; color: var(--bone); white-space: nowrap; }
.mq-sep { font-size: 1.4rem; color: var(--gold); flex: none; }

/* reviews / testimonials */
.reviews .leaf--reviews { top: 8%; right: -8%; color: var(--gold); opacity: .05; }
.lead-quote { position: relative; max-width: 780px; margin: 0 0 var(--s-16); }
.lead-quote::before { content: "\201C"; position: absolute; top: -.32em; left: -.08em; z-index: -1; pointer-events: none;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(8rem, 18vw, 14rem); line-height: 1; color: var(--gold); opacity: .14; }
.lead-quote blockquote { font-family: var(--font-display); font-weight: 700; line-height: 1.18; font-size: clamp(1.5rem, 3.2vw, 2.5rem); letter-spacing: -.01em; color: var(--bone); }
.lead-quote figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: var(--s-6); }
.q-name { font-family: var(--font-label); font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.q-role { font-family: var(--font-label); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.quote-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.quote-card { position: relative; background: var(--ink-850); border: 1px solid var(--line-1); border-radius: var(--r-lg);
  padding: var(--s-8) var(--s-6) var(--s-6); display: flex; flex-direction: column; gap: var(--s-5); --tick: 12px; --tick-inset: 9px; }
.quote-card p { color: var(--fg-1); font-size: 1rem; line-height: 1.6; }
.quote-card__by { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }

/* section rail */
.rail { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 120; display: flex; flex-direction: column; gap: var(--s-4); }
.rail a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: var(--fg-3); }
.rail__tick { width: 22px; height: 2px; background: var(--line-2); transition: width .35s var(--ease), background-color .35s; }
.rail__lbl { font-family: var(--font-label); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; opacity: 0; transform: translateX(6px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.rail a:hover .rail__lbl, .rail a.is-active .rail__lbl { opacity: 1; transform: none; }
.rail a:hover .rail__tick, .rail a.is-active .rail__tick { width: 34px; background: var(--gold); }
.rail a.is-active { color: var(--gold); }
@media (max-width: 1100px) { .rail { display: none; } }

/* ghost section numerals */
.section__num { display: block; font-family: var(--font-display); font-weight: 800; line-height: 1; font-size: clamp(2.4rem, 6vw, 5rem);
  color: transparent; -webkit-text-stroke: 1px var(--line-2); margin-bottom: var(--s-2); user-select: none; }

/* corner-tick filigree utility */
.ticks { position: relative; }
.ticks::before, .ticks::after, .ticks > .tk::before, .ticks > .tk::after {
  content: ""; position: absolute; width: var(--tick, 14px); height: var(--tick, 14px);
  border: 1.5px solid var(--gold-40); pointer-events: none; z-index: 4; }
.ticks::before { top: var(--tick-inset, 10px); left: var(--tick-inset, 10px); border-right: 0; border-bottom: 0; }
.ticks::after { top: var(--tick-inset, 10px); right: var(--tick-inset, 10px); border-left: 0; border-bottom: 0; }
.ticks > .tk::before { bottom: var(--tick-inset, 10px); left: var(--tick-inset, 10px); border-right: 0; border-top: 0; }
.ticks > .tk::after { bottom: var(--tick-inset, 10px); right: var(--tick-inset, 10px); border-left: 0; border-top: 0; }

/* media reveal mask */
.js .media-reveal { clip-path: inset(0 0 100% 0); transform: scale(1.04); transition: clip-path 1s var(--ease), transform 1s var(--ease); }
.js .media-reveal.is-in { clip-path: inset(0 0 0 0); transform: none; }
@media (prefers-reduced-motion: reduce) { .js .media-reveal { clip-path: none; transform: none; } }

/* split text */
.js [data-split]:not(.is-split) { opacity: 0; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js .w__i { display: inline-block; transform: translateY(110%); transition: transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
[data-split].is-in .w__i { transform: none; }

/* featured talk + tab */
.talks__grid { grid-auto-flow: dense; }
.talk-card--feature { grid-column: span 2; --tick: 14px; --tick-inset: 12px; }
.talk-card--feature .talk-card__thumb { aspect-ratio: 16 / 8; }
.talk-card--feature .talk-card__title { font-size: 1.5rem; }
.talk-card__tab { position: absolute; top: 0; left: 0; z-index: 5; background: var(--gold); color: var(--ink-1000);
  font-family: var(--font-label); font-weight: 600; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; padding: 6px 12px; }

/* locked project */
.project--locked .project__visual.is-locked img { filter: grayscale(1) brightness(.5) blur(1px); }
.project__lock { position: absolute; inset: 0; display: grid; place-items: center; z-index: 3;
  font-family: var(--font-label); font-weight: 600; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }

/* cursor label + states */
.cursor__lbl { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0;
  font-family: var(--font-label); font-weight: 600; font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-1000); }
.cursor.is-labeled { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: var(--gold); border-color: transparent; mix-blend-mode: normal; }
.cursor.is-labeled .cursor__lbl { opacity: 1; }

/* newsletter */
.newsletter { position: relative; z-index: 2; border-top: 1px solid var(--line-1); padding: var(--s-16) var(--gutter); }
.newsletter__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.newsletter__h { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -.02em; margin-top: var(--s-3); }
.newsletter__sub { color: var(--fg-2); margin-top: var(--s-3); max-width: 46ch; }
.news-form__row { display: flex; gap: var(--s-3); }
.news-form__row input { flex: 1; min-width: 0; background: var(--ink-900); border: 1px solid var(--line-2); border-radius: var(--r-md);
  padding: 14px 16px; color: var(--bone); font-family: var(--font-sans); font-size: .96rem; transition: border-color .3s, box-shadow .3s; }
.news-form__row input::placeholder { color: var(--fg-4); }
.news-form__row input:focus { outline: none; border-color: var(--gold-40); box-shadow: 0 0 0 3px var(--gold-12); }
.news-form__row .btn { flex: none; }
.news-form__status { font-family: var(--font-label); font-size: .7rem; letter-spacing: .04em; color: var(--fg-3); margin-top: var(--s-4); min-height: 1.1em; }
.news-form__status.is-ok { color: var(--emerald); }
.news-form__status.is-err { color: #ff6b75; }

/* footer plate */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--line-1); padding: var(--s-16) var(--gutter) var(--s-16); overflow: hidden; }
.footer__plate { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s-8); align-items: center; }
.footer__zone { display: flex; flex-direction: column; gap: 6px; }
.footer__zone--l { align-items: flex-start; }
.footer__zone--r { align-items: flex-end; }
.footer__tag { font-family: var(--font-label); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3); margin-top: 6px; }
.footer__copy { font-family: var(--font-label); font-size: .66rem; letter-spacing: .06em; color: var(--fg-4); }
.footer__mantra { font-family: var(--font-sans); font-style: italic; color: var(--gold); opacity: .78; text-align: center; max-width: 26ch; font-size: 1.05rem; }
.footer__zone--r .socials { margin: 0 0 var(--s-3); }
.footer__top { display: inline-flex; align-items: center; gap: .5em; font-family: var(--font-label); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); transition: gap .3s var(--ease); }
.footer__top:hover { gap: .9em; }
.footer__top .ic { font-size: 1rem; }
.footer__mark { position: absolute; left: 50%; bottom: -.16em; transform: translateX(-50%); z-index: 0; pointer-events: none; white-space: nowrap;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 20vw, 13rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--line-1); }

/* v3 responsive */
@media (max-width: 980px) {
  .quote-grid { grid-template-columns: 1fr; }
  .newsletter__inner { grid-template-columns: 1fr; gap: var(--s-8); }
  .footer__plate { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: var(--s-8); }
  .footer__zone--l, .footer__zone--r { align-items: center; }
}
@media (max-width: 720px) {
  .news-form__row { flex-direction: column; }
  .news-form__row .btn { width: 100%; justify-content: center; }
  .lead-quote::before { font-size: 7rem; }
  .proofbar__list { gap: var(--s-3) var(--s-5); }
}

/* loading skeletons (shown until content loads from Supabase/content.json) */
.skel { position: relative; overflow: hidden; background: var(--ink-850); border: 1px solid var(--line-1); border-radius: var(--r-lg); }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(227,176,75,0.06), transparent); }
@media (prefers-reduced-motion: no-preference) { .skel::after { animation: skelShimmer 1.4s var(--ease) infinite; } }
@keyframes skelShimmer { 100% { transform: translateX(100%); } }
.skel--talk { aspect-ratio: 16 / 10; }
.skel--project { height: 220px; }
.skel--quote { height: 160px; }
