/* ============================================================
   Dataland Wall — minimal, dark, single-column manifesto
   ============================================================ */

:root {
  --bg: #0A0A0A;
  --bg-elevated: #111114;
  --fg: #E8E8E8;
  --fg-muted: #8A8A8A;
  --fg-quiet: #585858;
  --fg-faint: #3D3D3D;
  --rule: #1F1F22;
  --rule-strong: #2C2C30;
  --accent: #FFFFFF;
  --quote: #C8C8C8;

  --font: "Inter", -apple-system, system-ui, sans-serif;
  --col-w: 580px;
  --col-pos: end; /* start | center | end */
}

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

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-feature-settings: "ss01", "ss02", "cv11", "cv05";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

::selection { background: rgba(255,255,255,0.18); color: #fff; }

/* ============================================================
   Background layers — fixed behind everything, pointer-events none.
   Two modes ("editorial" / "structural") chosen via Tweaks.
   ============================================================ */
.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.page { position: relative; z-index: 1; }
.wall-frame, .site-header, .site-footer { position: relative; z-index: 1; }

/* ---------- Editorial: grid + vignette + grain ---------- */
.bg-grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 96px 96px;
  /* fade grid as it approaches edges so it doesn't compete with content */
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 95%);
}
.bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(0,0,0,0.5), transparent 60%),
    radial-gradient(ellipse 90% 60% at 50% 0%,   rgba(0,0,0,0.45), transparent 60%);
}
.bg-grain {
  position: absolute;
  inset: -50%;
  /* tiny SVG noise tile, scaled small for fine grain */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><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.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
  opacity: 0.035;
  mix-blend-mode: overlay;
  animation: grain-drift 7s steps(6) infinite;
}
@keyframes grain-drift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -2%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Structural: column rules + aurora ---------- */
.bg-rules {
  position: absolute;
  inset: 0;
  /* match .page horizontal padding so rules align with content edges */
  padding: 0 56px;
}
.bg-rule {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255,255,255,0.05) 12%,
    rgba(255,255,255,0.05) 88%,
    transparent 100%
  );
  transform: translateX(-0.5px);
}
.bg-rule:nth-child(1) { left: 56px !important; }
.bg-rule:nth-child(2) { left: 50% !important; }
.bg-rule:nth-child(3) { left: auto !important; right: 56px; }

/* Mesh disabled (no colored orbs) — keep the bg-mesh-shadow overlay
   so column copy still has a dark band sitting between the wave and
   the text layer. */
.bg-mesh { display: none !important; }

/* Gradient mesh — five overlapping radial color fields on one canvas, each
   with its own slow background-position drift. The fields blend into a
   continuous flowing surface, no discrete orbs. Heavy blur + grain hide
   any banding. */
.bg-mesh {
  position: absolute;
  inset: -10%;
  background-color: transparent;
  /* Saturated indigo → violet color fields — the brand pulls. Higher
     alphas because the layer no longer has its own black floor; the page
     bg shows through gaps. */
  background-image:
    radial-gradient(58% 52% at 18% 22%, rgba(74, 96, 168, 0.85) 0%, rgba(74, 96, 168, 0) 65%),
    radial-gradient(52% 48% at 82% 28%, rgba(94, 76, 162, 0.80) 0%, rgba(94, 76, 162, 0) 60%),
    radial-gradient(64% 56% at 28% 78%, rgba(54, 64, 142, 0.78) 0%, rgba(54, 64, 142, 0) 62%),
    radial-gradient(58% 50% at 76% 82%, rgba(120, 78, 156, 0.75) 0%, rgba(120, 78, 156, 0) 60%),
    radial-gradient(70% 60% at 50% 50%, rgba(48, 56, 122, 0.65) 0%, rgba(48, 56, 122, 0) 70%);
  background-size:
    140% 140%,
    130% 130%,
    150% 150%,
    135% 135%,
    160% 160%;
  filter: blur(60px) saturate(1.15);
  opacity: 1;
  will-change: background-position;
  animation: mesh-flow 38s ease-in-out infinite alternate;
}
/* Each layer's background-position drifts on its own — separated by commas in
   the same shorthand. Asymmetric percentages keep the field from ever
   settling into a static composition. */
@keyframes mesh-flow {
  0% {
    background-position:
      0%   0%,
      100% 0%,
      0%   100%,
      100% 100%,
      50%  50%;
  }
  25% {
    background-position:
      30%  20%,
      70%  35%,
      20%  70%,
      80%  60%,
      40%  60%;
  }
  50% {
    background-position:
      55%  40%,
      45%  60%,
      45%  45%,
      55%  35%,
      60%  40%;
  }
  75% {
    background-position:
      75%  65%,
      25%  85%,
      65%  20%,
      30%  10%,
      35%  55%;
  }
  100% {
    background-position:
      100% 100%,
      0%   100%,
      100% 0%,
      0%   0%,
      55%  45%;
  }
}



/* ---- Black overlay (sits on top of mesh + pixels) ----
   This is the contrast layer for the foreground text. It darkens the
   colorful pixel/mesh substrate so copy stays legible. Anchors are
   weighted toward where the column copy sits so the center reads darker
   than the edges. */
.bg-mesh-shadow {
  position: absolute;
  inset: -10%;
  background-color: rgba(8,8,10,0.45);
  background-image:
    /* center column — strong darkening for text legibility */
    radial-gradient(60% 70% at 50% 50%, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.30) 70%),
    /* drifting weather pockets */
    radial-gradient(48% 48% at 25% 30%, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 65%),
    radial-gradient(52% 48% at 78% 22%, rgba(0,0,0,0.50) 0%, rgba(0,0,0,0) 65%),
    radial-gradient(56% 52% at 30% 80%, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 67%),
    radial-gradient(52% 48% at 80% 75%, rgba(0,0,0,0.50) 0%, rgba(0,0,0,0) 65%);
  background-size:
    auto auto,
    150% 150%,
    140% 140%,
    160% 160%,
    145% 145%;
  filter: blur(60px);
  opacity: 0.92;
  will-change: background-position;
  /* Different period than the color mesh so the overlap pattern never
     repeats exactly, giving the field a constantly-shifting weather feel. */
  animation: mesh-shadow-flow 54s ease-in-out infinite alternate;
}
@keyframes mesh-shadow-flow {
  0% {
    background-position:
      50% 50%,
      0%   100%,
      100% 0%,
      100% 100%,
      0%   0%;
  }
  30% {
    background-position:
      45% 55%,
      40%  60%,
      60%  40%,
      30%  30%,
      70%  70%;
  }
  60% {
    background-position:
      55% 45%,
      75%  20%,
      20%  80%,
      80%  60%,
      25%  35%;
  }
  100% {
    background-position:
      50% 50%,
      100% 0%,
      0%   100%,
      0%   0%,
      100% 100%;
  }
}

/* ---- Full-bleed pixel field (canvas) ----
   The page substrate. A single <canvas> renders the whole field; only ~5%
   of pixels animate, the rest are baked into a static buffer that gets
   blitted each frame. Loop is throttled and pauses when off-screen. */
.bg-pixel-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Soft vignette mask so pixels fade gently at extreme edges — keeps the
     field from feeling like a hard print at the viewport boundary. */
  mask-image: radial-gradient(ellipse 100% 90% at 50% 50%, black 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 100% 90% at 50% 50%, black 60%, transparent 100%);
}
.bg-pixel-field canvas {
  display: block;
  width: 100%;
  height: 100%;
  /* Pixels paint their own indigo/violet color now (wave layer) so we
     don't need overlay blending; normal compositing keeps the colors
     pure and the dim dust crisp. */
}

/* Single soft vignette, much lighter than before */
.bg-structural::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 110% 90% at 50% 50%, transparent 40%, rgba(10,10,10,0.55) 100%);
  pointer-events: none;
}

@media (max-width: 880px) {
  .bg-rules { padding: 0 28px; }
  .bg-rule:nth-child(1) { left: 28px !important; }
  .bg-rule:nth-child(3) { right: 28px; }
  .bg-mesh { filter: blur(40px) saturate(1.05); }
  .bg-mesh-shadow { filter: blur(50px); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-mesh, .bg-mesh-shadow, .bg-grain {
    animation: none !important;
  }
}

/* Twinkle keyframes are baked into the canvas loop now, not CSS. */

@media (prefers-reduced-motion: reduce) {
  .bg-pixel-field canvas { animation: none !important; }
}

/* ---------- Page ---------- */
.page {
  min-height: 100vh;
  padding: 0 56px 56px; /* header is fixed; remove top padding here */
}
  display: grid;
  grid-template-rows: auto 1fr auto;
  row-gap: 0;
}

@media (max-width: 880px) {
  .page { padding: 0 28px 36px; }
  .site-header { padding-left: 28px; padding-right: 28px; padding-top: 14px; padding-bottom: 14px; }
}

/* ---------- Header (sticky, transparent) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 56px; /* tracks .page horizontal padding */
  background: transparent;
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--rule);
}
.brand { display: inline-flex; align-items: center; }
.brand img {
  height: 22px;
  width: auto;
  display: block;
  opacity: 0.95;
}
.join-link {
  color: var(--fg);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  transition: border-color 160ms ease, background 160ms ease;
}
.join-link:hover {
  border-color: var(--fg-muted);
  background: rgba(255,255,255,0.03);
}
.join-link span { transition: transform 160ms ease; }
.join-link:hover span { transform: translateX(2px); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  padding-top: 96px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 12.5px;
  letter-spacing: -0.005em;
  color: var(--fg-quiet);
}
.footer-mark {
  color: var(--fg-muted);
  font-weight: 500;
}
.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}
.footer-nav a:hover { color: var(--fg); }

@media (max-width: 720px) {
  .footer-nav { gap: 18px; }
}

/* ---------- Nav strips (legacy, kept for safety) ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 12px;
  padding: 4px 0;
  font-size: 11.5px;
  letter-spacing: 0.005em;
  font-weight: 400;
  color: var(--fg-quiet);
}
.strip a {
  color: inherit;
  text-decoration: none;
  text-align: center;
  transition: color 220ms;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.strip a:hover { color: var(--fg); }
.strip-bottom { margin-top: auto; padding-top: 80px; }

@media (max-width: 1100px) {
  .strip { grid-template-columns: repeat(6, 1fr); }
  .strip a:nth-child(n+7) { display: none; }
}
@media (max-width: 720px) {
  .strip { grid-template-columns: repeat(3, 1fr); }
  .strip a:nth-child(n+4) { display: none; }
}

/* ---------- Wall (column container) ---------- */
.wall-frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 168px 0 160px; /* extra top to clear fixed header */
}
.wall-frame[data-col="end"]    .wall { grid-column: 2; justify-self: start; margin-left: 32px; }
.wall-frame[data-col="center"] { grid-template-columns: 1fr; }
.wall-frame[data-col="center"] .wall { justify-self: center; }
.wall-frame[data-col="start"]  .wall { grid-column: 1; justify-self: end; margin-right: 32px; }

.wall {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.wall[data-w="narrow"] { max-width: 480px !important; }
.wall[data-w="medium"] { max-width: 580px !important; }
.wall[data-w="wide"]   { max-width: 760px !important; }

@media (max-width: 880px) {
  .wall-frame {
    padding: 104px 0 96px;
    grid-template-columns: 1fr !important;
    justify-items: stretch !important;
  }
  .wall-frame[data-col="end"]   .wall,
  .wall-frame[data-col="start"] .wall,
  .wall-frame[data-col="center"] .wall {
    grid-column: 1 !important;
    justify-self: stretch !important;
    margin: 0 !important;
    max-width: none !important;
    padding: 0;
  }
  .wall { max-width: none !important; }
  /* Stanza markers (asterisks) move inline so they're not clipped */
  .stanza-mark {
    position: static;
    display: block;
    text-align: left;
    margin-bottom: 6px;
    width: auto;
  }
  .stanza { padding-left: 0; }
  .bg-rules { padding: 0 28px; }
}

/* ---------- Headline ---------- */
.wall-h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 14px;
  text-wrap: balance;
}
/* Lede — sits right under the H1, white, slightly smaller, normal
   weight; a single sentence that frames what Dataland actually does
   and the verticals it works across. */
.wall-lede {
  margin: 0 0 28px;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

/* ---------- Stanza ---------- */
.stanza {
  position: relative;
  padding-bottom: 32px;
}
/* Section headline — sits above the stanza copy, white, slightly
   tighter than the wall-h1. Establishes a clear section break and
   gives each stanza a one-line claim. */
.stanza-title {
  margin: 0 0 12px;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.4;
}
.stanza > p {
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 16px;
  font-size: 13.5px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: -0.002em;
  text-wrap: pretty;
}
.stanza > p:last-child { margin-bottom: 0; }

/* ---------- Lead phrase (promoted to full white) ----------
   Wrap a sentence or fragment in <span class="lead">…</span> to bump it
   above the muted body color and create an inline scanning beat. */
.stanza p .lead {
  color: rgba(255, 255, 255, 0.70);
  font-weight: 450;
}

/* ---------- Drop cap (first stanza only by default) ----------
   First letter of the first paragraph drops two lines deep. Old-master
   style: tight tracking, slight optical alignment, hangs into a touch
   of left margin. */
/* ---------- Drop cap (disabled) ---------- */
.stanza > p.dropcap::first-letter {
  font-family: inherit;
  font-style: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  float: none;
  margin: 0;
  color: inherit;
  letter-spacing: inherit;
}

/* ---------- Marginalia label (gutter editorial label) ----------
   Set on the stanza via data-margin="On systems". Sits in the left
   gutter, vertical, tight tracked, like a Hemingway manuscript mark.
   On mobile the gutter collapses, so we hide it. */
.stanza[data-margin] {
  position: relative;
}
.stanza[data-margin]::before { content: none !important; display: none !important; }
.stanza[data-margin]::before {
  content: attr(data-margin);
  position: absolute;
  top: 4px;
  left: -184px;
  width: 132px;
  text-align: right;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-quiet);
  font-feature-settings: "ss01", "cv11";
  /* A subtle hairline tick after the label to point at the stanza */
}
@media (max-width: 1100px) {
  .stanza[data-margin]::before { display: none; }
}

/* Stanza marker (asterisk in the margin) */
.stanza-mark {
  position: absolute;
  top: 4px;
  left: -36px;
  width: 16px;
  font-size: 13px;
  color: var(--fg-quiet);
  font-weight: 400;
  text-align: center;
  line-height: 1;
  user-select: none;
}

/* ---------- Inter-stanza divider (invisible spacer) ---------- */
.stanza-divider {
  display: block;
  height: 0;
  padding: 18px 0 30px;
  user-select: none;
}

/* ---------- Inline emphasis ---------- */
.wall em {
  font-style: normal;
  color: var(--fg);
}
.wall strong { color: #FFFFFF; font-weight: 600; }
.wall .num   { color: rgba(255, 255, 255, 0.70); font-weight: 500; font-variant-numeric: tabular-nums; }

/* Quiet inline label like "—Stan" */
.byline {
  display: block;
  margin-top: 14px;
  color: var(--fg-quiet);
  font-size: 12px;
  letter-spacing: 0.005em;
}
.byline b { color: var(--fg-muted); font-weight: 500; }

/* ---------- Inline decorator anchors ---------- */
.dec {
  position: relative;
  cursor: help;
  color: var(--fg);
  border-bottom: 1px dotted rgba(255,255,255,0.20);
  padding-bottom: 1px;
  transition: color 200ms, border-color 200ms;
}
.dec:hover {
  color: #FFFFFF;
  border-bottom-color: rgba(255,255,255,0.55);
}

/* Tiny inline glyph next to a decorator */
.dec-glyph {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 2px;
  vertical-align: -1.5px;
  color: var(--fg-quiet);
  transition: color 200ms, transform 200ms;
}
.dec:hover .dec-glyph { color: #FFFFFF; transform: rotate(8deg); }

/* Density toggle hides glyphs (text underline still visible) */
.wall[data-decor="off"] .dec { border-bottom-color: transparent; cursor: default; }
.wall[data-decor="off"] .dec-glyph { display: none; }
.wall[data-decor="off"] .dec:hover { color: inherit; }
.wall[data-decor="minimal"] .dec-glyph { display: none; }

/* ---------- Tooltip / decorator panel ---------- */
.dec-panel {
  position: fixed;
  z-index: 50;
  width: 320px;
  background: var(--bg-elevated);
  border: 1px solid var(--rule-strong);
  padding: 16px 18px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--fg-muted);
  box-shadow:
    0 24px 48px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.02) inset;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms, transform 180ms;
}
.dec-panel.visible {
  opacity: 1;
  transform: translateY(0);
}
.dec-panel-title {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-quiet);
  margin-bottom: 10px;
  font-weight: 500;
}
.dec-panel-body { color: var(--fg); }
.dec-panel-body em { font-style: normal; color: var(--fg-muted); }

/* Diagram inside panel */
.dec-diagram {
  width: 100%;
  height: 88px;
  margin-bottom: 10px;
  display: block;
}
.dec-diagram .node {
  fill: transparent;
  stroke: var(--fg-quiet);
  stroke-width: 1;
}
.dec-diagram .node-active {
  stroke: #FFFFFF;
}
.dec-diagram .label {
  fill: var(--fg-muted);
  font-family: var(--font);
  font-size: 8px;
  font-weight: 500;
  text-anchor: middle;
  letter-spacing: 0.04em;
}
.dec-diagram .label-active { fill: #FFFFFF; }
.dec-diagram .arrow {
  stroke: var(--fg-quiet);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 2 3;
}
.dec-diagram .arrowhead {
  fill: var(--fg-quiet);
}

/* Quote panel variant */
.dec-panel-quote .dec-panel-quote-text {
  color: var(--fg);
  font-size: 13px;
  line-height: 1.55;
  font-style: italic;
  letter-spacing: -0.005em;
}
.dec-panel-quote .dec-panel-quote-text::before { content: "“"; color: var(--fg-quiet); margin-right: 1px; }
.dec-panel-quote .dec-panel-quote-text::after  { content: "”"; color: var(--fg-quiet); margin-left: 1px; }
.dec-panel-quote .dec-panel-quote-attr {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  color: var(--fg-quiet);
  letter-spacing: 0.005em;
  font-style: normal;
}
.dec-panel-quote .dec-panel-quote-attr b { color: var(--fg-muted); font-weight: 500; }

/* ---------- Pull quote (3-up, editorial) ---------- */
/* The stanza that holds the three quotes lays them out as a row of
   three columns, breaking out wider than the column it sits inside.
   Each quote opens with an oversized serif quotation glyph as a
   typographic ornament; the body sits upright (not italic) for
   readability; the attribution lives on a single line beneath. */
.stanza:has(> .pullquote) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
  align-items: start;
  width: min(1280px, calc(100vw - 80px));
  margin-left: 0;
  margin-right: 0;
}
.stanza:has(> .pullquote) > .stanza-mark { grid-column: 1 / -1; }
.stanza:has(> .pullquote) > .stanza-title { grid-column: 1 / -1; }

.pullquote {
  position: relative;
  margin: 0;
  padding: 56px 0 0;
  color: var(--fg);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13.5px;
  line-height: 1.65;
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
/* Oversized serif open-quote ornament. Sits flush-left above the
   quote body, slightly muted so it reads as decoration not text. */
.pullquote::before {
  content: "\201C"; /* left double quotation mark */
  position: absolute;
  top: -8px;
  left: -4px;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 72px;
  line-height: 1;
  font-style: italic;
  font-weight: 400;
  color: var(--fg);
  opacity: 0.18;
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
}
.pullquote .open,
.pullquote .close {
  display: none; /* inline " spans are decorative-only; ornament replaces them */
}
.pullquote strong {
  color: #FFFFFF;
  font-style: normal;
  font-weight: 500;
}
.pullquote-attr {
  display: block;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  color: var(--fg-quiet);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.55;
  text-wrap: balance;
}
.pullquote-attr b {
  color: #FFFFFF;
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
  letter-spacing: -0.005em;
  font-size: 12px;
}
.pullquote-co {
  display: block;
  color: var(--fg-muted);
  font-size: 11px;
  line-height: 1.55;
  margin-top: 2px;
}
/* Impact metric — eye-popping card pinned beneath the attribution.
   Big tabular number + small label, contained in a high-contrast block
   that breaks visually from the muted attribution above. */
.pullquote-metric {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin-top: 20px;
  padding: 14px 20px 14px 18px;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.012));
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 8px;
  color: #FFFFFF;
  font-feature-settings: "tnum" 1, "ss01" 1;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 18px 40px -24px rgba(0,0,0,0.8);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 220ms ease,
              box-shadow 220ms ease,
              background 220ms ease;
}
.pullquote-metric::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 14%;
  bottom: 14%;
  width: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,0.0), rgba(255,255,255,0.7), rgba(255,255,255,0.0));
  border-radius: 2px;
  transition: background 220ms ease;
}
.pullquote-metric:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.02));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 22px 48px -22px rgba(0,0,0,0.85);
}
.pullquote-metric:hover::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.0), rgba(255,255,255,0.95), rgba(255,255,255,0.0));
}
.pullquote-metric .metric-num {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #FFFFFF;
  white-space: nowrap;
}
.pullquote-metric .metric-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  color: rgba(255,255,255,0.82);
  text-wrap: balance;
  max-width: 220px;
}
@media (max-width: 640px) {
  .pullquote-metric { padding: 11px 16px 11px 14px; gap: 12px; margin-top: 16px; }
  .pullquote-metric .metric-num { font-size: 26px; }
  .pullquote-metric .metric-label { font-size: 11.5px; max-width: 180px; }
}

@media (max-width: 880px) {
  .stanza:has(> .pullquote) {
    grid-template-columns: 1fr;
    /* Generous gap so each successive quote's oversized " glyph (which sits
       inside its own 56px top padding) has clear breathing room from the
       previous quote's metric card. */
    gap: 64px;
    width: 100%;
  }
  .pullquote { font-size: 14.5px; line-height: 1.7; }
}

/* ---------- Tweaks panel ---------- */
.tweaks {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 260px;
  background: var(--bg-elevated);
  border: 1px solid var(--rule-strong);
  padding: 16px 18px;
  font-size: 12px;
  color: var(--fg);
  display: none;
  flex-direction: column;
  gap: 14px;
}
.tweaks.visible { display: flex; }
.tweaks-title {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-quiet);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tweaks-close {
  background: none;
  border: 0;
  color: var(--fg-quiet);
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  line-height: 1;
}
.tweaks-close:hover { color: var(--fg); }

.tweak-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tweak-label {
  font-size: 11px;
  color: var(--fg-muted);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.tweak-meta {
  color: var(--fg-quiet);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
}
.tweak-slider {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 2px;
  background: var(--rule-strong);
  outline: none;
  border-radius: 999px;
}
.tweak-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--fg);
  cursor: ew-resize;
  border: 0;
}
.tweak-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--fg);
  cursor: ew-resize;
  border: 0;
}
.tweak-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule-strong);
}
.tweak-option {
  padding: 8px 0;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--rule-strong);
  color: var(--fg-quiet);
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  letter-spacing: 0.005em;
  text-transform: lowercase;
  transition: color 200ms, background 200ms;
}
.tweak-option:last-child { border-right: 0; }
.tweak-option:hover { color: var(--fg); }
.tweak-option.active {
  color: #FFFFFF;
  background: rgba(255,255,255,0.04);
}


/* ============================================================
   Mobile (≤640px) — comprehensive responsive pass
   ============================================================ */
@media (max-width: 640px) {
  /* Page chrome — tighter padding, no horizontal overflow */
  .page { padding: 0 20px 28px; }
  .site-header { padding-left: 20px; padding-right: 20px; padding-top: 12px; padding-bottom: 12px; }
  .bg-rules { padding: 0 20px; }

  /* Header — keep horizontal but smaller */
  .site-header { padding: 12px 20px; gap: 16px; flex-wrap: nowrap; }
  .brand img, .brand svg { height: 22px; width: auto; }
  .join-link {
    font-size: 12px;
    padding: 8px 12px;
  }

  /* Wall frame — collapse the 2-col grid; column lives full width */
  .wall-frame {
    grid-template-columns: 1fr !important;
    padding: 88px 0 88px;
  }
  .wall-frame[data-col="end"]   .wall,
  .wall-frame[data-col="start"] .wall,
  .wall-frame[data-col="center"] .wall {
    grid-column: 1 !important;
    justify-self: stretch !important;
    margin: 0 !important;
    max-width: none !important;
  }
  .wall { max-width: none !important; }

  /* Headline + lede */
  .wall-h1 {
    font-size: 22px;
    line-height: 1.28;
    margin-bottom: 12px;
  }
  .wall-lede {
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 88px;
  }

  /* Stanza spacing + marker */
  .stanza { padding-bottom: 28px; }
  .stanza-mark {
    position: static;
    display: block;
    text-align: left;
    margin-bottom: 6px;
    font-size: 13px;
    width: auto;
  }
  .stanza-title { font-size: 13px; }
  .stanza > p { font-size: 14px; line-height: 1.65; }

  /* Pullquote stanza already collapses at 880px — re-confirm */
  .stanza:has(> .pullquote) { gap: 24px; }
  .pullquote { font-size: 14.5px; line-height: 1.7; }
  .pullquote::before { font-size: 44px; top: -10px; left: -2px; }

  /* Footer */
  .site-footer { padding-top: 64px; }
  .footer-nav { gap: 14px 20px; font-size: 12px; }

  /* Decorator panel (hover/click) — center-anchored, full-width */
  .dec-panel {
    width: calc(100vw - 32px);
    left: 16px !important;
    right: 16px !important;
    bottom: 16px;
    top: auto !important;
    max-width: 360px;
    margin: 0 auto;
  }

  /* Tweaks panel — full-width drawer at bottom */
  .tweaks {
    width: calc(100vw - 24px);
    right: 12px;
    left: 12px;
    bottom: 12px;
    max-height: 70vh;
    overflow-y: auto;
  }
}

/* Very small phones (≤380px) — final tightening */
@media (max-width: 380px) {
  .page { padding: 0 16px 24px; }
  .site-header { padding-left: 16px; padding-right: 16px; }
  .wall-h1 { font-size: 20px; }
  .wall-lede { font-size: 14.5px; margin-bottom: 72px; }
  .join-link { padding: 6px 10px; font-size: 11.5px; }
}


/* ============================================================
   Wall CTA — compact inline pair
   White pill + hairline ghost link. Sized to fit the manifesto.
   ============================================================ */
.wall-cta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 144px;
  flex-wrap: wrap;
}
.wall-cta-bottom {
  margin: 56px 0 0;
}

/* Primary: white pill with an inline arrow that lifts on hover */
.wall-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 13px;
  background: var(--accent);
  color: #0A0A0A;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--accent);
  white-space: nowrap;
  transition: background 180ms ease, transform 220ms cubic-bezier(.2,.7,.2,1);
}
.wall-cta-primary:hover {
  background: rgba(255, 255, 255, 0.92);
}

.wall-cta-primary-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1);
}
.wall-cta-primary:hover .wall-cta-primary-arrow {
  transform: translate(2px, -2px);
}

/* Secondary: hairline-bordered ghost button matching primary's height */
/* Secondary: plain text link with arrow */
.wall-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  color: var(--fg);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}
.wall-cta-link:hover {
  color: var(--accent);
}
.wall-cta-link-arrow {
  font-size: 13px;
  color: var(--fg-muted);
  transition: transform 220ms cubic-bezier(.2,.7,.2,1), color 180ms ease;
}
.wall-cta-link:hover .wall-cta-link-arrow {
  transform: translateX(3px);
  color: var(--fg);
}

@media (max-width: 640px) {
  .wall-cta { margin-bottom: 88px; }
  .wall-cta-bottom { margin-top: 40px; }
}

/* Team pedigree logos under "We're hiring" stanza */
.team-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 18px;
  opacity: 0.78;
}
.team-logos img {
  height: 16px;
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .team-logos { gap: 24px; }
}

/* ---------- Security stanza ---------- */
.security-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}
.security-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.security-item-title {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.security-item-desc {
  color: rgba(255, 255, 255, 0.42);
  font-size: 13.5px;
  line-height: 1.65;
}
.security-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.security-badge svg {
  opacity: 0.6;
}

/* ============================================================
   Progressive reveal — sections fade and slide up from below at
   a stagger. Active only when html.fade-init is set (an early
   inline script in Dataland Wall.html sets this before React
   renders so elements never flash visible). The JS in Wall.html
   adds .in-view to trigger the rise; scroll-batched reveals are
   staggered there too so multiple sections coming into view at
   once still feel sequential.
   ============================================================ */
.fade-init .site-header,
.fade-init .wall-h1,
.fade-init .wall-lede,
.fade-init .wall-cta,
.fade-init .stanza,
.fade-init .wall-cta-bottom {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 850ms cubic-bezier(0.16, 0.84, 0.24, 1),
    transform 850ms cubic-bezier(0.16, 0.84, 0.24, 1);
  will-change: opacity, transform;
}
.fade-init .site-header.in-view,
.fade-init .wall-h1.in-view,
.fade-init .wall-lede.in-view,
.fade-init .wall-cta.in-view,
.fade-init .stanza.in-view,
.fade-init .wall-cta-bottom.in-view {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .fade-init .site-header,
  .fade-init .wall-h1,
  .fade-init .wall-lede,
  .fade-init .wall-cta,
  .fade-init .stanza,
  .fade-init .wall-cta-bottom {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
