/* Sencere Tucker portfolio — HERO ONLY (first section).
   Cosmic/cinematic to match the hero loop: deep navy, cream type, amber-gold accent.
   Fraunces (display) + Inter (UI) + JetBrains Mono (the "code" nod in labels).
*/

:root {
  --bg: #070a14;          /* deep cosmic near-black navy */
  --bg-2: #0a0e1a;
  --ink: #f4efe4;         /* warm cream */
  --ink-soft: rgba(244, 239, 228, 0.74);
  --gold: #f0b942;        /* amber-gold, pulled from the hero glow */
  --gold-soft: rgba(240, 185, 66, 0.16);
  --paper: #efe7d6;       /* warm cream panel (the "day" side) */
  --on-paper: #16140d;    /* dark ink on the cream panel */

  --display: 'Fraunces', Georgia, serif;
  --ui: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;   /* clip, not hidden: prevents h-scroll without breaking position:sticky */
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 2.4rem;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.logo {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5), 0 2px 26px rgba(0,0,0,0.6);
}

.nav {
  display: flex;
  gap: 2rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5), 0 2px 26px rgba(0,0,0,0.6);
  transition: color 0.25s ease;
}
.nav a:hover { color: var(--gold); }

/* ---------- Hamburger (mobile) ---------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 60;
}
.menu-toggle .bar {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.55);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.2s ease;
}
.site-header.open .menu-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.open .menu-toggle .bar:nth-child(2) { opacity: 0; }
.site-header.open .menu-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* name in the top sky, tagline+CTA in the bottom calm band */
  padding: 13vh 6vw 9vh;
  text-align: center;
  overflow: hidden;
}

.hero .bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg) url('hero-poster.jpg') center/cover no-repeat;
}
.hero .bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* darken the top so the wordmark reads against the sky */
    linear-gradient(180deg, rgba(7,10,20,0.62) 0%, rgba(7,10,20,0.15) 26%, transparent 46%),
    /* fade hard to the page bg at the very bottom for a clean handoff later */
    linear-gradient(180deg, transparent 70%, rgba(7,10,20,0.6) 88%, var(--bg) 100%);
}

.hero-top, .hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-top { gap: 1rem; }
.hero-bottom { gap: 1.4rem; }

.kicker {
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5), 0 0 18px rgba(0,0,0,0.5);
}

.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(3.4rem, 10vw, 8.5rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: 0 1px 3px rgba(0,0,0,0.55), 0 6px 50px rgba(0,0,0,0.6);
}

.tagline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  line-height: 1.35;
  color: var(--ink);
  text-shadow: 0 1px 3px rgba(0,0,0,0.6), 0 2px 28px rgba(0,0,0,0.6);
}
.tagline em {
  font-style: italic;
  color: var(--gold);
}

.cta {
  display: inline-block;
  padding: 1rem 2.4rem;
  border: 1px solid rgba(244, 239, 228, 0.55);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  background: rgba(7, 10, 20, 0.2);
  backdrop-filter: blur(2px);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.cta:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.scroll-hint {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ============================================================
   ABOUT — split-screen day/night scrub
   ============================================================ */
.about {
  position: relative;
  height: 320vh;            /* scroll room to drive the scrub + beats */
  background: var(--bg);
}
.about-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  overflow: hidden;
}

.about-left {
  width: 50%;
  background: var(--paper);
  position: relative;
  color: var(--on-paper);
}
.about-right {
  width: 50%;
  position: relative;
  background: #0a0e1a;
}
#pencil-canvas { display: block; width: 100%; height: 100%; }

/* story beats: stacked, cross-faded by scroll progress (JS sets opacity) */
.beat {
  position: absolute;
  left: 6vw;
  right: 3vw;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  will-change: opacity, transform;
}
.beat-kicker {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #9a7b2e;
  margin-bottom: 1.2rem;
}
.beat-h {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-bottom: 1.1rem;
}
.beat-body {
  font-family: var(--ui);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.62;
  color: rgba(22, 20, 13, 0.86);
  max-width: 34ch;
}
.beat-credits {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  line-height: 1.6;
  color: #9a7b2e;
  margin-top: 1.5rem;
  max-width: 34ch;
}

/* seam headline crossing the boundary, two-tone */
.seam-head {
  position: absolute;
  top: 13vh;
  left: 0; right: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 50% 50%;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.015em;
  pointer-events: none;
}
.seam-day {
  text-align: right;
  padding-right: 0.3em;
  color: var(--on-paper);
}
.seam-night {
  text-align: left;
  padding-left: 0.3em;
  color: var(--ink);
  text-shadow: 0 1px 3px rgba(0,0,0,0.55), 0 2px 22px rgba(0,0,0,0.5);
}

@media (max-width: 820px) {
  .about { height: 280vh; }
  .about-sticky { flex-direction: column; }
  .about-left { width: 100%; order: 2; flex: 1; }
  .about-right { width: 100%; order: 1; height: 46svh; }
  .beat { left: 7vw; right: 7vw; }
  .seam-head {
    grid-template-columns: 1fr;
    top: auto;
    bottom: calc(54svh + 4vh);   /* sit just above the cream panel, over the canvas */
    text-align: center;
  }
  .seam-day, .seam-night {
    text-align: center;
    padding: 0;
    color: var(--ink);
    text-shadow: 0 1px 3px rgba(0,0,0,0.6), 0 2px 22px rgba(0,0,0,0.55);
  }
}

/* ============================================================
   CHAPTERS — shared
   ============================================================ */
.chapter {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
}
.chapter-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--bg);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.06);          /* eases to rest when the section enters */
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.chapter.in .chapter-bg { transform: scale(1); }

.chapter-eyebrow {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* ---------- Generic section + container ---------- */
.section { position: relative; padding: 15vh 0; }
.container { width: min(1180px, 90vw); margin: 0 auto; }
.chapter-head { max-width: 42rem; margin-bottom: 6vh; }
.chapter-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 1.2rem;
}
.chapter-title em { font-style: italic; color: var(--gold); }
.chapter-intro {
  font-family: var(--ui);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 1.4rem;
  max-width: 36rem;
}

/* ---------- Web Design grid ---------- */
.web-design .chapter-eyebrow { margin-bottom: 0; }
.site-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 2.6rem;
}
.site-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.browser {
  border-radius: 12px;
  overflow: hidden;
  background: #0d1120;
  border: 1px solid rgba(244, 239, 228, 0.10);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.42);
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), box-shadow 0.45s ease, border-color 0.45s ease;
}
.site-card:hover .browser {
  transform: translateY(-7px);
  box-shadow: 0 42px 82px rgba(0, 0, 0, 0.55);
  border-color: rgba(240, 185, 66, 0.42);
}
.browser-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(244, 239, 228, 0.07);
}
.browser-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(244, 239, 228, 0.18);
}
.browser-view {
  aspect-ratio: 1280 / 800;
  background: #000;
}
.browser-view video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.site-meta { padding: 1.5rem 0.2rem 0; }
.site-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
  margin-bottom: 0.6rem;
}
.site-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.site-desc {
  font-family: var(--ui);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 0.5rem;
  max-width: 38ch;
}
.site-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1rem;
  transition: letter-spacing 0.3s ease;
}
.site-card:hover .site-link { letter-spacing: 0.12em; }

@media (max-width: 720px) {
  .site-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .section { padding: 12vh 0; }
}

/* ---------- Web Apps: Cleared flagship ---------- */
.web-apps { position: relative; overflow: hidden; }
.web-apps .ambient-glow {
  position: absolute;
  width: 70vw; height: 70vw;
  left: -16vw; top: 16%;
  background: radial-gradient(circle, rgba(63, 90, 74, 0.28), transparent 68%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}
.web-apps .container { position: relative; z-index: 1; }

.cleared-stage {
  display: block;
  text-decoration: none;
  color: inherit;
}
.browser-view.wide { aspect-ratio: 16 / 9; }
.cleared-stage .browser {
  border-radius: 14px;
  overflow: hidden;
  background: #0d1120;
  border: 1px solid rgba(244, 239, 228, 0.10);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.5);
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), box-shadow 0.45s ease, border-color 0.45s ease;
}
.cleared-stage:hover .browser {
  transform: translateY(-6px);
  box-shadow: 0 46px 90px rgba(0, 0, 0, 0.6);
  border-color: rgba(111, 143, 122, 0.5);
}

.cleared-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 5rem;
  align-items: start;
}
.cleared-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.4rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.cleared-tag {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.5rem;
  color: #8fae9b;
  margin-top: 0.5rem;
}
.cleared-body {
  font-family: var(--ui);
  font-size: 1.1rem;
  line-height: 1.62;
  color: var(--ink-soft);
  margin-top: 1.4rem;
  max-width: 36ch;
}
.cleared-col .cta { margin-top: 2rem; }

.cleared-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.cleared-features li {
  font-family: var(--ui);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-soft);
  padding-left: 1.4rem;
  border-left: 1px solid rgba(143, 174, 155, 0.35);
}
.cleared-features .f-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fae9b;
  margin-bottom: 0.45rem;
}
.cleared-stack {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  opacity: 0.6;
  margin-top: 4rem;
  text-align: center;
}

@media (max-width: 720px) {
  .cleared-detail { grid-template-columns: 1fr; gap: 2.6rem; margin-top: 3rem; }
  .cleared-name { font-size: 2rem; }
  .cleared-stack { text-align: left; font-size: 0.72rem; }
}

/* ---------- Film chapter ---------- */
.film .film-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* darken the lower-left where the copy lives */
    linear-gradient(to top right, rgba(7,10,20,0.92) 0%, rgba(7,10,20,0.5) 32%, transparent 60%),
    /* gentle floor + top so the title and nav read everywhere */
    linear-gradient(180deg, rgba(7,10,20,0.45) 0%, transparent 24%, transparent 64%, rgba(7,10,20,0.55) 100%);
}
.film-inner {
  position: relative;
  z-index: 2;
  margin-top: auto;            /* anchor to the bottom-left */
  max-width: 46rem;
  padding: 0 0 11vh 6vw;
}
.film-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: 0 2px 4px rgba(0,0,0,0.6), 0 6px 44px rgba(0,0,0,0.7);
  white-space: nowrap;          /* keep "Johnny Johnny" on one line on desktop */
}
.film-prestige {
  font-family: var(--mono);
  font-size: clamp(0.82rem, 1.3vw, 1rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1.4rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
.film-logline {
  font-family: var(--ui);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 40ch;
  margin-top: 1.4rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
.film-credit {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1.8rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
.film-cta {
  display: inline-block;
  margin-top: 2.2rem;
  padding: 0.95rem 2.2rem;
  border: 1px solid rgba(244, 239, 228, 0.55);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.film-cta:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(240, 185, 66, 0.08);
}

@media (max-width: 720px) {
  /* Stacked: image band on top fading into the dark, copy below on solid dark.
     Avoids overlaying type on the busy centered crop. */
  .film { display: block; min-height: 0; }
  .film .chapter-bg {
    position: relative;
    height: 60svh;
    background-position: center 42%;
  }
  .film .film-scrim {
    bottom: auto;
    height: 60svh;
    background:
      linear-gradient(180deg, rgba(7,10,20,0.35) 0%, transparent 26%, transparent 58%, rgba(7,10,20,0.85) 88%, var(--bg) 100%);
  }
  .film-inner {
    position: relative;
    z-index: 2;
    margin-top: -14svh;          /* lift the copy up into the fade so it joins the image */
    padding: 0 6vw 5rem;
    max-width: none;
    background: linear-gradient(180deg, transparent 0%, var(--bg) 14%, var(--bg) 100%);
  }
  .chapter-eyebrow { margin-bottom: 1.1rem; }
  .film-title { font-size: clamp(2.6rem, 13vw, 4rem); white-space: normal; }
  .film-logline { font-size: 1.05rem; max-width: none; }
}

/* ---------- 89Vagabond album (album-art split, rose accent) ---------- */
.album-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: center;
}
.album-art img { aspect-ratio: 1 / 1; object-fit: cover; }
.album-art {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(244, 239, 228, 0.10);
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.5);
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), box-shadow 0.45s ease, border-color 0.45s ease;
}
.album-art img { width: 100%; display: block; }
.album-art:hover {
  transform: translateY(-7px);
  box-shadow: 0 44px 88px rgba(0, 0, 0, 0.6);
  border-color: rgba(217, 140, 132, 0.5);
}
.album .chapter-eyebrow { color: #d98c84; margin-bottom: 1.1rem; }
.album-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.album-blurb {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.5rem;
  color: #d98c84;
  margin-top: 0.6rem;
}
.album-body {
  font-family: var(--ui);
  font-size: 1.1rem;
  line-height: 1.62;
  color: var(--ink-soft);
  margin-top: 1.4rem;
  max-width: 38ch;
}
.album-cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.95rem 2.2rem;
  border: 1px solid rgba(244, 239, 228, 0.55);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.album-cta:hover {
  border-color: #d98c84;
  color: #d98c84;
  background: rgba(217, 140, 132, 0.08);
}

@media (max-width: 720px) {
  .album-split { grid-template-columns: 1fr; gap: 2.2rem; }
  .album-title { font-size: 2.2rem; }
  .album-body { max-width: none; }
}

/* ---------- Qualia chapter (full-bleed teaser, coral accent on sage) ---------- */
.qualia .qualia-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* darken the lower-left where the copy sits (deep forest, not black) */
    linear-gradient(to top right, rgba(12,22,16,0.95) 0%, rgba(12,22,16,0.55) 36%, transparent 62%),
    /* lower-third floor so the title reads over the face's lower half */
    linear-gradient(180deg, rgba(12,22,16,0.4) 0%, transparent 22%, transparent 48%, rgba(12,22,16,0.42) 74%, rgba(7,10,20,0.6) 100%);
}
.qualia-inner {
  position: relative;
  z-index: 2;
  margin-top: auto;
  max-width: 46rem;
  padding: 0 0 11vh 6vw;
}
.qualia-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.8rem, 7.5vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: 0 2px 4px rgba(0,0,0,0.6), 0 6px 44px rgba(0,0,0,0.7);
}
.qualia-prestige {
  font-family: var(--mono);
  font-size: clamp(0.82rem, 1.3vw, 1rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e89a72;
  margin-top: 1.4rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
.qualia-logline {
  font-family: var(--ui);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 42ch;
  margin-top: 1.4rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
.qualia-cta {
  display: inline-block;
  margin-top: 2.2rem;
  padding: 0.95rem 2.2rem;
  border: 1px solid rgba(244, 239, 228, 0.55);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.qualia-cta:hover {
  border-color: #e89a72;
  color: #e89a72;
  background: rgba(232, 154, 114, 0.08);
}
.qualia .chapter-eyebrow { color: #e89a72; }

@media (max-width: 720px) {
  /* stack: image band on top fading into the dark, copy below (same as Film) */
  .qualia { display: block; min-height: 0; }
  .qualia .chapter-bg {
    position: relative;
    height: 56svh;
    background-position: center 40%;
  }
  .qualia .qualia-scrim {
    bottom: auto;
    height: 56svh;
    background:
      linear-gradient(180deg, rgba(12,22,16,0.25) 0%, transparent 24%, transparent 60%, rgba(7,10,20,0.85) 90%, var(--bg) 100%);
  }
  .qualia-inner {
    position: relative;
    margin-top: -12svh;
    padding: 0 6vw 5rem;
    max-width: none;
    background: linear-gradient(180deg, transparent 0%, var(--bg) 14%, var(--bg) 100%);
  }
  .qualia-title { font-size: clamp(2.6rem, 12vw, 4rem); }
  .qualia-logline { font-size: 1.05rem; max-width: none; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.contact-portrait {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(244, 239, 228, 0.10);
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.5);
}
.contact-portrait img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 32%;
}
.contact-meta .chapter-title { margin-top: 1rem; }
.contact-meta .chapter-intro { margin-bottom: 2.4rem; }
.contact-label {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
}
.contact-label:first-of-type { margin-top: 0; }
.contact-line {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.contact-line:hover { color: var(--gold); border-color: var(--gold); }
.social-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2rem;
}
.social-list a {
  font-family: var(--ui);
  font-size: 1.05rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.25s ease;
}
.social-list a:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(244, 239, 228, 0.08);
  padding: 3rem 0;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.foot-name {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.foot-mark {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--ink-soft);
}
.foot-copy {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  opacity: 0.6;
}

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .footer-row { flex-direction: column; text-align: center; gap: 0.7rem; }
}

/* ---------- Reveal default ---------- */
.reveal { opacity: 1; }

/* scroll-reveal (below-the-fold), toggled by IntersectionObserver */
.rev {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.rev.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rev { opacity: 1; transform: none; transition: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero .bg video { display: none; }
  .hero .bg { background: var(--bg) url('hero-poster.jpg') center/cover no-repeat; }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .site-header { padding: 1rem 1.2rem; }

  /* Swap the wordmark for a hamburger in the top-left corner. */
  .logo { display: none; }
  .menu-toggle { display: inline-flex; }

  /* Nav becomes a full-width panel dropping from the top: solid cosmic navy
     (no glass), Fraunces links, slides in on open. */
  .nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 5rem 1.6rem 1.8rem;
    background: var(--bg);
    border-bottom: 1px solid rgba(244, 239, 228, 0.12);
    box-shadow: 0 26px 60px rgba(0,0,0,0.55);
    font-family: var(--display);
    font-size: 1.7rem;
    letter-spacing: 0.01em;
    text-transform: none;
    transform: translateY(-105%);
    transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
    will-change: transform;
  }
  .site-header.open .nav { transform: translateY(0); }
  .nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(244, 239, 228, 0.12);
    text-shadow: none;
  }
  .nav a:last-child { border-bottom: none; }

  .hero { padding: 13vh 6vw 10vh; }
  .kicker { font-size: 0.7rem; letter-spacing: 0.22em; }
  .wordmark { font-size: clamp(2.7rem, 13vw, 4.2rem); }
  .hero-bottom { gap: 1rem; }
  .tagline { font-size: clamp(0.98rem, 4vw, 1.18rem); line-height: 1.3; }
  .cta { padding: 0.72rem 1.7rem; font-size: 0.88rem; }
}
