/* ─────────────────────────────────────────
   Adductio — design tokens + base type
   Performance-first palette: dark base, lime accent
   ───────────────────────────────────────── */

:root {
  /* Light-first palette — clean off-white default, dark sections as editorial beats */
  --bg:           #F5F4EF;           /* slightly cooler off-white */
  --bg-elev:      #FFFFFF;
  --bg-inverse:   #0B0D0A;           /* deep almost-black with green undertone */
  --ink:          #14181A;           /* primary text on light bg */
  --ink-inverse:  #F2F4EE;           /* primary text on dark bg */
  --ink-muted:    #5A6168;           /* muted text on light */
  --ink-muted-inverse: #9DA59A;      /* muted text on dark */
  --line:         #DDDAD0;           /* hairline on light */
  --line-inverse: #1F2620;           /* hairline on dark */
  --accent:       #6B8A1F;           /* deep olive-lime, readable on white */
  --accent-2:     #D2641A;           /* burnt orange — secondary CTA / urgency */
  --accent-3:     #2A3F0F;           /* dark forest — depth */
  --accent-soft:  #ECF4D6;           /* pale lime tint */
  --accent-bright: #C4FF1F;          /* electric lime — only on dark bg */

  --font-display: 'Fraunces', 'Instrument Serif', Georgia, serif;
  --font-ui:      'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1400px;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  overflow-x: hidden;
}

/* Dark "editorial beat" sections — alternated with default light ones */
.section-light,
.section-dark {
  background: var(--bg-inverse);
  color: var(--ink-inverse);
  position: relative;
  z-index: 2;
  isolation: isolate;
}
.section-light .muted,
.section-dark .muted { color: var(--ink-muted-inverse); }
.section-light .hairline,
.section-dark .hairline { border-color: var(--line-inverse); }
.section-light .t-eyebrow,
.section-light .section-gutter__label,
.section-dark .t-eyebrow,
.section-dark .section-gutter__label { color: var(--ink-muted-inverse); }
.section-light a:not(.btn),
.section-dark a:not(.btn) { color: inherit; }

/* Default .muted is now light‑bg muted */
.muted { color: var(--ink-muted); }

/* ─────────────────────────────────────────
   Cinematic background — aurora + grain
   ───────────────────────────────────────── */

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora::before,
.aurora::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}
.aurora::before {
  width: 900px; height: 900px;
  left: -200px; top: -300px;
  background: radial-gradient(circle at center, rgba(107,138,31,0.22), rgba(107,138,31,0) 60%);
  animation: auroraA 22s ease-in-out infinite;
  mix-blend-mode: multiply;
  opacity: 0.9;
}
.aurora::after {
  width: 800px; height: 800px;
  right: -200px; top: 40%;
  background: radial-gradient(circle at center, rgba(210,100,26,0.18), rgba(210,100,26,0) 60%);
  animation: auroraB 26s ease-in-out infinite;
  mix-blend-mode: multiply;
  opacity: 0.9;
}
.aurora__c {
  position: absolute;
  width: 700px; height: 700px;
  left: 40%; bottom: -300px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.8;
  mix-blend-mode: multiply;
  background: radial-gradient(circle at center, rgba(196,255,31,0.18), rgba(196,255,31,0) 60%);
  animation: auroraC 28s ease-in-out infinite;
  will-change: transform;
}
@keyframes auroraA {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(180px, 120px) scale(1.2); }
}
@keyframes auroraB {
  0%, 100% { transform: translate(0,0) scale(1.1); }
  50% { transform: translate(-160px, -120px) scale(0.95); }
}
@keyframes auroraC {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-220px, -180px) scale(1.15); }
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
  animation: grainShift 1.2s steps(8) infinite;
}
@keyframes grainShift {
  0%,100% { transform: translate(0,0); }
  10% { transform: translate(-3%,-5%); }
  20% { transform: translate(-8%,4%); }
  30% { transform: translate(4%,-6%); }
  40% { transform: translate(-3%,8%); }
  50% { transform: translate(-9%,3%); }
  60% { transform: translate(6%,-4%); }
  70% { transform: translate(-5%,9%); }
  80% { transform: translate(7%,-2%); }
  90% { transform: translate(-3%,-6%); }
}

main, .nav, footer { position: relative; z-index: 2; }

body { margin: 0; }

::selection { background: var(--accent); color: var(--ink-inverse); }

a { color: inherit; text-decoration: none; }

/* Focus rings — visible, not ugly */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─────────────────────────────────────────
   Typography scale
   ───────────────────────────────────────── */

.t-display-xl {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}

.t-display-l {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}

.t-display-m {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}

.t-body-l {
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 400;
}

.t-body {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
}

.t-small {
  font-size: 0.875rem;
  line-height: 1.5;
}

.t-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.t-mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
}

.t-italic { font-style: italic; }
.t-tnum { font-variant-numeric: tabular-nums; }

/* ─────────────────────────────────────────
   Layout primitives
   ───────────────────────────────────────── */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 768px) { .container { padding-left: 2.5rem; padding-right: 2.5rem; } }
@media (min-width: 1024px) { .container { padding-left: 4rem; padding-right: 4rem; } }

.section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}
@media (min-width: 768px) { .section { padding-top: 8rem; padding-bottom: 8rem; } }
@media (min-width: 1024px) { .section { padding-top: 10rem; padding-bottom: 10rem; } }

/* Homepage hero — extra top padding to clear fixed nav (responsive) */
.hero-home { padding-top: clamp(7rem, 12vw, 11rem); }

.hairline    { border-top: 1px solid var(--line); }
.hairline-lt { border-top: 1px solid var(--line-inverse); }
.section-dark .hairline { border-top-color: var(--line-inverse); }

.muted         { color: var(--ink-muted); }
.muted-inverse { color: var(--ink-muted-inverse); }

/* Gutter-floated section number (signature motif) */
.section-gutter {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .section-gutter {
    grid-template-columns: 160px 1fr;
    gap: 3rem;
  }
}
.section-gutter__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 0.4rem;
}

/* ─────────────────────────────────────────
   Nav
   ───────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(250, 249, 246, 0.7); /* --bg @ alpha .7 */
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}
@media (max-width: 1199px) {
  .nav .container { padding-left: 2rem; padding-right: 2rem; }
  .nav__inner { gap: 1rem; }
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
  min-width: 0;
}
.nav__logo .dot { color: var(--accent); }
.nav__logo img {
  height: 48px;
  width: auto;
  display: block;
  flex-shrink: 0;
  max-width: none;
  object-fit: contain;
}
@media (min-width: 768px) { .nav__logo img { height: 56px; } }
.nav__links {
  display: none;
  gap: 1.5rem;
  font-size: 0.9rem;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}
@media (min-width: 1024px) { .nav__links { display: flex; gap: 1.1rem; } }
@media (min-width: 1200px) { .nav__links { gap: 1.4rem; } }
@media (min-width: 1400px) { .nav__links { gap: 1.9rem; } }
.nav__link {
  position: relative;
  padding: 0.25rem 0;
  font-size: 0.94rem;
  white-space: nowrap;
  color: var(--ink);
  opacity: 0.85;
  transition: opacity .2s ease;
}
.nav__link::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav__right { display: flex; align-items: center; gap: 0.75rem; flex: 0 0 auto; flex-shrink: 0; }
.nav__right .btn { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 1199px) {
  .nav__right .btn--primary { padding: 0.7rem 1rem; font-size: 0.85rem; }
}
@media (max-width: 640px) {
  /* On phones, the CTA lives in the mobile menu — keep nav minimal */
  .nav__right > .btn--primary { display: none; }
  .nav__right { gap: 0.5rem; }
}

.lang {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lang__btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 1199px) {
  .lang__btn { padding: 0.45rem 0.6rem; gap: 0.35rem; }
}
.lang__btn:hover { border-color: var(--ink-muted); }
.lang__menu {
  position: absolute;
  top: calc(100% + 6px); right: 0;
  min-width: 180px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 0.35rem;
  display: none;
}
.lang.is-open .lang__menu { display: block; }
.lang__item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 0.6rem;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}
.lang__item:hover { background: var(--accent-soft); color: var(--ink); }
.lang__item.is-active { color: var(--accent); pointer-events: none; }
.lang__item.is-active:hover { background: transparent; }
.lang__item .tag {
  font-size: 0.55rem;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  padding: 2px 5px;
}

/* ─────────────────────────────────────────
   Buttons
   ───────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem; font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .12s ease;
  will-change: transform;
}
.btn--primary {
  background: var(--accent);
  color: var(--ink-inverse);
  border-radius: 999px;
}
.btn--primary:hover { background: var(--accent-3); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  border-radius: 999px;
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-inv {
  background: transparent;
  color: var(--ink-inverse);
  border-color: var(--line-inverse);
  border-radius: 999px;
}
.btn--ghost-inv:hover { border-color: var(--ink-inverse); }
.btn--link {
  padding: 0; border: 0; background: transparent;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding-bottom: 2px;
}

/* ─────────────────────────────────────────
   Components
   ───────────────────────────────────────── */

.stat {
  display: flex; flex-direction: column; gap: 0.25rem;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.service-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line-inverse);
}
@media (min-width: 768px) {
  .service-row {
    grid-template-columns: 100px 1fr 1fr 120px;
    gap: 3rem;
    align-items: start;
  }
}
.service-row__num {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--ink-inverse);
}
.service-row__title {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.05;
}
.service-row__body { font-size: 1rem; line-height: 1.6; }

/* Hero marquee */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
}
.marquee__track {
  display: inline-flex;
  gap: 3rem;
  animation: marquee 60s linear infinite;
  white-space: nowrap;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}
.marquee__tile {
  height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 1.25rem;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--bg-elev);
}

/* Placeholder image blocks */
.ph {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  padding: 1rem;
  overflow: hidden;
}
.ph--light {
  background: #ECE8DD;
  border-color: var(--line-inverse);
  color: var(--ink-muted-inverse);
}
.ph--portrait { aspect-ratio: 3 / 4; }
.ph--wide     { aspect-ratio: 16 / 9; }
.ph--square   { aspect-ratio: 1 / 1; }
.ph__label { max-width: 80%; line-height: 1.6; }
.ph::before,
.ph::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ph::before {
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, rgba(255,255,255,0.025) 11px 12px);
}
.ph--light::before {
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, rgba(0,0,0,0.03) 11px 12px);
}

/* Blog card */
.blog-card {
  display: flex; flex-direction: column; gap: 1rem;
}
.blog-card__meta {
  display: flex; gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted);
}
.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.blog-card__lede { color: var(--ink-muted); }
.blog-card:hover .blog-card__title { color: var(--accent); }
.blog-card__title { transition: color .2s ease; }

/* FAQ */
.faq details {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  width: 22px; height: 22px;
  flex-shrink: 0;
  position: relative;
  transition: transform .25s ease;
}
.faq summary .plus::before,
.faq summary .plus::after {
  content: '';
  position: absolute; background: currentColor;
  top: 50%; left: 0; width: 100%; height: 1px;
}
.faq summary .plus::after { transform: rotate(90deg); transition: transform .25s ease; }
.faq details[open] summary .plus::after { transform: rotate(0deg); }
.faq details[open] summary .plus { transform: rotate(90deg); }
.faq__body {
  padding-top: 1rem;
  color: var(--ink-muted);
  max-width: 64ch;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translate3d(0,0,0);
}

/* Split word hero stagger */
.split-word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1);
}
.split-word.is-in { opacity: 1; transform: translate3d(0,0,0); }

/* Editorial form-card wrapper for the contact form */
.form-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  isolation: isolate;
  overflow: hidden;
}
.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 56px; height: 3px;
  background: var(--accent);
}
.form-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1rem;
}
.form-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.65rem;
  max-width: 22ch;
}
.form-card__title em { color: var(--accent); font-style: italic; }
.form-card__lede {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 48ch;
  margin: 0 0 1.5rem;
}
.form-card__form {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.form-card__form .field input,
.form-card__form .field select,
.form-card__form .field textarea { background: transparent; }
.form-card__success,
.form-card__error {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.form-card__error {
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin-top: 1rem;
  display: none;
}
.form-card__error.is-visible { display: block; }
.form-card__form button[type="submit"][disabled] {
  opacity: 0.55;
  cursor: progress;
}
/* Honeypot — visually hidden but reachable to bots */
.form-card__honey {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
}

/* Forms */
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted);
}
.field input,
.field select,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s ease;
}
.section-dark .field input,
.section-dark .field select,
.section-dark .field textarea {
  color: var(--ink-inverse);
  border-bottom-color: var(--line-inverse);
  background: transparent;
}
.section-dark .field label { color: var(--ink-muted-inverse); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 120px; }

/* Footer */
.footer {
  background: var(--bg);
  color: var(--ink);
  padding: 6rem 0 3rem;
  border-top: 1px solid var(--line);
}
.footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 16rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 5rem;
  color: var(--ink);
}
.footer__wordmark .dot { color: var(--accent); }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
  font-weight: 500;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.92rem; }
.footer__col a { opacity: 0.85; }
.footer__col a:hover { opacity: 1; color: var(--accent); }
.footer__legal {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.08em; color: var(--ink-muted);
  text-transform: uppercase;
}

/* Process timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-inverse);
  border-bottom: 1px solid var(--line-inverse);
}
.timeline__cell {
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--line-inverse);
  min-height: 200px;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.timeline__cell:last-child { border-right: 0; }
.timeline__day {
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted-inverse);
}
.timeline__step {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
}
.timeline__bar {
  margin-top: auto;
  height: 3px;
  background: var(--ink-inverse);
}
.timeline__bar--accent { background: var(--accent); }
@media (max-width: 767px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline__cell { border-right: 0; border-bottom: 1px solid var(--line-inverse); }
  .timeline__cell:last-child { border-bottom: 0; }
}

/* Role row */
.role {
  border-top: 1px solid var(--line);
}
.role:last-of-type { border-bottom: 1px solid var(--line); }
.role__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 2rem 0;
  cursor: pointer;
  align-items: center;
}
@media (min-width: 768px) {
  .role__head { grid-template-columns: 60px 2fr 1.5fr 1fr auto; }
}
.role__idx { font-family: var(--font-mono); color: var(--ink-muted); font-size: 0.8rem; }
.role__title { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.1; }
.role__meta { color: var(--ink-muted); font-size: 0.9rem; }
.role__salary { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink); }
.role__toggle {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease, border-color .2s ease;
  position: relative;
}
.role__toggle::before,
.role__toggle::after {
  content: ''; position: absolute; background: currentColor;
  width: 12px; height: 1px;
}
.role__toggle::after { transform: rotate(90deg); transition: transform .25s ease; }
.role.is-open .role__toggle::after { transform: rotate(0); }
.role__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.role.is-open .role__body { max-height: 2000px; }
.role__bodyinner {
  padding: 0 0 2.5rem;
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .role__bodyinner { grid-template-columns: repeat(3, 1fr) auto; align-items: start; } }
.role__bodyinner h5 {
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted); margin: 0 0 0.75rem; font-weight: 500;
}
.role__bodyinner ul { padding: 0; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.95rem; }
.role__bodyinner li { padding-left: 1rem; position: relative; }
.role__bodyinner li::before { content: '—'; position: absolute; left: 0; color: var(--ink-muted); }

/* Pull quote */
.pullquote {
  max-width: 900px;
  margin: 3rem auto;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  line-height: 1.2;
  font-style: italic;
  position: relative;
}
.pullquote::before, .pullquote::after {
  color: var(--accent);
  font-style: normal;
}
.pullquote::before { content: '“'; margin-right: 0.1em; }
.pullquote::after  { content: '”'; margin-left: 0.05em; }

/* Article body */
.article-body {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.7;
}
.article-body p { margin: 0 0 1.5rem; color: #D4D2CC; }
.article-body h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 3rem 0 1rem;
  color: var(--ink);
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
  color: var(--ink);
}
.article-body ul, .article-body ol { padding-left: 1.25rem; margin: 0 0 1.5rem; color: #D4D2CC; }
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { color: var(--ink); font-weight: 500; }
.article-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 2px 6px;
}

/* Mobile menu */
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: transparent; color: var(--ink);
  cursor: pointer;
}
@media (min-width: 1024px) { .menu-btn { display: none; } }
.mobile-menu {
  position: fixed; inset: 72px 0 0 0;
  background: var(--bg);
  z-index: 49;
  display: none;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.btn {
  margin-top: 1.5rem;
  display: inline-flex;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 0;
}
body.menu-open { overflow: hidden; }

/* Team grid */
.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
}
@media (min-width: 768px) { .team { grid-template-columns: repeat(4, 1fr); } }
.team__name { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; margin-top: 1rem; }
.team__role {
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 0.35rem;
}
.team__bio {
  font-size: 0.9rem; color: var(--ink-muted);
  margin-top: 0.75rem;
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.team figure:hover .team__bio { max-height: 120px; }

/* Utility */
.fullbleed { width: 100%; }
.center { text-align: center; }
.kbd {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  border: 1px solid var(--line);
  padding: 2px 6px;
  color: var(--ink-muted);
}

/* ─────────────────────────────────────────
   Advanced motion
   ───────────────────────────────────────── */

/* Cursor blob that follows pointer on dark sections */
.cursor-blob {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at center, rgba(107,138,31,0.22), rgba(107,138,31,0) 65%);
  transform: translate3d(-9999px,-9999px,0);
  transition: opacity .4s ease;
  mix-blend-mode: screen;
  filter: blur(20px);
  opacity: 0;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--accent);
  z-index: 60;
  transition: width .08s linear;
  box-shadow: 0 0 12px rgba(107,138,31,0.6);
}

/* Char-by-char hero reveal */
.char {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.6em, 0) rotateX(-40deg);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}
.char.is-in { opacity: 1 !important; transform: translate3d(0,0,0) rotateX(0) !important; }

/* Clip-reveal wrapper — masks content until in view */
.clip-reveal {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s cubic-bezier(.77,0,.18,1);
  will-change: clip-path;
}
.clip-reveal.is-in { clip-path: inset(0 0 0% 0); }

/* Text line-mask reveal */
.line-mask { overflow: hidden; display: block; }
.line-mask > span {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.line-mask.is-in > span { transform: translate3d(0,0,0); }

/* Parallax tile */
[data-parallax] { transition: transform .1s linear; will-change: transform; }

/* Hover image zoom */
.hover-zoom { overflow: hidden; }
.hover-zoom > * { transition: transform .7s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.hover-zoom:hover > * { transform: scale(1.04); }

/* Arrow link — sliding arrow */
.arrow-link {
  display: inline-flex; align-items: center; gap: .5rem;
  position: relative;
}
.arrow-link .arrow {
  display: inline-block;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.arrow-link:hover .arrow { transform: translateX(6px); }

/* Link underline wipe */
.link-wipe {
  position: relative; display: inline-block;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size .45s cubic-bezier(.2,.7,.2,1);
}
.link-wipe:hover { background-size: 100% 1px; }

/* Button shimmer */
.btn--primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn--primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
  z-index: -1;
}
.btn--primary:hover::before { transform: translateX(120%); }

/* Card tilt for work tiles */
.tilt { transform-style: preserve-3d; transition: transform .3s ease; }

/* Gradient pulse accent behind headline */
.glow-accent {
  position: relative;
  isolation: isolate;
}
.glow-accent::before {
  content: '';
  position: absolute;
  left: -10%; top: -30%;
  width: 45%; aspect-ratio: 1;
  background: radial-gradient(circle at center, rgba(107,138,31,0.32), rgba(107,138,31,0) 70%);
  filter: blur(40px);
  z-index: -1;
  animation: float 8s ease-in-out infinite;
}

/* ───── HERO TICKER ─────
   A continuous editorial ticker between headline and body. Mixes city
   names, numeric proofs, and italic accent statements with hairline dots.
   The track holds two identical groups; we translate -50% so it loops
   seamlessly. Soft fade masks at the edges. ─────────────────────────── */
.hero-ticker {
  position: relative;
  margin-top: clamp(1.5rem, 2.8vw, 2.2rem);
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.hero-ticker__track {
  display: flex;
  width: max-content;
  animation: heroTickerSlide 38s linear infinite;
}
.hero-ticker__group {
  display: flex; align-items: center; flex-shrink: 0;
  padding-right: 2.2rem;
  gap: 2.2rem;
}
@keyframes heroTickerSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.hero-ticker__item {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  letter-spacing: -0.005em;
  color: var(--ink);
  white-space: nowrap;
}
.hero-ticker__item--num {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.hero-ticker__item--num em {
  color: var(--accent);
  font-style: normal;
}
.hero-ticker__item--mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-left: -1.4rem; /* hug the number */
}
.hero-ticker__item--accent { color: var(--accent); }
.hero-ticker__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink-muted);
  flex-shrink: 0;
  opacity: 0.5;
}

/* Fluid glow traveling under the ticker — uses the section's accent */
.hero-ticker::before {
  content: '';
  position: absolute;
  top: 50%; left: 0;
  width: 280px; height: 180px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse,
    rgba(107,138,31,0.22) 0%,
    rgba(107,138,31,0.08) 40%,
    transparent 75%);
  filter: blur(8px);
  pointer-events: none;
  z-index: -1;
  animation: heroTickerGlowSweep 9s cubic-bezier(.45,.05,.55,.95) infinite;
}
@keyframes heroTickerGlowSweep {
  0%   { left: 4%;  opacity: 0; }
  12%  {            opacity: 1; }
  50%  { left: 96%; opacity: 1; }
  88%  {            opacity: 1; }
  100% { left: 4%;  opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ticker::before { animation: none; opacity: 0.5; left: 50%; }
}

/* ───── HERO STATS STRIP (legacy) ─────
   Horizontal stat row sitting between the headline and the body lede.
   Big Fraunces numbers with thin accent underline + mono labels. ──── */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 2.4rem);
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
  position: relative;
  isolation: isolate;
}
.hero-stats__cell {
  display: flex; flex-direction: column; gap: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.hero-stats__cell::after {
  content: '';
  position: absolute; left: 0; top: -1px;
  width: 38%; height: 1px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .9s cubic-bezier(.2,.8,.2,1);
}
.hero-stats.is-in .hero-stats__cell::after,
.hero-stats__cell.is-in::after { transform: scaleX(1); }
.hero-stats__cell:nth-child(1)::after { transition-delay: .1s; }
.hero-stats__cell:nth-child(2)::after { transition-delay: .2s; }
.hero-stats__cell:nth-child(3)::after { transition-delay: .3s; }
.hero-stats__cell:nth-child(4)::after { transition-delay: .4s; }

.hero-stats__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hero-stats__num em { color: var(--accent); font-style: normal; font-weight: 500; }
.hero-stats__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Fluid glow that travels along the stat strip */
.hero-stats::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 240px;
  height: 240px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    rgba(107,138,31,0.22) 0%,
    rgba(107,138,31,0.10) 35%,
    transparent 75%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
  animation: heroStatsGlowSweep 8s cubic-bezier(.45,.05,.55,.95) infinite;
}
@keyframes heroStatsGlowSweep {
  0%   { left: 6%;  opacity: 0; }
  12%  {            opacity: 1; }
  50%  { left: 94%; opacity: 1; }
  88%  {            opacity: 1; }
  100% { left: 6%;  opacity: 0; }
}

@media (max-width: 900px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-stats::before { animation: none; opacity: 0.55; left: 50%; }
  .hero-stats__cell::after { transform: scaleX(1) !important; transition: none !important; }
}

/* ───── HERO ICONS ROW (legacy) ─────
   Editorial pictogram strip below the headline. Mono stroke, accent
   dot detail, hairline separators between glyphs. ─────────────────── */
.hero-icons {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.6rem);
  margin-top: clamp(1.4rem, 2.8vw, 2rem);
  color: var(--ink);
  flex-wrap: wrap;
  position: relative;
  isolation: isolate;
}
/* Single fluid glow that travels back and forth across the entire row */
.hero-icons::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 180px;
  height: 180px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    rgba(107,138,31,0.32) 0%,
    rgba(107,138,31,0.16) 30%,
    rgba(107,138,31,0.05) 55%,
    transparent 75%);
  filter: blur(8px);
  pointer-events: none;
  z-index: -1;
  animation: heroIconsGlowSweep 7s cubic-bezier(.45,.05,.55,.95) infinite;
}
@keyframes heroIconsGlowSweep {
  0%   { left: 6%;  opacity: 0.0; }
  10%  {            opacity: 1.0; }
  50%  { left: 94%; opacity: 1.0; }
  60%  {            opacity: 1.0; }
  90%  {            opacity: 1.0; }
  100% { left: 6%;  opacity: 0.0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-icons::before { animation: none; opacity: 0.5; left: 50%; }
}
.hero-icons__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elev);
  color: var(--ink);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .25s ease, box-shadow .35s ease;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero-icons__item::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 100%, rgba(107,138,31,0.10), transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: -1;
}
.hero-icons__item:hover {
  transform: translateY(-2px);
  border-color: rgba(107,138,31,0.55);
  box-shadow: 0 6px 16px -8px rgba(107,138,31,0.35);
}
.hero-icons__item:hover::before { opacity: 1; }
.hero-icons__sep {
  width: 18px; height: 1px;
  background: var(--line);
  flex-shrink: 0;
}
.hero-icons.reveal .hero-icons__item {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1), border-color .25s ease, box-shadow .35s ease;
}
.hero-icons.reveal.is-in .hero-icons__item { opacity: 1; transform: none; }
.hero-icons.reveal.is-in .hero-icons__item:nth-child(1) { transition-delay: .05s; }
.hero-icons.reveal.is-in .hero-icons__item:nth-child(3) { transition-delay: .12s; }
.hero-icons.reveal.is-in .hero-icons__item:nth-child(5) { transition-delay: .19s; }
.hero-icons.reveal.is-in .hero-icons__item:nth-child(7) { transition-delay: .26s; }
@media (max-width: 640px) {
  .hero-icons { gap: 0.85rem; }
  .hero-icons__item { width: 48px; height: 48px; border-radius: 12px; }
  .hero-icons__sep { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-icons__item, .hero-icons__item::after {
    animation: none !important;
  }
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradShift 9s ease-in-out infinite;
}
/* When data-chars splits the line into per-char spans, the gradient on
   the parent doesn't clip to the children. Re-apply the gradient on each
   char so it renders. The shift animation still runs on the parent. */
.gradient-text .char,
.gradient-text .word {
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Text flip (rotating word w/ many bold animations) */
.flip-words {
  display: inline-block;
  vertical-align: baseline;
  position: relative;
  color: var(--accent);
  white-space: nowrap;
  perspective: 900px;
  /* Ghost reserves the natural width; animated child is absolute on top */
}
.flip-words .fw-ghost {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
  display: inline-block;
}
.flip-words > span.fw-word {
  position: absolute;
  left: 0; top: 0;
  display: inline-block;
  color: var(--accent);
  will-change: transform, opacity, filter, letter-spacing, clip-path;
  transform-origin: 50% 50%;
}

/* ─── 1. EXPLODE — scale-3 + blur + spaced letters → snap ─── */
.flip-words .anim-explode-in  { animation: fwExplodeIn 1.05s cubic-bezier(.2,.85,.25,1) forwards; }
.flip-words .anim-explode-out { animation: fwExplodeOut .55s cubic-bezier(.7,0,.85,.15) forwards; }
@keyframes fwExplodeIn {
  0%   { opacity: 0; transform: scale(3.2) rotate(-18deg); filter: blur(26px); letter-spacing: .55em; }
  55%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: scale(1) rotate(0); filter: blur(0); letter-spacing: normal; }
}
@keyframes fwExplodeOut {
  0%   { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(.15) rotate(18deg); filter: blur(18px); }
}

/* ─── 2. GLITCH — shake + skew + rgb fringes ─── */
.flip-words .anim-glitch-in  { animation: fwGlitchIn .95s steps(8, end) forwards; position: relative; }
.flip-words .anim-glitch-in::before,
.flip-words .anim-glitch-in::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.flip-words .anim-glitch-in::before { color: var(--accent-2); animation: fwGlitchA .65s steps(2, end) forwards; }
.flip-words .anim-glitch-in::after  { color: var(--accent-3); animation: fwGlitchB .65s steps(2, end) forwards; }
.flip-words .anim-glitch-out { animation: fwGlitchOut .5s ease-in forwards; }
@keyframes fwGlitchIn {
  0%   { opacity: 0; transform: translate(-30px,0) skewX(20deg); }
  10%  { opacity: 1; transform: translate(22px,3px) skewX(-15deg); }
  25%  { transform: translate(-16px,-4px) skewX(10deg); }
  40%  { transform: translate(11px,3px)  skewX(-6deg); }
  55%  { transform: translate(-6px,0)    skewX(3deg); }
  75%  { transform: translate(3px,0)     skewX(-1deg); }
  100% { opacity: 1; transform: translate(0,0) skewX(0); }
}
@keyframes fwGlitchA {
  0%, 100% { transform: translate(0,0); opacity: 0; }
  15% { transform: translate(-7px,-2px); opacity: .85; }
  35% { transform: translate(5px,3px);   opacity: .85; }
  55% { transform: translate(-3px,1px);  opacity: .85; }
  75% { transform: translate(2px,-2px);  opacity: .6; }
}
@keyframes fwGlitchB {
  0%, 100% { transform: translate(0,0); opacity: 0; }
  15% { transform: translate(6px,2px);   opacity: .85; }
  35% { transform: translate(-5px,-3px); opacity: .85; }
  55% { transform: translate(3px,1px);   opacity: .85; }
  75% { transform: translate(-2px,2px);  opacity: .6; }
}
@keyframes fwGlitchOut {
  0%   { opacity: 1; transform: translate(0,0); filter: blur(0); }
  50%  { opacity: 1; transform: translate(10px,0); filter: blur(2px); }
  100% { opacity: 0; transform: translate(-30px,0) skewX(-25deg); filter: blur(8px); }
}

/* ─── 3. STRETCH — squash & stretch wave ─── */
.flip-words .anim-stretch-in  { animation: fwStretchIn 1s cubic-bezier(.34,1.56,.64,1) forwards; transform-origin: 0% 100%; }
.flip-words .anim-stretch-out { animation: fwStretchOut .5s cubic-bezier(.7,0,.84,0) forwards; transform-origin: 100% 100%; }
@keyframes fwStretchIn {
  0%   { opacity: 0; transform: scaleX(.05) scaleY(2.2); }
  45%  { opacity: 1; transform: scaleX(1.18) scaleY(.82); }
  72%  { transform: scaleX(.93) scaleY(1.08); }
  100% { opacity: 1; transform: scaleX(1) scaleY(1); }
}
@keyframes fwStretchOut {
  0%   { opacity: 1; transform: scaleX(1) scaleY(1); }
  100% { opacity: 0; transform: scaleX(2.6) scaleY(.04); }
}

/* ─── 4. DROP — bounce in from above ─── */
.flip-words .anim-drop-in  { animation: fwDropIn 1.05s cubic-bezier(.34,1.7,.5,1) forwards; }
.flip-words .anim-drop-out { animation: fwDropOut .5s cubic-bezier(.7,0,.85,.15) forwards; }
@keyframes fwDropIn {
  0%   { opacity: 0; transform: translateY(-180%) rotate(-18deg) scale(.6); }
  55%  { opacity: 1; transform: translateY(15%) rotate(4deg) scale(1.08); }
  78%  { transform: translateY(-5%) rotate(-2deg) scale(.97); }
  100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}
@keyframes fwDropOut {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(180%) rotate(15deg) scale(.5); }
}

/* ─── 5. NEON — flicker outline → fill + glow ─── */
.flip-words .anim-neon-in  { animation: fwNeonIn 1.15s linear forwards; }
.flip-words .anim-neon-out { animation: fwNeonOut .45s ease-in forwards; }
@keyframes fwNeonIn {
  0%   { opacity: 0; color: transparent; -webkit-text-stroke: 2px var(--accent); text-shadow: none; }
  10%  { opacity: 1; }
  16%  { opacity: .15; }
  24%  { opacity: 1; }
  30%  { opacity: .35; }
  38%  { opacity: 1; color: transparent; -webkit-text-stroke: 2px var(--accent); }
  60%  { opacity: 1; color: var(--accent); -webkit-text-stroke: 0; text-shadow: 0 0 28px rgba(107,138,31,.55), 0 0 6px rgba(107,138,31,.7); }
  100% { opacity: 1; color: var(--accent); -webkit-text-stroke: 0; text-shadow: 0 0 0 rgba(107,138,31,0); }
}
@keyframes fwNeonOut {
  0%   { opacity: 1; filter: brightness(1) blur(0); }
  40%  { opacity: 1; filter: brightness(2.3) blur(0); }
  100% { opacity: 0; filter: brightness(1) blur(10px); }
}

/* ─── 6. SPIN — full 3D Y rotation ─── */
.flip-words .anim-spin-in  { animation: fwSpinIn 1s cubic-bezier(.2,.85,.2,1) forwards; }
.flip-words .anim-spin-out { animation: fwSpinOut .5s ease-in forwards; }
@keyframes fwSpinIn {
  0%   { opacity: 0; transform: rotateY(-180deg) scale(.6); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: rotateY(0) scale(1); }
}
@keyframes fwSpinOut {
  0%   { opacity: 1; transform: rotateY(0); }
  100% { opacity: 0; transform: rotateY(180deg) scale(.6); }
}

/* Oversized marquee display type */
.mega-marquee {
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.mega-marquee__track {
  display: flex;
  gap: 4rem;
  animation: megaMarquee 38s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.mega-marquee__item {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(4rem, 10vw, 8.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 50;
  display: inline-flex; align-items: center; gap: 2rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
}
.mega-marquee__item.solid { color: var(--ink); -webkit-text-stroke: 0; }
.mega-marquee__item.accent { color: var(--accent); -webkit-text-stroke: 0; }
.mega-marquee__item.em::before {
  content: '◆';
  font-size: 0.4em;
  color: var(--accent-2);
  -webkit-text-stroke: 0;
}
@keyframes megaMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Spotlight on hover (for cards) */
.spot {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.spot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(107,138,31,0.22), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 0;
  pointer-events: none;
}
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; z-index: 1; }

/* Glass card */
.glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
}

/* Accent-2 helpers */
.text-accent-2 { color: var(--accent-2); }
.text-accent-3 { color: var(--accent-3); }
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(40px, -20px) scale(1.15); }
}

/* Counter — odometer-ish */
.counter { display: inline-block; font-variant-numeric: tabular-nums; }

/* Number strike animation for stats */
.stat__num { position: relative; }
.stat__num::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--accent);
  transition: width 1.1s cubic-bezier(.2,.7,.2,1) .2s;
}
.stat.is-in .stat__num::after { width: 40%; }

/* Glowing stat number — animated glow that loops around the number */
.stat-glow {
  position: relative;
  display: inline-block;
  background: linear-gradient(
    90deg,
    var(--ink) 0%,
    var(--ink) 35%,
    var(--accent) 50%,
    var(--ink) 65%,
    var(--ink) 100%
  );
  background-size: 250% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: statGlowSweep 4s linear infinite;
  filter: drop-shadow(0 0 0 transparent);
}
.stat-glow::before {
  content: '';
  position: absolute;
  inset: -8% -4%;
  border-radius: 12px;
  background: radial-gradient(
    ellipse 40% 80% at var(--gx, 50%) 50%,
    rgba(107,138,31,0.35),
    rgba(107,138,31,0) 70%
  );
  filter: blur(18px);
  opacity: 0.85;
  z-index: -1;
  pointer-events: none;
  animation: statGlowOrbit 4s linear infinite;
}
@keyframes statGlowSweep {
  0%   { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}
@keyframes statGlowOrbit {
  0%   { --gx: -10%; }
  50%  { --gx: 110%; }
  100% { --gx: -10%; }
}
@property --gx {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 50%;
}
.section-dark .stat-glow {
  background: linear-gradient(
    90deg,
    var(--ink-inverse) 0%,
    var(--ink-inverse) 35%,
    var(--accent) 50%,
    var(--ink-inverse) 65%,
    var(--ink-inverse) 100%
  );
  background-size: 250% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  .stat-glow { animation: none; -webkit-text-fill-color: var(--ink); color: var(--ink); background: none; }
  .stat-glow::before { animation: none; opacity: 0; }
  .section-dark .stat-glow { -webkit-text-fill-color: var(--ink-inverse); color: var(--ink-inverse); }
}

/* Reveal fade-up retuned */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}

/* Stagger children */
[data-stagger] > * { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
[data-stagger].is-in > * { opacity: 1; transform: translate3d(0,0,0); }
[data-stagger].is-in > *:nth-child(1) { transition-delay: 0ms; }
[data-stagger].is-in > *:nth-child(2) { transition-delay: 80ms; }
[data-stagger].is-in > *:nth-child(3) { transition-delay: 160ms; }
[data-stagger].is-in > *:nth-child(4) { transition-delay: 240ms; }
[data-stagger].is-in > *:nth-child(5) { transition-delay: 320ms; }
[data-stagger].is-in > *:nth-child(6) { transition-delay: 400ms; }
[data-stagger].is-in > *:nth-child(7) { transition-delay: 480ms; }
[data-stagger].is-in > *:nth-child(8) { transition-delay: 560ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .split-word, .char, .clip-reveal, .line-mask > span { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .marquee__track { animation: none !important; }
  .cursor-blob { display: none !important; }
  * { transition: none !important; animation: none !important; }
}
