/* ═══════════════════════════════════════════════════
   Shared design language — Samarth Madhivanan
══════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Archivo+Black&family=Bebas+Neue&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  --bone:    #f4ecd8;
  --cream-2: #ede3c9;
  --ink:     #141210;
  --forest:  #1f3a2a;
  --forest-2:#173022;
  --moss:    #8aa05a;
  --lime:    #c6e36b;
  --terra:   #e25a2a;
  --mustard: #e8b53a;
  --rose:    #e8b5c0;
  --line:    rgba(20,18,16,0.14);
  --line-2:  rgba(20,18,16,0.28);
}

body {
  background: var(--bone);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--lime); color: var(--ink); }
a { color: var(--terra); }
a:hover { color: var(--forest); }

.grid-dark {
  background-color: var(--forest);
  background-image:
    linear-gradient(rgba(198,227,107,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198,227,107,0.08) 1px, transparent 1px);
  background-size: 42px 42px;
}
.grid-light {
  background-color: var(--cream-2);
  background-image:
    linear-gradient(rgba(20,18,16,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,18,16,0.07) 1px, transparent 1px);
  background-size: 34px 34px;
}

/* ── NAV ─────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--bone);
  border-bottom: 2px solid var(--ink);
  height: 72px;
  display: flex; align-items: center;
  padding: 0 40px;
  gap: 40px;
}
.nav-logo {
  font-family: 'Archivo Black', sans-serif;
  font-size: 26px; letter-spacing: 1.5px;
  color: var(--forest); text-decoration: none; white-space: nowrap;
}
.nav-logo .dot {
  color: var(--terra); display: inline-block;
  animation: navDotBlink 1.1s steps(2, end) infinite;
}
@keyframes navDotBlink { 0%,50%{opacity:1} 50.01%,100%{opacity:0} }
.nav-links { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0 auto; }
.nav-links li { display: flex; align-items: center; }
.nav-links li:not(:last-child)::after { content: '|'; margin: 0 10px; color: var(--line-2); font-weight: 300; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--ink);
  text-decoration: none; letter-spacing: 0.1px; transition: color 0.2s;
}
.nav-links a.active { color: var(--forest); font-weight: 700; }
.nav-links a:hover { color: var(--terra); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--forest); color: var(--bone);
  font-size: 14px; font-weight: 700; text-decoration: none;
  padding: 12px 22px 12px 24px; border-radius: 999px;
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s, background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--terra); color: var(--bone); transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 2px solid var(--ink); background: var(--bone);
  border-radius: 8px; cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); }

/* ── PAGE HEADER BAND ────────────────────────────── */
.page-head {
  border-bottom: 2px solid var(--ink);
  padding: 84px 40px 74px;
  color: var(--bone);
  position: relative;
  overflow: hidden;
}
.page-head-wrap { max-width: 1240px; margin: 0 auto; }
.page-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(56px, 9vw, 148px);
  line-height: 0.86;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--bone);
  text-shadow:
    2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink),
    2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink),
    4px 4px 0 var(--ink), 6px 6px 0 var(--ink), 8px 8px 0 var(--terra), 10px 10px 0 var(--ink);
}
.page-lede {
  font-size: 19px;
  line-height: 1.5;
  color: rgba(244,236,216,0.84);
  max-width: 52ch;
  margin-top: 30px;
}
.page-lede strong { color: var(--lime); font-weight: 700; }

/* ── SHARED BITS ─────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--terra); font-weight: 600; margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; }
.eyebrow.on-dark { color: var(--lime); }

.underline-sweep { position: relative; display: inline-block; }
.underline-sweep::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  height: 3px; width: 100%; background: currentColor;
  transform: scaleX(0); transform-origin: bottom right;
  transition: transform 0.4s cubic-bezier(0.65,0,0.35,1);
}
.underline-sweep:hover::after { transform: scaleX(1); transform-origin: bottom left; }

.section { padding: 92px 40px; position: relative; }
.section-wrap { max-width: 1240px; margin: 0 auto; }
.section-heading {
  font-family: 'Anton', sans-serif;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.92; text-transform: uppercase;
  text-wrap: balance; margin-bottom: 30px;
}
.hi-lime { background: var(--lime); padding: 0 12px 4px; display: inline-block; }
.hi-terra { background: var(--terra); color: var(--bone); padding: 0 12px 4px; display: inline-block; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--forest); text-decoration: none;
  border-bottom: 2px solid var(--forest); padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.text-link:hover { color: var(--terra); border-color: var(--terra); }
.text-link::after { content: '↗'; font-size: 15px; }
.text-link.on-dark { color: var(--lime); border-color: var(--lime); }
.text-link.on-dark:hover { color: var(--bone); border-color: var(--bone); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bone); color: var(--ink);
  font-size: 15px; font-weight: 700; text-decoration: none;
  padding: 14px 26px; border-radius: 999px;
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer; font-family: 'Inter', sans-serif;
  transition: transform 0.12s, box-shadow 0.12s, background 0.2s;
}
.btn:hover { background: var(--lime); color: var(--ink); transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-forest { background: var(--forest); color: var(--bone); }
.btn-forest:hover { background: var(--terra); color: var(--bone); }
.btn-sm { font-size: 13px; padding: 10px 18px; box-shadow: 3px 3px 0 var(--ink); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 var(--ink); }

.chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500;
  padding: 7px 13px; border: 2px solid var(--ink); background: var(--bone); color: var(--ink);
  border-radius: 999px; cursor: pointer; transition: background 0.18s, color 0.18s;
}
.chip:hover { background: var(--mustard); }
.chip.is-on { background: var(--forest); color: var(--bone); }

.tape {
  position: absolute; top: -14px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 92px; height: 24px;
  background: rgba(232,181,58,0.75);
  border: 1px dashed rgba(20,18,16,0.25);
}

/* ── TICKER ──────────────────────────────────────── */
.ticker-wrap {
  background: var(--terra); color: var(--ink);
  border-bottom: 2px solid var(--ink);
  overflow: hidden; padding: 14px 0;
}
.ticker-track { display: flex; width: max-content; animation: tkr 36s linear infinite; }
@keyframes tkr { from { transform: translateX(0) } to { transform: translateX(-50%) } }
.ticker-group { display: flex; align-items: center; flex-shrink: 0; }
.ticker-item {
  font-family: 'Anton', sans-serif; font-size: 20px; letter-spacing: 2.5px;
  padding: 0 26px; white-space: nowrap; text-transform: uppercase;
}
.ticker-sep { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); flex-shrink: 0; }

/* ── FOOTER ──────────────────────────────────────── */
.footer { background: var(--ink); color: var(--bone); padding: 76px 40px 34px; }
.footer-grid {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(244,236,216,0.2);
}
.footer-logo { font-family: 'Archivo Black', sans-serif; font-size: 28px; letter-spacing: 1px; margin-bottom: 14px; }
.footer-logo .dot { color: var(--terra); }
.footer-tagline { font-size: 14px; color: rgba(244,236,216,0.6); max-width: 340px; line-height: 1.6; }
.footer-col-head {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 3px;
  color: var(--lime); text-transform: uppercase; margin-bottom: 18px; font-weight: 600;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(244,236,216,0.7); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--terra); }
.footer-bottom {
  max-width: 1240px; margin: 22px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 1.5px;
  color: rgba(244,236,216,0.4); text-transform: uppercase; flex-wrap: wrap;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { padding: 0 20px; gap: 12px; height: 64px; flex-wrap: wrap; }
  .nav-toggle { display: flex; order: 3; margin-left: auto; }
  .nav-cta { padding: 10px 16px; font-size: 13px; order: 2; margin-left: auto; }
  .nav-toggle { margin-left: 10px; }
  .nav-links {
    order: 4; width: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    margin: 0; display: none;
    border-top: 2px solid var(--ink);
    background: var(--bone);
  }
  .nav.is-open { height: auto; padding-bottom: 6px; }
  .nav.is-open .nav-links { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links li:not(:last-child)::after { display: none; }
  .nav-links a { display: block; width: 100%; padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-logo { font-size: 20px; }
  .page-head { padding: 54px 22px 50px; }
  .page-title {
    text-shadow:
      1.5px 0 0 var(--ink), -1.5px 0 0 var(--ink), 0 1.5px 0 var(--ink), 0 -1.5px 0 var(--ink),
      1.5px 1.5px 0 var(--ink), -1.5px 1.5px 0 var(--ink), 1.5px -1.5px 0 var(--ink), -1.5px -1.5px 0 var(--ink),
      3px 3px 0 var(--ink), 4.5px 4.5px 0 var(--terra), 6px 6px 0 var(--ink);
  }
  .section { padding: 62px 22px; }
  .ticker-item { font-size: 15px; padding: 0 16px; }
  .footer { padding: 56px 22px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
