/* Jake Gronsky brand. Homepage and Growth Notes.
   Self-hosted Geist and Geist Mono (SIL OFL). See /fonts/geist/. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/geist/geist-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/geist/geist-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/geist/geist-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/geist/geist-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/geist/geist-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/geist/geist-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  --c-dark-300: #b7b3ae;
  --c-dark-600: #8a8682;
  --c-dark-700: #454343;
  --c-dark-800: #2c2b2c;
  --c-dark-900: #151415;
  --c-dark-1000: #000000;
  --c-light-100: #ffffff;
  --c-light-150: #f8f8f8;
  --c-light-200: #e9e7e2;
  --c-light-300: #d8d4cc;
  --c-orange: #F74902;
  --c-orange-hover: #ff5b19;
  --metal-ink: #0c0c0c;
  --metal-char: #161514;
  --metal-panel: #1c1b1a;
  --metal-line: rgba(232, 230, 225, 0.22);
  --metal-text: #f4f2ee;
  --bg-page: #2c2b2c;
  --text-subtle: #c2beb8;
  --frame-outer: var(--c-light-300);
  --font-sans: "Geist", "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --nav-h: 58px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-page);
  color: var(--c-light-100);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html.locked { overflow: hidden; }

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 22%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 4px),
    #141312;
  color: var(--c-light-100);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--metal-text);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 500;
  background: #fff;
  color: #000;
  font-weight: 600;
  padding: 10px 14px;
}
.skip:focus { top: 10px; }

[hidden] { display: none !important; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1;
  padding: 12px 18px;
  border-radius: 1px;
  border: 1px solid #000;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
  white-space: nowrap;
}
.btn-orange,
.btn-white {
  background: var(--metal-text);
  color: var(--metal-ink);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-orange:hover,
.btn-white:hover { background: #fff; }

.frame-on-orange {
  display: inline-flex;
  padding: 3px;
  border: 1px solid #000;
  background: transparent;
}

.frame-dim {
  border: 1px solid var(--c-dark-700);
  padding: 3px;
  background: var(--c-dark-800);
  border-radius: 2px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 70%),
    #121110;
  border-bottom: 1px solid var(--metal-line);
}
.site-header > * { pointer-events: auto; }

.logo-block {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: var(--nav-h);
  padding: 0 22px;
  background:
    linear-gradient(160deg, #2a2928 0%, #0e0e0e 55%, #1a1918 100%);
  color: var(--metal-text);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.03em;
  border-right: 1px solid var(--metal-line);
  transition: background-color 140ms ease, color 140ms ease;
}
.logo-block:hover { background: var(--metal-text); color: var(--metal-ink); }
.logo-block:hover svg path.jg-cut { fill: var(--metal-text); }
.logo-block svg { width: 22px; height: 22px; flex-shrink: 0; }
.logo-block svg path.jg-cut { fill: #0e0e0e; }

.nav-pill { justify-self: center; }
.nav-pill-inner {
  display: flex;
  align-items: center;
  background: #000;
  border: 1px solid #2a292a;
  padding: 0 4px;
}
.nav-pill-inner a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  padding: 0 16px;
  transition: color 120ms ease;
  white-space: nowrap;
}
.nav-pill-inner a:hover,
.nav-pill-inner a[aria-current="page"] { color: #fff; }

.header-actions { justify-self: end; margin-right: 12px; }
.header-actions .btn { padding: 10px 16px; font-size: 14px; }

.wrap { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 148px 24px 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #10100f;
  background-image:
    linear-gradient(rgba(232, 230, 225, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 230, 225, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
  color: #fff;
}

.hero-panel {
  position: relative;
  width: min(920px, 100%);
  border: 1px solid rgba(232, 230, 225, 0.22);
  background: #0c0c0c;
  padding: 72px 40px 64px;
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(820px, 100%);
}

.hero h1 {
  font-size: clamp(36px, 5.4vw, 76px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: #fff;
  max-width: 12.2em;
  margin-bottom: 36px;
  text-wrap: balance;
  animation: fadeUp 0.9s var(--ease-out-expo) 0.05s both;
}

.hero-ctas { display: flex; align-items: center; justify-content: center; }
.hero-ctas .btn { animation: ctaRise 0.9s var(--ease-out-expo) 0.22s both; padding: 14px 24px; font-size: 15px; }

.hero-page {
  min-height: 0;
  padding: 150px 0 64px;
  text-align: left;
  justify-content: center;
}
.hero-page .hero-inner {
  width: 100%;
  margin-inline: 0;
  align-items: flex-start;
}
.hero-page .hero-panel {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
  padding: 48px 36px 44px;
  text-align: left;
}
.hero-page h1 {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(48px, 7vw, 88px);
}
.console-cursor {
  display: block;
  width: 9px;
  height: 9px;
  margin: 0 0 14px;
  background: #e7e4de;
  flex: 0 0 auto;
  animation: cursorBlink 1s steps(1, end) infinite;
}
.section-head.center .console-cursor { margin-inline: auto; }
@keyframes cursorBlink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

@keyframes patternDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-200px, 100px, 0); }
}
@keyframes hatchDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-180px, 300px, 0); }
}
@keyframes hatchDriftAlt {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(160px, 140px, 0); }
}
@keyframes crawl {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes ctaRise {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes dashFlow {
  to { stroke-dashoffset: -32; }
}

.section { padding: 88px 0; scroll-margin-top: 84px; }
.section-head {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
}
.section-head.left { text-align: left; align-items: flex-start; }
.section-head.center { text-align: center; align-items: center; }
.micro-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--c-light-150);
  max-width: 18em;
  margin-bottom: 12px;
  text-wrap: balance;
}
.section-head p { color: var(--text-subtle); font-size: 16px; max-width: 56ch; }
.section-head.center p { margin-inline: auto; }
#about-heading { max-width: none; }
#system-heading { max-width: 16em; }

.about-column {
  width: min(740px, calc(100% - 48px));
  margin: 0 auto;
}

.note-frame {
  border: 1px solid var(--c-dark-700);
  padding: 4px;
  background: var(--c-dark-800);
  border-radius: 2px;
}
.note-card {
  background: #000;
  border: 1px solid var(--c-dark-700);
}
.card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--c-dark-700);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-subtle);
}
.card-topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.card-dots { display: inline-flex; gap: 6px; }
.card-dots span { width: 6px; height: 6px; background: var(--c-dark-600); display: inline-block; }
.card-dots span:first-child { background: #d9d5cc; }
.card-topbar-right a {
  color: var(--c-light-300);
  border-bottom: 1px solid var(--c-dark-700);
  padding-bottom: 1px;
}
.card-topbar-right a:hover { color: #fff; border-color: #fff; }

.note-body { padding: 48px 52px 44px; }
.note-kicker {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-dark-700);
}
.note-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
}
.note-title span { color: #fff; }
.note-footnote {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subtle);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.note-footnote:hover { color: #fff; }

.essay p {
  font-size: 17.5px;
  line-height: 1.68;
  color: var(--c-light-300);
  margin-bottom: 18px;
}
.essay p:last-child { margin-bottom: 0; }

.loop-outer {
  padding: 3px;
  border: 1px solid var(--c-light-300);
  background: var(--c-dark-800);
  border-radius: 2px;
}
.loop-inner { padding: 3px; border: 2px solid #000; background: var(--c-dark-800); }
.loop-stack { display: flex; flex-direction: column; gap: 3px; }
.loop-steps { list-style: none; display: none; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.loop-step { background: #000; padding: 22px 24px 24px; border-radius: 2px; }
.loop-step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--c-light-300);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.loop-step h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--c-light-150);
  margin-bottom: 6px;
}
.loop-step p { font-size: 14px; line-height: 1.45; color: var(--text-subtle); }

.loop-diagram {
  position: relative;
  background: #000;
  border-radius: 2px;
  aspect-ratio: 1776 / 1120;
  overflow: hidden;
}
.loop-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.wire-path {
  fill: none;
  stroke: #8d8883;
  stroke-width: 2;
  stroke-dasharray: 6 8;
  animation: dashFlow 1.6s linear infinite;
}
.wire-path.accent { stroke: rgba(232, 230, 225, 0.72); }

.loop-node {
  position: absolute;
  z-index: 2;
  background: var(--c-dark-900);
  border: 1px solid var(--c-dark-700);
  border-radius: 2px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.loop-node.active-accent { border-color: var(--c-dark-600); }
.node-corner { position: absolute; width: 6px; height: 6px; border: 1px solid #d9d5cc; background: #000; }
.node-corner.tl { top: -3px; left: -3px; }
.node-corner.tr { top: -3px; right: -3px; }
.node-corner.br { bottom: -3px; right: -3px; }
.node-corner.bl { bottom: -3px; left: -3px; }
.node-num { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--text-subtle); letter-spacing: 0.04em; }
.node-title { font-size: 18px; font-weight: 600; letter-spacing: -0.025em; color: #fff; line-height: 1.15; }
.node-sub { font-size: 13px; line-height: 1.4; color: var(--text-subtle); }
.node-rows { list-style: none; margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.node-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  padding: 2px 8px;
  background: #000;
  border: 1px solid #2a292a;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-subtle);
}
.node-row-sq { width: 8px; height: 8px; background: var(--c-dark-600); flex-shrink: 0; }
.node-row-sq.orange { background: #e7e4de; }
.node-row-sq.light { background: var(--c-light-300); }
.node-row-key { color: var(--c-light-300); }
.node-row-val { color: var(--text-subtle); margin-left: auto; }
.node-row-mark { color: #f4f2ee; margin-left: 4px; }

.node-1 { left: 4.5%; top: 16%; width: 19.5%; height: 33%; }
.node-2 { left: 4.5%; top: 53.5%; width: 19.5%; height: 31%; }
.node-3 {
  left: 33%;
  top: 8%;
  width: 34%;
  height: 84%;
  background: #060606;
  border-color: var(--c-dark-600);
  padding: 16px 18px 14px;
  justify-content: space-between;
}
.node-4 { left: 75.2%; top: 30%; width: 20.5%; height: 37%; }

.center-graphic { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; margin: 4px 0 8px; }
.sys-zone { position: relative; border: 1px solid var(--c-dark-700); background: #0c0c0d; padding: 16px 12px 12px; }
.sys-zone.paid { border-style: dashed; border-color: rgba(232, 230, 225, 0.55); }
.sys-zone-tabs { position: absolute; top: -9px; left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.sys-tab {
  background: #000;
  border: 1px solid var(--c-dark-700);
  padding: 1px 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.sys-tab.orange { border-color: #e7e4de; color: #f4f2ee; }
.sys-tab.muted { color: var(--text-subtle); }
.sys-grid-organic { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; margin-top: 6px; }
.sys-box {
  background: var(--c-dark-900);
  border: 1px solid #5c5856;
  padding: 7px 8px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #fff;
}
.sys-box.winner { border-color: #e7e4de; background: rgba(255, 255, 255, 0.06); max-width: 160px; margin: 0 auto; }
.sys-micro-arrow { text-align: center; }
.sys-sub-row { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--text-subtle); padding: 0 4px; }
.sys-bridge { display: flex; justify-content: space-between; gap: 8px; padding: 0 8px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; }
.sys-bridge-down { color: #f4f2ee; }
.sys-bridge-up { color: var(--c-light-300); }
.sys-grid-paid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.center-caption { text-align: center; border-top: 1px solid #2a292a; padding-top: 12px; }
.center-caption .node-num { display: block; margin-bottom: 4px; }
.center-caption .node-title { font-size: 17px; margin-bottom: 3px; }
.center-caption .node-sub { font-size: 13px; }

.node4-card { margin-top: auto; background: #000; border: 1px dashed #5c5856; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.badge-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tag-pill { font-family: var(--font-mono); font-size: 10px; font-weight: 500; padding: 3px 5px; letter-spacing: 0.02em; }
.tag-pill.orange { background: #f4f2ee; color: #111; }
.tag-pill.dark { background: var(--c-dark-800); color: var(--c-light-300); }
.tag-pill.light { background: #fff; color: #000; }
.node4-note { font-size: 13px; line-height: 1.4; color: var(--c-light-300); }
.node4-metric { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--text-subtle); border-top: 1px solid #2a292a; padding-top: 6px; display: flex; justify-content: space-between; gap: 8px; }
.node4-metric strong { color: #f4f2ee; font-weight: 500; }

.winner-slot { margin-top: 6px; }

.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--c-dark-700); border: 1px solid var(--c-dark-700); }
.pillar-cell { background: #000; padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.pillar-num { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: #d9d5cc; letter-spacing: 0.04em; }
.pillar-cell h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: #fff; line-height: 1.2; }
.pillar-cell p { font-size: 15px; line-height: 1.55; color: var(--text-subtle); }

.site-footer {
  position: relative;
  background:
    linear-gradient(180deg, #1a1918 0%, #0e0e0d 100%);
  color: var(--metal-text);
  padding: 72px 0 28px;
  margin-top: 48px;
  overflow: hidden;
  border-top: 1px solid var(--metal-line);
}
.footer-watermark {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 18px;
  height: clamp(72px, 16vw, 230px);
  background: url("/assets/brand/watermark.svg") center / contain no-repeat;
  opacity: 0.12;
  filter: invert(1);
  pointer-events: none;
  user-select: none;
}
.footer-cta-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  margin-bottom: 88px;
}
.footer-cta-wrap h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: #000;
  max-width: 11em;
  text-wrap: balance;
}
.footer-bottom {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  font-size: 14px;
  color: #c8c4bc;
}

.case-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.case-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 180px;
  background: #000;
  border: 1px solid var(--c-dark-700);
  padding: 26px 24px 22px;
  outline-offset: 4px;
  transition: border-color 140ms ease, transform 140ms ease;
}
.case-grid > li {
  border: 1px solid var(--c-dark-700);
  padding: 4px;
  background: var(--c-dark-800);
}
.case-card:hover { border-color: #e7e4de; transform: translate3d(0, -2px, 0); }
.case-no {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #d9d5cc;
}
.case-card h2 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}
.case-card p { color: var(--text-subtle); font-size: 16px; line-height: 1.5; margin-top: auto; }

#gate {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: #10100f;
  background-image:
    linear-gradient(rgba(232, 230, 225, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 230, 225, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
}
html.unlocked #gate { display: none; }

.gate-card {
  position: relative;
  width: min(440px, 100%);
  background: #0c0c0c;
  color: #fff;
  border: 1px solid rgba(232, 230, 225, 0.22);
  padding: 32px 28px 26px;
}
.gate-brand {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 22px;
  font-size: 13px;
}
.gate-brand span { color: #f4f2ee; }
.gate-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin: 0 0 8px;
}
.gate-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  color: #fff;
}
.gate-copy { margin: 0 0 22px; color: var(--text-subtle); font-size: 16px; }
.gate-card input {
  width: 100%;
  border: 1.5px solid #8a8682;
  background: #111;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 14px;
  border-radius: 0;
}
.gate-card input:focus { border-color: #f4f2ee; }
.gate-card button {
  width: 100%;
  margin-top: 10px;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #f4f2ee;
  color: #111;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px;
  cursor: pointer;
}
.gate-card button:hover { background: #fff; }
.gate-error {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #ffb4a8;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1,
  .hero-ctas .btn,
  .wire-path,
  .case-card,
  .console-cursor,
  .loop-node::before {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    will-change: auto;
  }
}

@media (max-width: 1100px) {
  .loop-steps { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .loop-diagram {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 14px;
    overflow: visible;
    height: auto;
  }
  .loop-wires { display: none; }
  .loop-node,
  .node-1,
  .node-2,
  .node-3,
  .node-4 {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
  }
  .loop-node::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -12px;
    height: 1px;
    background: rgba(232, 230, 225, 0.7);
    transform: scaleX(1);
    transform-origin: left center;
    animation: wireSweep 1.8s linear infinite;
  }
  .node-4::before { content: none; }
}
@keyframes wireSweep {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 768px) {
  .hero { padding: 132px 18px 72px; }
  .hero h1 { font-size: clamp(34px, 9.2vw, 52px); margin-bottom: 28px; }
  .hero-page { padding: 128px 0 48px; }
  .hero-page .hero-panel,
  .wrap,
  .about-column { width: calc(100% - 32px); }
  .section { padding: 64px 0; }
  .note-body { padding: 32px 22px 28px; }
  .case-grid { grid-template-columns: 1fr; }
  .loop-steps { grid-template-columns: 1fr; }
  .hero-panel { padding: 48px 22px 40px; }
  .footer-cta-wrap { margin-bottom: 88px; }
  .site-footer { padding: 72px 0 24px; }
}

@media (max-width: 720px) {
  .site-header {
    height: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: #1a191a;
  }
  .nav-pill {
    order: 3;
    flex: 1 0 100%;
    display: flex;
    justify-content: center;
    padding: 0 12px 10px;
  }
  .nav-pill-inner { width: 100%; justify-content: center; }
  .header-actions { margin-right: 8px; }
  .hero { padding-top: 156px; }
  .hero-page { padding-top: 156px; }
}

@media (max-width: 390px) {
  .logo-block { padding: 0 12px; font-size: 16px; }
  .header-actions .btn { padding: 10px 10px; font-size: 13px; }
  .hero:not(.hero-page) { padding-left: 16px; padding-right: 16px; }
  .hero-page { padding-left: 0; padding-right: 0; }
  .hero h1 { font-size: 34px; }
  .note-title { font-size: 24px; }
  .note-kicker { flex-direction: column; align-items: flex-start; gap: 6px; }
  .essay p { font-size: 16.5px; }
  .card-topbar { padding: 12px 14px; align-items: flex-start; }
  .sys-grid-organic, .sys-grid-paid { grid-template-columns: 1fr; }
  .sys-zone-tabs { position: static; margin-bottom: 8px; flex-wrap: wrap; }
  .footer-bottom,
  .about-column,
  .wrap,
  .hero-page .hero-panel { width: calc(100% - 28px); }
}
