@import url("colors_and_type.81dcdd0e2755.css");

/* =========================================================
   Marketing kit — all the page-level motifs.
   Tokens are inherited from colors_and_type.css.
   ========================================================= */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Rendered height of the fixed nav. Single source of truth for the in-page
   anchor offset (below) and the content top-offset on inner pages (blog/quickscan). */
:root { --nav-h: 74px; }
/* Smooth scroll for in-page nav anchors; land the target flush under the fixed nav. */
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
/* Clip horizontal overflow at BOTH the root and body. The hero "rocks" art
   bleeds a little past the viewport by design; body-only overflow-x:hidden
   doesn't stop the horizontal pan on mobile Safari (the root html element is
   the viewport scroller there), so the clip has to live on html too. */
html { overflow-x: hidden; }
body {
  overflow-x: hidden;
  /* Same bg as the page — the template does NOT use a darker gutter colour;
     the page-rule hairlines are the only visual separator. */
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }

.page {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--bg);
  border-left: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
  /* Clip the bleeding hero art at the page boundary so it can't widen the
     viewport on mobile. (overflow-x:clip clips without making this a scroll
     container, so the fixed nav and in-page anchors are unaffected.) */
  overflow-x: clip;
}
.grid-rules {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, var(--hairline) 1px, transparent 1px);
  background-size: 220px 100%;
  z-index: 0;
}
.plus-marks {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><g stroke='%23ffffff' stroke-opacity='0.22' stroke-width='1'><line x1='-4' y1='0' x2='4' y2='0'/><line x1='0' y1='-4' x2='0' y2='4'/></g></svg>");
  background-size: 220px 220px;
  z-index: 0;
}
/* Light mode: plus markers switch to black strokes so they read on warm paper. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .plus-marks {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><g stroke='%23000000' stroke-opacity='0.30' stroke-width='1'><line x1='-4' y1='0' x2='4' y2='0'/><line x1='0' y1='-4' x2='0' y2='4'/></g></svg>");
  }
}
:root[data-theme="light"] .plus-marks {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><g stroke='%23000000' stroke-opacity='0.30' stroke-width='1'><line x1='-4' y1='0' x2='4' y2='0'/><line x1='0' y1='-4' x2='0' y2='4'/></g></svg>");
}
.page > *:not(.nav) { position: relative; z-index: 1; }

/* ============ NAV ============ */
.nav {
  display: flex; align-items: center; gap: 28px;
  padding: 18px 32px;
  border-bottom: 1px solid transparent;
  background: transparent;
  /* Sticky over the hero — fixed to the top of the viewport, capped at the
     page's max-width and centered with translateX so it visually "sits inside"
     the 1320px page rule on wide viewports. */
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--maxw);
  z-index: 50;
  transition: background 200ms linear, border-color 200ms linear;
}
/* Over the always-dark hero, force the foreground stack to light so the
   wordmark + links read on top of the photograph. Once scrolled past, drop
   these overrides so the nav inherits the page theme — wordmark goes dark
   on warm paper in light mode, stays white in dark mode. */
.nav:not(.scrolled) {
  --fg: #f5f5f5; --fg-strong: #fff; --fg-muted: #cfcfcf; --fg-dim: #888;
}
.nav.scrolled {
  background: var(--bg);
  border-bottom-color: var(--hairline);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 22px; height: 22px; color: var(--fg); display: grid; place-items: center; }
.brand-mark svg { width: 100%; height: 100%; display: block; transition: color 200ms linear; }
.nav:not(.scrolled) .brand-mark { color: #fff; }
.nav.scrolled .brand-mark { color: var(--brand); }
footer .brand-mark { color: var(--brand); }
.brand-word {
  font-family: var(--font-pixel); font-size: 22px;
  letter-spacing: 0.16em;
  color: var(--fg); margin-top: 3px;
}
.nav-links { display: flex; gap: 24px; margin-left: 32px; }
.nav-links a { font-size: 14px; color: var(--fg-muted); transition: color 100ms linear; white-space: nowrap; }
.nav-links a:hover { color: var(--fg); }
/* Current page in the shared header (blog / quick scan): a subtle brightness
   cue only — aria-current stays in the markup for screen readers. */
.nav-links a[aria-current="page"] { color: var(--fg); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--status); box-shadow: var(--shadow-glow); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: var(--r-sharp);
  font-size: 14px; font-weight: 500; line-height: 1;
  border: 1px solid transparent;
  transition: transform 80ms ease-out, background 120ms linear, color 120ms linear, border-color 120ms linear;
  font-family: var(--font-sans); cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
/* Primary button — brand emerald reads on both themes. */
.btn-primary { background: var(--brand); color: #0d1f15; }
.btn-primary:hover { background: var(--molten-2); }
.btn-secondary { background: transparent; color: #f5f5f5; border-color: rgba(255,255,255,0.32); }
.btn-secondary:hover { border-color: #fff; }
/* Once the nav has scrolled past the hero, the surrounding surface follows
   the page theme — drop the white-on-dark assumption so the secondary CTA
   reads in light mode too. */
.nav.scrolled .btn-secondary { color: var(--fg); border-color: var(--hairline-2); }
.nav.scrolled .btn-secondary:hover { color: var(--fg-strong); border-color: var(--fg-muted); }

/* ============ HERO ============ */
.hero {
  position: relative; overflow: hidden; min-height: 720px;
  border-bottom: 1px solid var(--hairline);
  --fg: #f5f5f5; --fg-strong: #fff; --fg-muted: #cfcfcf; --fg-dim: #888;
}
.hero-art { position: absolute; inset: 0; z-index: 0; }
/* Flat page-field sky — the quiet backdrop the constellation sits on. Painted
   here (not in a late inline <style>) so first paint never flashes. */
.sky { position: absolute; inset: 0; background: var(--bg); }
.grain {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5; mix-blend-mode: overlay;
}
.hero h1 {
  font-family: var(--font-sans); font-weight: 400;
  font-size: clamp(46px, 6.4vw, 92px); line-height: 0.98;
  letter-spacing: -0.025em; margin: 0 0 28px;
  color: #fff; max-width: 14ch;
}
.hero h1 em { font-style: normal; color: var(--fg-muted); }
.hero p {
  font-size: 18px; line-height: 1.5;
  color: var(--fg-muted); max-width: 56ch; margin: 0 0 36px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ SECTION HEADER ============ */
.section-header {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 32px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.section-header .sq { width: 14px; height: 14px; background: var(--fg); flex: 0 0 14px; }
.section-header .label {
  font-family: var(--font-pixel); font-size: 22px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg); margin-top: 2px;
}
.section-header .chev {
  margin-left: auto;
  font-family: var(--font-pixel); color: var(--fg-muted);
  font-size: 22px; letter-spacing: 0.05em;
}
.section-header .meta {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.18em;
  padding: 0 14px;
}

/* ============ BLOG READ-MORE ============ */
.read-more {
  margin-top: 22px; display: inline-flex; gap: 10px; align-items: center;
  font-family: var(--font-pixel); font-size: 16px;
  letter-spacing: 0.14em; color: var(--fg-muted);
  text-transform: uppercase; transition: color 120ms linear;
}
.read-more:hover { color: var(--fg); }

/* ============ FOOT BAND ============ */
.foot-band {
  position: relative; height: 240px; overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: radial-gradient(ellipse 90% 100% at 70% 90%, #3eea7c 0%, #26bd66 14%, #0a5226 32%, #082916 60%, #0a0606 100%);
  --fg: #f5f5f5; --fg-muted: #cfcfcf;
}
.foot-band-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 18%;
  pointer-events: none; user-select: none;
  filter: brightness(0.13) contrast(1.7) saturate(0);
  z-index: 1;
}
.foot-band-img.glow {
  filter: brightness(0.28) contrast(1.4) saturate(0) sepia(1) hue-rotate(0deg) saturate(6);
  mix-blend-mode: screen; opacity: 0.7; z-index: 2;
}
.foot-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 20%);
  z-index: 3;
}
.foot-band .pixel-overlay {
  position: absolute; bottom: 26px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-pixel); font-size: 22px;
  letter-spacing: 0.2em; color: var(--fg);
  text-transform: uppercase; z-index: 4;
  text-shadow: 0 1px 0 rgba(0,0,0,0.7);
}

/* ============ FOOTER ============ */
footer {
  padding: 56px 32px 24px; background: var(--bg);
  border-top: 1px solid var(--hairline);
}
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 56px;
  border-bottom: 1px solid var(--hairline);
}
.foot-grid h5 {
  font-family: var(--font-pixel); font-size: 16px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg); margin: 0 0 18px;
}
.foot-grid ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.foot-grid a { font-size: 14px; color: var(--fg-muted); }
.foot-grid a:hover { color: var(--fg); }
.foot-brand p { color: var(--fg-muted); font-size: 14px; margin: 14px 0 0; max-width: 36ch; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-dim); letter-spacing: 0.16em;
  text-transform: uppercase;
}
.foot-bottom .ascii {
  font-family: var(--font-pixel); font-size: 22px;
  color: var(--fg-dim); letter-spacing: 0.04em;
}

@media (max-width: 920px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .grid-rules, .plus-marks { display: none; }
  /* Tighten the nav so the wordmark + the single "Sign in" CTA fit one row. */
  .nav { padding: 14px 18px; gap: 14px; }
  .nav .btn { margin-left: auto; }
}
