/* =========================================================================
   AndroidClaw — Pocket Mission Control
   Dark editorial × developer terminal
   ========================================================================= */

:root {
  /* Surfaces */
  --bg: #0b0f0d;
  --bg-elev: #111614;
  --surface: #161c1a;
  --surface-2: #1c2421;

  /* Ink — warm paper-cream, not pure white */
  --ink: #ece6d6;
  --ink-soft: #c7c1b3;
  --muted: #8c8c84;
  --muted-2: #6a6a64;

  /* Hairlines */
  --line: rgba(236, 230, 214, 0.10);
  --line-strong: rgba(236, 230, 214, 0.22);

  /* Accents */
  --signal: #7ce29a;       /* phosphor green — primary */
  --signal-soft: #3ea76a;
  --amber: #e8b66c;
  --cyan: #82d3df;
  --paper: #ece6d6;

  /* Code */
  --code-bg: #0d1411;

  /* Geometry */
  --shell-max: 1480px;
  --shell-pad: clamp(22px, 5vw, 100px);
  --radius: 4px;

  /* Shadow */
  --shadow-card: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
  --shadow-screen: 0 60px 120px -40px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(124, 226, 154, 0.04);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino", Georgia, serif;
  --font-body: "Geist", "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* -------------------------------------------------------------------------
   Reset / Base
   ------------------------------------------------------------------------- */

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background:
    radial-gradient(1200px 780px at -6% 86%, rgba(46, 133, 91, 0.28), transparent 62%),
    radial-gradient(1000px 740px at 100% 84%, rgba(41, 122, 85, 0.26), transparent 62%),
    linear-gradient(180deg, #080c0b 0%, var(--bg) 38%, #080c0b 100%);
  background-color: var(--bg);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1200px 780px at -6% 86%, rgba(46, 133, 91, 0.28), transparent 62%),
    radial-gradient(1000px 740px at 100% 84%, rgba(41, 122, 85, 0.26), transparent 62%),
    linear-gradient(180deg, #080c0b 0%, var(--bg) 38%, #080c0b 100%);
  background-color: var(--bg);
  background-attachment: fixed;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02";
  position: relative;
  overflow-x: hidden;
}

/* Atmosphere: faint dotted grid + subtle grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(236, 230, 214, 0.045) 1px,
    transparent 1px
  );
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
}

@media (min-width: 700px) {
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' 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.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: 0.04;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
  }
}

main,
.topbar,
.page-foot {
  position: relative;
  z-index: 1;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 18px;
  background: var(--signal);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 100;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Inline code */
code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  font-weight: 500;
  padding: 0.12em 0.42em;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--code-bg);
  color: var(--signal);
  letter-spacing: 0;
}

/* -------------------------------------------------------------------------
   Layout — Shell
   ------------------------------------------------------------------------- */

.shell {
  width: min(var(--shell-max), calc(100% - var(--shell-pad) - var(--shell-pad)));
  margin-inline: auto;
  min-width: 0;
}

main {
  --section-gap: clamp(80px, 9vw, 150px);
  --hero-ticker-peek: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--section-gap);
  padding-block: 0 clamp(72px, 8vw, 120px);
  min-width: 0;
}

/* -------------------------------------------------------------------------
   Topbar
   ------------------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
}

.brand img {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.brand-name {
  position: relative;
  top: 1px;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--signal);
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  margin-left: 4px;
  text-transform: uppercase;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 200ms ease;
  border-radius: 2px;
}

.topbar nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.topbar nav a:hover {
  color: var(--ink);
}

.topbar nav a:hover::after {
  transform: scaleX(1);
}

.topbar nav .nav-out {
  color: var(--ink);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(380px, 0.65fr);
  gap: clamp(48px, 4vw, 64px);
  align-items: start;
  min-height: calc(100svh - 88px);
  padding-block: clamp(48px, 5vw, 64px) clamp(18px, 2vw, 32px);
}

.hero-copy {
  display: grid;
  gap: clamp(28px, 3.5vw, 48px);
  padding-top: clamp(12px, 2vw, 28px);
  min-width: 0;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(124, 226, 154, 0.6);
}

@media (prefers-reduced-motion: no-preference) {
  .pulse {
    animation: pulse 2.4s ease-out infinite;
  }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(124, 226, 154, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(124, 226, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 226, 154, 0); }
}

.masthead {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.4rem, 8.4vw, 8.8rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.masthead em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  color: var(--ink);
  position: relative;
}

.masthead em::after {
  content: "";
  position: absolute;
  bottom: 0.08em;
  right: -0.18em;
  width: 0.16em;
  height: 0.16em;
  background: var(--signal);
  border-radius: 50%;
}

.hero-lead {
  display: grid;
  gap: 26px;
  max-width: 66ch;
}

.lede {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.35rem, 1.9vw, 1.82rem);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink);
  font-variation-settings: "opsz" 36, "SOFT" 60;
}

.lede code {
  font-size: 0.78em;
  vertical-align: 0.06em;
}

.hero-note {
  margin: 0;
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Action buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 17px 28px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease,
    transform 200ms ease;
  overflow: hidden;
}

.btn:hover {
  border-color: var(--signal);
  color: var(--signal);
}

.btn-primary {
  background: var(--signal);
  color: var(--bg);
  border-color: var(--signal);
  font-weight: 700;
}

.btn-primary:hover {
  background: transparent;
  color: var(--signal);
  transform: translateY(-1px);
}

.btn-arrow {
  display: inline-block;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Spec card — identification card */
.spec {
  position: relative;
  width: min(100%, 420px);
  min-height: 730px;
  justify-self: center;
  padding: 54px 34px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(
      120% 60% at 50% -20%,
      rgba(124, 226, 154, 0.08) 0%,
      transparent 65%
    ),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-elev) 100%);
  overflow: hidden;
}

.spec::before,
.spec::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line-strong);
  pointer-events: none;
}
.spec::before {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
}
.spec::after {
  bottom: 10px;
  right: 10px;
  border-left: 0;
  border-top: 0;
}

.spec-portrait {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 0 auto;
}

.spec-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line-strong);
}

.spec-portrait-ring {
  position: absolute;
  inset: -14px;
  border-radius: 30px;
  border: 1px dashed rgba(124, 226, 154, 0.28);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .spec-portrait-ring {
    animation: ring-spin 60s linear infinite;
  }
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

.spec-id {
  text-align: center;
  margin-top: 24px;
  display: grid;
  gap: 6px;
}

.spec-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.35rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "opsz" 80, "SOFT" 60;
}

.spec-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec-rule {
  position: relative;
  margin: 30px 0;
  border: 0;
  height: 1px;
  background: var(--line-strong);
}

.spec-rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--signal-soft);
  transform: translate(-50%, -50%);
}

.spec-facts {
  margin: 0;
  display: grid;
  gap: 20px;
}

.spec-facts .fact {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
}

.spec-facts dt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.25em;
}

.spec-facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  font-variation-settings: "opsz" 24, "SOFT" 60;
}

.spec-providers-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec-providers-count {
  color: var(--signal);
  letter-spacing: 0.16em;
}

.provider-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.provider-tags li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(11, 15, 13, 0.5);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  transition: border-color 220ms ease, color 220ms ease,
    background 220ms ease, transform 220ms ease;
}

.provider-tags li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 6px rgba(124, 226, 154, 0.6);
}

.provider-tags li:hover {
  border-color: var(--signal);
  color: var(--ink);
  background: rgba(124, 226, 154, 0.06);
  transform: translateY(-1px);
}

/* Hero stagger animation */
@media (prefers-reduced-motion: no-preference) {
  .hero-meta,
  .masthead,
  .hero-lead,
  .spec {
    animation: rise 800ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .hero-meta { animation-delay: 80ms; }
  .masthead { animation-delay: 180ms; animation-duration: 1100ms; }
  .hero-lead { animation-delay: 480ms; }
  .spec { animation-delay: 580ms; }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------------------------------------------------------------
   Provider ticker
   ------------------------------------------------------------------------- */

.ticker {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 22px;
  background: linear-gradient(
    90deg,
    var(--bg) 0%,
    var(--bg-elev) 50%,
    var(--bg) 100%
  );
}

@media (min-width: 1101px) {
  .hero + .ticker {
    margin-top: calc(-1 * (var(--section-gap) + var(--hero-ticker-peek)));
  }
}

.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12vw;
  z-index: 2;
  pointer-events: none;
}
.ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.ticker::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.ticker-sequence {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
}

.ticker-track .dot {
  color: var(--signal);
  font-size: 1.1rem;
  line-height: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .ticker-track {
    animation: scroll 42s linear infinite;
  }
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* -------------------------------------------------------------------------
   Section heads (numbered)
   ------------------------------------------------------------------------- */

.section-head {
  position: relative;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 32px;
  row-gap: 14px;
  align-items: baseline;
  padding-bottom: clamp(28px, 3vw, 44px);
  margin-bottom: clamp(28px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
}

.section-num {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--signal);
  padding-top: 0.7em;
  position: relative;
}

.section-num::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 24px;
  height: 1px;
  background: var(--signal);
}

.section-title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "opsz" 100, "SOFT" 40;
}

.section-title em {
  font-style: italic;
  font-variation-settings: "opsz" 100, "SOFT" 90;
  color: var(--ink);
  position: relative;
}

.section-blurb {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}

/* -------------------------------------------------------------------------
   Contracts grid
   ------------------------------------------------------------------------- */

.contract-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.contract-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 36px 32px 40px;
  background: var(--bg);
  transition: background 280ms ease;
}

.contract-card:hover {
  background: var(--bg-elev);
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mark, var(--signal));
}

.contract-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variation-settings: "opsz" 60, "SOFT" 50;
  max-width: 16ch;
}

.contract-card h3 code {
  font-family: var(--font-mono);
  font-size: 0.7em;
  vertical-align: 0.08em;
  background: var(--code-bg);
  border-color: var(--line);
}

.contract-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* Crop marks */
.crop {
  position: absolute;
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: opacity 320ms ease, transform 320ms ease;
  pointer-events: none;
}
.crop.tl { top: 12px; left: 12px; border-top: 1.5px solid var(--mark); border-left: 1.5px solid var(--mark); }
.crop.tr { top: 12px; right: 12px; border-top: 1.5px solid var(--mark); border-right: 1.5px solid var(--mark); }
.crop.bl { bottom: 12px; left: 12px; border-bottom: 1.5px solid var(--mark); border-left: 1.5px solid var(--mark); }
.crop.br { bottom: 12px; right: 12px; border-bottom: 1.5px solid var(--mark); border-right: 1.5px solid var(--mark); }

.contract-card:hover .crop {
  opacity: 0.9;
  transform: scale(1);
}
.contract-card .crop {
  transform: scale(0.6);
}

/* -------------------------------------------------------------------------
   Features ledger
   ------------------------------------------------------------------------- */

.ledger {
  margin: 0;
  display: grid;
  gap: 0;
}

.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 32px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
  position: relative;
}

.ledger-row:first-child {
  border-top: 1px solid var(--line-strong);
}

.ledger-row:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.ledger-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 0;
  height: 1px;
  background: var(--signal);
  transition: width 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ledger-row:hover::before {
  width: 100%;
}

.ledger-row dt {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variation-settings: "opsz" 36, "SOFT" 50;
}

.ledger-row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.7;
}

/* -------------------------------------------------------------------------
   Screens — editorial spread
   ------------------------------------------------------------------------- */

.screen-rows {
  display: grid;
  gap: clamp(72px, 9vw, 140px);
}

.screen-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.screen-row:nth-child(even) .screen-frame {
  order: 2;
}
.screen-row:nth-child(even) .screen-text {
  order: 1;
}

.screen-frame {
  position: relative;
  padding: 12px;
  width: min(340px, 100%);
  margin-inline: auto;
  border-radius: 38px;
  background: linear-gradient(160deg, #1d2421 0%, #0a0e0c 100%);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-screen);
  transform: rotate(-2.4deg);
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.screen-row:nth-child(even) .screen-frame {
  transform: rotate(2.4deg);
}

.screen-frame:hover,
.screen-row:nth-child(even) .screen-frame:hover {
  transform: rotate(0deg) translateY(-6px);
}

.screen-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 38px;
  background: radial-gradient(
    circle at 30% 0%,
    rgba(124, 226, 154, 0.06),
    transparent 50%
  );
  pointer-events: none;
}

.screen-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  position: relative;
}

.screen-text {
  display: grid;
  gap: 20px;
  align-content: center;
  max-width: 48ch;
}

.screen-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
}

.screen-text h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "opsz" 80, "SOFT" 50;
}

.screen-text h3 code {
  font-size: 0.62em;
  vertical-align: 0.12em;
}

.screen-text p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.screen-spec {
  font-family: var(--font-mono) !important;
  font-size: 0.72rem !important;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted) !important;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

/* -------------------------------------------------------------------------
   Project index TOC
   ------------------------------------------------------------------------- */

.toc {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 32px;
  align-items: baseline;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  transition: padding 320ms ease;
}

.toc-row:last-child {
  border-bottom: 1px solid var(--line);
}

.toc-row:hover {
  padding-left: 16px;
}

.toc-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--signal);
  transition: width 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
  opacity: 0.4;
}

.toc-row:hover::before {
  width: 4px;
}

.toc-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.toc-link {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variation-settings: "opsz" 80, "SOFT" 50;
  transition: font-style 320ms ease, color 320ms ease;
}

.toc-row:hover .toc-link {
  font-style: italic;
  font-variation-settings: "opsz" 80, "SOFT" 90;
}

.toc-arrow {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--muted);
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), color 320ms ease;
  justify-self: end;
}

.toc-row:hover .toc-arrow {
  color: var(--signal);
  transform: translateX(8px);
}

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

.page-foot {
  border-top: 1px solid var(--line);
  padding-block: 32px 40px;
  margin-top: clamp(40px, 6vw, 80px);
}

.page-foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
}

.page-foot-mark {
  color: var(--signal-soft);
}

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

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .spec {
    justify-self: stretch;
    width: 100%;
    margin-top: 16px;
  }
  .section-head {
    grid-template-columns: 60px minmax(0, 1fr);
    column-gap: 20px;
  }
}

@media (max-width: 820px) {
  .topbar-inner {
    padding-block: 12px;
  }
  .brand {
    font-size: 0.95rem;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .brand-tag {
    display: none;
  }
  .topbar nav {
    gap: 0;
  }
  .topbar nav a {
    padding: 8px 10px;
    font-size: 0.68rem;
  }

  .contract-grid {
    grid-template-columns: 1fr;
  }
  .contract-card {
    padding: 28px 22px 32px;
  }

  .ledger-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }
  .ledger-row dd {
    font-size: 0.72rem;
  }

  .screen-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .screen-row .screen-frame,
  .screen-row:nth-child(even) .screen-frame {
    order: 0;
    transform: rotate(0);
  }
  .screen-row:nth-child(even) .screen-text {
    order: 0;
  }
  .screen-text {
    text-align: left;
    margin-inline: auto;
    width: 100%;
  }
}

@media (max-width: 560px) {
  :root {
    --shell-pad: 18px;
  }
  .topbar-inner {
    display: grid;
    gap: 10px;
  }
  .topbar nav {
    justify-content: start;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .topbar nav::-webkit-scrollbar {
    display: none;
  }
  .topbar nav .nav-out span {
    display: none;
  }
  .hero {
    padding-top: 48px;
  }
  .hero-meta {
    align-items: flex-start;
    flex-wrap: wrap;
    font-size: 0.62rem;
    line-height: 1.6;
  }
  .hero-meta span:last-child {
    flex: 1 1 220px;
    min-width: 0;
  }
  .hero-meta span:last-child,
  .lede,
  .hero-note,
  code {
    overflow-wrap: anywhere;
  }
  .masthead {
    font-size: clamp(3rem, 15vw, 4.1rem);
    letter-spacing: -0.04em;
    overflow-wrap: normal;
    word-break: normal;
  }
  .lede {
    max-width: 100%;
    font-size: 1.16rem;
    line-height: 1.48;
  }
  .lede code {
    font-size: 0.74em;
    white-space: normal;
  }
  .hero-note {
    font-size: 0.92rem;
  }
  .actions {
    align-items: stretch;
  }
  .actions .btn {
    flex: 1 1 100%;
    min-width: 0;
  }
  .spec {
    min-height: 0;
    padding: 34px 20px 24px;
  }
  .spec-portrait {
    width: 142px;
    height: 142px;
  }
  .spec-name {
    font-size: 2rem;
  }
  .spec-facts .fact {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .section-head {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }
  .section-num {
    grid-column: 1;
    grid-row: 1;
    padding-top: 0;
  }
  .section-title {
    grid-column: 1;
    grid-row: 2;
  }
  .section-blurb {
    grid-column: 1;
    grid-row: 3;
  }
  .toc-row {
    grid-template-columns: 36px minmax(0, 1fr) 24px;
    gap: 14px;
    padding: 20px 0;
  }
  .toc-arrow {
    font-size: 1.1rem;
  }

  .ticker-track {
    font-size: 0.74rem;
    gap: 24px;
  }
  @media (prefers-reduced-motion: no-preference) {
    .ticker-track {
      animation-duration: 56s;
    }
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .ticker-track {
    transform: none;
  }
}

/* Selection */
::selection {
  background: var(--signal);
  color: var(--bg);
}
