/* Page sections */

.section { padding: var(--section) 0; position: relative; }
.section-flush { padding-top: 0; }
.section-head .h-section, .faq-grid .h-section, .contact-grid .h-section, .section-head .lede, .faq-grid .lede, .contact-grid .lede { margin-top: 1.5rem; }
.section-head > .h-section:first-child { margin-top: 0; }
.section-head { display: grid; gap: 1.5rem; margin-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.section-head .eyebrow { justify-self: start; }
@media (min-width: 960px) {
  .section-head-split { grid-template-columns: 1.3fr 1fr; align-items: end; }
}
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); }

/* ── Hero ─────────────────────────────────────────── */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: center; padding: 7.5rem 0 4rem; isolation: isolate; }
.field { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero::after { /* fade the field into the page */
  content: ''; position: absolute; inset: auto 0 0; height: 40%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.hero-grid { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 1080px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr); gap: 4.5rem; } }
.hero-copy .eyebrow { margin-bottom: 2rem; }
.hero-copy h1 { margin-bottom: 1.75rem; }
.hero-copy .lede { margin-bottom: 2.5rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: 3.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line); color: var(--fg-3);
}
.hero-meta b { color: var(--fg-2); font-weight: 500; }

/* ── Manifesto (scroll-lit words) ─────────────────── */
.manifesto p {
  font-size: var(--step-3); font-weight: 500; letter-spacing: -0.04em; line-height: 1.12;
  max-width: 22ch; text-wrap: balance;
}
@media (min-width: 960px) { .manifesto p { max-width: 24ch; } }
.manifesto .word { color: var(--fg); }
.js .manifesto .word { color: var(--fg-3); opacity: 0.35; }
.manifesto em { font-style: normal; color: var(--bone); }

/* ── Systems (sticky story) ───────────────────────── */
.systems { display: grid; gap: 4rem; }
.sys-index { display: none; }
@media (min-width: 1024px) {
  .systems { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; align-items: start; }
  .sys-index { display: block; position: sticky; top: 7rem; }
}
.sys-index ol { list-style: none; display: grid; gap: 0.25rem; margin-top: 2.5rem; }
.sys-index li {
  display: flex; align-items: baseline; gap: 1rem; padding: 0.7rem 0;
  color: var(--fg-3); font-size: var(--step-1); letter-spacing: -0.02em;
  transition: color 400ms var(--ease-out);
}
.sys-index li .mono { width: 2rem; }
.sys-index li.is-active { color: var(--fg); }
.sys-progress { margin-top: 2rem; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.sys-progress i { display: block; height: 100%; background: var(--bone); transform-origin: left; transform: scaleX(0); }
.sys-panels { display: grid; gap: clamp(2rem, 1rem + 4vw, 7rem); }
.sys-panel { display: grid; gap: 1.75rem; }
@media (min-width: 1024px) { .sys-panel { min-height: 78vh; align-content: center; } }
.sys-panel .bezel { aspect-ratio: 16 / 10.5; }
.sys-copy { display: grid; gap: 0.8rem; max-width: 36rem; }
.sys-copy .mono { color: var(--signal); }
.sys-copy p { color: var(--fg-2); }
.sys-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.sys-tags li { list-style: none; color: var(--fg-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 0.3rem 0.65rem; }

/* ── Protocol ─────────────────────────────────────── */
.timeline { position: relative; display: grid; gap: 1px; }
.timeline-track { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-2); display: none; }
.timeline-track i { position: absolute; inset: 0; background: var(--bone); transform-origin: left; transform: scaleX(0); }
.steps { list-style: none; display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .timeline-track { display: block; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}
.step { padding-top: 2rem; position: relative; display: grid; gap: 0.8rem; align-content: start; }
.step::before {
  content: ''; position: absolute; top: -4px; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--line-3);
  transition: background-color 400ms ease, border-color 400ms ease;
}
.step.is-lit::before { background: var(--bone); border-color: var(--bone); }
.step-day { font-size: var(--step-3); font-weight: 500; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.step h3 { font-size: var(--step-1); font-weight: 500; letter-spacing: -0.02em; }
.step p { color: var(--fg-2); max-width: 26rem; }
.step .mono { color: var(--fg-3); }

/* ── Specs bento ──────────────────────────────────── */
.bento { display: grid; gap: 0.75rem; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(6, 1fr); } }
.bento .bezel { min-height: 15rem; }
.bento .bezel-core { padding: 1.6rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
@media (min-width: 760px) {
  .b-wide { grid-column: span 4; }
  .b-narrow { grid-column: span 2; }
  .b-half { grid-column: span 3; }
}
.spec-value { font-size: var(--step-4); font-weight: 500; letter-spacing: -0.06em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.spec-label { color: var(--fg-2); max-width: 22rem; }
.spec-top { display: flex; justify-content: space-between; align-items: center; color: var(--fg-3); }

/* ── FAQ ──────────────────────────────────────────── */
.faq-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.4rem 0; font-size: var(--step-1); letter-spacing: -0.02em; font-weight: 450;
  transition: color var(--hover) ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #fff; }
.faq .plus { width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1px solid var(--line-2); position: relative; flex: none; }
.faq .plus::before, .faq .plus::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--fg-2);
  transform: translate(-50%, -50%); transition: transform 360ms var(--ease-out);
}
.faq .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .answer { padding: 0 3rem 1.6rem 0; color: var(--fg-2); max-width: 44rem; }
.faq details[open] .answer { animation: answer-in 420ms var(--ease-out); }
@keyframes answer-in { from { opacity: 0; transform: translateY(-6px); } }

/* ── Contact ──────────────────────────────────────── */
.contact-grid { display: grid; gap: 3.5rem; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; } }
.contact-lines { display: grid; margin-top: 2.5rem; border-top: 1px solid var(--line); }
.contact-lines div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.contact-lines a { transition: color var(--hover) ease; }
.contact-lines a:hover { color: var(--bone); }
.form { display: grid; gap: 0.6rem; padding: clamp(1.1rem, 0.8rem + 1vw, 1.75rem); }
.form-row { display: grid; gap: 0.6rem; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field-box {
  display: grid; gap: 0.3rem; padding: 0.8rem 1rem 0.6rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg);
  transition: border-color var(--hover) ease, background-color var(--hover) ease;
}
.field-box:focus-within { border-color: var(--line-3); background: var(--bg-2); }
.field-box .mono { color: var(--fg-3); }
.field-box input, .field-box select, .field-box textarea { background: transparent; border: 0; outline: 0; width: 100%; padding: 0.15rem 0 0.25rem; }
.field-box select { appearance: none; cursor: pointer; }
.field-box option { background: var(--bg-2); }
.field-box textarea { min-height: 7.5rem; resize: vertical; }
.field-box ::placeholder { color: var(--fg-3); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.4rem; }
.form-status { min-height: 1.2em; color: var(--fg-3); }
.form-status[data-state='ok'] { color: var(--signal); }
.form-status[data-state='error'] { color: #ff8a7a; }
.hp { position: absolute; left: -9999px; }

/* ── Footer ───────────────────────────────────────── */
.footer { padding: 5rem 0 2.5rem; overflow: hidden; }
.footer-mark {
  font-size: clamp(4rem, 17vw, 17rem); font-weight: 500; letter-spacing: -0.075em; line-height: 0.78;
  color: transparent;
  background: linear-gradient(180deg, #2a2b30 0%, rgba(42, 43, 48, 0) 92%);
  -webkit-background-clip: text; background-clip: text;
  margin: 0 0 2.5rem -0.04em; user-select: none;
}
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--fg-3); }
.footer-row a:hover { color: var(--fg); }

/* Floating dock */
.dock {
  position: fixed; right: var(--gutter); bottom: 1.25rem; z-index: 60;
  opacity: 0; transform: translateY(1rem) scale(0.98); pointer-events: none;
  transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-out);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7);
}
.dock.is-visible { opacity: 1; transform: none; pointer-events: auto; }
