@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

/* Atomency — shared marketing layout (nav, footer, inner-page sections) */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  --ff-ui: "IBM Plex Sans", system-ui, sans-serif;
  --ff-mono: "IBM Plex Mono", ui-monospace, monospace;
  background-color: var(--black);
  background-image:
    radial-gradient(ellipse 100% 70% at 0% 0%, rgba(198, 156, 42, 0.09), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 20%, var(--color-teal-glow, rgba(72, 110, 95, 0.14)), transparent 50%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(198, 156, 42, 0.04), transparent 55%),
    linear-gradient(180deg, #070a08 0%, var(--black) 38%, #040605 100%);
  color: var(--text);
  font-family: var(--ff-ui);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

a {
  color: var(--gold);
  text-decoration: none;
}

::-webkit-scrollbar {
  width: 3px;
}
::-webkit-scrollbar-track {
  background: var(--ink);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-d);
  border-radius: 2px;
}

/* ─── Nav ─── */
#nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  height: var(--marketing-nav-h);
  background: rgba(5, 8, 7, 0.92);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--rule);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.03) inset,
    0 3px 0 0 var(--science-dim, rgba(74, 155, 120, 0.15));
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

#nav.nav--home {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  --marketing-nav-h: 64px;
  height: 64px;
  padding: 0 clamp(20px, 4vw, 60px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
}

#nav.nav--home.solid {
  background: rgba(5, 8, 7, 0.97);
  border-bottom: 1px solid var(--gold-line);
  backdrop-filter: blur(22px) saturate(1.15);
}

.nav-brand,
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-ui);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.nav-brand em,
.nav-logo-text em {
  color: var(--gold);
  font-style: normal;
}

.nav-logo-text {
  font-family: var(--ff-ui);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-logo-svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  font-family: var(--ff-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text-3);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--gold);
  background: var(--gold-dim);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-secondary {
  font-family: var(--ff-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text-3);
  padding: 7px 12px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.nav-secondary:hover {
  color: var(--gold);
  background: var(--gold-dim);
}

.nav-cta,
.nav-btn {
  font-family: var(--ff-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  background: var(--gold);
  color: var(--black);
  padding: 9px 20px;
  border-radius: 4px;
  transition: background 0.2s, transform 0.12s, box-shadow 0.2s;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.nav-cta:hover,
.nav-btn:hover {
  background: var(--gold-l);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--gold-glow);
}

#nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

#nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.22s, opacity 0.22s;
}

#nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
#nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

#nav-drawer {
  display: none;
  position: fixed;
  top: var(--marketing-nav-h);
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.98);
  border-bottom: 1px solid var(--rule);
  z-index: 199;
  padding: 12px 20px 20px;
  flex-direction: column;
  gap: 2px;
}

#nav.nav--home ~ #nav-drawer {
  top: 64px;
}

#nav-drawer.open {
  display: flex;
}

#nav-drawer a {
  font-family: var(--ff-ui);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text-3);
  text-decoration: none;
  padding: 11px 8px;
  border-bottom: 1px solid var(--rule);
}

#nav-drawer a.nav-drawer-cta {
  border-bottom: none;
  color: var(--gold);
  font-weight: 700;
  margin-top: 4px;
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .nav-cta,
  .nav-btn,
  .nav-secondary {
    display: none;
  }
  #nav-toggle {
    display: flex;
  }
  #nav-drawer a.nav-secondary-mobile {
    display: block;
    color: var(--text-2);
    font-weight: 600;
  }
}

/* Spacer below fixed home nav */
.nav--home-spacer {
  height: 64px;
}

/* ─── Page hero (inner pages) ─── */
.page-hero {
  padding: clamp(72px, 10vw, 120px) clamp(20px, 6vw, 80px) clamp(52px, 7vw, 80px);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  top: clamp(48px, 8vw, 88px);
  bottom: clamp(32px, 5vw, 56px);
  width: 3px;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(198, 156, 42, 0.15) 55%, transparent 100%);
  opacity: 0.85;
  pointer-events: none;
}

@media (max-width: 640px) {
  .page-hero::before {
    display: none;
  }
}

.page-hero .hero-glow,
.hero-glow-corner {
  position: absolute;
  pointer-events: none;
}

.page-hero .hero-glow {
  bottom: 0;
  right: 0;
  width: 500px;
  height: 100%;
  background: radial-gradient(ellipse at bottom right, rgba(198, 156, 42, 0.05), transparent 60%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 5px 12px;
  background: var(--gold-dim);
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "◆";
  font-size: 0.4rem;
  opacity: 0.55;
}

.page-h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  font-style: normal;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 18px;
}

.page-h1 em {
  color: var(--gold);
}

.page-sub {
  font-size: clamp(0.95rem, 1.7vw, 1.08rem);
  color: var(--text-2);
  line-height: 1.78;
  max-width: 620px;
  font-weight: 300;
}

.main-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(60px, 8vh, 88px) clamp(20px, 6vw, 80px) clamp(80px, 10vh, 120px);
  border-left: 1px solid var(--rule);
  padding-left: clamp(28px, 5vw, 48px);
  margin-left: clamp(0px, 4vw, 32px);
  margin-right: clamp(0px, 4vw, 32px);
}

@media (max-width: 640px) {
  .main-wrap {
    border-left: none;
    padding-left: clamp(20px, 6vw, 80px);
    margin-left: auto;
    margin-right: auto;
  }
}

.section-eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.63rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-label {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--gold);
  display: block;
}

.section-h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  font-weight: 700;
  font-style: normal;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 16px;
}

.section-h2 em {
  color: var(--gold);
}

.prose {
  font-size: clamp(0.9rem, 1.6vw, 1.02rem);
  color: var(--text-2);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: clamp(40px, 5vh, 60px);
}

.prose p {
  margin-bottom: 1.1em;
}
.prose p:last-child {
  margin-bottom: 0;
}
.prose strong {
  color: var(--text);
  font-weight: 600;
}
.prose a {
  color: var(--gold);
}
.prose em {
  font-style: italic;
  color: var(--text);
}

/* About: timeline, stats, endorsement, CTA */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: clamp(48px, 6vh, 72px);
  border: 1px solid var(--rule);
}

.tl-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--rule);
}

.tl-item:last-child {
  border-bottom: none;
}

.tl-date {
  background: var(--gold-dim);
  border-right: 1px solid var(--rule);
  padding: 24px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.tl-date span {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  line-height: 1.5;
}

.tl-body {
  padding: clamp(18px, 2.5vw, 28px) clamp(18px, 3vw, 32px);
}

.tl-title {
  font-family: var(--ff-ui);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}

.tl-desc {
  font-size: 0.86rem;
  color: var(--text-3);
  line-height: 1.7;
  font-weight: 300;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: clamp(48px, 6vh, 72px);
}

.stat-cell {
  background: var(--ink-2);
  padding: clamp(20px, 3vw, 32px);
  text-align: center;
}

.stat-n {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  font-style: normal;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.stat-l {
  font-family: var(--ff-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

@media (max-width: 560px) {
  .stat-row {
    grid-template-columns: 1fr;
  }
  .tl-item {
    grid-template-columns: 1fr;
  }
  .tl-date {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
}

.endorsement {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  padding: clamp(24px, 3.5vw, 40px);
  margin-bottom: clamp(40px, 5vh, 60px);
  border-radius: 0 2px 2px 0;
}

.endorsement-text {
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 14px;
}

.endorsement-attr {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.page-cta {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  padding: clamp(40px, 5vw, 64px);
  text-align: center;
  border-radius: 2px;
}

.page-cta-h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  font-weight: 900;
  font-style: italic;
  color: var(--text);
  margin-bottom: 12px;
}

.page-cta-h2 em {
  color: var(--gold);
}

.page-cta-sub {
  font-size: 0.92rem;
  color: var(--text-3);
  margin-bottom: 28px;
  font-weight: 300;
  line-height: 1.75;
}

.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 30px;
  border-radius: 3px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn-gold:hover {
  background: var(--gold-l);
  transform: translateY(-1px);
  box-shadow: 0 10px 36px var(--gold-glow);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text-2);
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 30px;
  border: 1px solid var(--gold-line);
  border-radius: 3px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: rgba(198, 156, 42, 0.4);
  color: var(--gold);
  background: var(--gold-dim);
}

/* ─── Footer ─── */
footer {
  background: linear-gradient(180deg, rgba(21, 26, 23, 0.5) 0%, var(--ink-2) 24px);
  border-top: 1px solid var(--rule);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  padding: clamp(24px, 3vw, 40px) clamp(20px, 6vw, 80px);
}

.foot-inner,
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.foot-brand,
.footer-brand {
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.foot-brand em,
.footer-brand em {
  color: var(--gold);
  font-style: normal;
}

.foot-links,
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.foot-links a,
.footer-links a {
  font-family: var(--ff-ui);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.18s;
}

.foot-links a:hover,
.footer-links a:hover {
  color: var(--gold);
}

.foot-copy {
  font-family: var(--ff-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--text-3);
  opacity: 0.5;
}

.footer-copy {
  font-size: 0.74rem;
  color: var(--text-3);
  margin-top: 4px;
}

/* Inner-page reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.on,
.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal.d1 {
  transition-delay: 0.08s;
}
.reveal.d2 {
  transition-delay: 0.16s;
}
.reveal.d3 {
  transition-delay: 0.24s;
}
.reveal.d4 {
  transition-delay: 0.32s;
}
