@import url("colors_and_type.8b0a56001743.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; }
/* Smooth scroll for in-page nav anchors; offset to clear the fixed nav. */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
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);
}
.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); }
.nav-status {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.16em;
}
.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;
}
.btn:hover { transform: translateY(-1px); }
/* Primary button. Default — brand emerald — reads on both warm-paper light
   theme and the dark page. The hero overrides this to a white chip because
   the hero forces a dark-imagery foreground scope, where emerald clashes
   with the green sky composite. */
.btn-primary { background: var(--brand); color: #0d1f15; }
.btn-primary:hover { background: var(--molten-2); }
.hero .btn-primary { background: #f5f5f5; color: #1a1a1a; }
.hero .btn-primary:hover { background: #fff; }
.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; }
.sky {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 35%, #3eea7c 0%, #1a8348 35%, #0e4d2a 70%, #061f12 100%), #061f12;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero .sky {
    background: radial-gradient(ellipse 80% 60% at 70% 30%, #4ade80 0%, #25b768 38%, #0a5226 72%, #082916 100%);
  }
}
:root[data-theme="light"] .hero .sky {
  background: radial-gradient(ellipse 80% 60% at 70% 30%, #4ade80 0%, #25b768 38%, #0a5226 72%, #082916 100%);
}
.sky::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 30% 20% at 70% 35%, rgba(200,255,200,0.45) 0%, transparent 70%);
  mix-blend-mode: screen;
}
.rocks-halo, .rocks-main {
  position: absolute; left: 50%; bottom: 0; width: 110%;
  height: auto; transform: translateX(-50%);
  pointer-events: none; user-select: none;
}
.rocks-halo {
  filter: brightness(0.9) saturate(0) sepia(1) hue-rotate(85deg) saturate(6) brightness(1.15) blur(22px);
  mix-blend-mode: screen; opacity: 0.85;
  transform: translateX(-50%) scale(1.04);
}
.rocks-main {
  /* Template defaults — dark base + high contrast + high saturate sepia.
     Rich orange against deep shadow. */
  filter: brightness(0.5) contrast(1.45) saturate(0) sepia(1) hue-rotate(0deg) saturate(5) brightness(1.02);
}
@media (min-width: 920px) {
  /* Template default: smaller image, pushed down to show sky breathing above */
  .rocks-halo, .rocks-main { width: 100%; bottom: -20%; }
}
.haze {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.35) 70%, rgba(0,0,0,0.78) 100%),
    linear-gradient(to right, rgba(0,0,0,0.55) 0%, transparent 40%);
}
.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;
}
.scanlines {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,0.08) 2px 3px);
  mix-blend-mode: multiply;
}
.hero-content { position: relative; z-index: 2; padding: 110px 56px 80px; max-width: 920px; }
.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; }

/* ============ STAT ROW ============ */
.stat-row {
  display: flex; gap: 24px; flex-wrap: wrap;
  justify-content: space-between; align-items: stretch;
  padding: 38px 32px 42px;
  border-bottom: 1px solid var(--hairline);
}
.stat {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 22px; border: 1px solid var(--hairline-2);
  min-width: 180px; flex: 1;
  background: rgba(255,255,255,0.015);
}
.stat .val {
  font-family: var(--font-pixel); font-size: 38px;
  color: var(--fg); letter-spacing: 0.04em; line-height: 1;
}
.stat .lbl {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.16em;
}

/* ============ 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;
}

/* ============ FEATURES ============ */
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--hairline);
}
.feature {
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
  display: flex; flex-direction: column;
  min-height: 560px;
}
.feature:nth-child(even) { border-right: none; }
.feature:nth-last-child(-n+2) { border-bottom: none; }
.feature-strip {
  display: flex; align-items: center; padding: 14px 22px;
  border-bottom: 1px solid var(--hairline); gap: 12px;
}
.feature-strip .sq { width: 10px; height: 10px; background: var(--fg); }
.feature-strip .name {
  font-family: var(--font-pixel); font-size: 18px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg); margin-top: 2px;
}
.feature-strip .num {
  margin-left: auto; font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-dim); letter-spacing: 0.16em;
}
.feature-art {
  position: relative; aspect-ratio: 16 / 10;
  overflow: hidden; border-bottom: 1px solid var(--hairline);
  background: #0c0606;
}
.feature-art .sky {
  background:
    repeating-linear-gradient(to bottom, transparent 0 2px, var(--scanline) 2px 3px),
    var(--bg);
}
.feature-art .sky::after { display: none; }
/* The crystals/haze/grain motif is reserved for the hero. Inside feature
   cards the backdrop is just the scanline pattern — hide any decoration. */
.feature-art .crystals,
.feature-art .haze,
.feature-art .grain { display: none; }
.feature-art .mockup {
  position: absolute; bottom: -2px; right: 18px;
  width: 64%; z-index: 3;
  transform: translateY(2%);
  filter: drop-shadow(var(--shadow-mockup));
}
.feature-text { padding: 28px 32px 36px; }
.feature-text h3 {
  font-family: var(--font-sans); font-weight: 400;
  font-size: 30px; line-height: 1.08; letter-spacing: -0.015em;
  color: var(--fg-strong); margin: 0 0 12px; max-width: 22ch;
}
.feature-text p {
  color: var(--fg-muted); margin: 0;
  font-size: 15.5px; max-width: 50ch;
}
.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); }

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--bg); overflow: hidden; padding: 38px 0;
}
.marquee-track {
  display: flex; gap: 56px; width: max-content;
  animation: scroll 38s linear infinite;
  align-items: center;
}
.marquee-item {
  font-family: var(--font-pixel); font-size: 96px;
  letter-spacing: 0.04em; color: var(--fg);
  white-space: nowrap; line-height: 1;
}
.marquee-item.dim { color: var(--fg-dim); }
.marquee-item.sep { font-size: 64px; color: var(--fg-muted); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ METHODOLOGY ============ */
.research {
  display: grid; grid-template-columns: 280px 1fr;
  border-bottom: 1px solid var(--hairline);
}
.research-side {
  padding: 56px 32px;
  border-right: 1px solid var(--hairline);
}
.research-side .kicker {
  font-family: var(--font-pixel); font-size: 18px;
  letter-spacing: 0.16em; color: var(--fg);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px; text-transform: uppercase;
}
.research-side .kicker .sq { width: 10px; height: 10px; background: var(--fg); }
.research-side p { font-size: 14px; color: var(--fg-muted); margin: 0 0 14px; }
.research-entry {
  display: grid; grid-template-columns: 110px 1fr auto;
  gap: 24px; padding: 26px 32px;
  border-top: 1px solid var(--hairline);
  align-items: baseline;
}
.research-entry:last-child { border-bottom: 1px solid var(--hairline); }
.research-entry .date {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--fg-dim); letter-spacing: 0.14em; text-transform: uppercase;
}
.research-entry h4 {
  font-family: var(--font-sans); font-weight: 400; font-size: 22px;
  letter-spacing: -0.01em; color: var(--fg-strong);
  margin: 0 0 8px; line-height: 1.15;
}
.research-entry p { margin: 0; color: var(--fg-muted); font-size: 14px; max-width: 64ch; }
.research-entry .pdf {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-dim); letter-spacing: 0.16em;
  text-transform: uppercase; align-self: center;
}

/* ============ DISTRIBUTION ============ */
.dist {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--hairline);
}
.dist-card {
  border-right: 1px solid var(--hairline);
  padding: 36px 32px 40px;
  display: flex; flex-direction: column;
  gap: 18px; min-height: 360px;
}
.dist-card:last-child { border-right: none; }
.dist-card .icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border: 1px solid var(--hairline-2);
  color: var(--fg);
}
.dist-card h4 {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 22px; margin: 0; color: var(--fg-strong);
  letter-spacing: -0.01em;
}
.dist-card .tag {
  font-family: var(--font-pixel); font-size: 16px;
  letter-spacing: 0.16em; color: var(--fg-muted);
  text-transform: uppercase;
}
.dist-card p { margin: 0; color: var(--fg-muted); font-size: 14.5px; flex: 1; }
.dist-card code {
  font-family: var(--font-mono); font-size: 13px;
  background: var(--surface); padding: 12px 14px; color: var(--fg);
  border: 1px solid var(--hairline-2); display: inline-block;
}

/* ============ 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) {
  .feature-grid { grid-template-columns: 1fr; }
  .research { grid-template-columns: 1fr; }
  .dist { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .grid-rules, .plus-marks { display: none; }
}
