/* ============================================================================
   oxavane — signal-operations design system
   Hand-authored, no build step. Dark / technical / precise.
   Deliberately distinct from sfadsmedia.com (warm editorial). Single aqua accent.
   ============================================================================ */

/* ---- tokens ------------------------------------------------------------- */
:root {
  /* canvas */
  --void: #07080B;
  --panel: #0E1014;
  --panel-2: #14171D;
  --panel-3: #1A1E26;

  /* ink */
  --text: #EAEDF2;
  --text-dim: rgba(234, 237, 242, 0.62);
  --text-faint: rgba(234, 237, 242, 0.40);
  --text-ghost: rgba(234, 237, 242, 0.22);

  /* signal */
  --signal: #3BE8C0;
  --signal-deep: #19B596;
  --signal-glow: rgba(59, 232, 192, 0.16);

  /* rules */
  --rule: rgba(234, 237, 242, 0.10);
  --rule-2: rgba(234, 237, 242, 0.18);

  /* type */
  --font-display: "Bricolage Grotesque", "Archivo", system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* scale */
  --fs-hero: clamp(52px, 9vw, 156px);
  --fs-dl: clamp(40px, 6.4vw, 104px);
  --fs-dm: clamp(32px, 4.4vw, 66px);
  --fs-ds: clamp(24px, 2.8vw, 40px);
  --fs-num: clamp(56px, 9vw, 132px);

  /* layout */
  --wrap: 1320px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---- base --------------------------------------------------------------- */
html { color: var(--text); background: var(--void); }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--void);
  position: relative;
  overflow-x: hidden;
}

/* faint scanline + vignette overlay — "screen" texture, very subtle */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: repeating-linear-gradient(
    0deg, rgba(255, 255, 255, 0.015) 0, rgba(255, 255, 255, 0.015) 1px,
    transparent 1px, transparent 3px);
  opacity: 0.5;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(120% 90% at 50% -10%, rgba(59, 232, 192, 0.05), transparent 60%);
}

::selection { background: var(--signal); color: var(--void); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

/* ---- layout ------------------------------------------------------------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 12vw, 168px); position: relative; z-index: 2; }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.rule-top { border-top: 1px solid var(--rule); }
.grid { display: grid; gap: clamp(22px, 2.6vw, 44px); }
.cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

@media (max-width: 860px) {
  .cols-12 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  [class*="col-"] { grid-column: auto !important; }
}

/* Use grid-column-END for the span so a sibling .start-N (grid-column-start)
   composes correctly — the `grid-column: span N` shorthand would reset the
   start and collapse `.col-6.start-7` to a single track. */
.col-3 { grid-column-end: span 3; }
.col-4 { grid-column-end: span 4; }
.col-5 { grid-column-end: span 5; }
.col-6 { grid-column-end: span 6; }
.col-7 { grid-column-end: span 7; }
.col-8 { grid-column-end: span 8; }
.start-6 { grid-column-start: 6; }
.start-7 { grid-column-start: 7; }
.start-8 { grid-column-start: 8; }

/* ---- type helpers ------------------------------------------------------- */
.display { font-family: var(--font-display); font-weight: 600; line-height: 0.98; letter-spacing: -0.025em; font-variation-settings: "opsz" 48; }
.mono { font-family: var(--font-mono); }
.signal { color: var(--signal); }
.dim { color: var(--text-dim); }
.faint { color: var(--text-faint); }

h1.hero {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-hero);
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 48;
  max-width: 16ch;
}
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--text-dim); max-width: 60ch; }

/* eyebrow — mono instrument readout: ▸ 01 — LABEL ───── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before { content: "▸"; color: var(--signal); font-size: 10px; }
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--rule); min-width: 40px; }
.eyebrow--plain::after { display: none; }

/* ---- links -------------------------------------------------------------- */
.link { position: relative; display: inline-block; }
.link::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1px;
  background: var(--signal); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.link:hover::after { transform: scaleX(1); }
.link--always::after { background: var(--rule-2); transform: scaleX(1); }
.link--always:hover::after { background: var(--signal); }

/* ---- buttons ------------------------------------------------------------ */
.btn {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 17px 22px; border: 1px solid var(--signal); color: var(--signal);
  background: transparent; transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { background: var(--signal); color: var(--void); box-shadow: 0 0 0 1px var(--signal), 0 8px 40px -12px var(--signal-glow); }
.btn .arw { transition: transform 0.3s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn--ghost { border-color: var(--rule-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); background: transparent; color: var(--text); box-shadow: none; }
.btn--block { width: 100%; }

/* ---- header / nav ------------------------------------------------------- */
.site-head {
  position: relative; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 22px var(--gutter);
  max-width: var(--wrap); margin-inline: auto;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 18px; height: 18px; flex-shrink: 0; }
.wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  letter-spacing: -0.02em; color: var(--text); line-height: 1;
}
.livedot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 0 0 var(--signal-glow);
}
.livedot--pulse { animation: pulse 2.6s var(--ease) infinite; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--text-dim); transition: color 0.2s;
}
.nav a:hover { color: var(--text); }
.status-chip {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--text-dim); display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--rule); padding: 7px 12px;
}
@media (max-width: 860px) {
  .nav, .head-cta { display: none; }
}

/* ---- hero --------------------------------------------------------------- */
.hero-wrap { padding-top: clamp(32px, 6vw, 80px); padding-bottom: clamp(48px, 9vw, 120px); }
.hero-word { display: inline-block; opacity: 0; transform: translateY(26px); animation: rise 0.9s var(--ease) forwards; }
.hero-word:nth-child(1) { animation-delay: 0.05s; }
.hero-word:nth-child(2) { animation-delay: 0.13s; }
.hero-word:nth-child(3) { animation-delay: 0.21s; }
.hero-word:nth-child(4) { animation-delay: 0.29s; }
.hero-word:nth-child(5) { animation-delay: 0.37s; }
.hero-word:nth-child(6) { animation-delay: 0.45s; }
.hero-word:nth-child(7) { animation-delay: 0.53s; }
.hero-word:nth-child(8) { animation-delay: 0.61s; }

/* ---- data ticker -------------------------------------------------------- */
.ticker { border-block: 1px solid var(--rule); background: var(--panel); overflow: hidden; padding-block: 16px; position: relative; z-index: 2; }
.ticker-track { display: flex; width: max-content; animation: slide 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--text-dim); white-space: nowrap; display: inline-flex; align-items: center; padding-inline: 30px;
}
.tick::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--signal); margin-left: 30px; opacity: 0.7; }

/* ---- stats / numerals --------------------------------------------------- */
.numeral { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-num); line-height: 0.84; letter-spacing: -0.04em; font-variation-settings: "opsz" 48; }
.stat-cap { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-faint); margin-top: 18px; }

/* ---- panels / cards ----------------------------------------------------- */
.panel { background: var(--panel); border: 1px solid var(--rule); padding: clamp(24px, 3vw, 40px); }
.step-n { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--signal); margin-bottom: 18px; }
.step-h { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-ds); letter-spacing: -0.02em; margin-bottom: 14px; font-variation-settings: "opsz" 40; }

/* spec list (key/value, instrument readout) */
.spec { border-top: 1px solid var(--rule); }
.spec-row { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.spec-k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-faint); }
.spec-v { font-size: 15px; color: var(--text); text-align: right; }

/* transparency chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.chips .lbl { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-faint); }
.chips a { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text); }

/* ---- reveal motion ------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* ---- footer ------------------------------------------------------------- */
.site-foot { position: relative; z-index: 2; border-top: 1px solid var(--rule); background: var(--panel); margin-top: clamp(64px, 10vw, 140px); padding: clamp(56px, 8vw, 96px) 0 40px; }
.foot-brand { max-width: 34ch; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-faint); margin-bottom: 18px; }
.foot-col li { margin-bottom: 11px; }
.foot-col a { color: var(--text-dim); transition: color 0.2s; font-size: 15px; }
.foot-col a:hover { color: var(--text); }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; margin-top: 56px; border-top: 1px solid var(--rule); }
.foot-bar span { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-ghost); }
address.addr { font-style: normal; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-faint); line-height: 2; margin-top: 28px; }

/* ---- prose (legal + blog) ----------------------------------------------- */
.prose { max-width: 70ch; font-size: 16px; line-height: 1.7; color: var(--text-dim); }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.02em; color: var(--text); margin: 52px 0 16px; line-height: 1.15; }
.prose h3 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--signal); margin: 38px 0 12px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin: 0 0 9px; }
.prose li::marker { color: var(--text-faint); }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 3px; }
.prose a:hover { color: var(--signal); }
.prose strong { color: var(--text); font-weight: 600; }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--panel-2); border: 1px solid var(--rule); padding: 1px 6px; border-radius: 3px; color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 48px 0; }
.prose blockquote { border-left: 2px solid var(--signal); padding-left: 22px; margin: 28px 0; color: var(--text); font-size: 18px; }

/* page header for interior pages */
.page-head { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(36px, 5vw, 64px); }
.page-title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-dm); line-height: 0.98; letter-spacing: -0.03em; max-width: 18ch; font-variation-settings: "opsz" 48; }

/* article meta */
.meta { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-faint); display: flex; gap: 16px; flex-wrap: wrap; }

/* journal list */
.entry { display: block; padding: 28px 0; border-top: 1px solid var(--rule); transition: padding-left 0.3s var(--ease); }
.entry:hover { padding-left: 12px; }
.entry:last-child { border-bottom: 1px solid var(--rule); }
.entry-h { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.02em; margin: 10px 0; }
.entry:hover .entry-h { color: var(--signal); }

/* ---- keyframes ---------------------------------------------------------- */
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--signal-glow); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-word, .reveal { animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }
  .ticker-track { animation: none; }
  .livedot--pulse { animation: none; }
}
