/* ─── DESIGN TOKENS ─── */
:root {
  --bg:       #070708;
  --bg2:      #0f0f10;
  --bg3:      #141415;
  --text:     #ece9e1;
  --dim:      #888;
  --accent:   #d4ff00;
  --litegrey: #dededed3;
  --a-dim:    rgba(212,255,0,.08);
  --a-bdr:    rgba(212,255,0,.22);
  --border:   rgba(255,255,255,.08);
  --r:        4px;
  --nav-h:    68px;
  --ff-d:     'Archivo Black', sans-serif;
  --ff-b:     'Archivo', sans-serif;
  --ff-m:     'Space Mono', monospace;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-b);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Suppress Quarto's own title block */
#title-block-header,
#quarto-document-content > h1:first-child { display: none !important; }
#quarto-content { padding: 0 !important; max-width: none !important; }

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

/* ─── NAVBAR ─── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1050;
  height: var(--nav-h);
  background: rgba(7,7,8,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-nav .container-xl {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 28px;
}

.nav-logo {
  font-family: var(--ff-d);
  font-size: 1.15rem; letter-spacing: .06em;
  flex-shrink: 0; 
}

/* Ensure the dot color remains consistent */
.nav-logo .dot {
  color: var(--accent);
}

/* Nav links */
.site-nav .navbar-nav .nav-link {
  font-family: var(--ff-b); font-size: .82rem;
  font-weight: 500;
  color: var(--dim);
  padding: 6px 14px !important;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: color .18s;
}
.site-nav .navbar-nav .nav-link:hover { color: var(--text); }

/* CTA button in nav */
.btn-nav {
  font-family: var(--ff-b);
  font-size: .78rem;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em;
  background: var(--accent);
  color: #000 !important;
  padding: 8px 22px;
  border-radius: var(--r);
  margin-left: 10px;
  display: inline-block; transition: opacity .18s, transform .12s;
}
.btn-nav:hover { opacity: .85; transform: translateY(-1px); }

/* ─── HAMBURGER: three horizontal lines ─── */
.navbar-toggler {
  border: 1px solid var(--border) !important;
  padding: 6px 10px; border-radius: var(--r) !important;
}
.navbar-toggler:focus { box-shadow: none !important; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(236,233,225,.85)' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Mobile collapse panel */
@media (max-width: 991px) {
  .site-nav .navbar-collapse {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 12px;
    margin-top: 10px; }
  .site-nav .navbar-nav .nav-link { padding: 10px 16px !important; }
  .btn-nav { display: block; margin: 8px 14px 2px; text-align: center; }
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden; padding: calc(var(--nav-h) + 72px) 0 96px;
}
/* Animated grid */
.hero::before {
  content: '';
  position: absolute; inset: 0; background-image:
    linear-gradient(rgba(212,255,0,.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,255,0,.034) 1px, transparent 1px);
  background-size: 56px 56px; animation: gridDrift 22s linear infinite;
}
/* Accent glow */
.hero::after {
  content: '';
  position: absolute; inset: 0; background: radial-gradient(ellipse 65% 55% at 62% 38%, rgba(212,255,0,.07) 0%, transparent 68%);
  pointer-events: none; }
@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 56px 56px; }
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.hero-badge {
  font-family: var(--ff-m); font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--a-dim);
  border: 1px solid var(--a-bdr);
  padding: 5px 16px;
  border-radius: 100px; display: inline-block;
  margin-bottom: 32px;
  animation: fadeUp .6s ease both;
}
.hero-title {
  font-family: var(--ff-d);
  font-size: clamp(3rem, 8.5vw, 7.5rem);
  line-height: .98; letter-spacing: -.025em;
  margin-bottom: 28px;
  animation: fadeUp .7s .08s ease both;
}
.hero-title .hi { color: var(--accent); }
.hero-sub {
  font-size: clamp(.95rem, 1.8vw, 1.2rem);
  color: var(--dim);
  max-width: 520px;
  margin-bottom: 48px;
  font-weight: 300;
  line-height: 1.75; animation: fadeUp .7s .18s ease both;
}
.hero-ctas {
  display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp .7s .28s ease both;
}
.btn-p, .btn-g {
  font-family: var(--ff-b);
  font-size: .85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; padding: 14px 30px; border-radius: var(--r); cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  transition: opacity .18s, transform .12s; }
.btn-p { background: var(--accent); color: #000; border: none; }
.btn-p:hover { opacity: .85; transform: translateY(-2px); color: #000; }
.btn-g { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-g:hover { border-color: rgba(255,255,255,.28); transform: translateY(-2px); color: var(--text); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── MARQUEE ─── */
/*
.marquee-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
  overflow: hidden; }
.marquee-lbl {
  font-family: var(--ff-m); font-size: .64rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--dim); text-align: center; margin-bottom: 18px; }
.marquee-wrap { overflow: hidden; }
.marquee-track {
  display: flex; gap: 0;
  animation: mq 32s linear infinite;
  width: max-content; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-family: var(--ff-d); font-size: .88rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); white-space: nowrap; padding: 0 40px;
  display: flex; align-items: center; gap: 40px;
}
.marquee-item::after { content: '◆'; color: var(--accent); font-size: .55rem; }
@keyframes mq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
} */

/* --- MARQUEE COMPONENT --- */

/* --- THE ULTIMATE TICKER FIX --- */

.marquee-lbl {
  font-family: var(--ff-m); font-size: .64rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--dim); text-align: center; margin-bottom: 18px;
}

.marquee-band {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  background: var(--bg);
}

.marquee-wrap {
  width: 100%;
  overflow: hidden;
}

/* Quarto wraps your items in a <p> tag. 
   We force that <p> tag to be the flex container.
*/
.marquee-track p {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: max-content !important; /* Vital: Allows it to be wider than the screen */
  margin: 0 !important;
  padding: 0 !important;
  animation: mq 30s linear infinite;
  
  &:hover {
    animation-play-state: paused;
  }
}

.marquee-item {
  flex-shrink: 0 !important; /* Prevents items from squashing */
  display: flex;
  align-items: center;
  font-family: var(--ff-d);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 0 40px; 
  white-space: nowrap !important;

  &::after {
    content: '◆';
    color: var(--accent);
    font-size: .55rem;
    margin-left: 80px; 
  }
}

@keyframes mq {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ─── SECTION SCAFFOLDING ─── */
.sec  { padding: 100px 0; }
.sec.dark  { background: var(--bg2); }
.sec.lined { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-family: var(--ff-m); font-size: .64rem;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px; display: block; }
.sec-h {
  font-family: var(--ff-d);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.02; letter-spacing: -.022em; margin-bottom: 24px;
}
.sec-h .hi { color: var(--litegrey); }
.sec-p {
  font-size: 1.02rem; color: var(--dim);
  max-width: 560px; line-height: 1.8; font-weight: 300;
}

/* ─── STATS ─── */
.stats {
  display: grid; grid-template-columns: repeat(3,1fr); background: var(--border); gap: 1px;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
@media (max-width:700px) { .stats { grid-template-columns:1fr; } }
.stat {
  background: var(--bg2); padding: 52px 40px;
}
.stat-v {
  font-family: var(--ff-d);
  font-size: clamp(3rem,5.5vw,5.5rem);
  line-height: 1; color: var(--accent); letter-spacing: -.04em; margin-bottom: 10px;
}
.stat-d { font-size: .85rem; color: var(--dim); line-height: 1.55; max-width: 210px; }

/* ─── SPLIT / TWO-COL ─── */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center; }
@media (max-width:860px) { .split { grid-template-columns:1fr; gap:48px; } }
.split.rev { direction:rtl; }
.split.rev > * { direction:ltr; }

.vis-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.vis-box::before {
  content: ''; position: absolute; inset: 0; background:
    radial-gradient(circle at 30% 68%, rgba(212,255,0,.13) 0%, transparent 52%),
    radial-gradient(circle at 78% 18%, rgba(212,255,0,.06) 0%, transparent 42%); }
.vis-lbl {
  font-family: var(--ff-d); font-size: 1.25rem;
  letter-spacing: .06em; color: rgba(212,255,0,.42);
  text-align: center; line-height: 1.5;
  position: relative; z-index: 1; padding: 20px;
}
.vis-lbl small {
  display: block; font-family: var(--ff-m); font-size: .58rem;
  color: rgba(236,233,225,.2); letter-spacing: .2em; margin-top: 8px; }

/* ─── HUB CARDS ─── */
.hubs {
  display: grid; grid-template-columns: repeat(2,1fr);
  background: var(--border); gap: 1px;
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; margin-top: 56px;
}
@media (max-width:700px) { .hubs { grid-template-columns:1fr; } }
.hub {
  background: var(--bg2); padding: 44px 40px;
  transition: background .22s;
}
.hub:hover { background: var(--bg3); }
.hub-n {
  font-family: var(--ff-m); font-size: .66rem;
  color: var(--accent); letter-spacing: .16em;
  margin-bottom: 20px; display: block;
}
.hub-t { font-family: var(--ff-d); font-size: 1.45rem; margin-bottom: 14px; line-height: 1.12; }
.hub-b { font-size: .9rem; color: var(--dim); line-height: 1.72; margin-bottom: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--ff-m); font-size: .6rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim); background: rgba(255,255,255,.04);
  border: 1px solid var(--border); padding: 4px 11px; border-radius: 100px; }

/* ─── MANIFESTO ─── */
.manifesto {
  text-align: center; padding: 100px 32px;
  max-width: 960px; margin: 0 auto; }
.manifesto-q {
  font-family: var(--ff-d);
  font-size: clamp(2rem,4.5vw,3.6rem);
  line-height: 1.18; letter-spacing: -.015em;
}
.manifesto-q .hi { color: var(--accent); }
.manifesto-a {
  font-family: var(--ff-m); font-size: .66rem;
  color: var(--dim); letter-spacing: .2em;
  text-transform: uppercase; margin-top: 40px; }

/* ─── STEPS: SYMMETRICAL LAYOUT ─── */

.steps { 
  margin: 80px 0; /* Equal empty space above and below the entire block */
  display: flex;
  flex-direction: column;
}

.step {
  display: flex; 
  gap: 40px;
  /* Equal vertical padding creates the symmetry */
  padding: 48px 0; 
  border-top: 1px solid var(--border);
  align-items: flex-start;
  
  /* Reset Quarto's default paragraph margins which cause bottom-heaviness */
  p {
    margin: 0 !important;
  }
}

.step:last-child { 
  border-bottom: 1px solid var(--border); 
}

.step-h { 
  font-family: var(--ff-d); 
  font-size: 1.25rem; 
  line-height: 1.2;
  margin: 0 !important; /* Forces header to align with top of step */
  min-width: 200px; /* Gives titles a consistent starting track */
}

.step-p { 
  font-size: 1.05rem; 
  color: var(--dim); 
  line-height: 1.6; 
  max-width: 600px;
  margin: 0 !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .step {
    flex-direction: column;
    gap: 12px;
    padding: 32px 0;
  }
  .steps {
    margin: 56px 0;
  }
}

/* ─── CTA BAND ─── */
.cta-inner {
  text-align: center; padding: 120px 32px;
  max-width: 780px; margin: 0 auto;
}
.cta-inner .sec-h { max-width: none; }
.cta-inner .sec-p { max-width: none; margin: 0 auto 48px; text-align: center; }

/* ─── FOOTER ─── */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 72px 0 40px; }
.fw { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.fg {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 64px;
}
@media (max-width:900px) { .fg { grid-template-columns:1fr 1fr; } }
@media (max-width:500px) { .fg { grid-template-columns:1fr; } }
.f-brand { font-family: var(--ff-d); font-size: 1.25rem; letter-spacing: .06em; margin-bottom: 14px; }
.f-brand .dot { color: var(--accent); }
.f-tag { font-size: .85rem; color: var(--dim); line-height: 1.65; max-width: 248px; margin-bottom: 26px; }
.f-soc { display: flex; gap: 10px; }
.f-soc a {
  width: 36px; height: 36px;
  border: 1px solid var(--border); border-radius: var(--r); display: inline-flex; align-items: center; justify-content: center;
  font-size: .88rem; color: var(--dim);
  transition: border-color .18s, color .18s;
}
.f-soc a:hover { border-color: var(--accent); color: var(--accent); }
.f-col-h { font-family: var(--ff-m); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); margin-bottom: 20px; }
.f-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.f-links a { font-size: .86rem; color: var(--dim); transition: color .18s; }
.f-links a:hover { color: var(--text); }
.f-bottom {
  border-top: 1px solid var(--border); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.f-copy { font-family: var(--ff-m); font-size: .7rem; color: var(--dim); }
.f-legal { display: flex; gap: 20px; }
.f-legal a { font-family: var(--ff-m); font-size: .7rem; color: var(--dim); transition: color .18s; }
.f-legal a:hover { color: var(--text); }

/* --- ASYMMETRIC GRID SYSTEM --- */

.layout-row {
  display: grid;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}

/* 2/3 Paragraph (2fr), 1/3 Image (1fr) */
.img-right {
  grid-template-columns: 2fr 1fr;
}

/* 1/3 Image (1fr), 2/3 Paragraph (2fr) */
.img-left {
  grid-template-columns: 1fr 2fr;
}

.side-img {
  width: 100%;
  height: auto;
  border-radius: var(--r);
  border: 1px solid var(--border);
  display: block;
  /* Optional: keeps images consistent in height if needed */
  aspect-ratio: 4/3; 
  object-fit: cover;
  background: var(--bg2); /* Placeholder background */
}

/* Mobile Responsiveness: Stacks into columns */
@media (max-width: 860px) {
  .img-right, 
  .img-left {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  /* Forces text first on mobile regardless of layout */
  .img-left .side-img {
    order: 2;
  }
  .img-left .sec-p {
    order: 1;
  }
}

/* --- FLOATING SIDENOTES --- */

.sidenote-float {
  float: right;
  clear: right;
  width: 200px;
  margin-right: -260px;
  
  /* Vertical Alignment Fixes */
  margin-top: 0; 
  transform: translateY(-48px); /* Fine-tune this to align with your font's X-height */
  
  font-size: 0.75rem;
  color: var(--dim);
  line-height: 1.4;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}