/* =============================================================
   Leap of Faith Labs — lofl.world
   styles.css

   Brand tokens live in :root. To reconcile with the official
   LOFL brand guidelines later, change the variables under
   "BRAND TOKENS" only — the rest of the system follows.
   ============================================================= */

/* -------------------------------------------------------------
   BRAND TOKENS  (the only block you should need to edit)
   ------------------------------------------------------------- */
:root {
  /* Surfaces & ink — soft sand + dark slate grey (LOFLOS guide) */
  --paper:      #FAF4E9;   /* soft sand — page base              */
  --paper-2:    #F1E8D7;   /* deeper sand — alternating bands    */
  --paper-3:    #EBE1CD;   /* card fill on sand                  */
  --ink:        #28332E;   /* dark slate grey-green — text       */
  --ink-2:      #6A6B54;   /* muted slate body text (lightened)  */
  --ink-3:      #7B7838;   /* captions, meta (AA on sand)        */
  --line:       rgba(40, 51, 46, 0.14);
  --line-soft:  rgba(40, 51, 46, 0.08);

  /* Signature accents (LOFLOS) — var names kept for compatibility */
  --saffron:    #C2592A;   /* Warm Ember — warm fills            */
  --saffron-dk: #9F4720;   /* ember that passes on sand text     */
  --indigo:     #1F6F5C;   /* Pine Teal — links, emphasis        */
  --teal:       #1F6F5C;   /* Pine Teal — commons / live status  */
  --olive:      #7B7838;   /* Muted Olive                        */
  --palm:       #3E8655;   /* Palm Leaf                          */

  /* LOFL logo spectrum — the rising-sun refraction (retro) */
  --c-violet:   #7B4F9E;   /* plum / purple  */
  --c-indigo:   #2C5C8A;   /* deep denim     */
  --c-blue:     #346FA6;   /* blue           */
  --c-green:    #6B9A40;   /* avocado green  */
  --c-yellow:   #E9B23E;   /* gold           */
  --c-orange:   #E07D38;   /* pumpkin orange */
  --c-red:      #BF4131;   /* brick red      */

  /* Type — Cormorant Garamond headings · Inter body · Jost (logo/labels) */
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-geo:     "Jost", "Century Gothic", "Futura", system-ui, sans-serif;
  --font-deva:    "Noto Serif Devanagari", var(--font-display);

  /* Fluid type scale */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.92rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.75vw, 1.95rem);
  --step-3:  clamp(1.8rem, 1.55rem + 1.25vw, 2.7rem);
  --step-4:  clamp(2.2rem, 1.8rem + 2vw, 3.6rem);
  --step-5:  clamp(2.7rem, 2.05rem + 3.2vw, 5rem);

  /* Space & shape */
  --space-section: clamp(3.5rem, 2rem + 6vw, 7rem);
  --radius:   14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(31,27,22,.05), 0 2px 8px rgba(31,27,22,.05);
  --shadow:    0 10px 30px -12px rgba(31,27,22,.22);
  --shadow-lg: 0 30px 60px -28px rgba(31,27,22,.35);
  --maxw: 1140px;
  --maxw-narrow: 760px;
}

/* -------------------------------------------------------------
   RESET & BASE
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ensure nav link text uses the lighter body shade for contrast */
.nav-links a, .nav-links a:visited { color: var(--ink-2); }
.nav .brand, .nav .brand:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0;
  text-wrap: balance;
}
p { text-wrap: pretty; }

a { color: var(--indigo); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--saffron-dk); }

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

::selection { background: var(--saffron); color: #fff; }

:focus-visible {
  outline: 2.5px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 4px;
}

.deva { font-family: var(--font-deva); font-weight: 500; }

/* -------------------------------------------------------------
   LAYOUT PRIMITIVES
   ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 0.5rem + 3vw, 2.5rem); }
.narrow { max-width: var(--maxw-narrow); }
.section { padding-block: var(--space-section); }
.band   { background: var(--paper-2); }
.band-ink {
  background: var(--ink);
  color: rgba(251,246,236,.78);
  --line: rgba(251,246,236,.16);
}
.band-ink h1, .band-ink h2, .band-ink h3, .band-ink h4 { color: var(--paper); }
.band-ink a { color: #fff; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; border-radius: 8px; z-index: 200;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; color: var(--paper); }

/* Eyebrow / kicker */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-geo);
  font-size: var(--step--1);
  font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--c-orange), var(--c-violet));
}
.band-ink .eyebrow { color: rgba(251,246,236,.6); }

.section-head { max-width: 64ch; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head h2 { font-size: var(--step-3); margin-top: .7rem; }
.lede { font-size: var(--step-1); color: var(--ink-2); margin-top: 1rem; }
.band-ink .lede { color: rgba(251,246,236,.82); }

/* -------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-sans);
  font-weight: 600; font-size: var(--step-0);
  line-height: 1; text-decoration: none;
  padding: .85em 1.4em; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #000; color: #fff; box-shadow: var(--shadow); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink-3); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); transform: translateY(-2px); }
.band-ink .btn-primary { background: var(--paper); color: var(--ink); }
.band-ink .btn-primary:hover { background: #fff; }
.band-ink .btn-ghost { color: var(--paper); border-color: rgba(251,246,236,.62); }
.band-ink .btn-ghost:hover { border-color: #fff; color: #fff; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; text-decoration: none; color: var(--indigo);
}
.link-arrow .arrow { transition: transform .2s ease; }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* -------------------------------------------------------------
   HEADER / NAV
   ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 12px 30px -26px rgba(40,51,46,.6); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--font-geo); font-weight: 500; font-size: 1.16rem; letter-spacing: .26em; text-transform: uppercase; line-height: 1; }
.brand-name small { display: block; font-family: var(--font-geo); font-weight: 500; font-size: .54rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; padding: 0; }
.nav-links a {
  position: relative;
  text-decoration: none; color: var(--ink-2);
  font-family: var(--font-geo); font-weight: 500; font-size: var(--step--1); letter-spacing: .02em;
  padding: .5rem .3rem; transition: color .18s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: .3rem; right: .3rem; bottom: -.08rem; height: 2px;
  background: var(--teal); border-radius: 2px;
  transform: scaleX(0); transform-origin: center; transition: transform .28s cubic-bezier(.34,1.56,.64,1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { margin-left: .7rem; }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--ink-3);
  border-radius: 10px; width: 44px; height: 44px; cursor: pointer;
  align-items: center; justify-content: center; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .x { display: none; }
.nav-toggle[aria-expanded="true"] .menu { display: none; }
.nav-toggle[aria-expanded="true"] .x { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: .25rem clamp(1.1rem, 0.5rem + 3vw, 2.5rem) 1.25rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .2s ease;
    max-height: 80vh; overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links li { border-top: 1px solid var(--line-soft); }
  .nav-links li:first-child, .nav-links li.nav-cta { border-top: none; }
  .nav-links a { display: block; padding: 1.05rem .25rem; font-size: 1.1rem; letter-spacing: .04em; }
  .nav-links a::after { display: none; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
  .nav-cta { margin: 1rem 0 .25rem; }
  .nav-cta a { justify-content: center; padding-block: .95rem; }
}
@media (max-width: 430px) {
  .brand-name { font-size: 1.05rem; letter-spacing: .2em; }
  .brand-name small { display: none; }
}

/* -------------------------------------------------------------
   HERO
   ------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(3.5rem, 2rem + 7vw, 7.5rem) clamp(5rem, 3rem + 6vw, 8.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.hero h1 { font-size: var(--step-5); font-weight: 600; }
.hero .lede { font-size: var(--step-2); max-width: 30ch; }
.hero-sub { margin-top: 1.3rem; max-width: 46ch; color: var(--ink-2); }
.hero-tag {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .4rem .9rem .4rem .5rem; margin-bottom: 1.4rem;
  background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius-pill);
  font-size: var(--step--1); font-weight: 540; color: var(--ink-2);
}
.hero-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 20%, transparent); }

.hero-visual { display: grid; place-items: center; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 360px; margin-inline: auto; }
}

/* Cinematic video hero */
.hero-video { position: relative; padding: 0; overflow: hidden; min-height: clamp(540px, 82vh, 780px); display: flex; align-items: center; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18,21,18,.88) 0%, rgba(18,21,18,.66) 36%, rgba(18,21,18,.2) 72%, rgba(18,21,18,.04) 100%),
    linear-gradient(0deg, rgba(18,21,18,.55) 0%, rgba(18,21,18,0) 42%);
}
.hero-inner { position: relative; z-index: 2; max-width: 780px; padding-block: clamp(4rem, 8vw, 7rem); }
.hero-video .hero-tag { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.34); color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.hero-video .hero-tag .dot { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.22); }
.hero-dream { font-size: var(--step-5); font-weight: 600; color: #fff; text-shadow: 0 2px 26px rgba(0,0,0,.45); max-width: 16ch; }
.hero-video .hero-sub { color: rgba(255,255,255,.95); text-shadow: 0 1px 14px rgba(0,0,0,.55); max-width: 54ch; }
.hero-video .hero-sub strong { color: #fff; }
.hero-video .btn-primary { background: var(--paper); color: var(--ink); }
.hero-video .btn-primary:hover { background: #fff; color: #000; }
.hero-video .btn-ghost { color: #fff; border-color: rgba(255,255,255,.72); }
.hero-video .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.12); }
@media (max-width: 640px) {
  .hero-scrim { background: linear-gradient(0deg, rgba(18,21,18,.9) 0%, rgba(18,21,18,.55) 50%, rgba(18,21,18,.4) 100%); }
}

/* Animated LOFL logo — featured on the dark band */
.rule-logo { display: flex; justify-content: center; margin-bottom: clamp(1.4rem, 1rem + 2vw, 2.3rem); }
.rule-logo svg { width: clamp(170px, 22vw, 230px); height: auto; }

/* Gradient word */
.spectrum-text { color: var(--ink); }  /* fallback if background-clip:text unsupported */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .spectrum-text {
    background: linear-gradient(96deg, var(--c-red), var(--c-orange), var(--c-yellow), var(--c-green), var(--c-blue), var(--c-violet));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
}

/* -------------------------------------------------------------
   GRID HELPERS
   ------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, .5rem + 1.5vw, 1.6rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------
   CARDS
   ------------------------------------------------------------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 1rem + 1vw, 1.9rem);
  display: flex; flex-direction: column; gap: .6rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.band .card, .band-ink .card { background: var(--paper); }
.band-ink .card { background: #2E3A34; border-color: rgba(251,246,236,.12); color: rgba(251,246,236,.8); }
.band-ink .card h3 { color: var(--paper); }
.card h3 { font-size: var(--step-1); }
.card p { font-size: var(--step-0); color: var(--ink-2); }
.band-ink .card p { color: rgba(251,246,236,.72); }
.card-link { text-decoration: none; color: inherit; }
.card-link:hover { color: inherit; }
.card-link:hover.card, .card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--ink) 22%, transparent); }
.card .meta { font-size: var(--step--1); color: var(--ink-3); font-weight: 600; letter-spacing: .04em; }
.card .top-rule { height: 4px; width: 48px; border-radius: 4px; background: var(--saffron); margin-bottom: .4rem; }

/* Unit cards (LIU/SIU/CIU/GIU) with spectrum accent */
.unit { position: relative; overflow: hidden; }
.unit .glyph {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: #fff; margin-bottom: .5rem;
}
.unit .tag { font-size: var(--step--1); font-weight: 700; letter-spacing: .08em; }
.unit[data-c="learn"]   { --uc: var(--c-blue);   --uc-ink: #346FA6; --uc-on: #fff; }
.unit[data-c="skill"]   { --uc: var(--c-orange); --uc-ink: #A75D29; --uc-on: #1B1B19; }
.unit[data-c="culture"] { --uc: var(--c-violet); --uc-ink: #7B4F9E; --uc-on: #fff; }
.unit[data-c="green"]   { --uc: var(--c-green);  --uc-ink: #50732F; --uc-on: #1B1B19; }
.unit .glyph { background: var(--uc); color: #fff; }
.unit .glyph svg { width: 25px; height: 25px; display: block; }
.unit .tag { color: var(--uc-ink, var(--uc)); }
.unit::after { content:""; position:absolute; inset: 0 0 auto 0; height: 4px; background: var(--uc); opacity:.9; }
.band-ink .unit .glyph { box-shadow: 0 6px 18px -6px var(--uc); }

/* -------------------------------------------------------------
   THE SPINE (six-stage flow)
   ------------------------------------------------------------- */
.spine { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; counter-reset: stage; }
.spine .stage {
  position: relative; padding: 1.1rem 1rem 1.2rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
}
.band-ink .spine .stage { background: #2E3A34; border-color: rgba(251,246,236,.12); }
.spine .stage .n {
  font-family: var(--font-display); font-size: .85rem; font-weight: 600;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; margin-bottom: .6rem;
}
.spine .stage:nth-child(1) .n { background: var(--c-red); }
.spine .stage:nth-child(2) .n { background: var(--c-orange); color:#1B1B19; }
.spine .stage:nth-child(3) .n { background: var(--c-yellow); color:#1B1B19; }
.spine .stage:nth-child(4) .n { background: var(--c-green); color:#1B1B19; }
.spine .stage:nth-child(5) .n { background: var(--c-blue); }
.spine .stage:nth-child(6) .n { background: var(--c-violet); }
.spine .stage h4 { font-size: 1.02rem; margin-bottom: .25rem; }
.spine .stage p { font-size: var(--step--1); color: var(--ink-3); line-height: 1.5; }
.band-ink .spine .stage p { color: rgba(251,246,236,.62); }
.spine .stage .arrow-link { position: absolute; right: -10px; top: 50%; transform: translateY(-50%); z-index: 2; color: var(--ink-3); }
@media (max-width: 980px) { .spine { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .spine { grid-template-columns: 1fr 1fr; } }

/* -------------------------------------------------------------
   FEATURE / SPLIT
   ------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 820px) { .split, .split.flip > :first-child { grid-template-columns: 1fr; order: 0; } }

/* List with custom markers */
.ticks { list-style: none; padding: 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 11px; height: 11px;
  border-radius: 3px; background: var(--saffron);
  transform: translateY(-2px) rotate(45deg);
}
.ticks.spectrum li:nth-child(7n+1)::before { background: var(--c-red); }
.ticks.spectrum li:nth-child(7n+2)::before { background: var(--c-orange); }
.ticks.spectrum li:nth-child(7n+3)::before { background: var(--c-yellow); }
.ticks.spectrum li:nth-child(7n+4)::before { background: var(--c-green); }
.ticks.spectrum li:nth-child(7n+5)::before { background: var(--c-blue); }
.ticks.spectrum li:nth-child(7n+6)::before { background: var(--c-indigo); }
.ticks.spectrum li:nth-child(7n+7)::before { background: var(--c-violet); }

/* -------------------------------------------------------------
   PULL QUOTE  (Sita Tai gate)
   ------------------------------------------------------------- */
.pullquote {
  position: relative;
  padding: clamp(2.4rem, 1.6rem + 3vw, 3.6rem);
  border-radius: var(--radius-lg);
  background: var(--paper-3);
  border: 1px solid var(--line);
}
.band-ink .pullquote { background: #2E3A34; border-color: rgba(251,246,236,.12); }
.pullquote .mark { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--saffron); display: block; margin-bottom: .5rem; }
.pullquote blockquote { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.5; color: var(--ink); margin: 0; padding: 0; }
.band-ink .pullquote blockquote { color: var(--paper); }
.pullquote cite { display: block; margin-top: 1.1rem; font-style: normal; font-size: var(--step--1); color: var(--ink-3); font-weight: 600; letter-spacing: .04em; line-height: 1.55; }

/* -------------------------------------------------------------
   STAT / MARQUEE ROW
   ------------------------------------------------------------- */
.statset { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
@media (max-width:600px){ .statset{ grid-template-columns:1fr; } }
.stat .num { font-family: var(--font-display); font-size: var(--step-3); color: var(--ink); line-height: 1; }
.band-ink .stat .num { color: var(--paper); }
.stat .lbl { font-size: var(--step--1); color: var(--ink-3); margin-top: .35rem; }

/* Pill row */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { font-size: var(--step--1); font-weight: 600; padding: .4rem .85rem; border-radius: var(--radius-pill); background: var(--paper-3); border: 1px solid var(--line); color: var(--ink-2); }
.band-ink .pill { background: #2E3A34; border-color: rgba(251,246,236,.14); color: rgba(251,246,236,.78); }

/* Definition rows (levels, ledgers) */
.deflist { display: grid; gap: 0; border-top: 1px solid var(--line); }
.deflist .row { display: grid; grid-template-columns: 130px 1fr; gap: 1.5rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.deflist .row dt { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); color: var(--ink); }
.deflist .row dd { margin: 0; color: var(--ink-2); }
.deflist .row .key { font-size:var(--step--1); font-weight:700; letter-spacing:.08em; color: var(--ink-3); display:block; }
@media (max-width: 620px){ .deflist .row { grid-template-columns: 1fr; gap:.3rem; } }

/* Program block */
.program { display: grid; grid-template-columns: 200px 1fr; gap: clamp(1.2rem,1rem+2vw,3rem); padding-block: clamp(2rem,1.5rem+3vw,3.5rem); border-top: 1px solid var(--line); align-items: start; }
.program:first-of-type { border-top: none; }
.program .aside .eyebrow { margin-bottom: .6rem; }
.program h3 { font-size: var(--step-3); }
.program .deva-name { font-size: var(--step-2); color: var(--ink); font-family: var(--font-deva); }
@media (max-width: 760px){ .program { grid-template-columns: 1fr; } }

/* Status chip */
.chip { display:inline-flex; align-items:center; gap:.45rem; font-size: var(--step--1); font-weight:600; padding:.3rem .7rem; border-radius: var(--radius-pill); }
.chip.live { background: color-mix(in srgb, var(--teal) 16%, var(--paper)); color: var(--teal); }
.chip.pilot { background: color-mix(in srgb, var(--saffron) 18%, var(--paper)); color: var(--saffron-dk); }
.chip.soon { background: var(--paper-3); color: var(--ink-3); }
.chip .dot { width:7px;height:7px;border-radius:50%; background: currentColor; }

/* -------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(251,246,236,.66); padding-block: clamp(3rem,2rem+3vw,4.5rem) 2rem; }
.site-footer a { color: rgba(251,246,236,.82); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(251,246,236,.14); }
.footer-brand .brand-name { color: var(--paper); }
.footer-brand p { margin-top: 1rem; max-width: 34ch; color: rgba(251,246,236,.6); font-size: var(--step--1); }
.site-footer .brand-name small { color: rgba(244,236,220,.6); }
.footer-col h4 { color: var(--paper); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .14em; font-family: var(--font-sans); font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .6rem; font-size: var(--step--1); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 1.8rem; font-size: var(--step--1); color: rgba(251,246,236,.5); }
.footer-spectrum { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--c-red), var(--c-orange), var(--c-yellow), var(--c-green), var(--c-blue), var(--c-violet)); margin-bottom: 2.5rem; }
@media (max-width: 820px){ .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand{ grid-column: 1 / -1; } }
@media (max-width: 520px){ .footer-top { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------
   REVEAL ANIMATION  (progressive — visible without JS)
   ------------------------------------------------------------- */
.reveal { opacity: 1; }
html.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .55s cubic-bezier(.2,.85,.25,1); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal.d1 { transition-delay: .06s; }
html.js .reveal.d2 { transition-delay: .12s; }
html.js .reveal.d3 { transition-delay: .18s; }

/* Hero entrance — snappy, on load (no JS needed) */
@keyframes lofl-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lofl-fade-in { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }
.hero-inner > * { animation: lofl-fade-up .45s both cubic-bezier(.2,.9,.25,1); }
.hero-inner > *:nth-child(2) { animation-delay: .06s; }
.hero-inner > *:nth-child(3) { animation-delay: .12s; }
.hero-inner > *:nth-child(4) { animation-delay: .18s; }
.hero-visual { animation: lofl-fade-in .55s .05s both ease-out; }

/* Logo — float + punchy spectrum snap-in + hover fan */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.prism-anim { animation: floaty 7s ease-in-out infinite; transform-origin: center; }
@keyframes lofl-ray-in { 0% { transform: scaleY(0); opacity: 0; } 70% { opacity: 1; } 100% { transform: scaleY(1); opacity: 1; } }
.lofl-rays { transform-box: view-box; transform-origin: 60px 71px; }
.hero-visual:hover .lofl-rays { transform: scale(1.05); transition: transform .4s cubic-bezier(.2,.85,.25,1); }
.brand .mark { transition: transform .3s cubic-bezier(.2,.85,.25,1); }
.brand:hover .mark { transform: rotate(-3deg) scale(1.06); }

/* (electric lightning removed — calm version) */

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .prism-anim, .lofl-rays, .hero-visual, .hero-inner > * { animation: none !important; }
  .hero-inner > *, .hero-visual { opacity: 1; transform: none; }
  .hero-visual:hover .lofl-rays, .brand:hover .mark { transform: none; }
  .lofl-bolts { display: none; }
}

/* -------------------------------------------------------------
   FORM
   ------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; max-width: 660px; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: var(--step--1); color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem .95rem; width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--indigo); outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--indigo) 18%, transparent);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* Pathway card with number */
.pathway { position: relative; }
.pathway .num {
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  color: #fff; margin-bottom: .3rem; background: var(--ink);
}
.pathway[data-c="1"] .num { background: var(--c-orange); }
.pathway[data-c="2"] .num { background: var(--c-blue); }
.pathway[data-c="3"] .num { background: var(--c-green); }

/* Utility */
.mt-0{margin-top:0}.mt-1{margin-top:.6rem}.mt-2{margin-top:1.2rem}.mt-3{margin-top:2rem}
.center{ text-align:center } .center .section-head{ margin-inline:auto }
.measure{ max-width: 60ch; }
.hr { height:1px; background: var(--line); border:0; margin-block: var(--space-section) 0; }
