/* ==========================================================================
   MALUTI CORP — Design System
   Eclipse palette: void black + gold corona
   ========================================================================== */

:root {
  /* Surfaces */
  --void:       #050507;
  --ink:        #0A0A0E;
  --surface:    #0F0F15;
  --surface-2:  #15151D;
  --surface-3:  #1B1B25;

  /* Lines */
  --line:       #1E1E28;
  --line-soft:  #17171F;
  --line-gold:  rgba(233, 196, 106, 0.28);

  /* Gold corona */
  --gold:        #E9C46A;
  --gold-bright: #F8E4B0;
  --gold-deep:   #C9A24D;
  --gold-dim:    #8A7238;
  --gold-glow:   rgba(233, 196, 106, 0.14);

  /* Type */
  --text:   #EDEDF2;
  --dim:    #9C9CAA;
  --faint:  #62626F;
  --ghost:  #3A3A45;

  /* Metrics */
  --max:      1240px;
  --max-text: 760px;
  --nav-h:    72px;

  --r-sm: 4px;
  --r:    8px;
  --r-lg: 14px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --f-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-mono:    'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
  --f-mark:    'Michroma', var(--f-display);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--gold); color: #000; }

/* Film grain — sits above the background, below content */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
.section { padding: 120px 0; position: relative; scroll-margin-top: 76px; }
.section--tight { padding: 84px 0; }
.section--edge { border-top: 1px solid var(--line-soft); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.eyebrow--plain { color: var(--faint); }
.eyebrow--plain::before { background: linear-gradient(90deg, var(--ghost), transparent); }

.h-xl { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
.h-lg { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.h-md { font-size: clamp(1.5rem, 2.8vw, 2.05rem); }
.h-sm { font-size: 1.14rem; letter-spacing: -0.01em; }

.lede { font-size: clamp(1.02rem, 1.7vw, 1.2rem); color: var(--dim); line-height: 1.72; max-width: var(--max-text); }
.muted { color: var(--dim); }
.faint { color: var(--faint); }
.gold  { color: var(--gold); }

.sec-head { max-width: var(--max-text); margin-bottom: 64px; }
.sec-head p { margin-top: 22px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .35s var(--ease), border-color .35s var(--ease), height .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  height: 62px;
  background: rgba(5, 5, 7, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.nav__inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand__name {
  font-family: var(--f-mark);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--text);
  white-space: nowrap;
}

.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-size: 13.5px;
  color: var(--dim);
  letter-spacing: 0.01em;
  transition: color .2s;
  position: relative;
  padding: 4px 0;
}
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
}
/* buttons inside the nav must keep their own colour */
.nav__links a.btn { color: var(--text); }
.nav__links a.btn:hover { color: var(--gold-bright); }
.nav__links a.btn--gold,
.nav__links a.btn--gold:hover { color: #0A0A0E; }
.nav__links a.btn.is-active::after { display: none; }

.nav__burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__burger span { display: block; width: 20px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.nav__burger span + span { margin-top: 5px; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { border-color: var(--line-gold); color: var(--gold-bright); background: rgba(233,196,106,0.04); }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #0A0A0E;
  font-weight: 600;
}
.btn--gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: #0A0A0E; box-shadow: 0 0 34px rgba(233,196,106,0.24); }
.btn--sm { padding: 9px 17px; font-size: 12.5px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap .25s var(--ease);
}
.link-arrow:hover { gap: 13px; color: var(--gold-bright); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 80px) 0 90px;
  overflow: hidden;
}
/* The eclipse: an occulting disc with a burning gold rim. */
.hero__eclipse {
  position: absolute;
  top: 47%; right: -4%;
  width: min(54vw, 500px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--void);
  pointer-events: none;
  z-index: 0;
  box-shadow:
    0 0 22px 4px rgba(233, 196, 106, 0.38),
    0 0 66px 13px rgba(233, 196, 106, 0.19),
    0 0 170px 44px rgba(233, 196, 106, 0.09),
    0 0 340px 110px rgba(233, 196, 106, 0.04);
  animation: breathe 12s ease-in-out infinite;
}
/* faint outer corona haze, rotating slowly */
.hero__eclipse::after {
  content: '';
  position: absolute;
  inset: -34%;
  border-radius: 50%;
  /* both ends land on transparent so the wrap point leaves no visible seam */
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(233,196,106,0.09) 17%, transparent 33%,
    rgba(233,196,106,0.06) 51%, transparent 68%,
    rgba(233,196,106,0.10) 85%, transparent 100%);
  mask-image: radial-gradient(circle, transparent 41%, #000 48%, transparent 74%);
  -webkit-mask-image: radial-gradient(circle, transparent 41%, #000 48%, transparent 74%);
  animation: spin 64s linear infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.88; transform: translateY(-50%) scale(1); }
  50%      { opacity: 1;    transform: translateY(-50%) scale(1.02); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.019) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.019) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 82% 66% at 34% 46%, #000 8%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 82% 66% at 34% 46%, #000 8%, transparent 72%);
}

.hero__content { max-width: 720px; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.3rem); font-weight: 500; letter-spacing: -0.038em; line-height: 1.05; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__lede { margin-top: 30px; max-width: 620px; font-size: clamp(1.02rem, 1.65vw, 1.22rem); color: var(--dim); line-height: 1.7; }
.hero__cta { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__meta {
  position: absolute;
  bottom: 40px; left: 0; right: 0;
  z-index: 2;
}
.hero__meta-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 44px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ghost);
}
.hero__meta-inner span { display: flex; align-items: center; gap: 9px; }
.hero__meta-inner span::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-dim); }

/* ---------- Page header (interior pages) ---------- */
.phead {
  position: relative;
  padding: calc(var(--nav-h) + 108px) 0 86px;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.phead::after {
  content: '';
  position: absolute;
  top: -55%; left: 50%;
  width: 1100px; aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle at center, rgba(233,196,106,0.075), transparent 62%);
  pointer-events: none;
}
.phead h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 500; letter-spacing: -0.035em; }
.phead .lede { margin-top: 26px; }

/* ---------- Stat strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.stat { padding: 40px 30px; border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: 0; }
.stat__n { font-family: var(--f-display); font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 500; letter-spacing: -0.03em; color: var(--gold); line-height: 1; }
.stat__l { margin-top: 12px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); line-height: 1.6; }

/* ---------- Generic cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  position: relative;
  padding: 34px 30px 32px;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(10,10,14,0.7) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .35s var(--ease), transform .35s var(--ease), background .35s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.card:hover { border-color: var(--line); transform: translateY(-3px); background: linear-gradient(180deg, var(--surface-2) 0%, rgba(10,10,14,0.7) 100%); }
.card:hover::before { opacity: 0.55; }

.card__num {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
  margin-bottom: 20px;
}
.card h3 { font-size: 1.16rem; margin-bottom: 14px; }
.card p { color: var(--dim); font-size: 14.6px; line-height: 1.72; }

.card__list { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.card__list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.4px;
  color: var(--faint);
  line-height: 1.6;
}
.card__list li + li { margin-top: 9px; }
.card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8.5px;
  width: 5px; height: 5px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
}

/* ---------- Feature rows (numbered) ---------- */
.frow {
  display: grid;
  grid-template-columns: 88px 1fr 1.15fr;
  gap: 40px;
  padding: 46px 0;
  border-top: 1px solid var(--line-soft);
  align-items: start;
}
.frow:last-child { border-bottom: 1px solid var(--line-soft); }
.frow__n { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--gold-dim); padding-top: 6px; }
.frow h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.frow__body p { color: var(--dim); font-size: 15px; line-height: 1.75; }
.frow__body p + p { margin-top: 15px; }
.frow__tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
}
.tag--gold { border-color: var(--line-gold); color: var(--gold); }

/* ---------- Venture cards ---------- */
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.venture {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  min-height: 260px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
  transition: all .35s var(--ease);
}
.venture::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 170px; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233,196,106,0.13), transparent 68%);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.venture:hover { border-color: var(--line-gold); transform: translateY(-4px); background: var(--surface-2); }
.venture:hover::after { opacity: 1; }

.venture__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.venture__domain { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dim); }
.venture__status {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--faint);
  white-space: nowrap;
}
.venture__status--live { border-color: rgba(120,200,140,0.35); color: #7CC894; }
.venture__status--build { border-color: var(--line-gold); color: var(--gold); }

.venture h3 { font-size: 1.32rem; margin-bottom: 13px; }
.venture p { color: var(--dim); font-size: 14.3px; line-height: 1.7; flex: 1; }
.venture__foot {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ghost);
}
.venture__foot .go { color: var(--gold); opacity: 0; transform: translateX(-6px); transition: all .3s var(--ease); }
.venture:hover .venture__foot .go { opacity: 1; transform: translateX(0); }

/* ---------- Filter bar ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 40px; }
.filter {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 8px 15px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  color: var(--faint);
  cursor: pointer;
  transition: all .22s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--line-gold); }
.filter.is-on { background: var(--gold); border-color: var(--gold); color: #0A0A0E; font-weight: 600; }

/* ---------- Venture detail (dossier) ---------- */
.dossier { border-top: 1px solid var(--line-soft); padding: 74px 0; scroll-margin-top: 90px; }
.dossier__head { display: grid; grid-template-columns: 88px 1fr; gap: 40px; margin-bottom: 42px; }
.dossier__n { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--gold-dim); padding-top: 10px; }
.dossier__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; }
.dossier__title h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.dossier__sub { margin-top: 20px; max-width: var(--max-text); color: var(--dim); font-size: 15.4px; line-height: 1.75; }
.dossier__body { display: grid; grid-template-columns: 88px 1fr; gap: 40px; }
.dossier__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.block {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
}
.block h4 {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.block p { color: var(--dim); font-size: 14.2px; line-height: 1.72; }
.block li { position: relative; padding-left: 17px; font-size: 14.1px; color: var(--dim); line-height: 1.65; }
.block li + li { margin-top: 10px; }
.block li::before { content: ''; position: absolute; left: 0; top: 8.5px; width: 5px; height: 1px; background: var(--gold-dim); }
.block li strong { color: var(--text); font-weight: 500; }
.block--wide { grid-column: 1 / -1; }

/* ---------- Architecture stack ---------- */
.stack { display: flex; flex-direction: column; gap: 12px; }
.layer {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  align-items: center;
  padding: 26px 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--surface);
  transition: all .35s var(--ease);
}
.layer:hover { border-color: var(--line-gold); background: var(--surface-2); }
.layer__name { font-family: var(--f-display); font-size: 1.02rem; letter-spacing: -0.01em; }
.layer__name span { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 8px; }
.layer__desc { color: var(--dim); font-size: 14.3px; line-height: 1.7; }
.layer--base { background: linear-gradient(90deg, rgba(233,196,106,0.06), var(--surface) 55%); border-color: var(--line-gold); }

/* ---------- Split / deployment ---------- */
.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.mode {
  padding: 38px 34px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: all .35s var(--ease);
}
.mode--sovereign { border-color: var(--line-gold); background: linear-gradient(160deg, rgba(233,196,106,0.055), var(--surface) 58%); }
.mode:hover { transform: translateY(-3px); }
.mode__tag { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-dim); }
.mode h3 { font-size: 1.5rem; margin: 14px 0 16px; }
.mode p { color: var(--dim); font-size: 14.6px; line-height: 1.72; }
.mode ul { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.mode li { position: relative; padding-left: 24px; font-size: 14px; color: var(--dim); line-height: 1.6; }
.mode li + li { margin-top: 12px; }
.mode li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 11px; height: 6px;
  border-left: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}

/* ---------- Geography ---------- */
.geo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.geo__card {
  padding: 36px 32px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.geo__card::after {
  content: attr(data-code);
  position: absolute;
  right: 22px; bottom: 4px;
  font-family: var(--f-display);
  font-size: 5.6rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: rgba(255,255,255,0.022);
  line-height: 1;
  pointer-events: none;
}
.geo__card h3 { font-size: 1.32rem; margin-bottom: 8px; }
.geo__card .role { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.geo__card p { color: var(--dim); font-size: 14.5px; line-height: 1.72; position: relative; z-index: 1; }

/* ---------- Principles ---------- */
.principle { padding: 30px 0; border-top: 1px solid var(--line-soft); display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: start; }
.principle:last-child { border-bottom: 1px solid var(--line-soft); }
.principle h3 { font-size: 1.18rem; }
.principle p { color: var(--dim); font-size: 14.8px; line-height: 1.75; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 22px 0; position: relative; z-index: 2; }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: slide 46s linear infinite; }
.marquee__track span {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ghost);
  display: flex; align-items: center; gap: 56px;
  white-space: nowrap;
}
.marquee__track span::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-dim); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  padding: 130px 0;
  text-align: center;
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  bottom: -62%; left: 50%;
  width: min(140vw, 1200px); aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle at center, rgba(233,196,106,0.11), transparent 58%);
  pointer-events: none;
}
.cta h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 500; letter-spacing: -0.035em; }
.cta p { margin: 26px auto 0; max-width: 560px; color: var(--dim); font-size: 1.05rem; }
.cta__btns { margin-top: 42px; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ---------- Form ---------- */
.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.field input, .field select, .field textarea {
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  transition: border-color .22s, background .22s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.65; }
.field .btn { align-self: flex-start; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--line-gold);
  background: var(--surface-2);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ghost); }
.field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2362626F' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }
.field select option { background: var(--surface); color: var(--text); }

.toggle-row { display: flex; flex-wrap: wrap; gap: 10px; }
.toggle { position: relative; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle span {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  cursor: pointer;
  transition: all .22s var(--ease);
}
.toggle input:checked + span { border-color: var(--gold); color: var(--gold); background: rgba(233,196,106,0.07); }
.toggle input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.form-note { font-size: 13px; color: var(--faint); line-height: 1.65; }
.form-status { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; line-height: 1.6; color: var(--gold); min-height: 20px; }
.form-status--err { color: #E5806E; }
.btn[disabled] { opacity: .5; cursor: default; pointer-events: none; }

.contact-side { display: flex; flex-direction: column; gap: 2px; }
.contact-item { padding: 24px 0; border-bottom: 1px solid var(--line-soft); }
.contact-item:first-child { border-top: 1px solid var(--line-soft); }
.contact-item .k { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 9px; }
.contact-item .v { font-size: 15px; color: var(--text); line-height: 1.6; }
.contact-item .v a:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 76px 0 40px; position: relative; z-index: 2; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 44px; }
.footer__brand p { margin-top: 22px; color: var(--faint); font-size: 14px; line-height: 1.72; max-width: 320px; }
.footer h5 { font-family: var(--f-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin: 0 0 20px; }
.footer li + li { margin-top: 12px; }
.footer li a { font-size: 14px; color: var(--dim); transition: color .2s; }
.footer li a:hover { color: var(--gold); }
.footer__bar {
  margin-top: 64px; padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ghost);
}

/* ---------- Scroll reveal ----------
   Scoped to .js so that content is never hidden if the script fails to load. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .vgrid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__brand { grid-column: 1 / -1; }
  .hero__eclipse { top: 62%; right: -16%; width: min(58vw, 440px); }
  .hero__content { max-width: 620px; }
}

@media (max-width: 900px) {
  .nav__links {
    position: fixed;
    top: 62px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 32px 28px;
    background: rgba(5,5,7,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line-soft);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s var(--ease), transform .28s var(--ease);
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 15px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
  .nav__links .btn { margin-top: 18px; justify-content: center; border-bottom: 1px solid var(--gold); }
  .nav__burger { display: block; }
  .nav { background: rgba(5,5,7,0.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); height: 62px; }

  .section { padding: 84px 0; }
  .grid-3, .grid-2, .split, .geo, .form, .dossier__cols { grid-template-columns: 1fr; }
  .vgrid { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; gap: 18px; padding: 36px 0; }
  .frow__n { padding-top: 0; }
  .dossier__head, .dossier__body { grid-template-columns: 1fr; gap: 18px; }
  .dossier__n { padding-top: 0; }
  .layer { grid-template-columns: 1fr; gap: 14px; }
  .principle { grid-template-columns: 1fr; gap: 14px; }
  /* the hero stops being a flex row here, so .hero__meta can flow beneath the
     content instead of becoming a sibling column that overflows sideways */
  .hero { display: block; min-height: auto; padding: calc(var(--nav-h) + 92px) 0 110px; }
  .hero__eclipse { top: auto; bottom: -22%; right: -40%; width: min(82vw, 420px); opacity: .5; transform: none; animation: none; }
  .hero__meta { position: relative; bottom: auto; z-index: 2; margin-top: 64px; }
  .cta { padding: 96px 0; }
}

@media (max-width: 560px) {
  .wrap, .nav__inner, .hero__meta-inner { padding: 0 22px; }
  .hero__meta-inner { gap: 10px 26px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .footer__grid { grid-template-columns: 1fr; }
  .geo__card::after { font-size: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
