/* ============================================================
   Daniel Jackson — Editorial style sheet
   Light editorial magazine aesthetic.
   ============================================================ */

:root {
  --bg: #f4f1ea;
  --bg-alt: #ece8de;
  --bg-paper: #faf7f1;
  --bg-ink: #141414;
  --ink: #141414;
  --ink-2: #2a2725;
  --ink-mute: #5a554f;
  --ink-soft: #948f87;
  --rule: rgba(20, 20, 20, 0.16);
  --rule-soft: rgba(20, 20, 20, 0.08);
  --accent: #b8472a;
  --accent-warm: #d96a3f;

  --serif: "Fraunces", "Iowan Old Style", "Georgia", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  --nav-h: 56px;
  --container: 1180px;
  --container-narrow: 760px;
  --gutter: clamp(20px, 4vw, 44px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.45s;
  animation-timing-function: var(--ease);
}
::view-transition-old(root) { animation-name: vt-out; }
::view-transition-new(root) { animation-name: vt-in; }

@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(10px); } }

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; padding: 0; }

::selection { background: var(--accent); color: #faf7f1; }

/* Page-load fade-in (Firefox / older browsers without view-transitions) */
@media (prefers-reduced-motion: no-preference) {
  body { animation: page-in 0.55s var(--ease-out) both; }
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ===== NAV ===== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(244, 241, 234, 0.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-inner {
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.nav-brand {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-self: center;
}
.nav-links a {
  position: relative;
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  justify-self: end;
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-cta::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(184, 71, 42, 0.45);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(184, 71, 42, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(184, 71, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 71, 42, 0); }
}

.nav-toggle {
  display: none;
  width: 32px; height: 32px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 780px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; justify-self: end; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(244, 241, 234, 0.97);
    backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--rule-soft);
    padding: 14px var(--gutter) 22px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { font-size: 13px; }
}

/* ===== LAYOUT ===== */

.section {
  position: relative;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
}
.section--tight { padding-top: clamp(40px, 6vw, 70px); padding-bottom: clamp(60px, 9vw, 110px); }
.section--paper { background: var(--bg-paper); }
.section--alt { background: var(--bg-alt); }
.section--ink { background: var(--bg-ink); color: #ecebe8; }
.section--ink .muted { color: #948f87; }

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

/* 12-col grid */
.grid12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.col-1  { grid-column: span 1; }
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-12 { grid-column: span 12; }
.start-2 { grid-column-start: 2; }
.start-3 { grid-column-start: 3; }
.start-4 { grid-column-start: 4; }
.start-5 { grid-column-start: 5; }

@media (max-width: 900px) {
  .grid12 { gap: 18px; }
  .col-2, .col-3, .col-4, .col-5 { grid-column: span 12; }
  .col-6 { grid-column: span 12; }
  .col-7, .col-8, .col-9, .col-10 { grid-column: span 12; }
  .start-2, .start-3, .start-4, .start-5 { grid-column-start: 1; }
}

/* ===== TYPOGRAPHY ===== */

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}
.eyebrow--center { justify-content: center; }
.section--ink .eyebrow { color: var(--ink-soft); }

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 124px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.display em { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 50; }

.h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  font-variation-settings: "opsz" 144;
}
.h1 em { font-style: italic; }

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  font-variation-settings: "opsz" 96;
}
.h2 em { font-style: italic; }

.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin: 0 0 10px;
}

.lede {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.4;
  color: var(--ink-2);
  margin: 0;
  font-variation-settings: "opsz" 24, "SOFT" 50;
}

.prose p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 18px;
}
.prose p:last-child { margin-bottom: 0; }

/* Drop cap */
.drop-cap::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 5.4em;
  line-height: 0.84;
  padding: 6px 12px 0 0;
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 0;
  color: var(--ink);
}

.muted { color: var(--ink-mute); }
.italic { font-style: italic; }
.serif { font-family: var(--serif); }
.mono  { font-family: var(--mono); }

/* Pull quote */
.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0;
  position: relative;
  font-variation-settings: "opsz" 96, "SOFT" 60;
}
.pullquote::before {
  content: "“";
  position: absolute;
  font-size: 2.6em;
  line-height: 1;
  top: -0.2em;
  left: -0.6em;
  color: var(--accent);
  font-style: normal;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.pullquote-cite {
  display: block;
  margin-top: 24px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
}
.pullquote-cite::before { content: "— "; }

/* Chapter numeral in margin */
.chapter-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(80px, 13vw, 180px);
  line-height: 0.85;
  color: var(--accent);
  letter-spacing: -0.04em;
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  user-select: none;
}
.chapter-label {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  display: block;
  margin-top: 14px;
}

/* Hairlines */
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule-thick { height: 2px; background: var(--ink); border: 0; margin: 0; }
.section--ink .rule { background: rgba(255,255,255,0.18); }

/* ===== LINKS / BUTTONS ===== */

.btn-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.btn-row.center { justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border-radius: 999px;
  transition: transform 0.35s var(--ease-out), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg-paper);
}
.btn-primary:hover { background: var(--accent); }

.btn-outline {
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--bg-paper); }

.section--ink .btn-primary { background: var(--bg-paper); color: var(--ink); }
.section--ink .btn-primary:hover { background: var(--accent); color: var(--bg-paper); }
.section--ink .btn-outline { border-color: var(--bg-paper); color: var(--bg-paper); }
.section--ink .btn-outline:hover { background: var(--bg-paper); color: var(--ink); }

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink);
  padding: 4px 0;
  position: relative;
}
.btn-arrow .arrow {
  display: inline-block;
  width: 28px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.35s var(--ease-out);
}
.btn-arrow .arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  transform-origin: right center;
}
.btn-arrow:hover .arrow { width: 42px; }

/* ===== HERO ===== */

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: clamp(60px, 10vw, 120px) var(--gutter) clamp(80px, 10vw, 120px);
  overflow: hidden;
}
.hero-inner { max-width: var(--container); margin: 0 auto; width: 100%; }
.hero .display { margin: 0 0 28px; }
.hero .display em { color: var(--accent); }
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 70px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.hero-meta .label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  display: block;
  margin-bottom: 6px;
}
.hero-meta .val {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
}

#hero-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.95;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

/* ===== MARQUEE ===== */

.marquee {
  display: flex;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 60px;
  flex-shrink: 0;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.marquee-track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.marquee-track span::after {
  content: "✦";
  font-style: normal;
  color: var(--accent);
  font-size: 0.6em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ===== CARDS / FEATURE TILES ===== */

.feature {
  display: block;
  padding: 38px 36px;
  background: var(--bg-paper);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  transition: transform 0.4s var(--ease-out), border-color 0.3s var(--ease),
    background 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
}
.feature-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 28px;
}
.feature h3 {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.018em;
  font-weight: 400;
  margin: 0 0 14px;
}
.feature p { color: var(--ink-mute); margin: 0 0 22px; font-size: 16px; line-height: 1.55; }
.feature .btn-arrow { font-size: 11px; }

/* ===== EDITORIAL CREDIT LIST ===== */

.credits {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.credits li {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 18px 24px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding 0.3s var(--ease-out);
}
.credits li:hover { padding-left: 8px; }
.credits .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.14em;
}
.credits .work {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.012em;
  color: var(--ink);
  line-height: 1.2;
}
.credits .work em { font-style: italic; color: var(--accent); }
.credits .role {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  text-align: right;
}
.section--ink .credits, .section--ink .credits li { border-color: rgba(255,255,255,0.12); }
.section--ink .credits .work { color: #ecebe8; }
.section--ink .credits .num,
.section--ink .credits .role { color: var(--ink-soft); }

@media (max-width: 720px) {
  .credits li { grid-template-columns: 36px 1fr; }
  .credits .role { grid-column: 2 / -1; text-align: left; }
}

/* ===== STATS ===== */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.stat {
  border-top: 1px solid var(--rule);
  padding: 24px 0 0;
}
.stat-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(50px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 10px;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.stat-num span { color: var(--accent); font-style: italic; }
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  max-width: 220px;
  line-height: 1.5;
}
.section--ink .stat { border-color: rgba(255,255,255,0.16); }
.section--ink .stat-num { color: #ecebe8; }
.section--ink .stat-label { color: var(--ink-soft); }

/* ===== TWO-COLUMN PROSE ===== */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== SKILLS GRID ===== */

.skill-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 36px 28px;
}
.skill-cols h4 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}
.skill-cols ul { list-style: none; margin: 0; padding: 0; }
.skill-cols li {
  font-family: var(--serif);
  font-size: 18px;
  padding: 6px 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ===== CONTACT CARDS ===== */

.contact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.contact-cell {
  padding: 48px 32px;
  border-right: 1px solid var(--rule);
}
.contact-cell:last-child { border-right: 0; }
.contact-cell .label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  display: block;
  margin-bottom: 14px;
}
.contact-cell .val {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.2;
  transition: color 0.25s var(--ease);
}
a.contact-cell:hover .val { color: var(--accent); }

@media (max-width: 780px) {
  .contact-row { grid-template-columns: 1fr; }
  .contact-cell { border-right: 0; border-bottom: 1px solid var(--rule); padding: 32px 0; }
  .contact-cell:last-child { border-bottom: 0; }
}

/* ===== FOOTER ===== */

.footer {
  padding: 72px var(--gutter) 36px;
  background: var(--bg-ink);
  color: #cfcdc8;
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  letter-spacing: -0.015em;
  color: #f4f1ea;
}
.footer-brand-sub {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 16px;
  color: var(--ink-soft);
  max-width: 320px;
  line-height: 1.6;
}
.footer h5 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: 6px 0; }
.footer li a {
  font-family: var(--serif);
  font-size: 18px;
  color: #ecebe8;
  transition: color 0.2s var(--ease);
}
.footer li a:hover { color: var(--accent-warm); }
.footer-base {
  max-width: var(--container);
  margin: 36px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ===== REVEAL ===== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.28s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.36s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.44s; }

/* Char-by-char headline reveal */
.split-line { display: inline-block; overflow: hidden; vertical-align: baseline; }
.split-word {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1s var(--ease-out);
}
.split-line.in .split-word { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .reveal-stagger > *, .split-word { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
