/* ─────────────────────────────────────────────────────────────────────────
   globals.css — Myci design system
   Shared by the landing page (index.html) and the app prototype (Myci.html).
   One source of truth for palette, type, texture, and motion.
   ───────────────────────────────────────────────────────────────────────── */

/* ── Brand display face ── */
@font-face {
  font-family: 'Super Mellow';
  src: url("SuperMellow.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ── 70s earth palette ── */
  --accent:    #D6AD08;  /* amber — give */
  --amber-dk:  #B27500;
  --tobacco:   #472C1C;  /* deep brown */
  --soil:      #3A2A1E;
  --soil-dk:   #2e2016;
  --soil-dkr:  #1c130b;
  --sage:      #8CA679;  /* request / growth */
  --rust:      #C26A2B;  /* barter */
  --cream:     #FEF4D6;  /* ink on dark */
  --parchment: #E8DCC8;
  --muted:     #b79a6e;  /* mono captions */
  --muted-dim: #9a8260;

  /* ── Type ── */
  --display: 'Super Mellow', 'Alfa Slab One', serif;  /* big chunky headers + MYCI wordmark */
  --slab:    'Trocchi', serif;        /* body */
  --type:    'Cutive', serif;         /* typewriter labels */
  --mono:    'Cutive Mono', monospace;/* chrome / eyebrows */

  /* ── Rhythm ── */
  --maxw: 1080px;
  --radius: 16px;
}

* { box-sizing: border-box; }

/* ── Grain / paper texture (matches the in-app <Grain/> primitive) ── */
.grain {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='160'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.9'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='saturate'%20values='0'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23n)'%20opacity='0.5'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: 0.06; mix-blend-mode: multiply;
}

/* ── Shared keyframes (used by the app screens too) ── */
@keyframes growThread   { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }
@keyframes youPulse     { 0%,100% { opacity: .45; transform: scale(1); } 50% { opacity: 1; transform: scale(1.14); } }
@keyframes toastIn      { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes slideInRight { from { transform: translateX(34px); } to { transform: none; } }
@keyframes slideInLeft  { from { transform: translateX(-34px); } to { transform: none; } }
@keyframes fadeUp       { from { transform: translateY(14px); } to { transform: none; } }
@keyframes revealUp     { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes slideUpScale { from { transform: translateY(44px) scale(.96); } to { transform: none; } }
@keyframes riseUp       { from { transform: translateY(9px); } to { transform: none; } }
@keyframes sheetUp      { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fadeIn       { from { opacity: 0; } to { opacity: 1; } }
@keyframes mycFlow      { to { stroke-dashoffset: -20; } }
@keyframes mycGrow      { 0% { stroke-dashoffset: 560; opacity: 0; } 8% { opacity: .5; } 42% { stroke-dashoffset: 0; opacity: .5; } 90% { stroke-dashoffset: 0; opacity: .5; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes nodePulse    { 0%,100% { opacity: .5; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.5); } }
@keyframes mycSpin      { to { transform: rotate(360deg); } }
.myc-spin { animation: mycSpin .8s linear infinite; }

/* ─────────────────────────────────────────────────────────────────────────
   LANDING PAGE — 70s revival palette, scoped fonts, animation system.
   Font + palette overrides live on body.landing so the app (Myci.html) keeps
   its own identity via the :root values above.
   ───────────────────────────────────────────────────────────────────────── */

html, body { margin: 0; }

body.landing {
  /* ── 70s palette ── */
  --paper:    #F6EDD8;   /* warm cream — the secondary base */
  --paper-2:  #EFE2C4;
  --ink:      #33231A;   /* deep cocoa text on cream */
  --ink-soft: #6E5A49;
  --amber:    #E3A81B;   /* give */
  --teal:     #1E8A80;   /* connect */
  --teal-dk:  #14605A;
  --green:    #7E9F56;   /* grow (avocado) */
  --orange:   #D26A3A;   /* barter / energy (terracotta) */
  --cocoa:    #2E1B11;   /* dark band */
  --cocoa-2:  #3C2517;
  --cream:    #FBF3DE;   /* light ink on dark */
  --muted:    #C9A86F;

  /* ── Type (modern body + characterful display, scoped to landing) ── */
  --display:  'Fraunces', Georgia, serif;
  --wordmark: 'Super Mellow', 'Fraunces', Georgia, serif; /* the "Myci" name only */
  --slab:     'Hanken Grotesk', system-ui, sans-serif;  /* body */
  --type:     'Hanken Grotesk', system-ui, sans-serif;  /* UI / buttons */
  --mono:     'Space Mono', ui-monospace, monospace;    /* eyebrows */

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

.landing img, .landing svg { display: block; }
.landing a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--amber); color: var(--ink); padding: 10px 16px;
  border-radius: 0 0 10px 0; font-family: var(--type); font-weight: 600;
}
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--mono); text-transform: uppercase;
  letter-spacing: .22em; font-size: 12px; font-weight: 700; color: var(--teal);
  margin: 0 0 16px;
}
.on-dark .eyebrow { color: var(--amber); }

/* ── Logo mark ── */
.logo-lockup { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-mark { width: 30px; height: 30px; flex-shrink: 0; }
.logo-word {
  font-family: var(--wordmark); font-weight: normal;
  font-size: 30px; letter-spacing: .01em; line-height: 1; color: currentColor;
}

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(46,27,17,.72); backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid #ffffff14; color: var(--cream);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 13px; padding-bottom: 13px;
}
.header-actions { display: flex; align-items: center; gap: 14px; }

/* ── Language switcher (public pages) ── */
.lang-switch { display: inline-flex; align-items: center; gap: 7px; color: var(--cream); }
.lang-globe { width: 18px; height: 18px; opacity: .8; flex-shrink: 0; }
.lang-switch select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  font-family: var(--type); font-weight: 600; font-size: 14px; line-height: 1;
  color: var(--cream); background-color: #ffffff14; border: 1px solid #ffffff2e;
  border-radius: 999px; padding: 9px 30px 9px 14px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F6EDD8' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 10px;
  transition: background-color .12s ease;
}
.lang-switch select:hover { background-color: #ffffff26; }
.lang-switch option { color: #2E1B11; }
[dir="rtl"] .lang-switch select {
  padding: 9px 14px 9px 30px; background-position: left 11px center;
}
@media (max-width: 480px) {
  .lang-switch select { padding: 8px 26px 8px 11px; font-size: 13px; }
  [dir="rtl"] .lang-switch select { padding: 8px 11px 8px 26px; }
}

/* ── Buttons (body font, vertically centred) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--type); font-weight: 600; font-size: 16px; line-height: 1;
  letter-spacing: .005em; padding: 15px 24px; border-radius: 999px; border: none;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn > i { line-height: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--amber); color: #3A2410;
  box-shadow: 0 4px 14px rgba(227,168,27,.4);
}
.btn-primary:hover { background: #efb52c; box-shadow: 0 7px 20px rgba(227,168,27,.5); }
.btn-teal { background: var(--teal); color: #FBF3DE; box-shadow: 0 4px 14px rgba(20,96,90,.4); }
.btn-teal:hover { background: #239b90; }
.btn-outline { background: transparent; color: currentColor; border: 1.5px solid currentColor; }
.btn-outline:hover { background: #ffffff14; }
.btn-sm { padding: 10px 17px; font-size: 14px; }
.btn-lg { padding: 18px 30px; font-size: 18px; }

/* ── Bands & section rhythm ── */
section.band { padding: 84px 0; position: relative; overflow: hidden; }
.band-paper  { background: var(--paper); color: var(--ink); }
.band-paper2 { background: var(--paper-2); color: var(--ink); }
.band-cocoa  { background: var(--cocoa); color: var(--cream); }
.band-teal   { background: var(--teal-dk); color: var(--cream); }
.band-green  { background: var(--green); color: #21300F; }
.band-amber  { background: linear-gradient(150deg, #EAB42B, var(--amber)); color: #3A2410; }
.on-dark { color: var(--cream); }

h2.section-title {
  font-family: var(--display); font-optical-sizing: auto; font-weight: 600;
  font-size: clamp(30px, 5vw, 46px); line-height: 1.08; margin: 0;
  letter-spacing: -.015em; text-wrap: balance; color: inherit;
}
.section-lead {
  font-family: var(--slab); font-size: 18.5px; max-width: 620px; margin: 18px 0 0;
  line-height: 1.62; color: inherit; opacity: .82;
}
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* Two-column section with an illustration */
.split-grid { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: center; }
@media (min-width: 820px) { .split-grid { grid-template-columns: 1.05fr .95fr; gap: 52px; } }
.illus { width: 100%; height: auto; display: block; }

/* Emphasised punchline — the one line that says what Myci is for */
.punch-line {
  font-family: var(--display); font-optical-sizing: auto; font-weight: 600;
  font-size: clamp(24px, 4.2vw, 38px); line-height: 1.2; letter-spacing: -.015em;
  margin: 26px 0 0; color: var(--teal-dk);
}
.punch-line .hl {
  background: linear-gradient(transparent 58%, rgba(227,168,27,.5) 58%);
  padding: 0 .08em; border-radius: 2px;
}

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden; padding: 88px 0 84px;
  background:
    radial-gradient(80% 60% at 18% 8%, rgba(30,138,128,.34) 0%, transparent 55%),
    radial-gradient(70% 60% at 92% 96%, rgba(210,106,58,.30) 0%, transparent 55%),
    radial-gradient(110% 90% at 50% 40%, #3C2517 0%, #2E1B11 60%, #20120A 100%);
  color: var(--cream);
}
.hero-net { position: absolute; inset: 0; pointer-events: none; opacity: .72; }
/* brown radial under the title for separation (same idea as the app landing) */
.hero-veil {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: min(760px, 122vw); height: 560px; pointer-events: none;
  background: radial-gradient(ellipse 46% 42% at 50% 50%,
    rgba(46,27,17,.94) 0%, rgba(46,27,17,.72) 34%, rgba(46,27,17,0) 72%);
}
.hero .wrap { position: relative; text-align: center; }
.hero .logo-lockup { justify-content: center; margin-bottom: 26px; }
.hero .logo-mark { width: 56px; height: 56px; }
.hero h1 {
  font-family: var(--wordmark); font-weight: normal;
  font-size: clamp(66px, 15vw, 140px); line-height: .92; margin: 6px 0 0;
  letter-spacing: .01em; color: var(--cream);
  text-shadow: 0 2px 30px rgba(0,0,0,.4);
}
.hero h1 .seed { color: var(--amber); }
.hero .tagline {
  font-family: var(--display); font-optical-sizing: auto; font-weight: 500;
  font-size: clamp(22px, 4.2vw, 34px); line-height: 1.18;
  margin: 22px auto 0; max-width: 640px; color: var(--cream); letter-spacing: -.01em;
}
.hero .subline {
  font-family: var(--slab); font-size: 17px; line-height: 1.55;
  margin: 16px auto 0; max-width: 480px; color: #E9D7B8;
}
.hero-cta { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero-note {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  margin-top: 20px; letter-spacing: .04em;
}

/* ── Doom / counter-proof (warm "human" cards, side by side) ── */
.counter { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 44px; align-items: stretch; }
@media (min-width: 720px) { .counter { grid-template-columns: 1fr 1fr; gap: 28px; } }
.stat-card { border-radius: 18px; padding: 30px; position: relative; overflow: hidden; border: 1px solid #ffffff14; }
.stat-doom  { background: #2a1a0e; color: var(--cream); }
.stat-proof { background: linear-gradient(160deg, #5a3a24, #3C2517); color: var(--cream); }
.stat-big {
  font-family: var(--display); font-optical-sizing: auto; font-weight: 600;
  font-size: clamp(42px, 8vw, 60px); line-height: 1; margin: 0; letter-spacing: -.02em;
}
.stat-doom .stat-big  { color: #e8b79c; }
.stat-proof .stat-big { color: var(--amber); }
.stat-label { font-family: var(--slab); font-size: 16.5px; margin: 14px 0 0; line-height: 1.5; color: #E8DCC8; opacity: .92; }
.stat-kicker { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; opacity: .85; }

/* ── Why the name "Myci" ── */
.name-word {
  font-family: var(--wordmark); font-weight: normal;
  font-size: clamp(72px, 16vw, 150px); line-height: .9; margin: 10px 0 0;
  color: var(--cream); letter-spacing: .01em;
}
.name-blend {
  display: flex; gap: 16px; align-items: baseline; justify-content: center; flex-wrap: wrap;
  font-family: var(--display); font-optical-sizing: auto; font-weight: 500;
  font-size: clamp(22px, 4.4vw, 34px); letter-spacing: -.01em;
  margin: 22px 0 0; color: #E9D7B8;
}
.name-blend b { font-weight: 700; }
.name-blend .nb-myc { color: var(--green); }
.name-blend .nb-city { color: var(--amber); }
.name-blend .nb-plus { font-family: var(--mono); color: var(--muted); font-size: .8em; }
.name-cols { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 44px; text-align: left; }
@media (min-width: 760px) { .name-cols { grid-template-columns: 1fr 1fr; gap: 26px; } }
.name-card {
  background: #ffffff0e; border: 1px solid #ffffff1c; border-radius: 20px;
  padding: 28px; border-top: 3px solid var(--green);
}
.name-card.city { border-top-color: var(--amber); }
.name-card .ico { font-size: 30px; line-height: 1; }
.name-card h3 {
  font-family: var(--display); font-weight: 600; font-size: 20px;
  margin: 14px 0 8px; letter-spacing: -.01em; color: var(--cream);
}
.name-card h3 b { font-style: normal; }
.name-card .nb-myc { color: var(--green); }
.name-card .nb-city { color: var(--amber); }
.name-card p { margin: 0; font-family: var(--slab); font-size: 15px; line-height: 1.55; opacity: .85; }
.name-foot { font-family: var(--display); font-weight: 500; font-size: clamp(19px, 3vw, 24px); margin: 40px auto 0; max-width: 560px; color: var(--cream); }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 46px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: #ffffff12; border: 1px solid #ffffff1f; border-radius: 20px;
  padding: 28px; position: relative;
}
.step-num {
  font-family: var(--display); font-weight: 600; font-size: 22px; color: #2A1A0E;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
}
.step:nth-child(1) .step-num { background: var(--amber); }
.step:nth-child(2) .step-num { background: var(--green); }
.step:nth-child(3) .step-num { background: var(--orange); color: #FBF3DE; }
.step h3 { font-family: var(--display); font-weight: 600; font-size: 21px; margin: 18px 0 8px; color: inherit; letter-spacing: -.01em; }
.step p { margin: 0; font-family: var(--slab); font-size: 15.5px; line-height: 1.55; opacity: .85; }

/* ── Flow / categories ── */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.chip {
  font-family: var(--slab); font-weight: 500; font-size: 15.5px;
  padding: 11px 19px; border-radius: 999px; background: #fff;
  border: 1.5px solid #33231a1a; color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 2px 6px rgba(51,35,26,.06); transition: transform .12s ease;
}
.chip:hover { transform: translateY(-2px); }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ── Principles ── */
.principles { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 46px; }
@media (min-width: 700px) { .principles { grid-template-columns: 1fr 1fr; } }
.principle {
  background: #ffffff0e; border: 1px solid #ffffff1c; border-radius: 20px;
  padding: 28px; position: relative;
  border-top: 3px solid var(--amber);
}
.principle:nth-child(2) { border-top-color: var(--green); }
.principle:nth-child(3) { border-top-color: var(--teal); }
.principle:nth-child(4) { border-top-color: var(--orange); }
.principle .ico { font-size: 32px; line-height: 1; }
.principle h3 { font-family: var(--display); font-weight: 600; font-size: 20px; margin: 14px 0 8px; color: inherit; letter-spacing: -.01em; }
.principle p { margin: 0; font-family: var(--slab); font-size: 15px; line-height: 1.55; opacity: .85; }
.principle .tick { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin: 14px 0 0; }

/* ── One street → every street ── */
.pattern { text-align: center; }
.pattern .grid-streets { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.pattern .tile {
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 14px 17px; border-radius: 12px; border: 1.5px dashed #21300F44; color: #21300Fcc;
}
.pattern .tile.lit { border-style: solid; border-color: #21300F; color: #21300F; background: #ffffff44; }

/* ── Final CTA ── */
.final { text-align: center; padding: 96px 0; }
.final h2 {
  font-family: var(--display); font-weight: 600; font-size: clamp(36px, 7vw, 62px);
  line-height: 1; margin: 0 0 12px; letter-spacing: -.02em; color: inherit;
}
.final p { font-family: var(--slab); font-size: 18px; margin: 0 0 30px; opacity: .82; }

/* ── Footer ── */
.site-footer { background: var(--cocoa); color: var(--cream); padding: 40px 0 52px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.site-footer .muted { font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.site-footer .links { display: flex; gap: 20px; }
.site-footer a { font-family: var(--slab); font-weight: 500; font-size: 14px; color: var(--cream); text-decoration: none; opacity: .85; }
.site-footer a:hover { color: var(--amber); opacity: 1; }

/* ── Legal pages (privacy, terms) ── */
.legal-hero { background: var(--cocoa); color: var(--cream); padding: 58px 0 46px; }
.legal-hero .eyebrow { color: var(--amber); margin-bottom: 14px; }
.legal-hero h1 {
  font-family: var(--display); font-optical-sizing: auto; font-weight: 600;
  font-size: clamp(34px, 6vw, 54px); line-height: 1.04; letter-spacing: -.02em; margin: 0;
}
.legal-hero .updated { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 16px 0 0; letter-spacing: .04em; }

.legal { background: var(--paper); padding: 56px 0 84px; }
.legal .prose { max-width: 720px; }
.legal .prose h2 {
  font-family: var(--display); font-optical-sizing: auto; font-weight: 600;
  font-size: clamp(22px, 3.4vw, 30px); line-height: 1.15; letter-spacing: -.01em;
  margin: 46px 0 12px; color: var(--ink);
}
.legal .prose h2:first-child { margin-top: 0; }
.legal .prose p,
.legal .prose li { font-family: var(--slab); font-size: 17px; line-height: 1.65; color: var(--ink); opacity: .9; }
.legal .prose p { margin: 0 0 16px; }
.legal .prose ul { margin: 0 0 16px; padding-left: 22px; }
.legal .prose li { margin: 0 0 8px; }
.legal .prose strong { font-weight: 700; color: var(--ink); opacity: 1; }
.legal .prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.legal .lead { font-size: 19px; opacity: 1; }
.legal .tldr {
  background: var(--paper-2); border-left: 4px solid var(--teal);
  border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 0 0 36px;
}
.legal .tldr p { margin: 0; font-size: 16.5px; }

/* ─────────────────────────────────────────────────────────────────────────
   ANIMATION SYSTEM (entrance + scroll-reveal)
   ───────────────────────────────────────────────────────────────────────── */
@keyframes heroIn   { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes markPop  { from { opacity: 0; transform: scale(.6) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes floaty   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes drawIn   { from { stroke-dashoffset: var(--len, 200); } to { stroke-dashoffset: 0; } }
@keyframes nodeIn   { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }

/* Hero entrance — staggered */
.hero .anim { opacity: 0; animation: heroIn .8s cubic-bezier(.22,.61,.36,1) forwards; }
.hero .logo-lockup.anim { animation: markPop .7s cubic-bezier(.34,1.56,.64,1) forwards; }
.hero .d1 { animation-delay: .05s; }
.hero .d2 { animation-delay: .18s; }
.hero .d3 { animation-delay: .30s; }
.hero .d4 { animation-delay: .42s; }
.hero .d5 { animation-delay: .54s; }
.logo-mark.floaty { animation: floaty 5s ease-in-out infinite; }

/* Hero mycelium draw-in */
.hero-net .thread { stroke-dasharray: var(--len, 200); stroke-dashoffset: var(--len, 200); animation: drawIn 2s ease forwards; }
.hero-net .node   { opacity: 0; transform-box: fill-box; transform-origin: center; animation: nodeIn .5s ease forwards; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); transition-delay: var(--d, 0s); }
.reveal-l { transform: translateX(-34px); }
.reveal-r { transform: translateX(34px); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ── Reduced-motion safety net (shared) ── */
@media (prefers-reduced-motion: reduce) {
  .myc-flow, .myc-grow { animation: none !important; }
  .myc-grow { opacity: .5 !important; stroke-dashoffset: 0 !important; }
  .hero .anim, .logo-mark.floaty { animation: none !important; opacity: 1 !important; }
  .hero-net .thread { animation: none !important; stroke-dashoffset: 0 !important; }
  .hero-net .node { animation: none !important; opacity: 1 !important; }
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
  * { scroll-behavior: auto !important; }
}
