/* ============================================================
   Tahir Charles — Campaign scaffold
   Palette: deep Houston blue + warm beige/sandstone (client-requested)
   Type: Zodiak (display serif) + Switzer (humanist sans) via Fontshare
   ============================================================ */

:root {
  --ink: #0B1F3A;
  --blue: #173C68;
  --blue-soft: #3E6597;
  --cream: #F7F1E6;
  --sand: #E9DEC9;
  --sand-2: #D9C7A8;
  --clay: #8A6A46;
  --gold: #C79A4B;

  --serif: "utopia-std", Georgia, "Times New Roman", serif;
  --display: "utopia-std-headline", "utopia-std", Georgia, serif;
  --strong: "proxima-nova", "Helvetica Neue", Arial, system-ui, sans-serif;
  --sans: "Switzer", system-ui, -apple-system, sans-serif;

  --wrap: 1140px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --r: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* contain off-canvas mobile menu without breaking sticky nav */
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0 0 .4em; }
p { margin: 0 0 1rem; }
a { color: inherit; }

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

.eyebrow {
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--clay); font-weight: 600; margin: 0 0 .6rem;
}
.eyebrow--light { color: var(--gold); }

.placeholder-note {
  display: inline-block; font-family: var(--sans); font-size: .62em;
  letter-spacing: .04em; color: #b23; background: #fff2f2;
  border: 1px dashed #e3a; border-radius: 3px; padding: .05em .4em; vertical-align: middle;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--cream); padding: .6rem 1rem;
}
.skip-link:focus { left: .5rem; top: .5rem; }

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

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--blue); --fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--strong); font-weight: 600; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .09em;
  padding: 1rem 1.9rem; border-radius: var(--r); text-decoration: none;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bg);
  transition: transform .18s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { --bg: var(--gold); --fg: var(--ink); border-color: var(--gold); box-shadow: 0 8px 22px rgba(199,154,75,.26); }
.btn--gold:hover { background: #d3a758; box-shadow: 0 12px 28px rgba(199,154,75,.34); }
.btn--outline { background: transparent; --fg: var(--cream); border-color: rgba(247,241,230,.55); }
.btn--outline:hover { background: rgba(247,241,230,.1); border-color: var(--cream); }
.btn--lg { padding: 1.15rem 2.3rem; font-size: .86rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: transform .4s ease, opacity .4s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
/* Immersive hero: the header is hidden at the top (nothing but skyline + name),
   and slides in once the user starts scrolling into the page. */
.nav:not(.is-scrolled) { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.nav.is-scrolled {
  opacity: 1; transform: none; pointer-events: auto;
  background: var(--cream);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--sand-2);
  box-shadow: 0 1px 14px rgba(11,31,58,.08);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between;
  max-width: var(--wrap); margin-inline: auto; padding: .8rem var(--pad); }

.wordmark { font-family: var(--serif); font-size: 1.4rem; font-weight: 700;
  text-decoration: none; color: var(--ink); letter-spacing: -.01em; }
.wordmark span { color: var(--clay); margin-left: .3em; }
.wordmark--light, .wordmark--light span { color: var(--cream); }
.wordmark--light span { color: var(--gold); }

.nav__menu { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.nav__menu a { text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav__menu a:not(.btn):hover { color: var(--blue); }
.nav__menu a:not(.btn).is-active { color: var(--blue); }
.nav__donate { padding: .55rem 1.1rem; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none;
  border: 0; cursor: pointer; padding: .4rem; }
.nav__toggle span { width: 26px; height: 2px; background: var(--ink); transition: background .25s, transform .25s; }

/* Transparent-over-hero state: light text until the nav goes solid on scroll */
.nav:not(.is-scrolled) .wordmark,
.nav:not(.is-scrolled) .nav__menu a:not(.btn) {
  color: var(--cream); text-shadow: 0 1px 14px rgba(3,9,20,.5);
}
.nav:not(.is-scrolled) .wordmark span { color: var(--gold); }
.nav:not(.is-scrolled) .nav__menu a:not(.btn):hover { color: var(--gold); }
.nav:not(.is-scrolled) .nav__toggle span { background: var(--cream); }
/* Toggle stays dark while the mobile menu (cream panel) is open */
.nav__toggle[aria-expanded="true"] span { background: var(--ink) !important; }

/* ---------- Hero (cinematic dusk cityscape) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center;
  color: var(--cream); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: 0; }

/* Dusk sky: deep navy zenith → blue → warm sandstone horizon bloom (brand-aligned, not literal sunset) */
.hero__sky { position: absolute; inset: 0;
  background:
    radial-gradient(150% 72% at 56% 120%, rgba(199,154,75,.50) 0%, rgba(138,106,70,.26) 34%, rgba(23,60,104,0) 62%),
    radial-gradient(90% 60% at 74% 112%, rgba(233,207,150,.34) 0%, transparent 60%),
    linear-gradient(180deg, #05101f 0%, #0B1F3A 32%, #173C68 72%, #2b4d7c 100%);
}
/* Soft horizon bloom (the light the towers rise out of) */
.hero__glow { position: absolute; inset: 0; mix-blend-mode: screen; filter: blur(8px);
  background: radial-gradient(closest-side at 72% 90%, rgba(233,207,150,.72), rgba(199,154,75,.22) 46%, transparent 74%);
  animation: heroGlow 9s ease-in-out infinite; }
/* Full-width warm haze at the horizon so every tower silhouettes, not just the backlit right */
.hero__haze { position: absolute; left: 0; right: 0; bottom: 0; height: 48%; z-index: 1;
  pointer-events: none; mix-blend-mode: screen; filter: blur(3px);
  background: linear-gradient(180deg, transparent 0%, rgba(199,154,75,.10) 52%, rgba(233,207,150,.24) 100%); }

/* Real footage: dominant layer above the CSS skyline. Transparent when the file is
   absent, so the illustrated skyline shows through as fallback. */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 1; z-index: 2;
  transform-origin: 64% 100%; animation: heroKen 34s ease-in-out infinite alternate;
  will-change: transform; }


/* Parallax stack — slow Ken Burns drift for cinematic life */
.hero__parallax { position: absolute; inset: 0; z-index: 1;
  transform-origin: 68% 100%; animation: heroZoom 30s ease-in-out infinite alternate; will-change: transform; }
.hero__layer { position: absolute; left: -4%; right: -4%; bottom: 0; width: 108%;
  will-change: transform; }
.hero__layer--far  { height: 40%; color: rgba(46,77,124,.55); filter: blur(.4px); }
.hero__layer--mid  { height: 55%; color: rgba(13,34,62,.86); }
.hero__layer--near { height: 74%; color: #060f1f; }

/* Lit windows — a slow "city breathing" shimmer, offset per layer */
.hero__windows { opacity: .55; mix-blend-mode: screen; }
.hero__windows--mid  { opacity: .4;  animation: cityBreathe 7s ease-in-out infinite; }
.hero__windows--near { opacity: .62; animation: cityBreathe 5.5s ease-in-out .8s infinite; }

/* Film grain for filmic texture */
.hero__grain { position: absolute; inset: -50%; z-index: 2; pointer-events: none;
  opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 1.1s steps(3) infinite; }

/* Legibility scrim — tuned to the bottom-grounded layout: strong at the base (headline +
   baseline bar) and down the left (eyebrow), clear through the middle to show the skyline. */
/* Lighter, cinematic — the footage is the forefront; just enough base wash for the small text */
.hero__scrim { position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(5,16,31,.28) 0%, rgba(5,16,31,0) 22%, rgba(5,16,31,0) 52%, rgba(5,16,31,.32) 80%, rgba(5,16,31,.6) 100%),
    linear-gradient(90deg, rgba(5,16,31,.46) 0%, rgba(5,16,31,.14) 40%, rgba(5,16,31,0) 72%); }
.hero__vignette { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(132% 128% at 50% 34%, transparent 52%, rgba(3,9,20,.28) 78%, rgba(3,9,20,.62) 100%); }

/* Content fills the frame: imagery up top, headline grounded low, hairline baseline bar */
.hero__content { position: relative; z-index: 3; width: 100%;
  max-width: var(--wrap); margin-inline: auto;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  gap: clamp(2rem, 5vh, 3.2rem); padding: clamp(6rem, 12vh, 8.5rem) var(--pad) clamp(1.4rem, 3vh, 2rem);
  will-change: transform, opacity; }

.hero__eyebrow { display: flex; align-items: center; gap: .7rem; color: var(--gold);
  font-family: var(--strong); letter-spacing: .24em; text-transform: uppercase; font-size: .82rem;
  font-weight: 600; margin: 0 0 1.3rem; text-shadow: 0 1px 16px rgba(3,9,20,.55); }
.hero__mark { width: 2.4rem; height: 2px; background: var(--gold); display: inline-block;
  box-shadow: 0 0 12px rgba(199,154,75,.6); }
/* Name as a cinematic backdrop — one line straight across the skyline, fading behind the buildings */
.hero__nameplate { position: absolute; inset: 0; z-index: 2; display: flex;
  align-items: flex-start; justify-content: center; padding: 13vh 2vw 0;
  pointer-events: none; }
.hero__name { margin: 0; width: 100%; text-align: center; white-space: nowrap;
  font-family: var(--strong); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.8rem, 11vw, 15rem); line-height: 1; letter-spacing: .02em;
  color: #E9DEC9; /* fallback if background-clip:text is unsupported */
  /* Cozy beige, faded top→bottom so the lower strokes sink behind the skyline */
  background: linear-gradient(180deg,
    rgba(247,241,230,.97) 0%, rgba(241,232,215,.9) 40%,
    rgba(231,217,191,.5) 74%, rgba(214,195,162,.14) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  filter: drop-shadow(0 3px 18px rgba(3,9,20,.42)); }
.hero__tagline { font-family: var(--strong); font-size: clamp(1.15rem, 2.3vw, 1.7rem); max-width: 42ch;
  font-weight: 400; margin: 1.4rem 0 2.4rem; color: #f2eee2; line-height: 1.5; letter-spacing: .002em;
  text-shadow: 0 1px 22px rgba(3,9,20,.55); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__cta .btn { box-shadow: 0 12px 32px rgba(3,9,20,.34); }

/* Baseline bar — soaks up the old bottom dead space, frames the hero */
.hero__foot { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap; padding-top: clamp(1.2rem, 2.5vh, 1.8rem); font-family: var(--strong);
  border-top: 1px solid rgba(247,241,230,.2); text-shadow: 0 1px 14px rgba(3,9,20,.65); }
.hero__social { display: flex; gap: 1.6rem; list-style: none; padding: 0; margin: 0;
  font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; }
.hero__social a { color: #d9d5c9; text-decoration: none; }
.hero__social a:hover { color: var(--gold); }
.hero__hint { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none;
  font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(247,241,230,.62); }
.hero__hint-line { width: 1.6rem; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(247,241,230,0));
  animation: hintSlide 2.1s ease-in-out infinite; }
.hero__hint:hover { color: var(--gold); }
.hero__place { margin: 0; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(247,241,230,.55); }

/* Load-in stagger (JS adds .is-ready) */
.js .hero__lead > *, .js .hero__foot { opacity: 0; transform: translateY(18px); }
.js .hero.is-ready .hero__lead > *, .js .hero.is-ready .hero__foot { opacity: 1; transform: none;
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .hero.is-ready .hero__eyebrow { transition-delay: .05s; }
.js .hero.is-ready .hero__tagline { transition-delay: .22s; }
.js .hero.is-ready .hero__cta     { transition-delay: .36s; }
.js .hero.is-ready .hero__foot    { transition-delay: .52s; }
/* Name backdrop fades in on its own — no transform, so it keeps its gradient + centering */
.js .hero__name { opacity: 0; }
.js .hero.is-ready .hero__name { opacity: 1; transition: opacity 1.3s ease .1s; }

@keyframes heroZoom { from { transform: scale(1) translateY(0); } to { transform: scale(1.07) translateY(-1.5%); } }
/* Ken Burns for the footage — start slightly scaled so the pan never reveals an edge */
@keyframes heroKen { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.11) translate(-1.4%, -1.2%); } }
@keyframes heroGlow { 0%,100% { opacity: .85; } 50% { opacity: 1; } }
@keyframes cityBreathe { 0%,100% { opacity: .34; } 50% { opacity: .72; } }
@keyframes grainShift { 0%{transform:translate(0,0)} 33%{transform:translate(-4%,3%)} 66%{transform:translate(3%,-3%)} 100%{transform:translate(0,0)} }
@keyframes hintSlide { 0%{transform:scaleX(.3);transform-origin:left;opacity:.4} 50%{transform:scaleX(1);opacity:1} 100%{transform:scaleX(.3);transform-origin:right;opacity:.4} }

/* ---------- Sections ---------- */
section[id] { scroll-margin-top: 4.75rem; } /* clear the fixed nav on anchor jumps */
/* Texas flag ribbon — integrated navy divider between hero and content */
.flagband { background: var(--ink); border-bottom: 3px solid var(--gold); }
.flagband__inner { display: flex; align-items: center; justify-content: center; gap: .9rem;
  padding: .85rem var(--pad); }
.flagband__flag { width: 46px; height: auto; flex: 0 0 auto; display: block;
  border-radius: 2px; box-shadow: 0 1px 8px rgba(0,0,0,.35); }
.flagband__label { margin: 0; font-family: var(--sans); text-transform: uppercase;
  letter-spacing: .22em; font-size: .8rem; font-weight: 600; color: var(--cream); }

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--sand { background: var(--sand); }
.section__head { max-width: 40ch; margin-bottom: 2.5rem; }
.section__head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.section__lead { color: #4a4335; font-size: 1.1rem; }

/* About */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.portrait-ph { aspect-ratio: 4/5; border-radius: var(--r); border: 1px solid var(--sand-2);
  background: repeating-linear-gradient(45deg, #efe6d3, #efe6d3 12px, #e8dcc4 12px, #e8dcc4 24px);
  display: grid; place-items: center; text-align: center; color: var(--clay);
  font-size: .85rem; letter-spacing: .05em; }
.about__body h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.about__body p { color: #40382b; max-width: 52ch; }

/* Platform cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.card { background: var(--cream); border: 1px solid var(--sand-2); border-radius: var(--r);
  padding: 1.8rem; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(11,31,58,.10); }
.card h3 { font-size: 1.4rem; color: var(--blue); }
.card p { color: #4a4335; margin: 0; }

/* Record: stats + timeline */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-bottom: 3rem; text-align: center; }
.stat__num { display: block; font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4rem); color: var(--blue); line-height: 1; }
.stat__label { display: block; margin-top: .5rem; font-size: .9rem; letter-spacing: .04em; color: var(--clay); }
.timeline { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.timeline li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.25rem;
  padding: 1.25rem 0; border-top: 1px solid var(--sand-2); }
.timeline li:last-child { border-bottom: 1px solid var(--sand-2); }
.timeline__year { font-family: var(--serif); font-weight: 700; color: var(--clay); }
.timeline p { margin: 0; color: #40382b; }

/* About — real portrait + blue accents */
.about__portrait { position: relative; }
.about__img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 24% 20%;
  border-radius: var(--r); display: block; box-shadow: 0 18px 44px rgba(11,31,58,.22); }
.about__tag { position: absolute; left: 0; bottom: 1.1rem; background: var(--ink); color: var(--cream);
  padding: .5rem 1rem; font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.about__body .lede { font-size: 1.2rem; color: var(--ink); }
.about__facts { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1.6rem 0 0; }
.about__facts li { background: var(--blue); color: var(--cream); padding: .45rem 1rem;
  border-radius: 100px; font-size: .82rem; letter-spacing: .02em; }

/* Dark blue section (Platform) */
.section--ink { background: linear-gradient(180deg, var(--ink) 0%, var(--blue) 100%); color: #d7e1ef; }
.section--ink h2 { color: var(--cream); }
.section__lead--light { color: #b7c5da; }
.card--ink { background: rgba(255,255,255,.055); border-color: rgba(247,241,230,.16); }
.card--ink h3 { color: var(--cream); }
.card--ink p { color: #c3d0e2; }
.card--ink:hover { background: rgba(255,255,255,.09); box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.card__no { display: block; font-family: var(--serif); font-size: 1rem; letter-spacing: .1em;
  color: var(--gold); margin-bottom: .55rem; }

/* Full-bleed image band with blue wash */
.imgband { position: relative; isolation: isolate; background-size: cover; background-position: center 35%;
  padding: clamp(4.5rem, 11vw, 8rem) 0; color: var(--cream); text-align: center; }
.imgband::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(11,31,58,.92) 0%, rgba(23,60,104,.72) 60%, rgba(23,60,104,.5) 100%); }
.imgband__inner { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.imgband__kicker { color: var(--gold); text-transform: uppercase; letter-spacing: .24em; font-size: .8rem;
  font-weight: 600; margin: 0 0 1rem; }
.imgband__quote { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 4vw, 2.7rem);
  line-height: 1.25; max-width: 24ch; margin: 0 auto; }

/* Record — work gallery */
.workgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.work { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; }
.work img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; transition: transform .5s ease; }
.work:hover img { transform: scale(1.05); }
.work figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1.1rem .95rem;
  background: linear-gradient(transparent, rgba(11,31,58,.92)); color: var(--cream); font-size: .92rem; line-height: 1.35; }

/* Donate band */
.donate { background: linear-gradient(160deg, var(--ink), var(--blue)); color: var(--cream);
  padding: clamp(4rem, 9vw, 7rem) 0; text-align: center; }
.donate__inner { max-width: 640px; }
.donate h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.donate__ask { color: #dcdccf; font-size: 1.1rem; margin-bottom: 2rem; }
.donate__amounts { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.chip { text-decoration: none; padding: .65rem 1.4rem; border-radius: var(--r);
  border: 1.5px solid rgba(247,241,230,.4); color: var(--cream); font-weight: 600; transition: .2s; }
.chip:hover { background: rgba(247,241,230,.12); border-color: var(--gold); }

/* Footer */
.footer { background: var(--ink); color: #cfd6e0; padding: 3.5rem 0 2rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer__contact { font-size: .9rem; margin: .6rem 0 0; }
.footer__social { display: flex; gap: 1.25rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.footer__social a { text-decoration: none; color: #cfd6e0; font-size: .9rem; }
.footer__social a:hover { color: var(--gold); }
.footer__disclosure { max-width: var(--wrap); margin: 2.5rem auto 0; padding: 1.25rem var(--pad) 0;
  border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: #9aa6b6; }
.footer__copy { max-width: var(--wrap); margin: .5rem auto 0; padding-inline: var(--pad);
  font-size: .8rem; color: #7f8ba0; }

/* ---------- Reveal (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__video { display: none; }
  .hero__parallax, .hero__glow, .hero__grain, .hero__windows,
  .hero__hint-line { animation: none !important; }
  .hero__parallax { transform: none !important; }
  .hero__grain { opacity: .04; }
  .js .hero__lead > *, .js .hero__foot, .js .hero__name { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .nav__toggle { display: flex; }
  .nav__menu { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.5rem;
    background: var(--cream); padding: 2rem; transform: translateX(100%);
    transition: transform .3s ease; box-shadow: -10px 0 40px rgba(11,31,58,.15); }
  .nav__menu.is-open { transform: none; }
  .nav__menu a { font-size: 1.2rem; }
  .about { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 2rem; }
  .timeline li { grid-template-columns: 4rem 1fr; }
  /* Hero: drop the redundant scroll cue so the baseline bar is one clean row */
  .hero__hint { display: none; }
  .hero__foot { gap: 1rem; }
  .workgrid { grid-template-columns: 1fr; }
}
