/* ============================================================
   TRUNG NGUYEN LEGEND — Midnight Ceremony
   Design tokens + layout system
   Visual direction: dark ceremonial gravitas with gold luminance.
   Typography: Bodoni Moda (display) + Jost (body) — luxury serif 
   paired with geometric sans for readability.
   ============================================================ */

/* --- DESIGN TOKENS --- */
:root {
  /* Primitive palette */
  --color-ink: #0C0A09;
  --color-charcoal: #1C1917;
  --color-slate: #292524;
  --color-stone: #44403C;
  --color-ash: #78716C;
  --color-mist: #A8A29E;
  --color-cream: #F5F0EB;
  --color-ivory: #FAFAF7;
  --color-white: #FFFFFF;
  --color-gold: #C9981A;
  --color-gold-light: #E8C547;
  --color-gold-dark: #9A7209;
  --color-ruby: #8B1A1A;

  /* Semantic tokens */
  --surface-primary: var(--color-charcoal);
  --surface-secondary: var(--color-slate);
  --surface-elevated: var(--color-stone);
  --surface-light: var(--color-ivory);
  --surface-cream: var(--color-cream);

  --text-primary: var(--color-cream);
  --text-secondary: var(--color-mist);
  --text-muted: var(--color-ash);
  --text-accent: var(--color-gold);
  --text-on-light: var(--color-charcoal);
  --text-on-light-secondary: var(--color-stone);

  --accent-primary: var(--color-gold);
  --accent-hover: var(--color-gold-light);
  --accent-dark: var(--color-gold-dark);

  --border-subtle: rgba(201, 152, 26, 0.15);
  --border-medium: rgba(201, 152, 26, 0.3);
  --border-light: rgba(245, 240, 235, 0.1);

  /* Spacing (8pt grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Typography scale (1.25 ratio) */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.75rem;   /* 60px */

  /* Font families */
  --font-display: 'Bodoni Moda', 'Didot', 'Times New Roman', serif;
  --font-body: 'Jost', 'Helvetica Neue', sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.6);
  --shadow-gold: 0 0 40px rgba(201, 152, 26, 0.15);

  /* Radii */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --nav-height: 72px;
}


/* --- RESET & BASE --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--surface-primary);
}

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

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.02em;
}


/* --- TYPOGRAPHY --- */
.heading-hero {
  font-size: clamp(2.25rem, 5vw + 1rem, 4rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.heading-section {
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2.5rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.heading-card {
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-accent);
}

.label--light {
  color: var(--text-muted);
}

.body-lg {
  font-size: var(--text-lg);
  line-height: 1.8;
  max-width: 65ch;
}

.body-quote {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw + 0.5rem, 1.5rem);
  font-style: italic;
  line-height: 1.6;
  max-width: 50ch;
  color: var(--text-secondary);
}


/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding-block: var(--space-20);
}

.section--compact {
  padding-block: var(--space-12);
}

.section--light {
  background-color: var(--surface-light);
  color: var(--text-on-light);
}

.section--cream {
  background-color: var(--surface-cream);
  color: var(--text-on-light);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* --- DIVIDERS --- */
.divider {
  width: 48px;
  height: 1px;
  background: var(--accent-primary);
  border: none;
  margin-block: var(--space-8);
}

.divider--center {
  margin-inline: auto;
}

.divider--wide {
  width: 100%;
  background: var(--border-subtle);
}

.divider--light {
  background: var(--color-stone);
}


/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(28, 25, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--duration-base) var(--ease-out);
}

.nav__inner {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-transform: uppercase;
  white-space: nowrap;
}

.nav__brand span {
  color: var(--text-accent);
}

.nav__links {
  display: none;
  list-style: none;
  gap: var(--space-8);
  align-items: center;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-primary);
  transition: width var(--duration-base) var(--ease-out);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text-accent);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

/* Mobile menu button */
.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-fast);
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}
.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile menu overlay */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-height);
  background: rgba(28, 25, 23, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 49;
  padding: var(--space-12) var(--space-6);
}

.nav__mobile.open {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.nav__mobile a {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: var(--space-4);
  transition: color var(--duration-fast) var(--ease-out);
}

.nav__mobile a:hover,
.nav__mobile a.active {
  color: var(--text-accent);
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }
  .nav__toggle {
    display: none;
  }
}


/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) contrast(1.1);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--surface-primary) 0%,
    rgba(28, 25, 23, 0.6) 40%,
    transparent 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--space-16) var(--space-6) var(--space-20);
  max-width: var(--max-width);
  margin-inline: auto;
  width: 100%;
}

.hero__content .label {
  margin-bottom: var(--space-6);
}

.hero__content .heading-hero {
  margin-bottom: var(--space-6);
  max-width: 16ch;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 45ch;
  line-height: 1.7;
  margin-bottom: var(--space-10);
}


/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-sm);
  transition: all var(--duration-base) var(--ease-out);
  cursor: pointer;
  min-height: 48px;
}

.btn--primary {
  background: var(--accent-primary);
  color: var(--color-ink);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--color-ink);
  box-shadow: var(--shadow-gold);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn--outline:hover {
  border-color: var(--accent-primary);
  color: var(--text-accent);
}

.btn--ghost {
  background: transparent;
  color: var(--text-accent);
  padding-inline: 0;
}

.btn--ghost:hover {
  color: var(--accent-hover);
}

.btn--ghost svg,
.btn--primary svg,
.btn--outline svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover svg {
  transform: translateX(3px);
}

/* Button on light backgrounds */
.btn--dark {
  background: var(--color-charcoal);
  color: var(--color-cream);
}

.btn--dark:hover {
  background: var(--color-ink);
}


/* --- CARDS --- */
.card {
  background: var(--surface-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
  cursor: pointer;
}

.card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-gold);
}

.card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-ink);
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.card:hover .card__image img {
  transform: scale(1.04);
}

.card__body {
  padding: var(--space-6);
}

.card__body .label {
  margin-bottom: var(--space-3);
}

.card__body .heading-card {
  margin-bottom: var(--space-3);
}

.card__body p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}


/* --- PRODUCT CARDS --- */
.product-card {
  background: var(--surface-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
  cursor: pointer;
}

.product-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
}

.product-card__image {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: var(--surface-light);
}

.product-card__image img {
  max-height: 200px;
  object-fit: contain;
  transition: transform var(--duration-slow) var(--ease-out);
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__body {
  padding: var(--space-5);
  text-align: center;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-1);
}

.product-card__desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Product card on light section */
.section--light .product-card,
.section--cream .product-card {
  background: var(--color-white);
  border-color: rgba(0,0,0,0.08);
}

.section--light .product-card:hover,
.section--cream .product-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.section--light .product-card__name,
.section--cream .product-card__name {
  color: var(--text-on-light);
}

.section--light .product-card__desc,
.section--cream .product-card__desc {
  color: var(--text-on-light-secondary);
}


/* --- FEATURE GRID (Three Civilizations) --- */
.civ-card {
  position: relative;
  padding: var(--space-10) var(--space-6);
  background: var(--surface-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: border-color var(--duration-base) var(--ease-out);
}

.civ-card:hover {
  border-color: var(--border-medium);
}

.civ-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-6);
  color: var(--accent-primary);
}

.civ-card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  font-style: italic;
  margin-bottom: var(--space-4);
}

.civ-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 40ch;
  margin-inline: auto;
}


/* --- TIMELINE --- */
.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-subtle);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-12);
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) - 3px);
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.timeline__year {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--text-accent);
  margin-bottom: var(--space-3);
}

.timeline__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 55ch;
}

.timeline__image {
  margin-top: var(--space-5);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 480px;
}

.timeline__image img {
  width: 100%;
  height: auto;
}


/* --- QUOTE BLOCK --- */
.quote-block {
  position: relative;
  padding: var(--space-12) var(--space-8);
  text-align: center;
}

.quote-block::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 120px;
  color: var(--accent-primary);
  opacity: 0.2;
  line-height: 1;
}

.quote-block__text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw + 0.5rem, 1.75rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--text-primary);
  max-width: 45ch;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.quote-block__attr {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-muted);
  letter-spacing: 0.06em;
}


/* --- STATS ROW --- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  text-align: center;
  padding-block: var(--space-10);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat__number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 400;
  color: var(--text-accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat__label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}


/* --- FOOTER --- */
.footer {
  background: var(--color-ink);
  padding-block: var(--space-16) var(--space-8);
  border-top: 1px solid var(--border-light);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer__brand {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.footer__brand span {
  color: var(--text-accent);
}

.footer__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 35ch;
  line-height: 1.7;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: var(--space-5);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__links a:hover {
  color: var(--text-accent);
}

.footer__bottom {
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer__copy a {
  color: var(--text-muted);
}

.footer__copy a:hover {
  color: var(--text-accent);
}


/* --- SPLIT SECTION (Image + Text) --- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }

  .split--reverse {
    direction: rtl;
  }

  .split--reverse > * {
    direction: ltr;
  }
}

.split__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}


/* --- IMAGE BANNER (full-width atmospheric) --- */
.banner {
  position: relative;
  overflow: hidden;
}

.banner__image {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
}

.banner--overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--surface-primary) 0%,
    transparent 60%
  );
}


/* --- PAGE HEADER (subpages) --- */
.page-header {
  padding-top: calc(var(--nav-height) + var(--space-16));
  padding-bottom: var(--space-12);
  text-align: center;
}

.page-header .label {
  margin-bottom: var(--space-5);
}

.page-header .heading-section {
  margin-bottom: var(--space-5);
}

.page-header p {
  max-width: 50ch;
  margin-inline: auto;
  color: var(--text-secondary);
  font-size: var(--text-lg);
  line-height: 1.7;
}


/* --- PRODUCT TABS (brand lines on products page) --- */
.tabs {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-10);
  -webkit-overflow-scrolling: touch;
}

.tab {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.tab:hover {
  color: var(--text-primary);
}

.tab.active {
  color: var(--color-ink);
  background: var(--accent-primary);
}

/* Tab panels */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}


/* --- SCROLL REVEAL ANIMATIONS --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out),
                transform 0.6s var(--ease-out);
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* --- PROSE (for editorial content) --- */
.prose {
  max-width: 65ch;
}

.prose p {
  margin-bottom: var(--space-6);
  line-height: 1.8;
}

.prose h2 {
  margin-top: var(--space-12);
  margin-bottom: var(--space-5);
}

.prose h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  font-size: var(--text-xl);
}


/* --- UTILITY --- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-accent { color: var(--text-accent); }
.text-muted  { color: var(--text-muted); }
.text-light-muted { color: var(--text-on-light-secondary); }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.mx-auto { margin-inline: auto; }
.w-full { width: 100%; }

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

/* Body padding for fixed nav */
.page-body {
  padding-top: var(--nav-height);
}
