/* ════════════════════════════════════════════════════════════════
   SKLINK® — Swiss Editorial Design System
   Reference: Genzway.in structure
   Fonts: Instrument Serif · Geist · Geist Mono
   ════════════════════════════════════════════════════════════════ */

:root {
  --cream:      #EFE9DC;
  --cream-2:    #E4DECE;
  --cream-3:    #D8D1BF;
  --ink:        #080807;
  --ink-2:      #161513;
  --ink-soft:   #2A2723;
  --muted:      #6B6258;
  --muted-2:    #8C8276;
  --line:       #CCC3AE;

  /* SKLINK brand accents */
  --orange:     #F47217;   /* primary brand accent */
  --orange-2:   #D95E08;   /* deeper orange */
  --rose:       #F0416A;   /* secondary accent */
  --rose-soft:  #F4698A;
  --lime:       #C8E847;   /* highlight / selection */
  --lime-deep:  #A9CC2A;
  --header-h: 80px;
}

/* ════════════════════════════════════════
   RESET
════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* Selection — brand orange instead of lime */
::selection { background: var(--orange); color: var(--cream); }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Geist', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
  min-height: 100vh;
}

/* ── Grain overlay ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  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.85' numOctaves='3'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.4'/></svg>");
  opacity: .12;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: multiply;
}

/* ════════════════════════════════════════
   SCROLL PROGRESS
════════════════════════════════════════ */
.scroll-prog {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--orange), var(--rose));
  z-index: 10003;
  transition: width .1s linear;
  box-shadow: 0 0 8px rgba(244, 114, 23, .5);
}

/* ════════════════════════════════════════
   SECTION INDICATOR
════════════════════════════════════════ */
.section-indicator {
  position: fixed; bottom: 28px; right: 28px;
  z-index: 150;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px;
  border-radius: 100px;
  background: rgba(8, 8, 7, 0.82);
  backdrop-filter: blur(12px);
  color: var(--cream);
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase;
  opacity: 0; transform: translateY(20px);
  transition: opacity .4s, transform .4s;
}
.section-indicator.show { opacity: 1; transform: translateY(0); }
.si-dot { width: 6px; height: 6px; background: var(--orange); border-radius: 50%; animation: blink 2s infinite; }
.si-num { color: var(--orange); font-family: 'Instrument Serif', serif; font-size: 14px; font-style: italic; letter-spacing: -.5px; }
@media(max-width: 600px) { .section-indicator { display: none; } }

/* ════════════════════════════════════════
   LOADER
════════════════════════════════════════ */
.loader {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 10002;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0;
  transition: transform 1.2s cubic-bezier(.85, 0, .15, 1) .3s;
}
.loader.done { transform: translateY(-101%); }

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

/* Big centered logo on dark loader screen */
.loader-logo {
  width: clamp(240px, 36vw, 480px);
  height: auto;
  object-fit: contain;
  display: block;
  animation: logoIntro .9s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes logoIntro {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.loader-counter {
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.loader-counter .pct {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(48px, 8vw, 80px);
  font-style: italic;
  letter-spacing: -0.03em;
  color: var(--orange);
  line-height: 1;
}
.loader-counter .pct-sym {
  font-family: 'Geist Mono', monospace;
  font-size: clamp(14px, 2.2vw, 22px);
  color: var(--muted);
  letter-spacing: 0.08em;
}

.loader-bar {
  position: absolute; bottom: 0; left: 0;
  height: 2px; background: var(--orange);
  width: 0; transition: width .1s linear;
}

/* ════════════════════════════════════════
   CUSTOM CURSOR
════════════════════════════════════════ */
.cursor {
  position: fixed;
  width: 30px; height: 30px;
  left: 0; top: 0;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  will-change: transform;
  transition: width .28s cubic-bezier(.34, 1.56, .64, 1),
              height .28s cubic-bezier(.34, 1.56, .64, 1),
              background .2s;
}
.cursor.hover { width: 90px; height: 90px; background: var(--orange); mix-blend-mode: normal; }
.cursor.hot   { background: var(--rose); }

.cursor-label {
  position: fixed;
  left: 0; top: 0;
  pointer-events: none;
  z-index: 10001;
  will-change: transform;
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink);
  background: var(--orange);
  padding: 6px 12px; border-radius: 100px;
  opacity: 0; transition: opacity .25s, background .25s;
  white-space: nowrap;
}
.cursor-label.show { opacity: 1; }
.cursor-label.hot  { background: var(--rose); color: var(--cream); }

@media(hover: none), (max-width: 900px) {
  body { cursor: auto; }
  .cursor, .cursor-label { display: none; }
}

/* ════════════════════════════════════════
   NAV
════════════════════════════════════════ */
nav.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 18px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  background: rgba(239, 233, 220, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, padding .4s, background .4s;
}
nav.top.scrolled {
  border-color: var(--line);
  padding: 12px 32px;
  background: rgba(239, 233, 220, .92);
}

/* Brand logo anchor wrapper */
.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

/* Brand logo image — light variant (black CAPULAR) for cream nav */
.nav-logo {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  transition: opacity .25s ease;
}
.logo:hover .nav-logo { opacity: 0.72; }

/* No longer needed — real logo image used */
.logo-mark, .logo-text, .logo-text .top-row, .logo-text .tag, .logo-text .reg { display: none !important; }

/* Center nav links */
nav ul { display: flex; gap: 4px; list-style: none; font-size: 13.5px; font-weight: 500; justify-self: center; }
nav ul li a {
  padding: 8px 16px; border-radius: 100px;
  transition: background .25s, color .25s;
  display: flex; align-items: center; gap: 6px;
}
nav ul li a:hover { background: var(--ink); color: var(--cream); }
nav ul li a .num { font-family: 'Geist Mono', monospace; font-size: 9.5px; color: var(--muted); transition: color .25s; }
nav ul li a:hover .num { color: var(--orange); }

/* Right */
.nav-right { display: flex; align-items: center; gap: 14px; justify-self: end; }

.nav-time {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: 1px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
  text-transform: uppercase;
}
.nav-time .blink { width: 6px; height: 6px; background: var(--rose); border-radius: 50%; animation: blink 1.5s infinite; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .2; } }

.nav-cta {
  background: var(--ink); color: var(--cream);
  padding: 11px 8px 11px 20px; border-radius: 100px;
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  transition: background .3s;
}
.nav-cta:hover { background: var(--orange); }
.nav-cta .pill {
  background: var(--orange); color: var(--ink);
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
  transition: background .3s, transform .3s;
}
.nav-cta:hover .pill { background: var(--cream); color: var(--orange); transform: rotate(-45deg); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; align-items: flex-end;
  gap: 5px; width: 36px; height: 36px;
  border: none; background: transparent; cursor: pointer;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; transform-origin: right center; transition: all .26s cubic-bezier(.16, 1, .3, 1); }
.nav-toggle span:nth-child(1) { width: 20px; }
.nav-toggle span:nth-child(2) { width: 14px; }
.nav-toggle span:nth-child(3) { width: 20px; }
.nav-toggle.is-open span:nth-child(1) { width: 20px; transform: translateY(6.5px) rotate(-45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.is-open span:nth-child(3) { width: 20px; transform: translateY(-6.5px) rotate(45deg); }

@media(max-width: 1024px) {
  nav.top { grid-template-columns: auto 1fr auto; }
  nav ul { display: none; }
}
@media(max-width: 600px) {
  :root {
    --header-h: 58px;
  }

  nav.top { padding: 14px 18px; }
  nav.top.scrolled { padding: 10px 18px; }
  .nav-logo {
    height: 34px;
    max-width: 150px;
  }
  .nav-time { display: none; }
  .logo-text .tag { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed; inset: 60px 0 0;
  flex-direction: column; gap: 0;
  padding: 16px;
  background: rgba(239, 233, 220, .98);
  backdrop-filter: blur(20px);
  z-index: 199;
  border-top: 1px solid var(--line);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  border-radius: 10px;
}
.mobile-nav a:hover { background: var(--cream-2); }

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  /* Exactly one screen — no scroll needed to see all content */
  height: 100svh;
  padding: calc(var(--header-h) + 20px) 32px 0;
  display: flex; flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* ── Line grid background ── */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(12, 11, 9, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 11, 9, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  /* Fade out toward the edges so the grid doesn't feel harsh */
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 40%, transparent 100%);
}

/* Dot accents at every 4th grid intersection */
.hero-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(244, 114, 23, 0.22) 1.5px, transparent 1.5px);
  background-size: 192px 192px;
  background-position: 96px 96px;
}

/* ── Interactive grid highlight that follows the cursor ── */
.hero-grid-active {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 114, 23, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 114, 23, 0.16) 1px, transparent 1px);
  background-size: 48px 48px;
  will-change: mask-image, -webkit-mask-image;
  /* Mask position is initialized to off-screen, JS will update it dynamically */
  mask-image: radial-gradient(circle 220px at -9999px -9999px, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle 220px at -9999px -9999px, black 0%, transparent 100%);
}

.hero-grid-active::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--rose) 2px, transparent 2px);
  background-size: 192px 192px;
  background-position: 96px 96px;
}

/* ── Snapping grid target indicator ── */
.hero-grid-target {
  position: absolute;
  width: 24px; height: 24px;
  color: var(--orange);
  pointer-events: none;
  z-index: 1;
  transform: translate3d(-9999px, -9999px, 0);
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}
/* Only display target on desktop hover */
.hero:hover .hero-grid-target {
  opacity: 0.65;
}
.hero-grid-target svg {
  width: 100%; height: 100%;
  display: block;
}

/* ── Ghost "SK" watermark ── */
.hero-ghost-sk {
  position: absolute;
  right: -0.06em;
  bottom: -0.08em;
  font-family: 'Instrument Serif', serif;
  font-size: clamp(160px, 28vw, 420px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(12, 11, 9, 0.04);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ── Decorative right-side editorial panel ── */
.hero-deco-panel {
  position: absolute;
  right: clamp(28px, 3.5vw, 52px);
  top: 50%;
  transform: translateY(-46%);
  width: clamp(180px, 22vw, 280px);
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  background: rgba(244, 241, 232, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  animation: heroFadeUp .8s cubic-bezier(.16, 1, .3, 1) 2.1s forwards;
  box-shadow: 0 8px 40px rgba(12, 11, 9, 0.08), 0 0 0 1px rgba(244, 114, 23, 0.08);
}

/* Panel header */
.hdp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.hdp-label {
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
}
.hdp-version {
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  color: var(--orange);
  letter-spacing: 0.5px;
}

/* Portal rows */
.hdp-portals {
  padding: 8px 0;
}
.hdp-row {
  display: grid;
  grid-template-columns: 28px 1fr auto 14px;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(204, 195, 174, 0.5);
  transition: background 200ms ease;
}
.hdp-row:last-child { border-bottom: none; }
.hdp-row:hover { background: rgba(244, 114, 23, 0.06); }

.hdp-num {
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.5px;
}
.hdp-bar {
  height: 1px;
  background: var(--line);
  display: block;
}
.hdp-name {
  font-family: 'Geist', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.hdp-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}
.hdp-dot.active {
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(244, 114, 23, 0.2);
  animation: blink 2.2s infinite;
}
/* Stagger the blink timings per row */
.hdp-row:nth-child(2) .hdp-dot { animation-delay: 0.55s; }
.hdp-row:nth-child(3) .hdp-dot { animation-delay: 1.1s; }
.hdp-row:nth-child(4) .hdp-dot { animation-delay: 1.65s; }

/* Panel footer */
.hdp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: rgba(12, 11, 9, 0.03);
}
.hdp-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.hdp-stat-num {
  font-family: 'Instrument Serif', serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--orange);
}
.hdp-stat-label {
  font-family: 'Geist Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}
.hdp-coord {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  color: var(--muted-2);
  letter-spacing: 0.5px;
}

/* Hide on small screens where it would overlap the headline */
@media(max-width: 900px) {
  .hero-deco-panel { display: none; }
  .hero-ghost-sk { font-size: clamp(100px, 40vw, 220px); opacity: 0.6; }
}
@media(max-width: 600px) {
  .hero-ghost-sk { display: none; }
  .hero-grid { background-size: 32px 32px; }
}


/* Mouse-following aurora glow */
.hero-mouse-glow {
  position: absolute;
  width: 720px; height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(244, 114, 23, 0.22) 0%,
    rgba(240, 65, 106, 0.10) 40%,
    transparent 70%
  );
  filter: blur(72px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  /* GPU positioning via translate3d, initial values off-screen or top right */
  left: 0; top: 0;
  transform: translate3d(-9999px, -9999px, 0);
}

/* Static ambient glow (always visible, no interaction needed) */
.hero-glow {
  position: absolute;
  width: 900px; height: 900px;
  top: -300px; right: -200px;
  background: radial-gradient(circle, rgba(244, 114, 23, 0.10) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  animation: float 12s ease-in-out infinite;
  will-change: transform;
  z-index: 0;
}
.hero-glow.secondary {
  background: radial-gradient(circle, rgba(240, 65, 106, 0.08) 0%, transparent 60%);
  top: auto; bottom: -200px; left: -200px; right: auto;
  width: 700px; height: 700px;
  animation: float 15s ease-in-out infinite reverse;
}
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-60px, 40px) scale(1.1); } }

.hero-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--muted);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  margin-bottom: 0;
  gap: 32px;
  flex-shrink: 0;
}
.hero-eyebrow > span { display: flex; align-items: center; gap: 8px; }
.live-dot { width: 6px; height: 6px; background: var(--rose); border-radius: 50%; animation: blink 1.5s infinite; }
.hero-eyebrow .index {
  justify-self: end;
  font-family: 'Instrument Serif', serif;
  font-size: 18px; font-style: italic;
  color: var(--ink); letter-spacing: -.5px;
}

/* Hero headline — scales to fill the available vertical space */
.hero-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(44px, 9.6vw, 148px);
  line-height: .90;
  letter-spacing: -.045em;
  font-weight: 400;
  position: relative; z-index: 2;
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
}

/* Staggered line-by-line reveal animation */
.hero-headline .row {
  display: block;
  overflow: hidden;
  opacity: 0;
  transform: translateY(60px);
  animation: rowReveal .9s cubic-bezier(.16, 1, .3, 1) forwards;
}
.hero-headline .row:nth-child(1) { animation-delay: 1.5s; }
.hero-headline .row:nth-child(2) { animation-delay: 1.72s; }
.hero-headline .row:nth-child(3) { animation-delay: 1.94s; }

@keyframes rowReveal {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-headline em { font-style: italic; }

.hero-headline .accent-block {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--orange);
  padding: 0 20px 8px;
  transform: skew(-4deg);
  margin: 0 6px;
  font-style: normal;
  color: var(--cream);
}
.hero-headline .accent-block > span { display: inline-block; transform: skew(4deg); }

.hero-headline .sup {
  font-family: 'Geist Mono', monospace;
  font-size: .13em; letter-spacing: 1.5px;
  vertical-align: super;
  color: var(--muted);
  text-transform: uppercase;
  margin-left: 8px;
}

.mobile-hero-console {
  display: none;
}

/* Hero bottom */
/* Hero bottom — compact single row */
.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-shrink: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  position: relative; z-index: 2;
  opacity: 0;
  animation: heroFadeUp .8s cubic-bezier(.16, 1, .3, 1) 2.2s forwards;
}

.hero-bottom-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hero-bottom-label {
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
}

.hero-bottom-tags {
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-bottom-tags .sep {
  color: var(--line);
  font-size: 12px;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-bottom .col p { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); max-width: 380px; }
.hero-bottom .col .label {
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.hero-bottom .col .label .arr { width: 10px; height: 1px; background: var(--muted); display: inline-block; }
.hero-bottom .col.cta-col { display: flex; justify-content: flex-end; align-items: flex-end; }

.hero-cta-big {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--ink); color: var(--cream);
  padding: 6px 6px 6px 32px; border-radius: 100px;
  font-size: 15px; font-weight: 500;
  transition: background .3s;
}
.hero-cta-big:hover { background: var(--orange); }
.hero-cta-big .arrow-circ {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--orange); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: transform .35s, background .3s, color .3s;
}
.hero-cta-big:hover .arrow-circ { background: var(--cream); color: var(--orange); transform: rotate(-45deg); }

.scroll-hint {
  position: absolute; bottom: 20px; left: 32px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px; letter-spacing: 1.5px; color: var(--muted);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.line-anim { width: 30px; height: 1px; background: var(--muted); position: relative; overflow: hidden; }
.line-anim::after {
  content: ''; position: absolute; left: -30px; top: 0;
  width: 15px; height: 1px; background: var(--ink);
  animation: scrollLine 2.2s infinite cubic-bezier(.5, 0, .5, 1);
}
@keyframes scrollLine { 0% { left: -30px; } 100% { left: 30px; } }

@media(max-width: 1100px) {
  .hero-eyebrow { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-eyebrow .index { grid-column: 2; justify-self: end; }
}
@media(max-width: 900px) {
  .hero { padding: calc(var(--header-h) + 14px) 20px 20px; }
  .hero-headline { font-size: clamp(36px, 11vw, 120px); line-height: .90; }
  .hero-bottom { grid-template-columns: 1fr; gap: 20px; }
  .hero-bottom .col.cta-col { justify-content: flex-start; align-items: flex-start; }
  .hero-eyebrow { grid-template-columns: 1fr; gap: 8px; }
  .scroll-hint { display: none; }
}
@media(max-width: 600px) {
  .hero {
    height: 100dvh;
    min-height: auto;
    padding: calc(var(--header-h) + 12px) 16px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
  }
  .hero-glow {
    width: 520px;
    height: 520px;
    top: -160px;
    right: -260px;
  }
  .hero-glow.secondary {
    width: 430px;
    height: 430px;
    bottom: 32px;
    left: -260px;
  }
  .hero-grid,
  .hero-grid-active {
    background-size: 28px 28px;
  }
  .hero-grid::after,
  .hero-grid-active::after {
    background-size: 112px 112px;
    background-position: 56px 56px;
  }
  .hero-headline {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: clamp(78px, 13svh, 116px);
    font-size: clamp(38px, 12.4vw, 58px);
    line-height: .88;
    max-width: none;
  }
  .hero-headline .accent-block {
    padding: 0 12px 5px;
    margin: 0 4px;
  }
  .hero-headline .sup {
    font-size: .12em;
    margin-left: 5px;
    letter-spacing: .8px;
  }
  .hero-eyebrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    margin-bottom: 0;
    gap: 12px;
  }
  .hero-eyebrow > span:nth-child(2),
  .hero-eyebrow > span:nth-child(3) {
    display: none;
  }

  .mobile-hero-console {
    display: grid;
    gap: 12px;
    position: relative;
    z-index: 3;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(204, 195, 174, .8);
    border-radius: 18px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, .42), rgba(239, 233, 220, .18)),
      rgba(239, 233, 220, .44);
    box-shadow: 0 18px 54px rgba(8, 8, 7, .08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .mhc-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--orange);
    font-family: 'Geist Mono', monospace;
    font-size: 9px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
  }

  .mhc-kicker::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rose);
    box-shadow: 0 0 0 4px rgba(240, 65, 106, .14);
  }

  .mhc-copy {
    margin: 0;
    max-width: 28ch;
    color: var(--ink-2);
    font-size: 13px;
    line-height: 1.42;
  }

  .mhc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(204, 195, 174, .9);
    border-radius: 14px;
    background: rgba(204, 195, 174, .8);
  }

  .mhc-grid span {
    display: grid;
    gap: 2px;
    min-height: 58px;
    padding: 9px 8px;
    background: rgba(239, 233, 220, .72);
    color: var(--muted);
    font-family: 'Geist Mono', monospace;
    font-size: 8px;
    line-height: 1.15;
    letter-spacing: .8px;
    text-transform: uppercase;
  }

  .mhc-grid strong {
    color: var(--ink);
    font-family: 'Instrument Serif', serif;
    font-size: 26px;
    font-weight: 400;
    line-height: .9;
    letter-spacing: -.04em;
  }

  .mhc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .mhc-chips span {
    padding: 6px 9px;
    border: 1px solid rgba(8, 8, 7, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .28);
    color: var(--ink-soft);
    font-family: 'Geist Mono', monospace;
    font-size: 8.5px;
    letter-spacing: .7px;
    text-transform: uppercase;
  }
}

/* ════════════════════════════════════════
   MARQUEE (standalone, after-hero version)
════════════════════════════════════════ */
.marquee {
  background: var(--ink); color: var(--cream);
  padding: 28px 0; overflow: hidden; position: relative;
}
.marquee::before, .marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.marquee::after  { right: 0; background: linear-gradient(-90deg, var(--ink), transparent); }

.marquee-track {
  display: flex; gap: 60px;
  animation: marqueeScroll 48s linear infinite;
  white-space: nowrap;
  font-family: 'Instrument Serif', serif;
  font-size: 54px; line-height: 1; letter-spacing: -.02em;
}
.marquee-track > div { display: inline-flex; align-items: center; gap: 50px; }
.marquee-track em { font-style: italic; color: var(--orange); }
.marquee-track em.alt { color: var(--rose-soft); }
.marquee-track .star { color: var(--orange); font-size: 28px; display: inline-block; animation: spin 4s linear infinite; }
.marquee-track .star.alt { color: var(--rose-soft); animation-duration: 6s; animation-direction: reverse; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* — Hero-specific marquee override —
   Sits flush at the bottom of the first screen.
   Breaks out of the hero's side padding with negative margins.
   Smaller font to fit cleanly as a bottom band.
*/
.hero-marquee {
  /* Break out of the 32px hero padding on both sides */
  margin-left:  -32px;
  margin-right: -32px;
  width: calc(100% + 64px);
  /* Tighter padding for a strip feel */
  padding: 16px 0;
  /* Slightly reduced opacity so it doesn't compete with headline */
  opacity: 0;
  animation: heroFadeUp .7s cubic-bezier(.16, 1, .3, 1) 2.4s forwards;
  flex-shrink: 0;
}

.hero-marquee .marquee-track {
  /* Smaller font inside the hero — editorial strip, not a hero banner */
  font-size: clamp(13px, 2vw, 20px);
  gap: 36px;
  letter-spacing: .02em;
}

.hero-marquee .marquee-track > div { gap: 28px; }
.hero-marquee .marquee-track .star { font-size: 12px; }

/* Fade edges inside hero marquee */
.hero-marquee::before { background: linear-gradient(90deg, var(--ink) 0%, transparent 100%); }
.hero-marquee::after  { background: linear-gradient(-90deg, var(--ink) 0%, transparent 100%); }

@media(max-width: 900px) {
  .hero-marquee { margin-left: -20px; margin-right: -20px; width: calc(100% + 40px); }
}
@media(max-width: 600px) {
  .hero-marquee {
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
    margin-top: 12px;
    padding: 10px 0;
  }
  .hero-marquee .marquee-track {
    font-size: 11px;
    gap: 22px;
  }
  .hero-marquee .marquee-track > div { gap: 18px; }
}

/* ════════════════════════════════════════
   SECTION BASE
════════════════════════════════════════ */
section { padding: 120px 32px; position: relative; }
@media(max-width: 768px) { section { padding: 64px 20px; } }
@media(max-width: 600px) { section { padding: 52px 16px; } }

.section-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 36px;
}
.section-label::before {
  content: ''; width: 28px; height: 1px; background: var(--muted);
  transform-origin: left; transform: scaleX(0);
  transition: transform .8s cubic-bezier(.7, 0, .3, 1) .3s;
}
.reveal.in .section-label::before { transform: scaleX(1); }

.section-label .badge {
  background: var(--ink); color: var(--cream);
  padding: 4px 10px; border-radius: 100px;
  font-size: 9.5px;
}

.section-h {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(40px, 6.8vw, 100px);
  line-height: .96; letter-spacing: -.035em;
  font-weight: 400;
  max-width: 1200px;
  margin-bottom: 60px;
}
.section-h em { font-style: italic; }
.section-h .underline { background: linear-gradient(transparent 65%, var(--orange) 65%); padding: 0 6px; }

.draw-line {
  width: 100%; height: 1px;
  background: var(--line);
  transform-origin: left; transform: scaleX(0);
  transition: transform 1.4s cubic-bezier(.7, 0, .3, 1);
  margin-bottom: 48px;
}
.reveal.in .draw-line { transform: scaleX(1); }

/* ════════════════════════════════════════
   MANIFESTO (Ecosystem section)
════════════════════════════════════════ */
.manifesto {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px; align-items: start;
}
.manifesto-num {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(140px, 20vw, 280px);
  line-height: .82; letter-spacing: -.05em;
  color: var(--ink);
  position: sticky; top: 140px;
}
.manifesto-num em { font-style: italic; color: var(--muted); }
.manifesto-num .star-spin { color: var(--orange); font-size: .3em; display: inline-block; animation: spin 6s linear infinite; vertical-align: super; }
.manifesto-num .label {
  display: block;
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: 1.8px;
  color: var(--muted); text-transform: uppercase;
  margin-top: 20px; line-height: 1.5; max-width: 260px;
}
.manifesto-text p { font-size: 21px; line-height: 1.55; color: var(--ink-2); margin-bottom: 26px; }
.manifesto-text p:first-child {
  font-family: 'Instrument Serif', serif;
  font-size: 36px; line-height: 1.2;
  color: var(--ink); letter-spacing: -.01em;
}
.manifesto-text p em { font-style: italic; }
.manifesto-text .signoff {
  margin-top: 48px; padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 20px;
}
.manifesto-text .signoff .sig {
  font-family: 'Instrument Serif', serif;
  font-size: 46px; font-style: italic; line-height: 1;
  letter-spacing: -.02em;
  transform: rotate(-3deg); color: var(--orange);
}
.manifesto-text .signoff .by {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: 1.5px; color: var(--muted);
  text-transform: uppercase; line-height: 1.6;
}
.manifesto-text .signoff .by strong { color: var(--ink); font-weight: 500; }
@media(max-width: 900px) { .manifesto { grid-template-columns: 1fr; gap: 40px; } .manifesto-num { position: relative; top: 0; } }

/* ════════════════════════════════════════
   PORTAL CARDS (Services grid)
════════════════════════════════════════ */
.portals-section { padding-bottom: 0; }
.h-spacer { height: 0; }

.services-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.service {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 44px 36px;
  background: var(--cream);
  transition: background .4s, color .4s;
  position: relative; overflow: hidden;
  min-height: 380px;
  display: flex; flex-direction: column;
}
.service::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 100%, var(--ink-2) 0%, var(--ink) 100%);
  transform: translateY(100%);
  transition: transform .55s cubic-bezier(.7, 0, .3, 1);
  z-index: 0;
}
.service:hover::before { transform: translateY(0); }
.service:hover { color: var(--cream); }
.service > * { position: relative; z-index: 1; }

/* per-portal accent glow color */
.portal-study .card-glow  { background: radial-gradient(circle, rgba(244, 114, 23, .45) 0%, transparent 60%); }
.portal-admin .card-glow  { background: radial-gradient(circle, rgba(240, 170, 42, .40) 0%, transparent 60%); }
.portal-officials .card-glow { background: radial-gradient(circle, rgba(34, 110, 78, .40) 0%, transparent 60%); }
.portal-smartboard .card-glow { background: radial-gradient(circle, rgba(30, 90, 155, .40) 0%, transparent 60%); }

.card-glow {
  position: absolute;
  width: 300px; height: 300px; border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .35s;
  filter: blur(30px); z-index: 0;
}
.service:hover .card-glow { opacity: 1; }

.service .num {
  font-family: 'Geist Mono', monospace;
  font-size: 12px; letter-spacing: 1px;
  color: var(--muted); margin-bottom: 48px;
  display: flex; justify-content: space-between; align-items: center;
  transition: color .4s;
}
.service:hover .num { color: var(--orange); }
.service .num .label-row { display: flex; align-items: center; gap: 14px; }
.service .num .dot-pulse { width: 7px; height: 7px; background: var(--rose); border-radius: 50%; animation: blink 2s infinite; }
.service .num .icon {
  width: 42px; height: 42px; border: 1px solid currentColor; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .4s, background .4s, color .4s, border-color .4s;
}
.service:hover .num .icon { background: var(--orange); border-color: var(--orange); color: var(--ink); transform: rotate(-45deg) scale(1.05); }

.service h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 46px; line-height: 1.02;
  font-weight: 400; letter-spacing: -.025em;
  margin-bottom: 20px;
}
.service h3 em { font-style: italic; }
.service p { font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 420px; transition: color .4s; }
.service:hover p { color: var(--cream-2); }
.service .tags { margin-top: auto; padding-top: 32px; display: flex; flex-wrap: wrap; gap: 7px; }
.service .tag {
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px; letter-spacing: .5px;
  padding: 6px 12px; border: 1px solid var(--line);
  border-radius: 100px;
  transition: border-color .4s, color .4s;
}
.service:hover .tag { border-color: #3a3a36; color: var(--cream-2); }

@media(max-width: 900px) { .services-grid { grid-template-columns: 1fr; } .service { padding: 36px 24px; min-height: auto; } }

/* ════════════════════════════════════════
   PLATFORM — Dark stats section
════════════════════════════════════════ */
.platform-dark {
  background: var(--ink); color: var(--cream);
  padding: 120px 32px;
  position: relative; overflow: hidden;
}
.platform-dark::before {
  content: ''; position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 114, 23, .12) 0%, transparent 70%);
  top: -200px; right: -200px; filter: blur(60px);
}
.platform-dark .section-label { color: var(--muted-2); margin-bottom: 36px; }
.platform-dark .section-label::before { background: var(--muted-2); }
.platform-dark .section-h { color: var(--cream); }
.platform-dark .section-h em { color: rgba(255,255,255,.5); }
.platform-dark .section-h .underline { background: linear-gradient(transparent 65%, var(--orange) 65%); }

.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #2A2A26;
  margin-top: 60px; position: relative; z-index: 2;
}
.stat {
  padding: 48px 28px 0 0;
  border-right: 1px solid #2A2A26;
}
.stat:last-child { border-right: none; padding-right: 0; }
.stat .label {
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.stat .label .num-tag { background: var(--orange); color: var(--ink); padding: 2px 8px; border-radius: 100px; font-size: 9px; font-weight: 600; }
.stat .big-num {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(64px, 8vw, 120px);
  line-height: .92; letter-spacing: -.035em;
  color: var(--cream);
  display: flex; align-items: flex-start;
  transition: color .3s;
}
.stat:hover .big-num { color: var(--orange); }
.stat .big-num .plus { color: var(--rose-soft); font-style: italic; font-size: .7em; }
.stat .big-num em { font-style: italic; }
.stat .desc { margin-top: 20px; font-size: 14px; line-height: 1.5; color: var(--cream-2); max-width: 240px; }

@media(max-width: 900px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 32px 18px 32px 0; border-bottom: 1px solid #2A2A26; }
  .stat:nth-child(2), .stat:nth-child(4) { border-right: none; }
}

/* ════════════════════════════════════════
   FEATURES — Approach grid
════════════════════════════════════════ */
.approach-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.step {
  background: var(--cream-2);
  padding: 40px 26px 32px;
  min-height: 360px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  transition: background .4s;
}
.step:hover { background: var(--cream); }
.step .top { display: flex; justify-content: space-between; align-items: flex-start; }
.step-num {
  font-family: 'Instrument Serif', serif;
  font-size: 86px; line-height: .85; letter-spacing: -.045em;
  color: var(--ink); transition: color .4s, transform .4s;
}
.step:hover .step-num { color: var(--orange); transform: translateX(4px); }
.step-num em { color: var(--muted); font-style: italic; }
.marker { width: 12px; height: 12px; background: var(--orange); border-radius: 50%; margin-top: 14px; box-shadow: 0 0 0 4px rgba(244, 114, 23, .2); }
.step h4 {
  font-family: 'Instrument Serif', serif;
  font-size: 28px; line-height: 1.1; letter-spacing: -.015em; font-weight: 400;
  margin-bottom: 12px;
}
.step h4 em { font-style: italic; }
.step p { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.step .duration {
  margin-top: 18px;
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px; letter-spacing: 1.5px;
  color: var(--ink); text-transform: uppercase;
  padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
}
.step .duration span:last-child { color: var(--muted); }
@media(max-width: 900px) { .approach-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width: 500px) { .approach-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════
   CTA SECTION
════════════════════════════════════════ */
.cta-section {
  background: var(--ink); color: var(--cream);
  padding: 160px 32px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute;
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, var(--orange) 0%, transparent 60%);
  opacity: .1; top: -300px; left: 50%; transform: translateX(-50%);
  filter: blur(60px); animation: float 10s ease-in-out infinite;
}
.cta-section::after {
  content: ''; position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, var(--rose) 0%, transparent 60%);
  opacity: .15; bottom: -200px; right: -100px;
  filter: blur(60px); animation: float 14s ease-in-out infinite reverse;
}
.cta-section h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(58px, 10vw, 164px);
  line-height: .95; letter-spacing: -.035em; font-weight: 400;
  margin-bottom: 60px; position: relative; z-index: 1;
}
.cta-section h2 em { font-style: italic; }
.cta-section h2 .acid-word {
  color: var(--orange); position: relative; display: inline-block;
}
.cta-section h2 .acid-word::after {
  content: ''; position: absolute;
  bottom: -12px; left: 0; right: 0;
  height: 5px; background: var(--orange);
  border-radius: 100px;
  transform: scaleX(.3); transform-origin: left;
  animation: expandLine 2s 1s ease forwards;
}
@keyframes expandLine { to { transform: scaleX(1); } }

.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

.cta-button {
  display: inline-flex; align-items: center; gap: 16px;
  background: var(--orange); color: var(--ink);
  padding: 8px 8px 8px 32px; border-radius: 100px;
  font-size: 16px; font-weight: 500;
  transition: background .3s, color .3s;
}
.cta-button:hover { background: var(--rose); color: var(--cream); }
.cta-button .arr-c {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--orange);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: transform .35s, background .3s, color .3s;
}
.cta-button:hover .arr-c { transform: rotate(-45deg); background: var(--cream); color: var(--rose); }

.cta-button.alt {
  background: transparent; color: var(--cream);
  border: 1px solid #2a2a26;
}
.cta-button.alt .arr-c { background: #2a2a26; color: var(--cream); }
.cta-button.alt:hover { background: #2a2a26; }
.cta-button.alt:hover .arr-c { background: var(--cream); color: var(--ink); }

.cta-small {
  margin-top: 36px; position: relative; z-index: 1;
  font-family: 'Geist Mono', monospace;
  font-size: 12px; letter-spacing: 1.2px; color: var(--muted-2);
  text-transform: uppercase;
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
}
.cta-small span { display: flex; align-items: center; gap: 8px; }
.sm-dot { width: 5px; height: 5px; background: var(--orange); border-radius: 50%; }
.sm-dot.hot { background: var(--rose); }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer {
  background: var(--cream);
  padding: 80px 32px 32px;
  border-top: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; margin-bottom: 80px;
}
.footer-grid h5 {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px; font-weight: 500;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-grid a { font-size: 15px; transition: color .2s, padding-left .2s; display: inline-flex; align-items: center; gap: 8px; }
.footer-grid a:hover { color: var(--orange); padding-left: 6px; }
.footer-grid a .ext { font-size: 10px; opacity: .4; }
/* Footer logo image */
.footer-logo {
  height: 42px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}
.footer-brand p { font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 380px; margin-top: 0; }
.footer-brand .status {
  margin-top: 22px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: 1.2px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cream-2); padding: 8px 14px; border-radius: 100px;
  text-transform: uppercase;
}
.status-dot { width: 7px; height: 7px; background: var(--orange); border-radius: 50%; box-shadow: 0 0 0 3px rgba(244, 114, 23, .25); }

.footer-mega {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(80px, 22vw, 320px);
  line-height: .82; letter-spacing: -.05em;
  margin: 80px 0 60px;
  color: var(--ink);
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
}
.footer-mega .letter { display: inline-block; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), color .25s; }
.footer-mega .letter:hover { transform: translateY(-12px) rotate(-5deg); color: var(--orange); }
.footer-mega .star { color: var(--orange); font-size: .4em; display: inline-block; animation: spin 8s linear infinite; vertical-align: middle; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 36px; border-top: 1px solid var(--line);
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px; letter-spacing: .5px; color: var(--muted);
  flex-wrap: wrap; gap: 18px;
}
.footer-bottom .meta { display: flex; gap: 30px; flex-wrap: wrap; }

@media(max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media(max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; align-items: flex-start; } }

/* ════════════════════════════════════════
   MOBILE DENSITY PASS
════════════════════════════════════════ */
@media(max-width: 600px) {
  body {
    cursor: auto;
  }

  .loader-logo {
    width: min(260px, 68vw);
  }

  .mobile-nav {
    inset: 58px 12px auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(8, 8, 7, .16);
  }

  .mobile-nav a {
    padding: 14px 12px;
    font-size: 1rem;
  }

  .section-label {
    margin-bottom: 18px;
    font-size: 9.5px;
  }

  .section-label::before {
    width: 18px;
  }

  .draw-line {
    margin-bottom: 28px;
  }

  .section-h {
    margin-bottom: 34px;
    font-size: clamp(42px, 14vw, 62px);
    line-height: .92;
  }

  .manifesto {
    gap: 22px;
  }

  .manifesto-num {
    font-size: clamp(88px, 30vw, 128px);
  }

  .manifesto-num .label {
    margin-top: 12px;
    font-size: 9.5px;
    max-width: 220px;
  }

  .manifesto-text p,
  .manifesto-text p:first-child {
    font-size: 18px;
    line-height: 1.45;
    margin-bottom: 18px;
  }

  .manifesto-text .signoff {
    margin-top: 26px;
    padding-top: 20px;
  }

  .manifesto-text .signoff .sig {
    font-size: 34px;
  }

  .portals-section {
    padding-bottom: 0;
  }

  .service {
    min-height: 0;
    padding: 26px 18px 22px;
  }

  .service .num {
    margin-bottom: 28px;
    font-size: 10px;
  }

  .service .num .icon {
    width: 34px;
    height: 34px;
  }

  .service h3 {
    font-size: clamp(38px, 14vw, 54px);
    margin-bottom: 14px;
  }

  .service p {
    font-size: 13.5px;
    line-height: 1.48;
  }

  .service .tags {
    padding-top: 22px;
  }

  .service .tag {
    padding: 5px 9px;
    font-size: 9px;
  }

  .platform-dark {
    padding: 58px 16px;
  }

  .platform-dark .section-label {
    margin-bottom: 22px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .stat {
    padding: 24px 0;
    border-right: none;
    border-bottom: 1px solid #2A2A26;
  }

  .stat:last-child {
    border-bottom: none;
  }

  .stat .label {
    margin-bottom: 10px;
    font-size: 9.5px;
  }

  .stat .big-num {
    font-size: clamp(58px, 22vw, 86px);
  }

  .stat .desc {
    margin-top: 12px;
    max-width: none;
    font-size: 13px;
  }

  .approach-grid {
    gap: 1px;
  }

  .step {
    min-height: 0;
    padding: 26px 18px 22px;
  }

  .step-num {
    font-size: 58px;
  }

  .step h4 {
    margin-top: 24px;
    font-size: 25px;
  }

  .step p {
    font-size: 13px;
  }

  .cta-section {
    padding: 72px 16px;
  }

  .cta-section h2 {
    margin-bottom: 34px;
    font-size: clamp(52px, 17vw, 78px);
  }

  .cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cta-button {
    justify-content: space-between;
    width: 100%;
    padding-left: 20px;
  }

  .cta-small {
    margin-top: 24px;
    justify-content: flex-start;
    gap: 12px;
    font-size: 10px;
    text-align: left;
  }

  footer {
    padding: 50px 16px 26px;
  }

  .footer-grid {
    gap: 28px;
    margin-bottom: 42px;
  }

  .footer-logo {
    height: 34px;
  }

  .footer-mega {
    margin: 42px 0 34px;
    font-size: clamp(76px, 28vw, 118px);
  }

  .footer-bottom {
    padding-top: 24px;
    font-size: 10px;
  }
}

/* ════════════════════════════════════════
   SCROLL REVEAL
════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .85, .2, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Cursor target elements */
a, button, .service, .step, .stat, .nav-cta, .cta-button, .hero-cta-big, .footer-mega .letter { cursor: none; }

@media(hover: none), (max-width: 600px) {
  a, button, .service, .step, .stat, .nav-cta, .cta-button, .hero-cta-big, .footer-mega .letter {
    cursor: auto;
  }

  .reveal {
    transform: translateY(24px);
    transition-duration: .65s;
  }
}

@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
