/* Coalesce site styles: direction B (paper and teal), from the design spec. */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/InstrumentSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #F4F0E8;
  --ink: #1B2423;
  --muted: #55605E;
  --teal: #1D5E5B;
  --teal-deep: #164A48;
  --on-teal: #FFFFFF;
  --terra: #C4623A;
  --line: #E2DBCD;
  --card: #FFFFFF;
  --code: #EFE9DD;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 80px);
  --max: 1280px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--teal); }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; }

.skip-link { position: absolute; left: 12px; top: -64px; z-index: 30; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 12px; color: var(--paper); }

/* Header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; max-width: var(--max); min-height: 88px; margin: 0 auto; padding-inline: var(--gutter); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--serif); font-size: 32px; line-height: 1; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; flex: 1; }
.site-nav a { padding-block: 10px; color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--teal); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--teal); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 10px; font-size: 16px; font-weight: 600; text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--teal); color: var(--on-teal); }
.btn-primary:hover { background: var(--teal-deep); color: var(--on-teal); }
.btn-ghost { border: 1.5px solid var(--teal); color: var(--teal); }
.btn-ghost:hover { background: rgba(29, 94, 91, 0.06); color: var(--teal-deep); }

/* Links whose setting is still empty: readable (at least 4.5:1), plainly not clickable, and inert on hover */
.is-missing { cursor: default; }
a.is-missing,
a.is-missing:hover { color: var(--muted); text-decoration: none; }
.btn.is-missing,
.btn.is-missing:hover { background: transparent; border: 1.5px dashed var(--line); color: var(--muted); }
.card.is-missing:hover { border-color: var(--line); }
.card.is-missing .card-cta { color: var(--muted); }

/* Hero */
.hero { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.hero-figure { position: relative; width: 100%; }
.hero-stage { position: relative; width: 100%; aspect-ratio: 1400 / 1080; }
.hero-stage > .hero-still,
.hero-stage > canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero-stage > .hero-still { transition: opacity 0.6s ease; }
.hero-stage.is-live > .hero-still { opacity: 0; }
/* Soft edges: people who fly past the frame (burst, arrivals, the lens handle) fade out instead of being cut off. */
.hero-stage > canvas {
  touch-action: pan-y;
  cursor: pointer;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-composite: intersect;
}
.hero-pause { position: absolute; right: 8px; top: 8px; z-index: 3; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.88); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 7.5vw, 92px); line-height: 0.98; letter-spacing: -0.02em; text-wrap: balance; }
h1 em { color: var(--terra); }
.lede { max-width: 36em; margin: 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.release-line { margin: 0; font-size: 14px; color: var(--muted); }

.hero-home { display: flex; flex-direction: column; align-items: center; padding-bottom: 72px; text-align: center; }
.hero-home .hero-figure { width: min(760px, 100%); }
.hero-home .hero-copy { position: relative; align-items: center; margin-top: -40px; }
.hero-home .actions { justify-content: center; }

.hero-help { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 24px 48px; padding-bottom: 56px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: 64px var(--gutter); border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 32px; }
h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 48px); line-height: 1.05; }
.section-head p { margin: 0; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 12px; min-height: 220px; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); text-decoration: none; }
.card:hover { border-color: var(--teal); color: var(--ink); }
.card .icon { width: 30px; height: 30px; color: var(--teal); }
.card-title { font-size: 20px; font-weight: 600; }
.card-text { flex: 1; font-size: 15px; color: var(--muted); }
.card-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--teal); }
.card-cta svg { width: 16px; height: 16px; }

/* Install steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 24px 24px 24px 76px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 22px; top: 22px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: var(--on-teal); font-family: var(--serif); font-size: 22px; }
.steps h3 { margin: 0 0 6px; font-size: 18px; }
.steps p { margin: 0; font-size: 15px; color: var(--muted); }
.note { margin: 20px 0 0; font-size: 15px; color: var(--muted); }
code { padding: 1px 6px; border-radius: 5px; background: var(--code); font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-size: 0.92em; }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--ink); }
.site-footer a.is-missing { color: var(--muted); }

@media (max-width: 860px) {
  .hero-help { grid-template-columns: 1fr; }
  .hero-help .hero-figure { order: -1; }
  .hero-home .hero-copy { margin-top: -16px; }
}
