/* ─────────────────────────────────────────────────────────────
   SECTOR / CHD
   Brutalist-minimal. Le Corbusier's grid.
   Flat surfaces. No gradients, no shadows, no rounded corners.
   Four colours, two type weights. Restraint is the brand.
   ───────────────────────────────────────────────────────────── */

:root {
  --asphalt: #1C1C1C;   /* dark background      */
  --concrete: #EDEAE3;  /* light section        */
  --signal: #E03A2F;    /* accent red, sparing  */
  --rebar: #888780;     /* muted grey           */

  --mono: "JetBrains Mono", ui-monospace, monospace;
  --grotesk: "Space Grotesk", system-ui, sans-serif;

  --bar-h: 56px;
  --gutter: clamp(20px, 6vw, 96px);
  --maxw: 1240px;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--bar-h);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--asphalt);
  color: var(--concrete);
  font-family: var(--grotesk);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection { background: var(--signal); color: var(--concrete); }

/* The brand device: a single red forward slash. */
.slash { color: var(--signal); }

/* ── Shared type ─────────────────────────────────────────────── */

.label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rebar);
}
.label--signal { color: var(--concrete); }
.section--light .label--signal { color: var(--asphalt); }

.headline {
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 16ch;
  margin-top: 1.4rem;
}

.prose { margin-top: 2rem; max-width: 56ch; }
.prose p { font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.62; }
.prose p + p { margin-top: 1.25rem; }

/* ── Layout ──────────────────────────────────────────────────── */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap--narrow { max-width: 720px; }

.section { padding-top: clamp(72px, 12vw, 160px); padding-bottom: clamp(72px, 12vw, 160px); }
.section--light { background: var(--concrete); color: var(--asphalt); }
.section--dark { background: var(--asphalt); color: var(--concrete); }

/* ── Top bar ─────────────────────────────────────────────────── */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--bar-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  background: var(--asphalt);
  border-bottom: 1px solid rgba(136, 135, 128, 0.28);
}
.topbar__logo {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
}
.topbar__nav { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.topbar__nav a {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--rebar);
  transition: color 0.18s ease;
}
.topbar__nav a:hover { color: var(--concrete); }
.topbar__nav .nav-signal { color: var(--signal); }
.topbar__nav .nav-signal:hover { color: var(--signal); opacity: 0.72; }

/* The two non-essential nav items collapse on small screens. */
@media (max-width: 640px) {
  .topbar__nav a:nth-child(1),
  .topbar__nav a:nth-child(2) { display: none; }
}

/* ── Hero ────────────────────────────────────────────────────── */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--bar-h) + 6vh) var(--gutter) 8vh;
  background: var(--asphalt);
}
.hero__inner { max-width: var(--maxw); margin: 0 auto; width: 100%; }

.wordmark {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(2.6rem, 14vw, 12rem);
  line-height: 0.92;
  letter-spacing: 0.36em;       /* +36% wide tracking */
  text-indent: 0.36em;          /* counter the trailing tracking gap */
  margin-top: 1.6rem;
  white-space: nowrap;
}
.hero__chd {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(1.2rem, 4vw, 2.4rem);
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  margin-top: 0.4rem;
}
.hero__lede {
  font-family: var(--grotesk);
  font-weight: 400;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  line-height: 1.45;
  max-width: 30ch;
  margin-top: clamp(2rem, 5vh, 3.2rem);
}
.hero__data {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--rebar);
  margin-top: 2rem;
}

/* Staggered load-in. */
.hero__inner > * { opacity: 0; transform: translateY(14px); animation: rise 0.7s ease forwards; }
.hero__inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero__inner > *:nth-child(2) { animation-delay: 0.13s; }
.hero__inner > *:nth-child(3) { animation-delay: 0.21s; }
.hero__inner > *:nth-child(4) { animation-delay: 0.30s; }
.hero__inner > *:nth-child(5) { animation-delay: 0.39s; }
.hero__inner > *:nth-child(6) { animation-delay: 0.48s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ── Buttons ─────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.95rem 1.8rem;
  border: 1px solid var(--signal);
  color: var(--signal);
  background: transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.btn--signal:hover { background: var(--signal); color: var(--concrete); }
.btn--block { width: 100%; margin-top: 1.6rem; }
.btn:disabled { opacity: 0.5; cursor: default; }
.hero .btn { margin-top: 2.4rem; }

/* ── The Ritual ──────────────────────────────────────────────── */

.ritual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid rgba(136, 135, 128, 0.28);
}
.cell {
  padding: 2.4rem clamp(1.2rem, 2.4vw, 2.2rem) 2.4rem 0;
  border-left: 1px solid rgba(136, 135, 128, 0.28);
  padding-left: clamp(1.2rem, 2.4vw, 2.2rem);
}
.cell:first-child { border-left: 0; padding-left: 0; }
.cell__time {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--signal);
}
.cell__title {
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: 1.3rem;
  margin-top: 0.9rem;
}
.cell__body {
  font-family: var(--grotesk);
  font-weight: 400;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--rebar);
  margin-top: 0.7rem;
}
@media (max-width: 720px) {
  .ritual { grid-template-columns: 1fr; }
  .cell { border-left: 0; padding-left: 0; border-top: 1px solid rgba(136, 135, 128, 0.28); }
  .cell:first-child { border-top: 0; }
}

/* ── The Founding 100 — ticker ───────────────────────────────── */

.ticker {
  margin-top: clamp(3rem, 7vw, 5rem);
  overflow: hidden;
  border-top: 1px solid rgba(28, 28, 28, 0.2);
  border-bottom: 1px solid rgba(28, 28, 28, 0.2);
  padding: 1.4rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: ticker 90s linear infinite;
}
.ticker__num {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: var(--asphalt);
  padding: 0 1.6rem;
  opacity: 0.55;
}
.ticker__num--hot { color: var(--signal); opacity: 1; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker:hover .ticker__track { animation-play-state: paused; }

/* ── Form ────────────────────────────────────────────────────── */

.form { margin-top: clamp(2.4rem, 6vw, 3.6rem); }
.field { margin-bottom: 1.6rem; }
.field .label { display: block; margin-bottom: 0.55rem; color: var(--rebar); }

.field input,
.field textarea {
  width: 100%;
  font-family: var(--grotesk);
  font-weight: 400;
  font-size: 1.02rem;
  color: var(--concrete);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rebar);
  padding: 0.6rem 0;
  border-radius: 0;
  transition: border-color 0.18s ease;
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--signal); }
.field input::placeholder { color: var(--rebar); opacity: 0.6; }

.form__note {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--rebar);
  margin-top: 1.1rem;
  text-transform: uppercase;
}
.form__status {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 1.2rem;
  min-height: 1em;
}
.form__status--ok { color: var(--signal); }
.form__status--err { color: var(--signal); }

/* Honeypot — hidden from humans. */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ── Footer ──────────────────────────────────────────────────── */

.footer { background: var(--asphalt); border-top: 1px solid rgba(136, 135, 128, 0.28); padding: 3.2rem 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; }
.footer__logo { font-family: var(--mono); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.18em; }
.footer__tag { color: var(--rebar); }
.footer__links { display: flex; gap: 1.8rem; }
.footer__links a {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--rebar);
  transition: color 0.18s ease;
}
.footer__links a:hover { color: var(--concrete); }
@media (max-width: 560px) {
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ── Motion preferences ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__inner > * { opacity: 1; transform: none; animation: none; }
  .ticker__track { animation: none; }
}
