/* ============================================================
   SolarTended — landing page styles
   Black canvas, white Montserrat, one warm amber accent.
   ============================================================ */

:root {
  --black: #000000;
  --ink-2: #0b0a09;
  --panel: #100f0d;
  --white: #ffffff;
  --body: rgba(255, 255, 255, 0.86);
  --muted: rgba(255, 255, 255, 0.64);
  --faint: rgba(255, 255, 255, 0.42);
  --hairline: rgba(255, 255, 255, 0.14);
  --amber: #f0b23e;
  --amber-ink: #1a1203;
  --max: 1400px;
  --measure: 760px;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  background: var(--black);
  color: var(--body);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
strong { color: var(--white); font-weight: 600; }
h1, h2, h3 { color: var(--white); }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
.skip-link {
  position: fixed; top: 0; left: 0; z-index: 300;
  transform: translateY(-130%);
  background: var(--white); color: var(--black);
  padding: 0.7rem 1.1rem; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }
main:focus { outline: none; }

/* ---------------- Wordmark ---------------- */
.wordmark {
  display: inline-flex; align-items: baseline;
  font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.3rem);
  letter-spacing: 0.2em; color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.wordmark span { font-weight: 300; }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: clamp(1rem, 2.5vw, 1.75rem) var(--pad);
  transition: padding 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.66) 0%, rgba(0,0,0,0.42) 55%, rgba(0,0,0,0) 100%);
  transition: opacity 0.3s var(--ease);
}
.site-header.is-scrolled { background: rgba(0, 0, 0, 0.88); padding-top: 0.85rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--hairline); }
@supports (backdrop-filter: blur(8px)) { .site-header.is-scrolled { background: rgba(0,0,0,0.72); backdrop-filter: blur(10px); } }
.site-header.is-scrolled::before { opacity: 0; }

.site-nav { display: flex; align-items: center; gap: clamp(0.85rem, 2vw, 1.45rem); }
.nav-link {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap; color: var(--muted);
  text-shadow: 0 1px 2px rgba(0,0,0,0.9), 0 2px 10px rgba(0,0,0,0.5);
  transition: color 0.25s var(--ease);
}
.nav-link:hover { color: var(--white); }

.menu-toggle {
  display: none;
  background: transparent; color: var(--white);
  border: 1px solid var(--hairline); border-radius: 2px;
  font: 600 0.68rem/1 "Montserrat", sans-serif; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.6rem 0.9rem; cursor: pointer;
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0,0,0,0.96);
  display: flex; flex-direction: column; justify-content: center; gap: 1.4rem;
  padding: 6rem var(--pad) 3rem;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { font-size: 1.5rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--white); }
.mobile-menu .btn { align-self: flex-start; margin-top: 1rem; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  white-space: nowrap; cursor: pointer;
  padding: 0.85rem 2rem;
  background: var(--white); color: var(--black);
  font: 600 0.82rem/1.2 "Montserrat", sans-serif; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--white); border-radius: 2px;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { background: transparent; color: var(--white); }
.btn-sm { padding: 0.5rem 1.05rem; font-size: 0.67rem; letter-spacing: 0.09em; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-accent { background: transparent; color: var(--white); border-color: var(--amber); gap: 0.5em; }
.btn-accent .sun-mark { color: var(--amber); flex: none; transition: transform 0.4s var(--ease), color 0.25s var(--ease); }
.btn-accent::after { content: "\2198"; margin-left: 0.1em; color: var(--amber); transition: transform 0.25s var(--ease), color 0.25s var(--ease); }
.btn-accent:hover { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.btn-accent:hover .sun-mark { color: var(--amber-ink); transform: rotate(90deg); }
.btn-accent:hover::after { color: var(--amber-ink); transform: translate(2px, 2px); }
.btn-block { width: 100%; }

/* ---------------- Hero (full-bleed, copy anchored low) ---------------- */
.screen {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; overflow: hidden;
}
.media { position: absolute; inset: 0; z-index: 0; background: #1a1712; }
.bg-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 42%;
  filter: sepia(0.18) saturate(0.95) contrast(1.03);
}
.scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 28%),
    linear-gradient(0deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.5) 48%, rgba(0,0,0,0) 78%),
    linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0) 65%);
}
.screen-content {
  position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 0 var(--pad) clamp(5.5rem, 12vh, 8rem);
}
.hero-kicker {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--white); margin-bottom: 1.1rem;
  display: inline-flex; align-items: center; gap: 0.8rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 2px 14px rgba(0,0,0,0.7);
}
.hero-kicker::before { content: ""; width: 1.6rem; height: 2px; background: var(--amber); flex: none; }
.title {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.02;
  font-size: clamp(2.2rem, 7.5vw, 4.75rem);
  text-shadow: 0 2px 30px rgba(0,0,0,0.45);
  max-width: 17ch; overflow-wrap: break-word;
}
.flavor {
  margin-top: clamp(0.7rem, 1.6vh, 1.1rem); max-width: 46ch;
  font-weight: 500; font-size: clamp(1.05rem, 1.9vw, 1.5rem); line-height: 1.32;
  color: rgba(255,255,255,0.86);
  text-shadow: 0 1px 3px rgba(0,0,0,0.65), 0 2px 28px rgba(0,0,0,0.65);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: clamp(1.4rem, 3vh, 2rem); }
.hero-meta {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 1.2rem var(--pad);
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; color: var(--muted);
  border-top: 1px solid var(--hairline);
}
.hero-scroll { text-transform: uppercase; letter-spacing: 0.2em; }
.hero-scroll::after { content: ""; display: inline-block; width: 1px; height: 0.9em; margin-left: 0.7em; background: var(--muted); vertical-align: -0.1em; }

/* ---------------- Marquee ---------------- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--hairline); background: var(--black); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee span {
  flex: none; padding: 1.25rem 2.2rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 2.2rem;
}
.marquee span::after { content: ""; width: 6px; height: 6px; background: var(--amber); transform: rotate(45deg); margin-right: -2.2rem; margin-left: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- Section scaffolding ---------------- */
.section { padding: var(--section) 0; border-bottom: 1px solid var(--hairline); }
.section-tight { padding: calc(var(--section) * 0.8) 0; }
.section-flush { padding: 0; border-bottom: 0; }
.section-panel { background: var(--panel); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.measure { max-width: calc(var(--measure) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

.kicker {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.1rem;
}
.h-display {
  font-weight: 700; font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.08;
  letter-spacing: -0.005em; margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.h-section {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.04;
  font-size: clamp(1.75rem, 4.4vw, 3.4rem); max-width: 20ch;
}
.lede { margin-top: 1.2rem; max-width: 56ch; font-size: clamp(1rem, 1.4vw, 1.15rem); font-weight: 500; color: var(--muted); line-height: 1.55; }
.split-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.prose p { font-size: clamp(1rem, 1.25vw, 1.08rem); line-height: 1.75; color: var(--body); }
.prose p + p { margin-top: 1.3rem; }
.intro .prose p:first-child { color: var(--muted); }

/* ---------------- Stack rows (hairline layer list) ---------------- */
.stack { margin: clamp(2rem, 4vw, 2.8rem) 0; border-top: 1px solid var(--hairline); }
.stack-row {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.35rem 1.75rem;
  padding: 1.4rem 0.25rem; border-bottom: 1px solid var(--hairline);
}
.stack-layer { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint); padding-top: 0.3rem; }
.stack-row h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.35rem; }
.stack-row p { font-size: 0.95rem; color: var(--muted); line-height: 1.65; max-width: 70ch; }
.stack-wide .stack-row { grid-template-columns: minmax(8rem, 0.32fr) 1fr; padding: 2rem 0.25rem; }
.stack-wide .stack-row h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); margin-bottom: 0.6rem; }
.stack-wide .stack-layer { color: var(--amber); }
.stack-row:hover .stack-layer { color: var(--amber); }
.stack-layer { transition: color 0.25s var(--ease); }

/* ---------------- Jobs (three columns, ruled, not cards) ---------------- */
.jobs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hairline); }
.job { padding: 2rem clamp(1rem, 2.4vw, 2.2rem) 0.5rem 0; }
.job + .job { border-left: 1px solid var(--hairline); padding-left: clamp(1rem, 2.4vw, 2.2rem); }
.job-num {
  display: inline-block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 1.4rem;
}
.job h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.1; margin-bottom: 0.9rem; }
.job p { color: var(--muted); font-size: 0.97rem; line-height: 1.7; }
.ticks { margin-top: 1.3rem; border-top: 1px solid var(--hairline); }
.ticks li { padding: 0.7rem 0 0.7rem 1.4rem; border-bottom: 1px solid var(--hairline); font-size: 0.86rem; font-weight: 500; color: var(--body); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0.1rem; top: 1.15rem; width: 0.55rem; height: 1px; background: var(--amber); }

/* ---------------- Figures ---------------- */
.wide-figure { position: relative; }
.wide-figure img { width: 100%; height: clamp(260px, 38vw, 560px); object-fit: cover; object-position: 50% 40%; filter: sepia(0.15) saturate(0.95); }
figcaption {
  margin-top: 0.8rem; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; line-height: 1.55; color: var(--muted);
}
.wide-figure figcaption { max-width: var(--max); margin: 0 auto; padding: 0.9rem var(--pad) 1.2rem; border-bottom: 1px solid var(--hairline); }

/* ---------------- How it works ---------------- */
.how-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.timeline { border-top: 1px solid var(--hairline); }
.timeline li { display: grid; grid-template-columns: 5rem 1fr; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--hairline); }
.t-time { font-size: 0.95rem; font-weight: 600; color: var(--amber); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; padding-top: 0.1rem; }
.timeline h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.35rem; }
.timeline p { font-size: 0.95rem; color: var(--muted); line-height: 1.65; }
.plan { position: sticky; top: 6rem; }
.plan svg { width: 100%; height: auto; background: var(--ink-2); }
@supports (offset-path: path("M0 0")) {
  .plan .bot { animation: bot 14s linear infinite; offset-path: path("M40 470 V140 H440 V240 H40 V340 H440 V440 H60"); offset-rotate: 0deg; cx: 0; cy: 0; }
}
@keyframes bot { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.plan .route { animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -12; } }

/* ---------------- Sample report ---------------- */
.report { background: var(--black); border: 1px solid var(--hairline); padding: clamp(1.25rem, 3vw, 2.5rem); }
.report-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 1.6rem; border-bottom: 1px solid var(--hairline); }
.report-tag {
  display: inline-block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--amber-ink); background: var(--amber); padding: 0.3rem 0.6rem; margin-bottom: 0.9rem; border-radius: 2px;
}
.report-top h3 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 700; text-transform: uppercase; }
.report-top p { font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; }
.report-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 0.5rem 2.2rem; align-self: end; }
.report-stats dt { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.report-stats dd { font-size: 1.35rem; font-weight: 600; color: var(--white); font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { text-align: left; padding: 0.95rem 1rem 0.95rem 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
thead th { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); padding-top: 1.3rem; }
.report td:first-child { font-variant-numeric: tabular-nums; color: var(--white); white-space: nowrap; font-weight: 500; }
.report td { color: var(--muted); }
.st { display: inline-block; font-size: 0.72rem; font-weight: 600; color: var(--body); white-space: nowrap; }
.st-wait { color: var(--amber); }
.report-foot { margin-top: 1.2rem; font-size: 0.75rem; color: var(--faint); letter-spacing: 0.04em; }

/* ---------------- Specs (design targets) ---------------- */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hairline); border-left: 1px solid var(--hairline); }
.specs > div { padding: 1.8rem clamp(1rem, 2vw, 1.8rem); border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); transition: background-color 0.3s var(--ease); }
.specs > div:hover { background: rgba(255,255,255,0.03); }
.specs dt { font-size: 1.15rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--white); margin-bottom: 0.6rem; }
.specs dd { font-size: 0.93rem; color: var(--muted); line-height: 1.65; }

/* ---------------- Robot drawing ---------------- */
.robot-figure { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) var(--pad); border-bottom: 1px solid var(--hairline); }
.robot-figure svg { width: 100%; height: auto; }

/* ---------------- Where ---------------- */
.where { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.where-col { border-top: 2px solid var(--white); padding-top: 1.4rem; }
.where-col:first-child { border-top-color: var(--amber); }
.where-col h3 { font-size: 1.35rem; font-weight: 700; text-transform: uppercase; margin-bottom: 0.8rem; }
.where-col p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.plain { margin-top: 1.1rem; }
.plain li { padding: 0.55rem 0; border-bottom: 1px solid var(--hairline); font-size: 0.88rem; font-weight: 500; color: var(--body); }
.plain li:first-child { border-top: 1px solid var(--hairline); }

/* ---------------- Comparison ---------------- */
.compare { min-width: 760px; }
.compare th[scope="row"] { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); width: 15%; }
.compare thead th { font-size: 0.66rem; color: var(--muted); }
.compare td { color: var(--muted); }
.compare .us { color: var(--white); font-weight: 600; background: rgba(240,178,62,0.07); padding-left: 1rem; }
.compare thead .us { color: var(--amber); border-top: 2px solid var(--amber); }

/* ---------------- Why now ---------------- */
.why { counter-reset: why; border-top: 1px solid var(--hairline); }
.why li { counter-increment: why; position: relative; padding: 1.6rem 0 1.6rem 3.4rem; border-bottom: 1px solid var(--hairline); }
.why li::before { content: counter(why, decimal-leading-zero); position: absolute; left: 0; top: 1.75rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; color: var(--amber); }
.why h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.4rem; }
.why p { color: var(--muted); font-size: 0.97rem; line-height: 1.7; }

/* ---------------- Limits ---------------- */
.limits { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); border: 1px solid var(--hairline); padding: clamp(1.5rem, 4vw, 3.5rem); }
.limits-list li { padding: 1rem 0; border-bottom: 1px solid var(--hairline); color: var(--muted); font-size: 0.97rem; line-height: 1.65; }
.limits-list li:first-child { padding-top: 0; }
.limits-list li:last-child { border-bottom: 0; padding-bottom: 0; }

/* ---------------- Pilot + form ---------------- */
.pilot { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.pilot-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; margin-top: 2.4rem; }
.pilot-terms h3 { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber); }
.form { background: var(--panel); border: 1px solid var(--hairline); padding: clamp(1.4rem, 3vw, 2.4rem); display: grid; gap: 1.05rem; }
.form h3 { font-size: 1.2rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 0.3rem; }
.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  width: 100%; font: 500 0.95rem/1.4 "Montserrat", sans-serif; color: var(--white);
  background: var(--black); border: 1px solid rgba(255,255,255,0.22); border-radius: 2px; padding: 0.8rem 0.9rem;
  transition: border-color 0.2s var(--ease);
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
textarea { resize: vertical; min-height: 6rem; }
input:focus, select:focus, textarea:focus { border-color: var(--amber); outline: none; }
input[aria-invalid="true"] { border-color: #ff7a6b; }
::placeholder { color: var(--faint); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.78rem; color: var(--muted); line-height: 1.55; }
.form-note a { text-decoration: underline; text-underline-offset: 2px; }
.form-note.is-ok { color: var(--amber); }
.form-note.is-err { color: #ff9b8f; }

/* ---------------- FAQ ---------------- */
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.35rem 2.5rem 1.35rem 0; font-size: 1.05rem; font-weight: 600; color: var(--white);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.2rem; top: 1.15rem; font-size: 1.4rem; font-weight: 300; color: var(--amber); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2.5rem 1.4rem 0; color: var(--muted); line-height: 1.7; font-size: 0.97rem; }

/* ---------------- Closing (back to full-bleed) ---------------- */
.closing { position: relative; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; }
.closing-media {
  position: absolute; inset: 0;
  background: #1a1712 url("assets/ref/hero-field.webp") 30% 55% / cover no-repeat;
  filter: sepia(0.25) saturate(0.9) brightness(0.8);
}
.closing-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.35) 65%, rgba(0,0,0,0.6) 100%); }
.closing-content { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; padding: 6rem var(--pad) clamp(3rem, 8vh, 5rem); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--black); padding: clamp(3.5rem, 7vw, 6rem) var(--pad) 1.5rem; border-top: 1px solid var(--hairline); }
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-about p { margin-top: 1.1rem; max-width: 38ch; font-size: 0.9rem; color: var(--muted); line-height: 1.65; }
.footer-col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col h3 { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.3rem; }
.footer-col a { font-size: 0.86rem; font-weight: 500; color: var(--body); transition: color 0.25s var(--ease); overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--amber); }
.footer-mark {
  max-width: var(--max); margin: clamp(3rem, 7vw, 5rem) auto 0;
  font-weight: 700; font-size: clamp(2rem, 9.8vw, 9rem); line-height: 0.9; letter-spacing: 0.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.28);
  text-align: center; white-space: nowrap; overflow: hidden; user-select: none;
}
.footer-meta {
  max-width: var(--max); margin: 2rem auto 0; padding-top: 1.2rem; border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem 1.5rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; color: var(--muted);
}
.footer-status { display: inline-flex; align-items: center; gap: 0.6rem; }
.footer-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(240,178,62,0.18); }

/* ---------------- Legal / 404 ---------------- */
.page-plain { padding-top: clamp(7rem, 14vw, 10rem); }
.legal h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; text-transform: uppercase; margin: 3rem 0 1rem; }
.legal h3 { font-size: 1rem; font-weight: 600; margin: 1.8rem 0 0.5rem; }
.legal p, .legal li { color: var(--muted); font-size: 0.97rem; line-height: 1.75; }
.legal ul { list-style: disc; padding-left: 1.2rem; }
.legal li + li { margin-top: 0.4rem; }
.legal ul + p { margin-top: 0.9rem; }
.legal a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }
.draft-note { border: 1px solid var(--amber); color: var(--white); padding: 1rem 1.2rem; font-size: 0.9rem; margin: 1.5rem 0 0; }
.notfound { min-height: 100svh; display: flex; align-items: flex-end; position: relative; }

/* ---------------- Reveal (only when JS has run) ---------------- */
.reveal { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.screen .reveal:nth-child(2) { transition-delay: 0.08s; }
.screen .reveal:nth-child(3) { transition-delay: 0.16s; }
.screen .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .site-nav .nav-link { display: none; }
  .how-grid, .pilot, .limits { grid-template-columns: 1fr; }
  .plan { position: static; max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .jobs, .where { grid-template-columns: 1fr; }
  .job + .job { border-left: 0; padding-left: 0; border-top: 1px solid var(--hairline); margin-top: 1.5rem; }
  .specs { grid-template-columns: 1fr 1fr; }
  .report-stats { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 600px) {
  .title { font-size: clamp(1.9rem, 9vw, 3.2rem); }
  .flavor { max-width: 34ch; }
  .stack-row, .stack-wide .stack-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .specs { grid-template-columns: 1fr; }
  .pilot-terms, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 0.3rem; }
  .why li { padding-left: 0; padding-top: 3rem; }
  .why li::before { top: 1.5rem; }
  .hero-meta .hero-scroll { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .report td:first-child { white-space: normal; }
  table:not(.compare) { font-size: 0.8rem; }
  .report table { min-width: 560px; }
}

/* Portrait phones: framed photo on top, copy on black below (as in the reference) */
@media (max-aspect-ratio: 4/5) and (max-width: 900px) {
  .screen { flex-direction: column; align-items: stretch; justify-content: flex-start; min-height: 0; }
  .media { position: relative; inset: auto; height: 50svh; min-height: 300px; }
  .bg-photo { object-position: 66% 42%; }
  .scrim { background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 22%), linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 9%, rgba(0,0,0,0) 32%); }
  .screen-content { padding: 1.2rem var(--pad) 2rem; }
  .hero-meta { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .plan .bot, .plan .route { animation: none; }
}

/* Closing section uses the arm photo so the hero image is not repeated */
.closing .closing-media { background-image: url("assets/ref/arm-module.webp"); background-position: 50% 30%; filter: sepia(0.2) saturate(0.9) brightness(0.85); }
@media (max-width: 600px) {
  .robot-figure { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .robot-figure svg { min-width: 680px; }
  .robot-figure figcaption { position: sticky; left: 0; }
}
