/* Homepage — Runtime Boundary. Dark graphite film, one idea per viewport. */

:root {
  --brand: #2EE6C5;
  --brand-blue: #3B9EFF;
  --approve: #FF6B2E;
  --ink: #07090D;
  --panel: #0C121A;
  --panel-high: #111A25;
  --text: #F4F7FA;
  --steel: #9AA3B5;
  --steel-bright: #C5CBD6;
  --line: rgba(197, 203, 214, 0.14);
  --nav-h: 52px;
  --r-window: 18px;
  --font-display: Outfit, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: clamp(2.75rem, 7vw, 5.5rem);
  --title: clamp(2.15rem, 4.6vw, 3.6rem);
  --lede: clamp(1.2rem, 1.7vw, 1.45rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--ink);
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--ink);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 80;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

#hero,
#film,
#grant,
#problem,
#run,
#install {
  scroll-margin-top: var(--nav-h);
}

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(7, 9, 13, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  gap: 16px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-lockup img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.brand-lockup span {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--steel);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--steel);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 16px 20px 20px;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu a {
  color: var(--steel);
  font-size: 0.9375rem;
  font-weight: 500;
}

.mobile-menu a:hover {
  color: var(--text);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: filter 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--brand);
  color: var(--ink);
  border: 0;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-nav {
  min-height: 34px;
  padding: 0 14px;
  background: var(--text);
  color: var(--ink);
  font-size: 0.8125rem;
}

.btn-nav:hover {
  background: #fff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.text-link:hover {
  color: #6ff0d4;
}

.text-link .chevron {
  font-size: 1.15em;
  line-height: 1;
  transform: translateY(-0.5px);
}

/* ---------- Shared film atmosphere ---------- */

.film-grid {
  position: relative;
  isolation: isolate;
}

.film-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse 74% 68% at 50% 46%, #000 24%, transparent 78%);
  mask-image: radial-gradient(ellipse 74% 68% at 50% 46%, #000 24%, transparent 78%);
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - var(--nav-h));
  padding: 72px 24px 80px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 52% at 50% 40%, rgba(59, 158, 255, 0.16), transparent 62%),
    radial-gradient(ellipse 48% 40% at 18% 78%, rgba(46, 230, 197, 0.09), transparent 58%),
    var(--ink);
}

.hero-inner {
  position: relative;
  width: min(920px, 100%);
}

.hero h1 {
  margin: 0 auto 1.15rem;
  font-family: var(--font-display);
  font-size: var(--display);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 1.02;
}

.hero h1 .name {
  color: var(--brand);
}

.hero-lede {
  margin: 0 auto 2rem;
  max-width: 22em;
  color: var(--steel-bright);
  font-size: var(--lede);
  line-height: 1.45;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 28px;
}

.hero-scroll {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  margin: 0;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}

.hero-reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: hero-in 0.95s var(--ease-out) forwards;
}

.hero-reveal-1 { animation-delay: 0.08s; }
.hero-reveal-2 { animation-delay: 0.18s; }
.hero-reveal-3 { animation-delay: 0.3s; }

@keyframes hero-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Film ---------- */

.film-chapter {
  padding: 24px 24px 64px;
  background: var(--ink);
}

.film-stage {
  position: relative;
  width: min(1120px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-window);
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 90px rgba(0, 0, 0, 0.48),
    0 0 80px rgba(59, 158, 255, 0.08);
}

.film-stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.film-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  background: rgba(7, 9, 13, 0.28);
  color: var(--text);
  cursor: pointer;
}

.film-play:hover .film-play-icon {
  transform: scale(1.06);
  background: var(--brand);
}

.film-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(244, 247, 250, 0.94);
  transition: transform 0.2s var(--ease-out), background-color 0.2s ease;
}

.film-play-icon::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--ink);
}

.film-play-label {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.film-stage.is-playing .film-play {
  display: none;
}

/* ---------- Grant chapter ---------- */

.grant {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  padding: 72px 24px;
  background:
    radial-gradient(ellipse 55% 50% at 78% 42%, rgba(59, 158, 255, 0.12), transparent 64%),
    radial-gradient(ellipse 40% 36% at 12% 70%, rgba(46, 230, 197, 0.08), transparent 60%),
    var(--ink);
}

.grant-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 56px;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.grant-copy {
  max-width: 28rem;
}

.kicker {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.grant-copy .kicker,
.statement .kicker,
.last-mile .kicker {
  color: var(--brand);
}

.grant-copy h2,
.statement h2,
.last-mile h2,
.install h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: var(--title);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.grant-copy > p:not(.kicker):not(.grant-scroll-hint),
.statement p:not(.kicker),
.last-mile p:not(.kicker) {
  margin: 0;
  color: var(--steel-bright);
  font-size: 1.125rem;
  line-height: 1.5;
}

.phase-only {
  display: none;
}

[data-phase="request"] .on-request,
[data-phase="approved"] .on-approved,
[data-phase="injected"] .on-injected,
[data-phase="revoked"] .on-revoked {
  display: inline;
}

.grant-terminal {
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(12, 18, 26, 0.72);
}

.grant-terminal .meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
}

.grant-terminal code {
  display: block;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.grant-terminal .prompt {
  color: var(--brand);
}

.grant-terminal .waiting {
  color: var(--steel);
}

.grant-scroll-hint {
  margin: 20px 0 0;
  color: var(--steel);
  font-size: 0.8125rem;
}

/* ---------- Mac window ---------- */

.mac-window {
  min-width: 0;
  border-radius: var(--r-window);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%), var(--panel);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 90px rgba(0, 0, 0, 0.48),
    0 0 80px rgba(59, 158, 255, 0.08);
  transform: perspective(1600px) rotateY(-5deg) rotateX(2deg);
  transform-origin: center center;
}

.mac-titlebar {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.mac-dots {
  display: flex;
  gap: 6px;
}

.mac-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.mac-dots span:nth-child(2) { background: #febc2e; }
.mac-dots span:nth-child(3) { background: #28c840; }

.mac-titlebar .title {
  color: var(--steel-bright);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
}

.local-pill {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.local-pill::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--brand);
  transform: translateY(-1px);
}

.mac-body {
  padding: 22px 24px 20px;
}

.grant-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.grant-head .label {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.grant-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.ttl-ring {
  --ttl: 1;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 9999px;
  background: conic-gradient(var(--brand) calc(var(--ttl) * 1turn), rgba(255, 255, 255, 0.12) 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  transition: opacity 0.4s ease;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-strip p {
  margin: 0;
}

.stat-strip .k {
  margin-bottom: 4px;
  color: var(--steel);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-strip .mono {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.grant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.grant-grid div {
  padding: 14px 16px;
  background: var(--panel-high);
}

.grant-grid .k {
  margin: 0 0 6px;
  color: var(--steel);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.grant-grid .v {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text);
}

.grant-status {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.grant-status .on-request { color: #f4c95d; }
.grant-status .on-approved,
.grant-status .on-injected { color: var(--brand); }
.grant-status .on-revoked { color: var(--steel); }

.grant-status .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-1px);
}

[data-phase="request"] .grant-status .dot {
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.35; }
}

.grant-inject {
  overflow: hidden;
  max-height: 0;
  margin: 0;
  opacity: 0;
  border-radius: 10px;
  border: 1px solid rgba(46, 230, 197, 0);
  background: rgba(46, 230, 197, 0.08);
  transition: opacity 0.45s ease, max-height 0.45s ease, margin 0.45s ease, border-color 0.45s ease;
}

.grant-inject.is-visible {
  max-height: 5rem;
  margin: 0 0 16px;
  padding: 12px 14px;
  opacity: 1;
  border-color: rgba(46, 230, 197, 0.25);
}

.grant-inject p {
  margin: 0;
  color: var(--brand);
  font-size: 0.875rem;
  font-weight: 500;
}

.grant-inject .sub {
  margin-top: 2px;
  color: var(--steel-bright);
  font-size: 0.75rem;
  font-weight: 400;
}

.grant-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.btn-approve,
.btn-quiet {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.btn-approve {
  border: 0;
  background: var(--approve);
  color: #fff;
  transition: filter 0.15s ease, box-shadow 0.2s ease, opacity 0.3s ease;
}

.btn-approve:hover:not(:disabled) {
  filter: brightness(1.08);
}

.btn-approve.is-armed {
  box-shadow: 0 0 0 1px rgba(255, 107, 46, 0.45), 0 0 22px rgba(255, 107, 46, 0.28);
}

[data-phase]:not([data-phase="request"]) .btn-approve {
  opacity: 0.45;
}

.btn-quiet {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--steel-bright);
  transition: opacity 0.2s ease;
}

.btn-quiet:disabled {
  opacity: 0.45;
}

.step-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.step-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s ease, width 0.3s ease;
}

.step-dot.is-on {
  width: 18px;
  background: var(--brand);
}

/* ---------- Statement ---------- */

.statement {
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px 24px;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.statement-inner {
  width: min(760px, 100%);
  margin: 0 auto;
}

.statement h2 {
  margin-bottom: 1.5rem;
}

.statement p + p {
  margin-top: 1.1rem;
}

.statement p.close {
  color: var(--text);
  font-weight: 500;
}

/* ---------- Last mile ---------- */

.last-mile {
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px 24px;
  background:
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(46, 230, 197, 0.07), transparent 60%),
    #0a0d12;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.last-mile-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 64px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.last-mile .mac-window {
  transform: perspective(1600px) rotateY(5deg) rotateX(2deg);
}

.term-body {
  padding: 22px 24px 26px;
  overflow-x: auto;
}

.term-body pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--steel-bright);
}

.term-body .cmt { color: var(--steel); }
.term-body .cmd { color: var(--brand); }
.term-body .cmd-alt { color: var(--brand-blue); }

/* ---------- Install ---------- */

.install {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - var(--nav-h));
  padding: 88px 24px;
  text-align: center;
  background:
    radial-gradient(ellipse 42% 36% at 50% 28%, rgba(46, 230, 197, 0.14), transparent 62%),
    var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.install-inner {
  position: relative;
  width: min(720px, 100%);
  margin: 0 auto;
}

.install-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 20px 60px rgba(46, 230, 197, 0.16);
}

.install h2 .keep {
  color: var(--brand);
}

.install-lede {
  margin: 0 auto 2rem;
  max-width: 28em;
  color: var(--steel-bright);
  font-size: var(--lede);
  line-height: 1.45;
}

.install-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 28px;
  margin-bottom: 36px;
}

.install-cmd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(560px, 100%);
  margin: 0 auto 36px;
  padding: 12px 12px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  text-align: left;
}

.install-cmd code {
  overflow-x: auto;
  color: var(--steel-bright);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.install-cmd button {
  flex-shrink: 0;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
}

.install-cmd button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trust-row li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-row li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 24px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #05070a;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px 48px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 24px;
  height: 24px;
  border-radius: 5px;
}

.footer-brand span {
  font-family: var(--font-display);
  font-weight: 600;
}

.site-footer p {
  margin: 0;
  max-width: 28em;
  color: var(--steel);
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
}

.footer-links a {
  color: var(--steel);
  font-size: 0.8125rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-note {
  margin-top: 18px !important;
  font-size: 0.75rem !important;
  color: #5a6170 !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grant-stage,
  .last-mile-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .mac-window,
  .last-mile .mac-window {
    transform: none;
  }

  .grant-copy {
    max-width: none;
    text-align: center;
  }

  .grant-terminal,
  .grant-scroll-hint {
    display: none;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .mobile-menu.is-open {
    display: flex;
  }

  .hero {
    min-height: calc(100svh - var(--nav-h));
    padding: 56px 20px 72px;
  }

  .hero-scroll {
    display: none;
  }

  .grant,
  .last-mile,
  .install {
    padding: 72px 20px;
  }

  .film-chapter {
    padding: 8px 16px 48px;
  }

  .film-stage {
    border-radius: 14px;
  }

  .film-play-icon {
    width: 60px;
    height: 60px;
  }

  .film-play-icon::after {
    border-width: 10px 0 10px 16px;
  }

  .statement {
    padding: 96px 20px;
  }

  .grant-grid {
    grid-template-columns: 1fr;
  }

  .mac-body {
    padding: 18px 16px 16px;
  }

  .stat-strip {
    display: none;
  }

  .grant-head h3 {
    font-size: 1.25rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .install-cmd {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .install-cmd code {
    display: block;
    width: 100%;
    font-size: 0.75rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .install-cmd button {
    align-self: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-reveal,
  .hero-reveal-1,
  .hero-reveal-2,
  .hero-reveal-3 {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .grant-inject,
  .ttl-ring,
  .step-dot,
  .btn-approve,
  .btn-quiet {
    transition: none;
  }

  [data-phase="request"] .grant-status .dot {
    animation: none;
  }

  .mac-window,
  .last-mile .mac-window {
    transform: none;
  }
}
