/* ============================================================
   MATTINGLY & COMPANY — Design System
   Editorial executive: warm ivory, ink, deep navy, bronze.
   Fraunces (display serif) + Inter (text sans).
   ============================================================ */

:root {
  --paper: #F6F3ED;
  --paper-2: #EFEAE0;
  --ink: #1C1B18;
  --ink-soft: #4A4740;
  --navy: #122436;
  --navy-2: #0C1A28;
  --bronze: #96682A;
  --bronze-light: #C89B55;
  --line: rgba(28, 27, 24, 0.14);
  --line-dark: rgba(246, 243, 237, 0.16);
  --paper-on-dark: #F2EEE6;
  --soft-on-dark: rgba(242, 238, 230, 0.72);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--bronze); color: #fff; }

img { max-width: 100%; display: block; }

a { color: inherit; }

/* ---------- Type ---------- */

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 480;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; }

.em { font-style: italic; font-weight: 420; color: var(--bronze); }
.on-dark .em { color: var(--bronze-light); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--bronze);
  opacity: 0.7;
}
.on-dark .eyebrow { color: var(--bronze-light); }
.on-dark .eyebrow::before { background: var(--bronze-light); }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 62ch;
}
.on-dark .lede { color: var(--soft-on-dark); }

.measure { max-width: 68ch; }

/* ---------- Layout ---------- */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(22px, 5vw, 56px); }

section { padding: clamp(72px, 10vw, 136px) 0; }

.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

.on-dark {
  background: var(--navy);
  color: var(--paper-on-dark);
}
.on-dark-deep { background: var(--navy-2); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.grid-2-asym {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.rule { border: 0; border-top: 1px solid var(--line); }
.on-dark .rule { border-top-color: var(--line-dark); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(246, 243, 237, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(22px, 5vw, 56px);
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 560;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo small {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--bronze);
  vertical-align: super;
  margin-left: 4px;
}
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); list-style: none; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { margin-left: 10px; }

.nav-burger {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px;
  position: relative;
}
.nav-burger span {
  position: absolute; left: 8px; right: 8px;
  height: 1.5px; background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-burger span:nth-child(1) { top: 14px; }
.nav-burger span:nth-child(2) { top: 20px; }
.nav-burger span:nth-child(3) { top: 26px; }
.nav.open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 15px 30px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--paper-on-dark);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  cursor: pointer;
}
.btn:hover {
  background: var(--navy-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(12, 26, 40, 0.5);
}
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: none; }

.on-dark .btn { background: var(--paper-on-dark); color: var(--navy); border-color: var(--paper-on-dark); }
.on-dark .btn:hover { background: #fff; box-shadow: 0 12px 28px -12px rgba(0,0,0,0.6); }
.on-dark .btn-ghost { background: transparent; color: var(--paper-on-dark); border-color: var(--line-dark); }
.on-dark .btn-ghost:hover { background: var(--paper-on-dark); color: var(--navy); }

.btn-bronze { background: var(--bronze); border-color: var(--bronze); color: #fff; }
.btn-bronze:hover { background: #7E5620; box-shadow: 0 12px 28px -12px rgba(150, 104, 42, 0.55); }

.textlink {
  font-size: 0.86rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bronze);
  display: inline-flex; align-items: center; gap: 8px;
}
.textlink .arrow { transition: transform 0.3s var(--ease); }
.textlink:hover .arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(150px, 18vh, 210px);
  padding-bottom: clamp(56px, 7vw, 96px);
}
.hero h1 { margin: 0 0 26px; }
.hero .lede { margin-bottom: 38px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.portrait {
  position: relative;
  max-width: 470px;
  margin-left: auto;
}
.portrait img {
  width: 100%;
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.03) saturate(0.94);
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--bronze);
  transform: translate(14px, 14px);
  pointer-events: none;
  opacity: 0.55;
}
.portrait-caption {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.portrait-caption strong { font-family: var(--serif); font-weight: 560; font-size: 1.05rem; }
.portrait-caption span { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze); font-weight: 600; }

/* ---------- Affiliation ticker ---------- */

.ticker-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  overflow: hidden;
  background: var(--paper-2);
}
.ticker {
  display: flex;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
}
.ticker:hover { animation-play-state: paused; }
.ticker-set { display: flex; align-items: center; }
.ticker-item {
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 520;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--ink-soft);
  display: flex; align-items: center;
}
.ticker-item::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--bronze);
  opacity: 0.6;
  margin: 0 34px;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .ticker-set:nth-child(2) { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Letter block ---------- */

.letter-quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 440;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 24ch;
}
.letter-body p { margin-bottom: 1.3em; color: var(--ink-soft); }
.on-dark .letter-body p { color: var(--soft-on-dark); }
.letter-body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.4em;
  line-height: 0.82;
  float: left;
  padding: 6px 12px 0 0;
  color: var(--bronze);
}
.signature {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px;
}
.on-dark .signature { border-top-color: var(--line-dark); }
.signature .sig-name { font-family: var(--serif); font-style: italic; font-size: 1.5rem; font-weight: 480; }
.signature .sig-title { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze); font-weight: 600; }
.on-dark .signature .sig-title { color: var(--bronze-light); }

/* ---------- CLASS services ---------- */

.class-intro { max-width: 60ch; margin-bottom: clamp(48px, 6vw, 76px); }

.class-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}
.class-card {
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: clamp(26px, 2.6vw, 40px) clamp(20px, 2vw, 30px) clamp(30px, 3vw, 44px);
  text-decoration: none;
  color: var(--paper-on-dark);
  display: flex;
  flex-direction: column;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  transition: background 0.45s var(--ease);
}
.class-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--bronze-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.class-card:hover { background: rgba(246, 243, 237, 0.045); }
.class-card:hover::before { transform: scaleX(1); }
.class-letter {
  font-family: var(--serif);
  font-size: clamp(4rem, 6.5vw, 6.2rem);
  font-weight: 380;
  line-height: 1;
  color: var(--bronze-light);
  margin-bottom: 8px;
  transition: transform 0.45s var(--ease);
}
.class-card:hover .class-letter { transform: translateY(-4px); }
.class-word {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--soft-on-dark);
  margin-bottom: 26px;
}
.class-card h3 { font-size: 1.14rem; line-height: 1.3; margin-bottom: 14px; font-weight: 520; }
.class-card p { font-size: 0.88rem; line-height: 1.6; color: var(--soft-on-dark); flex-grow: 1; }
.class-card .textlink { margin-top: 22px; color: var(--bronze-light); font-size: 0.74rem; }

/* ---------- Cards / panels ---------- */

.panel {
  background: #FFFFFF;
  border: 1px solid var(--line);
  padding: clamp(28px, 3.4vw, 48px);
}
.on-dark .panel {
  background: rgba(246, 243, 237, 0.04);
  border-color: var(--line-dark);
}

.maxims { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.maxim {
  border-top: 2px solid var(--bronze);
  padding-top: 24px;
}
.maxim .maxim-no {
  font-family: var(--serif);
  font-style: italic;
  color: var(--bronze);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 12px;
}
.maxim p {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  line-height: 1.4;
  font-weight: 460;
}

/* ---------- Board / roles list ---------- */

.roles { border-top: 1px solid var(--line); }
.role-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(20px, 4vw, 60px);
  padding: clamp(24px, 3vw, 38px) 0;
  border-bottom: 1px solid var(--line);
}
.on-dark .roles, .on-dark .role-row { border-color: var(--line-dark); }
.role-row h3 { font-size: 1.25rem; font-weight: 520; }
.role-row .role-title {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bronze);
  display: block;
  margin-top: 8px;
}
.on-dark .role-row .role-title { color: var(--bronze-light); }
.role-row p { color: var(--ink-soft); font-size: 0.95rem; }
.on-dark .role-row p { color: var(--soft-on-dark); }

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.step { border-top: 1px solid var(--line); padding-top: 26px; }
.step-no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--bronze);
  display: block;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 10px; font-weight: 540; }
.step p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Insights ---------- */

.article {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(36px, 5vw, 60px) 0;
  border-bottom: 1px solid var(--line);
}
.article-meta { font-size: 0.8rem; color: var(--ink-soft); display: flex; flex-direction: column; gap: 6px; }
.article-meta .cat { color: var(--bronze); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.7rem; }
.article h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.article .standfirst { font-family: var(--serif); font-style: italic; font-size: 1.08rem; color: var(--ink-soft); margin-bottom: 18px; }
.article .body p { color: var(--ink-soft); margin-bottom: 1.1em; font-size: 0.97rem; }

/* ---------- Forms ---------- */

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--bronze);
}
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- CTA band ---------- */

.cta-band { text-align: center; }
.cta-band h2 { max-width: 22ch; margin: 0 auto 20px; }
.cta-band .lede { margin: 0 auto 36px; }

/* ---------- Footer ---------- */

.footer {
  background: var(--navy-2);
  color: var(--soft-on-dark);
  padding: clamp(56px, 7vw, 88px) 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
.footer .f-logo { font-family: var(--serif); font-size: 1.3rem; color: var(--paper-on-dark); font-weight: 540; margin-bottom: 12px; }
.footer .f-tag { font-family: var(--serif); font-style: italic; font-size: 0.98rem; }
.footer h4 {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bronze-light);
  margin-bottom: 18px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--soft-on-dark); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer a:hover { color: var(--paper-on-dark); }
.footer-base {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-size: 0.78rem;
  gap: 20px; flex-wrap: wrap;
}
.footer-base .fache { letter-spacing: 0.2em; font-weight: 600; color: var(--bronze-light); }

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .class-grid { grid-template-columns: repeat(3, 1fr); }
  .class-card { min-height: 320px; }
}

@media (max-width: 860px) {
  .grid-2, .grid-2-asym { grid-template-columns: 1fr; }
  .portrait { margin: 0 auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .article { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .role-row { grid-template-columns: 1fr; gap: 10px; }
  .maxims { grid-template-columns: 1fr; }

  .nav-burger { display: block; }
  .nav-links {
    position: fixed;
    top: 78px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px clamp(22px, 5vw, 56px) 36px;
    gap: 20px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.open { background: var(--paper); border-bottom-color: var(--line); }
  .nav-cta { margin-left: 0; }
}

@media (max-width: 560px) {
  .class-grid { grid-template-columns: 1fr; }
  .class-card { min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Texture: film grain + engraved watermark ---------- */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%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");
}

section.on-dark {
  position: relative;
  overflow: hidden;
}
section.on-dark::before {
  content: "&";
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24rem, 44vw, 46rem);
  line-height: 0.8;
  position: absolute;
  right: -0.12em;
  top: -0.08em;
  color: rgba(246, 243, 237, 0.03);
  pointer-events: none;
  user-select: none;
}
section.on-dark > .wrap { position: relative; }

.hero {
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(150, 104, 42, 0.07), transparent 65%),
    radial-gradient(900px 480px at -10% 110%, rgba(18, 36, 54, 0.05), transparent 60%);
}

/* ---------- CLASS assembly animation ---------- */

.class-grid .class-letter,
.class-grid .class-word {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(5px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.class-grid.assemble .class-letter,
.class-grid.assemble .class-word {
  opacity: 1;
  transform: none;
  filter: none;
}
.class-card:nth-child(1) .class-letter { transition-delay: 0.05s; }
.class-card:nth-child(2) .class-letter { transition-delay: 0.22s; }
.class-card:nth-child(3) .class-letter { transition-delay: 0.39s; }
.class-card:nth-child(4) .class-letter { transition-delay: 0.56s; }
.class-card:nth-child(5) .class-letter { transition-delay: 0.73s; }
.class-card:nth-child(1) .class-word { transition-delay: 0.20s; }
.class-card:nth-child(2) .class-word { transition-delay: 0.37s; }
.class-card:nth-child(3) .class-word { transition-delay: 0.54s; }
.class-card:nth-child(4) .class-word { transition-delay: 0.71s; }
.class-card:nth-child(5) .class-word { transition-delay: 0.88s; }
.class-card:hover .class-letter { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  .class-grid .class-letter, .class-grid .class-word {
    opacity: 1; transform: none; filter: none; transition: none;
  }
  body::after { display: none; }
}

/* ---------- Form note ---------- */

#form-note {
  display: none;
  margin-top: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* ---------- Photographic CTA bands ---------- */

section.on-dark.cta-photo {
  background-size: cover;
  background-position: center;
}
section.on-dark.cta-photo::before {
  content: "";
  font-size: 0;
  line-height: 0;
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 26, 40, 0.9), rgba(12, 26, 40, 0.62) 55%, rgba(12, 26, 40, 0.88));
}

/* ============ TITAN PASS ============ */

/* Faster, sharper reveals (old values were catching scrollers mid-fade) */
.reveal { transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* Nav: hide on scroll down, return on scroll up */
.nav { transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.45s var(--ease); }
.nav.nav-hidden { transform: translateY(-100%); }

/* Balanced headlines */
h1, h2 { text-wrap: balance; }

/* Hero entrance choreography (load, not scroll) */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(30px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes hero-frame {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}
.hero .eyebrow { animation: hero-rise 0.7s var(--ease) 0.1s backwards; }
.hero h1 { animation: hero-rise 0.9s var(--ease) 0.25s backwards; }
.hero .lede { animation: hero-rise 0.9s var(--ease) 0.45s backwards; }
.hero .hero-actions { animation: hero-rise 0.9s var(--ease) 0.6s backwards; }
.hero .portrait { animation: hero-frame 1.1s var(--ease) 0.35s backwards; }
.hero .portrait img { animation: hero-rise 1.1s var(--ease) 0.35s backwards; }
.hero .portrait-caption { animation: hero-rise 0.8s var(--ease) 0.9s backwards; }

/* Portrait tonal treatment — pull the photo into the palette */
.portrait img { filter: saturate(0.72) contrast(1.06) sepia(0.14) brightness(1.02); }

/* Button sheen */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -80%;
  width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.16), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s var(--ease);
}
.btn:hover::before { left: 130%; }

/* Stats band */
.stats-band { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: clamp(36px, 4.5vw, 64px) clamp(18px, 2.5vw, 40px);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 420;
  line-height: 1;
  color: var(--navy);
  display: block;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.stat-num .stat-suffix { color: var(--bronze); }
.stat-label {
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bronze);
  display: block; margin-bottom: 6px;
}
.stat p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; }
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero h1, .hero .lede, .hero .hero-actions,
  .hero .portrait, .hero .portrait img, .hero .portrait-caption { animation: none; }
  .btn::before { display: none; }
}

/* ============ CINEMATIC HOME ============ */

/* Entrance curtain */
#entry {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--navy-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
#entry.done { opacity: 0; visibility: hidden; }
.entry-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding: 0 24px; }
.entry-rule {
  width: 1px; height: 56px;
  background: var(--bronze-light);
  transform-origin: top;
  animation: entry-rule 0.7s var(--ease) both;
}
.entry-mark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 440;
  font-size: clamp(1.7rem, 4.5vw, 2.9rem);
  color: var(--paper-on-dark);
  animation: hero-rise 0.8s var(--ease) 0.15s backwards;
}
.entry-sub {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--bronze-light);
  animation: hero-rise 0.8s var(--ease) 0.35s backwards;
}
@keyframes entry-rule { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Full-bleed hero */
.hero-cinema {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 78px;
  padding-bottom: 0;
  background: var(--navy-2) url("nashville-dusk.jpg") center 30% / cover no-repeat;
}
section.on-dark.hero-cinema::before,
.hero-cinema::before {
  content: "";
  font-size: 0;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 26, 40, 0.94) 0%, rgba(12, 26, 40, 0.72) 46%, rgba(12, 26, 40, 0.42) 100%),
    linear-gradient(0deg, rgba(12, 26, 40, 0.85) 0%, transparent 30%);
}
.hero-cinema .wrap { position: relative; width: 100%; }
.hero-cinema h1 {
  font-size: clamp(3rem, 7.2vw, 6rem);
  margin: 0 0 30px;
  animation: none;
}
.hero-cinema .hl { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-cinema .hl > span {
  display: block;
  transform: translateY(112%);
  animation: line-up 0.95s var(--ease) forwards;
}
.hero-cinema .hl:nth-child(1) > span { animation-delay: 0.55s; }
.hero-cinema .hl:nth-child(2) > span { animation-delay: 0.72s; }
@keyframes line-up { to { transform: translateY(0); } }
.hero-cinema .em { color: var(--bronze-light); }
.hero-cinema .eyebrow { animation: hero-rise 0.8s var(--ease) 0.45s backwards; }
.hero-cinema .lede { max-width: 54ch; animation: hero-rise 0.9s var(--ease) 1.05s backwards; }
.hero-cinema .hero-actions { animation: hero-rise 0.9s var(--ease) 1.25s backwards; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--soft-on-dark);
  text-decoration: none;
  animation: hero-rise 0.9s var(--ease) 1.6s backwards;
}
.scroll-cue span {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, transparent, var(--bronze-light));
  animation: cue-drop 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue-drop {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* Nav over the dark hero (top of home only) */
body.cinema .nav:not(.scrolled):not(.open) .nav-logo,
body.cinema .nav:not(.scrolled):not(.open) .nav-links a { color: var(--paper-on-dark); }
body.cinema .nav:not(.scrolled):not(.open) .nav-links a:hover { color: #fff; }
body.cinema .nav:not(.scrolled):not(.open) .nav-burger span { background: var(--paper-on-dark); }
body.cinema .nav:not(.scrolled):not(.open) .nav-logo small { color: var(--bronze-light); }

@media (max-width: 560px) {
  .hero-cinema { background-position: 62% 30%; }
  .hero-cinema h1 { font-size: clamp(2.5rem, 12vw, 3.4rem); }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #entry { display: none; }
  .hero-cinema .hl > span { transform: none; animation: none; }
  .hero-cinema .eyebrow, .hero-cinema .lede, .hero-cinema .hero-actions, .scroll-cue { animation: none; }
}
