/* ==========================================================================
   Currency Basket — currency-basket.com
   Design system: dark enterprise minimal · gold accent · serif display
   ========================================================================== */

/* Fonts (self-hosted, latin subset, variable weight 400–700) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-normal-400-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/playfair-display-normal-400-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/playfair-display-italic-400-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tokens */
:root {
  --bg: #0a0a0c;
  --bg-2: #101014;
  --ink: #f4f2ed;
  --ink-dim: #a8a6a0;
  --gold: #c9a45c;
  --gold-bright: #e3c98f;
  --line: rgba(244, 242, 237, 0.09);
  --line-strong: rgba(244, 242, 237, 0.18);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1160px;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* z-index scale */
  --z-header: 30;
  --z-nav: 40;
  --z-skip: 50;
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 500; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

::selection { background: rgba(201, 164, 92, 0.28); }

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

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: var(--z-skip);
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}
.skip-link:focus { top: 1rem; }

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 12, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}
.brand svg { flex: none; transition: transform 0.9s var(--ease-out); }
/* the mark has 3-fold symmetry, so 120° maps it onto itself */
.brand:hover svg { transform: rotate(120deg); }
.brand-name {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--ink); }
/* Underline wipes in from the left, exits to the right */
.site-nav a:not(.nav-cta) {
  position: relative;
  padding-bottom: 0.2rem;
}
.site-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.site-nav a:not(.nav-cta):hover::after,
.site-nav a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}
.site-nav a.nav-cta {
  color: var(--gold);
  border: 1px solid rgba(201, 164, 92, 0.45);
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.site-nav a.nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.nav-toggle:hover { border-color: var(--gold); }
.nav-toggle .icon-close { display: none; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: var(--z-nav);
    display: none;
    background: rgba(10, 10, 12, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 6.5rem var(--pad) 2rem;
  }
  body.nav-open .site-nav { display: block; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle { position: relative; z-index: var(--z-skip); }
  body.nav-open .nav-toggle .icon-menu { display: none; }
  body.nav-open .nav-toggle .icon-close { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
  }
  .site-nav a { font-size: 1.375rem; color: var(--ink); }
  .site-nav a.nav-cta { font-size: 1rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 0 5rem;
  overflow: hidden;
  isolation: isolate;
}

/* Ambient glow + fine grid, GPU-friendly (transform/opacity only) */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  width: 90rem;
  height: 90rem;
  margin-left: -45rem;
  background: radial-gradient(circle at center, rgba(201, 164, 92, 0.13) 0%, rgba(201, 164, 92, 0.04) 34%, transparent 62%);
  will-change: transform;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 42%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 60% at 50% 42%, black 30%, transparent 75%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  width: 2.5rem;
  height: 1px;
  background: rgba(201, 164, 92, 0.5);
}
@media (max-width: 480px) {
  .hero-eyebrow {
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    gap: 0.6rem;
  }
  .hero-eyebrow::before, .hero-eyebrow::after { width: 1rem; }
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.9rem, 9vw, 6.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-bright);
}
/* each headline line sits in an overflow mask and slides up on load */
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; }

.hero-sub {
  max-width: 44rem;
  margin-inline: auto;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink-dim);
  margin-bottom: 2.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink-dim);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}
.hero-scroll:hover { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.8rem 1.9rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}
.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--gold);
  color: #141005;
  border: 1px solid var(--gold);
}
.btn-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  box-shadow: 0 0 32px rgba(201, 164, 92, 0.25);
}
/* sheen sweep — transition only on hover so it never plays in reverse */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 36%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: translateX(-160%) skewX(-18deg);
  pointer-events: none;
}
.btn-primary:hover::after {
  transform: translateX(340%) skewX(-18deg);
  transition: transform 0.75s ease;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding-block: clamp(5rem, 11vw, 8.5rem);
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 46rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: rgba(201, 164, 92, 0.5);
}
.kicker-center { justify-content: center; }
.kicker-center::after {
  content: '';
  width: 2rem;
  height: 1px;
  background: rgba(201, 164, 92, 0.5);
}
/* kicker rules draw in as the section reveals */
html.js .kicker.reveal::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-out) 0.25s;
}
html.js .kicker.reveal.in-view::before { transform: scaleX(1); }
html.js .kicker-center.reveal::after {
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.7s var(--ease-out) 0.25s;
}
html.js .kicker-center.reveal.in-view::after { transform: scaleX(1); }
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  letter-spacing: -0.01em;
}
.section-lede { color: var(--ink-dim); font-size: 1.125rem; }

/* Statement */
.statement { text-align: center; }
.statement blockquote {
  margin: 0 auto;
  max-width: 52rem;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  line-height: 1.3;
  font-weight: 500;
}
.statement blockquote em {
  color: var(--gold-bright);
  position: relative;
}
/* underline draws beneath the accent word once the quote is revealed */
.statement blockquote em::after {
  content: '';
  position: absolute;
  left: 0.04em;
  right: 0.04em;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease-out) 0.7s;
}
html.js .statement .reveal.in-view em::after { transform: scaleX(1); }
.statement p {
  max-width: 40rem;
  margin: 2rem auto 0;
  color: var(--ink-dim);
}

/* Ventures */
.ventures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .ventures-grid { grid-template-columns: 1fr; } }

.venture-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2.5rem 2.25rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.25s ease, transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}
.venture-card:hover {
  border-color: rgba(201, 164, 92, 0.45);
  transform: translateY(-5px);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.7);
}
/* gold hairline blooms outward from the centre of the card's top edge */
.venture-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 1.75rem;
  right: 1.75rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 164, 92, 0.8), transparent);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease-out);
}
.venture-card:hover::before { transform: scaleX(1); }
.venture-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.venture-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 164, 92, 0.35);
  border-radius: 10px;
  color: var(--gold);
  transition: border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.venture-card:hover .venture-icon,
.contact-card:hover .venture-icon {
  border-color: var(--gold);
  color: var(--gold-bright);
  box-shadow: 0 0 20px rgba(201, 164, 92, 0.18);
}
.venture-card h3 {
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.venture-card p { color: var(--ink-dim); font-size: 0.9875rem; }

/* Approach */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 4rem;
}
@media (max-width: 760px) { .approach-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.principle {
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-strong);
}
.principle h3 {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  font-size: 1.1875rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.principle h3 span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gold);
}
.principle p { color: var(--ink-dim); font-size: 0.9875rem; }

/* Contact band */
.contact-band { text-align: center; }
.contact-band .section-title { margin-bottom: 1.25rem; }
.contact-band p {
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  color: var(--ink-dim);
}
.contact-email {
  font-size: 0.9375rem;
  color: var(--ink-dim);
  margin-top: 1.5rem;
}
.contact-email a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 164, 92, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-email a:hover { color: var(--gold-bright); border-color: var(--gold-bright); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.875rem;
  color: var(--ink-dim);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-tagline { margin-top: 0.9rem; max-width: 22rem; }
.footer-nav { display: flex; gap: 4rem; flex-wrap: wrap; }
.footer-nav h2 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
}
.footer-nav ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.footer-nav a { color: var(--ink-dim); text-decoration: none; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--gold-bright); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
}
.footer-bottom a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-bottom a:hover { color: var(--gold-bright); }

/* ==========================================================================
   Inner pages (contact / legal)
   ========================================================================== */
.page-hero {
  padding: 10rem 0 4rem;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.01em;
  margin-top: 1rem;
}
.page-hero .page-meta { margin-top: 1.25rem; color: var(--ink-dim); font-size: 0.9375rem; }

.prose {
  max-width: 70ch;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.prose h2 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.75rem 0 0.9rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.1rem; color: #cfcdc7; }
.prose ul { margin: 0 0 1.1rem; padding-left: 1.4rem; color: #cfcdc7; }
.prose li { margin-bottom: 0.45rem; }
.prose a { color: var(--gold); text-decoration-color: rgba(201, 164, 92, 0.4); }
.prose a:hover { color: var(--gold-bright); }
.prose strong { color: var(--ink); }

/* Contact page cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.25rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.25s ease, transform 0.35s var(--ease-out);
}
.contact-card:hover {
  border-color: rgba(201, 164, 92, 0.45);
  transform: translateY(-3px);
}
.contact-card h2 { font-size: 1.1875rem; font-weight: 600; }
.contact-card p { color: var(--ink-dim); font-size: 0.9875rem; }
.contact-card .card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}
.contact-card .card-link:hover { color: var(--gold-bright); }

/* 404 */
.error-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.error-page .code {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(5rem, 18vw, 10rem);
  line-height: 1;
  color: var(--gold);
}
.error-page h1 { font-family: var(--serif); font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 1rem 0 0.75rem; }
.error-page p { color: var(--ink-dim); margin-bottom: 2.25rem; }

/* ==========================================================================
   Motion — every effect is opacity/transform only and honours reduced motion
   ========================================================================== */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease-out, transform 0.8s var(--ease-out);
}
html.js .reveal.in-view { opacity: 1; transform: none; }
html.js .reveal.d1 { transition-delay: 0.1s; }
html.js .reveal.d2 { transition-delay: 0.2s; }
html.js .reveal.d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: no-preference) {
  .hero .rise {
    opacity: 0;
    transform: translateY(28px);
    animation: rise 1s var(--ease-out) forwards;
  }
  .hero .rise.r2 { animation-delay: 0.12s; }
  .hero .rise.r3 { animation-delay: 0.5s; }
  .hero .rise.r4 { animation-delay: 0.68s; }

  /* headline lines slide up out of their overflow masks */
  .hero h1 .line > span {
    transform: translateY(115%);
    animation: line-up 1.15s var(--ease-out) forwards;
    animation-delay: 0.15s;
  }
  .hero h1 .line:nth-child(2) > span { animation-delay: 0.32s; }

  .hero-bg::before { animation: drift 26s ease-in-out infinite alternate; }

  .hero-scroll { animation: fade 1.4s ease-out 1.3s backwards; }
  .hero-scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 2.25rem;
    margin: 0.7rem auto 0;
    background: linear-gradient(180deg, var(--gold), transparent);
    animation: scroll-hint 2.4s ease-in-out infinite;
  }

  /* inner pages (contact / legal) get the same staged entrance */
  .page-hero .kicker,
  .page-hero h1,
  .page-hero .page-meta {
    opacity: 0;
    transform: translateY(22px);
    animation: rise 0.9s var(--ease-out) forwards;
  }
  .page-hero h1 { animation-delay: 0.12s; }
  .page-hero .page-meta { animation-delay: 0.24s; }

  /* hero content drifts up and fades as it scrolls out (scroll-driven, progressive) */
  @supports (animation-timeline: view()) {
    .hero > .container {
      animation: hero-exit linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 85%;
    }
  }
}

/* mobile menu items cascade in */
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  body.nav-open .site-nav li {
    opacity: 0;
    transform: translateY(16px);
    animation: rise 0.55s var(--ease-out) forwards;
  }
  body.nav-open .site-nav li:nth-child(2) { animation-delay: 0.08s; }
  body.nav-open .site-nav li:nth-child(3) { animation-delay: 0.16s; }
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}
@keyframes line-up {
  to { transform: none; }
}
@keyframes drift {
  from { transform: translate3d(-6%, 0, 0) scale(1); }
  to   { transform: translate3d(6%, 4%, 0) scale(1.12); }
}
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scroll-hint {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes hero-exit {
  to { opacity: 0; transform: translateY(-52px) scale(0.985); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
