/* ===================================================================
   CONNOR SCHROTT — Personal Site & Portfolio
   Design system: "Desert Cinematic" v3 (award pass)
   Palette is locked. Do not change token values.
   =================================================================== */

/* ---------- Tokens ---------- */
:root {
  --black: #050505;
  --charcoal: #101010;
  --charcoal-2: #141414;
  --charcoal-3: #1b1b1b;
  --line: rgba(240, 232, 216, 0.12);
  --line-strong: rgba(240, 232, 216, 0.22);

  --cream: #F0E8D8;
  --cream-dim: rgba(240, 232, 216, 0.62);
  --cream-faint: rgba(240, 232, 216, 0.38);

  --sand: #C6A76B;
  --orange: #B7652B;
  --gold: #D1A85A;
  --blue: #6F8796;
  --clay: #8C4E32;
  --taupe: #8A7864;

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--charcoal);
  color: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--sand); color: var(--black); }

:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 20000;
  background: var(--sand); color: var(--black);
  padding: 10px 18px; border-radius: 2px;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Film grain overlay ---------- */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===================================================================
   INTRO SHUTTER + PAGE CURTAIN (injected by JS)
   =================================================================== */
.shutter {
  position: fixed; inset: 0; z-index: 15000;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  transform: translateY(0);
  will-change: transform;
}
.shutter::before { /* warm horizon glow at the bottom edge of the curtain */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: radial-gradient(60% 100% at 50% 100%, rgba(183,101,43,0.18), transparent 70%);
}
.shutter.lift { transform: translateY(-101%); transition: transform 0.85s var(--ease-io); }
.shutter.lift-fast { transform: translateY(-101%); transition: transform 0.5s var(--ease-io); }
.shutter.drop { transform: translateY(0); transition: transform 0.3s var(--ease-io); }
.shutter.parked { transform: translateY(101%); transition: none; }
.shutter.gone { display: none; }

.shutter__mark {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  letter-spacing: 0.02em; color: var(--cream);
  position: relative; z-index: 2;
}
.shutter__mark .dot { color: var(--sand); }
.shutter__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
  transition: opacity 0.55s ease;
}
/* Particle-assembly intro: the real wordmark stays hidden while sand
   particles fly in and form it, then crossfades in over the dots. */
.shutter--assemble .shutter__mark { opacity: 0; transition: opacity 0.6s ease; }
.shutter--assemble.markin .shutter__mark { opacity: 1; }
.shutter__line {
  position: absolute; bottom: 18vh; left: 50%; transform: translateX(-50%);
  width: 0; height: 1px; background: var(--sand); opacity: 0.7;
  animation: lineGrow 0.9s 1.1s var(--ease) forwards;
}
@keyframes lineGrow { to { width: min(240px, 40vw); } }

/* ---------- Page fade fallback ---------- */
body { opacity: 0; transition: opacity 0.4s var(--ease); }
body.page-in { opacity: 1; }

/* ===================================================================
   CUSTOM CURSOR (desktop fine pointers only)
   =================================================================== */
body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor .filter { cursor: none; }
body.has-cursor input, body.has-cursor textarea, body.has-cursor select { cursor: auto; }
.cur-dot {
  position: fixed; top: 0; left: 0; z-index: 14000; pointer-events: none;
  border-radius: 50%;
  will-change: transform;
  width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  background: var(--sand);
  box-shadow: 0 0 10px rgba(198, 167, 107, 0.35);
  transition: opacity 0.3s ease, width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease), background 0.25s var(--ease);
}
body.cur-hover .cur-dot {
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  background: rgba(198, 167, 107, 0.85);
}
body.cur-hidden .cur-dot { opacity: 0; }

/* ---------- Cursor glow wash ---------- */
.cursor-glow {
  position: fixed; z-index: 1;
  width: 620px; height: 620px;
  margin: -310px 0 0 -310px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(198,167,107,0.05) 0%, rgba(183,101,43,0.03) 35%, transparent 65%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
body.glow-on .cursor-glow { opacity: 1; }

/* ===================================================================
   SCROLL PROGRESS (desert horizon line)
   =================================================================== */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 12000;
  background: linear-gradient(90deg, var(--sand), var(--orange), var(--gold));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(72px, 12vh, 160px) 0; position: relative; }
.section--tight { padding: clamp(48px, 8vh, 96px) 0; }
.divider { height: 1px; background: var(--line); border: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--sand);
  opacity: 0.6;
  transition: width 0.8s 0.2s var(--ease);
}
.reveal .eyebrow::before, .reveal.in .eyebrow::before { }
.reveal:not(.in) .eyebrow::before { width: 0; }
.eyebrow--plain::before { display: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -0.01em; }
.display {
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.h-xl { font-size: clamp(2.2rem, 5.5vw, 4.2rem); }
.h-lg { font-size: clamp(1.9rem, 4vw, 3.1rem); }
.h-md { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.italic { font-style: italic; }
.serif { font-family: var(--serif); }
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--cream-dim);
  line-height: 1.6;
  max-width: 60ch;
  font-weight: 300;
}
.muted { color: var(--cream-dim); }
.faint { color: var(--cream-faint); }
.accent { color: var(--sand); }

/* ---------- Word-reveal (split text) ----------
   .w gets bottom padding (pulled back with negative margin) so descenders
   on g, j, p, q, y are never clipped by the reveal mask. */
.w {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding-bottom: 0.16em; margin-bottom: -0.16em;
}
.wi {
  display: inline-block;
  transform: translateY(135%);
  transition: transform 0.85s var(--ease);
  transition-delay: var(--wd, 0s);
}
.words-in .wi, .reveal.in .wi { transform: translateY(0); }
body.hero-in .hstage .wi { transform: translateY(0); }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  border-radius: 2px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.btn--primary { background: var(--cream); color: var(--black); }
.btn--primary:hover { background: var(--sand); box-shadow: 0 12px 34px -14px rgba(198,167,107,0.45); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--cream); }
.btn--ghost:hover { border-color: var(--sand); color: var(--sand); background: rgba(198,167,107,0.05); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link-line {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  color: var(--cream); padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  transition: all 0.35s var(--ease);
  width: fit-content;
  background-image: linear-gradient(var(--sand), var(--sand));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
}
.link-line:hover { color: var(--sand); border-color: transparent; gap: 14px; background-size: 100% 1px; }

/* ===================================================================
   NAVIGATION
   =================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease), transform 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,8,8,0.72);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav__brand {
  font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.02em; font-weight: 600;
  color: var(--cream); white-space: nowrap;
}
.nav__brand span { color: var(--sand); }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__link {
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  color: var(--cream-dim); transition: color 0.3s var(--ease); position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: var(--sand); transition: width 0.35s var(--ease);
}
.nav__link:hover, .nav__link.active { color: var(--cream); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.nav__cta {
  padding: 10px 20px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  border: 1px solid var(--sand); color: var(--sand); border-radius: 2px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
  will-change: transform;
}
.nav__cta:hover { background: var(--sand); color: var(--black); }
.nav__toggle { display: none; width: 30px; height: 18px; position: relative; }
.nav__toggle span {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--cream);
  transition: all 0.4s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 0; }
.nav__toggle span:nth-child(2) { top: 8px; }
.nav__toggle span:nth-child(3) { top: 16px; }
body.menu-open .nav__toggle span:nth-child(1) { top: 8px; transform: rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav__toggle span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: var(--black);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease);
  pointer-events: none;
}
body.menu-open .mobile-menu { transform: translateY(0); pointer-events: auto; }
.mobile-menu a {
  font-family: var(--serif); font-size: clamp(2rem, 9vw, 3.2rem); color: var(--cream);
  padding: 10px 0; border-bottom: 1px solid var(--line); display: block;
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.mobile-menu a:hover { color: var(--sand); padding-left: 14px; }
.mobile-menu .mm-follow {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--sand); color: var(--sand); border-radius: 2px;
  padding: 14px 24px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  width: fit-content;
}
.mobile-menu .mm-meta { margin-top: 30px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-faint); }

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: flex-end;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  /* Semi-transparent so the fixed dune field behind the page stays visible
     through the hero; warm sunset glow preserved on top of it. */
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(183,101,43,0.30) 0%, transparent 46%),
    radial-gradient(120% 80% at 95% 0%, rgba(209,168,90,0.20) 0%, transparent 40%),
    linear-gradient(180deg, rgba(22,18,16,0.5) 0%, rgba(12,11,10,0.3) 55%, rgba(5,5,5,0.2) 100%);
}
.hero__ridges { position: absolute; inset: 0; z-index: 2; opacity: 0.85; will-change: transform; }
.hero__vignette {
  position: absolute; inset: 0; z-index: 3;
  background: radial-gradient(120% 100% at 30% 80%, transparent 30%, rgba(5,5,5,0.55) 100%);
  pointer-events: none;
}
/* Portrait: right side, fading into the dark. Bottom fade strengthened so the
   ridge silhouettes blend into the photo instead of cutting across it. */
.hero__photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 56%; z-index: 1;
  background-size: cover;
  background-position: center 18%;
  background-repeat: no-repeat;
  filter: saturate(1.02) contrast(1.02);
  will-change: transform;
}
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--charcoal) 2%, rgba(16,16,16,0.55) 26%, rgba(16,16,16,0.08) 55%, transparent 78%),
    linear-gradient(0deg, #050505 4%, rgba(5,5,5,0.82) 18%, rgba(5,5,5,0.35) 38%, transparent 55%),
    linear-gradient(180deg, rgba(5,5,5,0.45) 0%, transparent 22%);
}
.hero__embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; opacity: 0.55; }

/* Living desert terrain (WebGL point dunes), layered ON TOP of the black
   triangular ridge silhouettes so both read together. Spans the full hero. */
.hero__terrain {
  position: absolute; inset: 0 0 -2px 0; width: 100%; height: 100%; z-index: 2;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 2%, #000 18%);
  mask-image: linear-gradient(180deg, transparent 2%, #000 18%);
}

/* Full-page dune background (landing page): fixed behind all content,
   visible through every transparent section, still cursor-reactive */
.terrain-bg {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0;
  pointer-events: none; opacity: 0.9;
}

/* Interactive topographic field: covers the whole Contact page behind content */
.topo-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0;
  pointer-events: none; opacity: 0.8;
}
.hero__inner { position: relative; z-index: 4; width: 100%; padding-bottom: clamp(48px, 9vh, 110px); }

.hero__coord {
  display: flex; gap: 18px; align-items: center; margin-bottom: 28px;
  font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cream-faint);
}
.hero__coord .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--sand); animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(198,167,107,0.5); } 50% { box-shadow: 0 0 0 6px rgba(198,167,107,0); } }
.hero h1 { max-width: 16ch; margin-bottom: 30px; }
.hero h1 em { color: var(--sand); font-style: italic; }
.hero__sub { max-width: 52ch; margin-bottom: 40px; }
.hero__meta {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 12.5px; letter-spacing: 0.1em; color: var(--cream-faint); max-width: 60ch;
}
.hero__meta b { color: var(--cream-dim); font-weight: 500; }
.hero__scroll {
  position: absolute; bottom: 30px; right: var(--gutter); z-index: 4;
  writing-mode: vertical-rl; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--cream-faint); display: flex; align-items: center; gap: 14px;
}
.hero__scroll .ln { width: 1px; height: 50px; background: linear-gradient(var(--sand), transparent); }
.hero__scroll .ln::after { content: ""; }

/* Hero staged entrance (driven by body.hero-in after the shutter lifts) */
.hstage { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
body.hero-in .hstage { opacity: 1; transform: none; }
body.hero-in .hstage.hd1 { transition-delay: 0.1s; }
body.hero-in .hstage.hd2 { transition-delay: 0.25s; }
body.hero-in .hstage.hd3 { transition-delay: 0.4s; }
.hero__photo { opacity: 0; transition: opacity 1.4s var(--ease); }
body.hero-in .hero__photo { opacity: 1; }
.hero .wi { transform: translateY(135%); }
body.hero-in .hero .wi { transform: translateY(0); }

/* ===================================================================
   PLACEHOLDER BLOCKS (cinematic desert)
   =================================================================== */
.ph {
  position: relative; overflow: hidden; border-radius: 3px;
  background: linear-gradient(150deg, #1a1613 0%, #0e0d0c 60%, #080808 100%);
  border: 1px solid var(--line);
  display: flex; align-items: flex-end;
  min-height: 220px;
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 70% at 75% 12%, rgba(183,101,43,0.28), transparent 55%),
              radial-gradient(60% 50% at 10% 100%, rgba(111,135,150,0.12), transparent 60%);
}
.ph::after {
  content: ""; position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ph__label {
  position: relative; z-index: 2; padding: 18px 20px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-dim);
  display: flex; align-items: center; gap: 10px;
}
.ph__label .ic { color: var(--sand); font-size: 14px; }
.ph--tall { min-height: 460px; }
.ph--portrait { aspect-ratio: 3 / 4; min-height: 0; }
.ph--wide { aspect-ratio: 16 / 9; min-height: 0; }
.ph--video::before { background: radial-gradient(70% 60% at 50% 45%, rgba(209,168,90,0.18), transparent 60%); }
.ph__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2;
  width: 60px; height: 60px; border: 1px solid var(--line-strong); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--cream);
  transition: all 0.4s var(--ease);
}
.ph--video:hover .ph__play { border-color: var(--sand); color: var(--sand); transform: translate(-50%,-50%) scale(1.08); }
.ph--img { background-size: cover; background-position: center; background-repeat: no-repeat; }
.ph--img::before { opacity: 0.22; }
.ph--img > .ph__label { display: none; }

/* ===================================================================
   SECTION HEADERS / PILLARS
   =================================================================== */
.sec-head { display: flex; flex-direction: column; gap: 18px; max-width: 70ch; margin-bottom: clamp(40px, 6vh, 72px); }
.sec-head .eyebrow { margin-bottom: 4px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  padding: 38px 32px; border: 1px solid var(--line); border-radius: 3px;
  background: linear-gradient(160deg, rgba(255,255,255,0.015), transparent);
  transition: all 0.5s var(--ease); position: relative; overflow: hidden;
  will-change: transform;
}
.pillar::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--sand);
  transition: width 0.5s var(--ease);
}
.pillar:hover { border-color: var(--line-strong); transform: translateY(-4px); background: rgba(255,255,255,0.025); }
.pillar:hover::before { width: 100%; }
.pillar__num { font-family: var(--serif); font-size: 1.4rem; color: var(--sand); margin-bottom: 22px; font-style: italic; }
.pillar h3 { font-size: 1.7rem; margin-bottom: 12px; }
.pillar p { font-size: 0.96rem; color: var(--cream-dim); }

/* ===================================================================
   SKILLS MARQUEE
   =================================================================== */
.marquee {
  overflow: hidden; position: relative;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: var(--black);
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--black), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--black), transparent); }
.marquee__track {
  display: flex; gap: 0; width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 26px; padding-right: 26px;
  font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.55rem); font-style: italic;
  color: var(--cream-dim); white-space: nowrap;
}
.marquee__item::after { content: "◆"; font-size: 9px; color: var(--sand); font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===================================================================
   STATS — proof in numbers
   Symbols ($, %) carry the accent. Digits and letters stay cream.
   =================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  padding: 34px 28px; border: 1px solid var(--line); border-radius: 3px;
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,0.015), transparent);
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease);
  will-change: transform;
}
.stat:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.stat::before {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--sand);
  transition: width 0.6s var(--ease);
}
.stat:hover::before { width: 100%; }
.stat__num {
  font-family: var(--serif); font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1;
  color: var(--cream); display: flex; align-items: baseline; gap: 2px;
}
.stat__num .sym { color: var(--sand); }
.stat__label { margin-top: 14px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-faint); }

/* ===================================================================
   QUOTES — social proof
   =================================================================== */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.quote {
  margin: 0; padding: 40px 36px 34px;
  border: 1px solid var(--line); border-radius: 3px;
  background: linear-gradient(160deg, rgba(255,255,255,0.015), transparent);
  position: relative; overflow: hidden;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease), background 0.5s var(--ease);
  will-change: transform;
}
.quote::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--sand);
  transition: width 0.5s var(--ease);
}
.quote:hover { border-color: var(--line-strong); transform: translateY(-4px); background: rgba(255,255,255,0.02); }
.quote:hover::before { width: 100%; }
.quote__mark {
  font-family: var(--serif); font-style: italic;
  font-size: 3rem; line-height: 0.5; color: var(--sand);
  display: block; margin-bottom: 20px;
}
.quote blockquote {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.35;
  color: var(--cream); margin: 0 0 20px;
}
.quote figcaption {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream-faint);
  display: flex; align-items: center; gap: 10px;
}
.quote figcaption::before { content: ""; width: 20px; height: 1px; background: var(--sand); opacity: 0.6; }

/* ===================================================================
   VALUES
   =================================================================== */
.values { border-top: 1px solid var(--line); }
.value-row {
  display: grid; grid-template-columns: 120px 1fr; gap: 30px; align-items: baseline;
  padding: 40px 0; border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease), padding-left 0.4s var(--ease);
}
.value-row:hover { background: rgba(255,255,255,0.015); padding-left: 10px; }
.value-row .vnum { font-family: var(--serif); font-size: clamp(2.4rem,5vw,3.4rem); color: var(--sand); font-style: italic; line-height: 1; }
.value-row h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 10px; }
.value-row p { color: var(--cream-dim); max-width: 50ch; }

/* ===================================================================
   MANIFESTO
   =================================================================== */
.manifesto { text-align: center; position: relative; }
.manifesto__bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(80% 120% at 50% 50%, rgba(183,101,43,0.10), transparent 60%);
}
.manifesto blockquote {
  position: relative; z-index: 1;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem); line-height: 1.15; letter-spacing: -0.01em;
  max-width: 22ch; margin: 0 auto; color: var(--cream);
}
.manifesto blockquote em { color: var(--sand); font-style: italic; }
.manifesto .mark {
  font-family: var(--serif); font-size: clamp(4rem,10vw,8rem); color: var(--line-strong);
  line-height: 0.4; display: block; margin-bottom: 10px;
}

/* ===================================================================
   SPLIT / FEATURE LIST
   =================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature-list { display: flex; flex-direction: column; gap: 2px; margin-top: 26px; }
.feature-list span {
  padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem;
  letter-spacing: 0.04em; color: var(--cream-dim);
  display: flex; align-items: center; gap: 14px;
  transition: padding-left 0.3s var(--ease), color 0.3s var(--ease);
}
.feature-list span:hover { padding-left: 8px; color: var(--cream); }
.feature-list span::before { content: "›"; color: var(--sand); }

/* ===================================================================
   FOLLOW BAND
   =================================================================== */
.follow-band {
  border-top: 1px solid var(--line);
  padding: clamp(36px, 6vh, 64px) 0;
  background: var(--black);
}
.follow-band .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.follow-band__text h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 6px; }
.follow-band__text p { color: var(--cream-dim); font-size: 0.95rem; max-width: 46ch; }

/* ===================================================================
   CTA BAND
   =================================================================== */
.cta-band { position: relative; overflow: hidden; }
.cta-band__bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(90% 130% at 80% 0%, rgba(183,101,43,0.22), transparent 50%),
              linear-gradient(180deg, #0d0c0b, #050505);
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { max-width: 18ch; margin-bottom: 22px; }

/* ===================================================================
   FORMS
   =================================================================== */
.form { display: grid; gap: 22px; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 9px; position: relative; }
.field label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-faint); transition: color 0.3s var(--ease); }
.field:focus-within label { color: var(--sand); }
.field input, .field select, .field textarea {
  background: transparent; border: 1px solid var(--line-strong); border-radius: 2px;
  padding: 14px 16px; color: var(--cream); font-family: var(--sans); font-size: 16px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sand);
  box-shadow: 0 8px 30px -18px rgba(198,167,107,0.4);
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--charcoal-2); }
.form__note { font-size: 12.5px; color: var(--cream-faint); }

/* Book a Call card */
.bookcall {
  display: block; padding: 28px 30px;
  border: 1px solid rgba(198, 167, 107, 0.4); border-radius: 3px;
  background: radial-gradient(90% 130% at 85% 0%, rgba(183,101,43,0.14), transparent 55%),
              linear-gradient(160deg, rgba(255,255,255,0.02), transparent);
  position: relative; overflow: hidden;
  transition: border-color 0.45s var(--ease), transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  will-change: transform;
}
.bookcall::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--sand);
  transition: width 0.5s var(--ease);
}
.bookcall:hover { border-color: var(--sand); transform: translateY(-4px); box-shadow: 0 18px 44px -22px rgba(198,167,107,0.35); }
.bookcall:hover::before { width: 100%; }
.bookcall__eyebrow {
  display: block; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sand); font-weight: 500; margin-bottom: 10px;
}
.bookcall__title {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--cream); line-height: 1.1;
}
.bookcall__title .arrow { font-family: var(--sans); font-size: 1.1rem; color: var(--sand); transition: transform 0.4s var(--ease); }
.bookcall:hover .bookcall__title .arrow { transform: translateX(5px); }
.bookcall__note { display: block; margin-top: 10px; font-size: 0.88rem; color: var(--cream-faint); }

/* Interactive map (Tempe), theme-matched with a dark filter */
.map-frame {
  border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
  background: #0e0d0c;
}
.map-frame iframe {
  display: block; width: 100%; height: 320px; border: 0;
  filter: invert(0.92) hue-rotate(185deg) saturate(0.35) brightness(0.92) contrast(0.95);
}
.map-frame__caption {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-top: 1px solid var(--line);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-dim);
}
.map-frame__caption .ic { color: var(--sand); font-size: 13px; }

.contact-channels { display: grid; gap: 2px; }
.channel {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--line); transition: all 0.4s var(--ease);
}
.channel:hover { padding-left: 10px; }
.channel:hover .channel__name { color: var(--sand); }
.channel__name { font-family: var(--serif); font-size: 1.5rem; transition: color 0.3s var(--ease); }
.channel__val { font-size: 13px; letter-spacing: 0.06em; color: var(--cream-faint); text-align: right; }
.channel--primary .channel__name { color: var(--sand); }
.channel--primary { border-bottom-color: rgba(198,167,107,0.35); }

/* ===================================================================
   TIMELINE
   =================================================================== */
.timeline { position: relative; padding-left: 0; }
.tl-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start;
  padding: 30px 0; border-top: 1px solid var(--line);
  transition: background 0.4s var(--ease);
}
.tl-row:hover { background: rgba(255,255,255,0.012); }
.tl-row:last-child { border-bottom: 1px solid var(--line); }
.tl-when { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sand); padding-top: 6px; }
.tl-what h3 { font-size: 1.45rem; margin-bottom: 6px; }
.tl-what p { color: var(--cream-dim); font-size: 0.96rem; max-width: 60ch; }
.tl-what ul { margin: 10px 0 0 18px; color: var(--cream-dim); font-size: 0.95rem; max-width: 62ch; }
.tl-what ul li { margin-bottom: 7px; }
.tl-what .tl-sub { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-faint); margin-bottom: 8px; }

/* ===================================================================
   PORTFOLIO — big case rows
   =================================================================== */
.case-list { display: flex; flex-direction: column; gap: clamp(70px, 12vh, 140px); }
.case {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px); align-items: center;
  position: relative;
}
.case--flip .case__media { order: 2; }
.case__num {
  position: absolute; top: clamp(-40px, -6vw, -70px); left: -10px; z-index: 0;
  font-family: var(--serif); font-style: italic; line-height: 1;
  font-size: clamp(5rem, 11vw, 9.5rem);
  color: rgba(198, 167, 107, 0.10);
  pointer-events: none; user-select: none;
}
.case--flip .case__num { left: auto; right: -10px; }
.case__media {
  position: relative; z-index: 1;
  aspect-ratio: 3 / 2; min-height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.case__media .ph { position: absolute; inset: 0; min-height: 0; }
.case__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; }
.case__cat { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sand); display: flex; align-items: center; gap: 14px; }
.case__cat .yr { color: var(--cream-faint); letter-spacing: 0.14em; }
.case__title { font-size: clamp(2rem, 4vw, 3.2rem); }
.case__desc { color: var(--cream-dim); font-size: 1rem; max-width: 52ch; }
.case__foot { display: flex; gap: 28px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.case__foot div span { display: block; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-faint); margin-bottom: 4px; }
.case__foot div b { font-weight: 400; font-size: 0.92rem; color: var(--cream-dim); }
.case .link-line { margin-top: 4px; }

/* Open slot: the dimmed 05 card inviting the next project */
.case--open { opacity: 0.72; transition: opacity 0.5s var(--ease); }
.case--open:hover { opacity: 1; }
.case--open .ph {
  border-style: dashed; border-color: var(--line-strong);
  transition: border-color 0.45s var(--ease);
}
.case--open .case__media:hover .ph { border-color: var(--sand); }
a.ph { display: flex; }

/* ===================================================================
   HOBBIES — off the clock (grouped: Move / Make / Chase)
   =================================================================== */
.hobby-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.hobby-group__label {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--sand);
  margin-bottom: 20px;
}
.hobby-group__label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hobbies { display: flex; flex-wrap: wrap; gap: 11px; }
.hobby {
  padding: 11px 20px; border: 1px solid var(--line); border-radius: 50px;
  font-size: 0.92rem; color: var(--cream-dim); letter-spacing: 0.02em;
  transition: all 0.35s var(--ease); cursor: default;
}
.hobby:hover {
  border-color: var(--sand); color: var(--sand);
  transform: translateY(-3px); background: rgba(198, 167, 107, 0.05);
}
@media (max-width: 980px) {
  .hobby-groups { grid-template-columns: 1fr; }
}

/* ===================================================================
   PAGE HERO (inner pages)
   =================================================================== */
.page-hero { padding-top: calc(var(--nav-h) + clamp(60px, 12vh, 130px)); padding-bottom: clamp(40px, 7vh, 80px); position: relative; overflow: hidden; }
.page-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  /* Semi-transparent so the fixed dune/topo field shows through inner-page heroes */
  background: radial-gradient(90% 120% at 85% -10%, rgba(183,101,43,0.20), transparent 50%),
              linear-gradient(180deg, rgba(19,17,16,0.55), rgba(16,16,16,0.25));
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 18ch; margin: 22px 0 24px; }

/* ===================================================================
   FOOTER
   =================================================================== */
.footer { border-top: 1px solid var(--line); padding: clamp(56px, 9vh, 96px) 0 40px; background: var(--black); position: relative; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background: radial-gradient(70% 100% at 50% 100%, rgba(183,101,43,0.07), transparent 70%);
  pointer-events: none;
}
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 60px; position: relative; }
.footer__brand { font-family: var(--serif); font-size: 2rem; margin-bottom: 16px; }
.footer__brand span { color: var(--sand); }
.footer__tag { color: var(--cream-dim); max-width: 34ch; font-size: 0.98rem; }
.footer__col h4 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-faint); margin-bottom: 18px; font-family: var(--sans); font-weight: 600; }
.footer__col a { display: block; color: var(--cream-dim); font-size: 0.95rem; padding: 7px 0; transition: color 0.3s var(--ease), padding-left 0.3s var(--ease); }
.footer__col a:hover { color: var(--sand); padding-left: 6px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 30px; border-top: 1px solid var(--line); flex-wrap: wrap; position: relative; }
.footer__bottom span { font-size: 12px; letter-spacing: 0.06em; color: var(--cream-faint); }
.footer__credit a { color: var(--sand); transition: opacity 0.3s var(--ease); border-bottom: 1px solid rgba(198,167,107,0.4); padding-bottom: 1px; }
.footer__credit a:hover { opacity: 0.75; }

/* ===================================================================
   SCROLL REVEAL
   =================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ===================================================================
   REDUCED MOTION — everything calms down
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { opacity: 1; transition: none; }
  .reveal, .hstage, .hero__photo { opacity: 1 !important; transform: none !important; transition: none !important; }
  .wi { transform: none !important; transition: none !important; }
  .marquee__track { animation: none; }
  .shutter, .cursor-glow, .cur-dot, .cur-ring, .progress, .hero__embers, .hero__terrain, .terrain-bg, .topo-canvas { display: none !important; }
  .hero__ridges, .hero__photo { transform: none !important; }
  .btn, .nav__cta, .case__media { transform: none !important; }
  .hero__coord .dot { animation: none; }
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .pillars { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split .ph { order: -1; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .cursor-glow, .cur-dot, .cur-ring { display: none; }

  .case { grid-template-columns: 1fr; gap: 24px; }
  .case--flip .case__media { order: 0; }
  .case__num { top: -34px; left: -4px; font-size: 4.6rem; }
  .case--flip .case__num { right: auto; left: -4px; }

  /* Hero photo becomes the full backdrop with a stronger veil */
  .hero__photo { width: 100%; background-position: center 15%; }
  .hero__photo::after {
    background:
      linear-gradient(0deg, #050505 8%, rgba(8,8,8,0.6) 42%, rgba(8,8,8,0.35) 100%),
      linear-gradient(180deg, rgba(5,5,5,0.5) 0%, transparent 30%);
  }
  .tl-row { grid-template-columns: 1fr; gap: 8px; }
  .value-row { grid-template-columns: 60px 1fr; gap: 18px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .case__foot { gap: 18px; }
  .btn { width: 100%; justify-content: center; }
  .btns { width: 100%; }
  .follow-band .wrap { flex-direction: column; align-items: flex-start; }
}
