/* =========================================================
   Synema — Rams, dark-only. Three type sizes. One accent.
   ========================================================= */

:root {
  --bg:      #000000;
  --fg:      #FFFFFF;
  --muted:   #8A8A8A;
  --dim:     #5A5A5A;
  --hairline:#1A1A1A;

  /* Synema red. PMS Red 032 modernized — brighter, slight pink, high wattage on black.
     Reserved for functional marks only: form border, small mark-points, hover states.
     Never decoration. One color, remembered. */
  --accent:  #EF3340;

  --radius:   10px;

  --gutter: clamp(20px, 4vw, 56px);
  --max:    1440px;

  /* Three type sizes. That's it. */
  --t-headline: clamp(2.25rem, 4.5vw, 4.5rem);
  --t-section:  clamp(1.5rem, 3vw, 2.5rem);
  --t-body:     1.0625rem;
  --t-micro:    0.75rem;

  --tracking-tight: -0.04em;
  --tracking-wide:  0.16em;

  /* Technical label treatment: IBM Plex Sans Light + spaced.
     Used for nav links, spec labels, white paper link, and similar UI chrome. */
  --font-plex: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  --font-plex-weight: 300;
  --font-plex-tracking: 0.18em;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: var(--t-body);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--dim);
  transition: border-color 120ms ease, color 120ms ease;
}
a:hover { border-color: var(--fg); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- Top bar ---------- */

.topbar {
  background: transparent;
  border-bottom: 1px solid var(--hairline);
  color: var(--muted);
  text-align: center;
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 10px var(--gutter);
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0,0,0,0.82);
  backdrop-filter: saturate(120%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--gutter);
  gap: 24px;
}
.nav-mark { border: 0; display: flex; align-items: center; flex-shrink: 0; }
.nav-mark img { display: block; height: 22px; width: auto; }

/* Center links */
.nav-links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 28px;
  font-family: var(--font-plex);
  font-weight: var(--font-plex-weight);
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--font-plex-tracking);
  flex: 1;
}
.nav-links a { border: 0; color: var(--muted); }
.nav-links a:hover { color: var(--fg); }

/* Right: label + form grouped together */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.nav-cta-label {
  font-family: var(--font-plex);
  font-weight: var(--font-plex-weight);
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--font-plex-tracking);
  color: var(--fg);
  white-space: nowrap;
}

/* Right: compact email form — no label, just input + flashing arrow */
.nav-form {
  display: flex;
  align-items: stretch;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
  transition: box-shadow 160ms ease;
  flex-shrink: 0;
}
.nav-form:focus-within {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.40);
}
.nav-form-input {
  background: transparent;
  color: var(--fg);
  border: 0;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.8125rem;
  outline: none;
  width: 188px;
}
.nav-form-input::placeholder { color: var(--dim); }
.nav-form-submit {
  background: transparent;
  border: 0;
  padding: 0 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  color: var(--muted);
  /* Heartbeat: briefly flash Synema red ~every 2.5s */
  animation: nav-arrow-pulse 2.5s ease-in-out infinite;
}
.nav-form-submit::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 16px;
  background: rgba(255,255,255,0.14);
}
.nav-form-submit:hover {
  animation: none;
  color: var(--accent);
}

@keyframes nav-arrow-pulse {
  0%, 100%  { color: var(--muted); }
  40%, 60%  { color: var(--accent); }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-cta-label { display: none; }
  .nav-form-input { width: 140px; }
}

/* ---------- Technical accent type — all small numbers and system labels ---------- */
/* Single rule covers every 01/02/03 accent, rail labels, scroll label, type-grid numbers. */
.rail-num,
.rail-text,
.hero-rail .rail-text,
.section-num,
.type-num,
.feature-num,
.scroll-label,
.engine-eyebrow,
.coming-soon-badge {
  font-family: var(--font-plex);
  font-weight: var(--font-plex-weight);
}

/* ---------- Unified rail layout (hero + feature rows + about + enterprise) ---------- */

.rail-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  display: grid;
  grid-template-columns: 72px 1fr;
  column-gap: clamp(16px, 3vw, 48px);
}
/* .hero no longer uses rail-layout — padding-top lives in .hero-body */
.rail {
  grid-column: 1;
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 4px 0 0;
}
.rail-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--muted);
  white-space: nowrap;
}
.rail-num {
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: rgba(255,255,255,0.38);
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
}
.rail-content {
  grid-column: 2;
  min-width: 0;
}

@media (max-width: 720px) {
  .rail-layout { grid-template-columns: 1fr; }
  .rail { display: none; }
  .rail-content { grid-column: 1; }
}

/* ---------- Hero — Linear style: massive headline, full-width demo below ---------- */

/* Full-width text block.
   Rail column width = demo left padding minus outer gutter, so content
   and the demo iframe's left edge land on exactly the same vertical line. */
.hero-text {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: calc(clamp(56px, 8vw, 120px) - clamp(20px, 4vw, 56px)) 1fr;
  column-gap: clamp(12px, 1.5vw, 20px);
  padding: clamp(56px, 6vw, 96px) var(--gutter) clamp(40px, 5vw, 64px) var(--gutter);
}

/* Inline hero rail — "Coming soon · 2026" vertical text + right hairline.
   Lives in the gutter between the page edge and the content/demo alignment. */
.hero-rail {
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 4px 0 0;
}
.hero-rail .rail-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--muted);
  white-space: nowrap;
}

/* Subhead + signal on same line — like Linear's "Issue tracking is dead" placement */
.hero-sub-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-top: clamp(16px, 2vw, 28px);
  flex-wrap: wrap;
}
.hero-sub-row .subhead {
  flex: 1;
  min-width: 240px;
  margin: 0;
}

/* Signal: asterisk + label + link, lives to the right of the subhead */
.hero-signal {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding-top: 3px; /* optical alignment with subhead first line */
  flex-wrap: wrap;
  justify-content: flex-end;
}
.signal-ast {
  color: rgba(255,255,255,0.65);
  flex-shrink: 0;
}
.signal-label {
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--muted);
}
.signal-link {
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--fg);
  border-bottom: 1px solid var(--dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 1px;
  transition: border-color 120ms ease;
}
.signal-link:hover { border-color: var(--fg); }
.signal-link .ph { font-size: 0.8em; }

/* Headline: Linear-scale — editorial, fills the width, 2–3 lines */
.hero .headline {
  font-size: clamp(1.75rem, 3.85vw, 3.85rem);
  line-height: 1.04;
  margin: 0 0 clamp(16px, 2vw, 28px) 0;
}

/* Notify: minimal email capture — no CTA label, just the arrow */
.hero-notify {
  display: flex;
  align-items: stretch;
  max-width: 400px;
  margin-top: clamp(24px, 3vw, 40px);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.20);
}
.hero-notify:focus-within {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.50);
}
.notify-input {
  flex: 1;
  background: transparent;
  color: var(--fg);
  border: 0;
  padding: 13px 18px;
  font: inherit;
  font-size: 0.9375rem;
  outline: none;
  min-width: 0;
}
.notify-input::placeholder { color: var(--dim); }
.notify-submit {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  font-size: 1rem;
  transition: color 160ms ease;
}
.notify-submit::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 18px;
  background: rgba(255,255,255,0.18);
  transition: background 160ms ease;
}
.notify-submit:hover { color: var(--fg); }
.notify-submit:hover::before { background: rgba(255,255,255,0.3); }
.notify-note {
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--dim);
  margin: 12px 0 0 0;
}

/* NLE badges — B&W. They work with us; we filter them through our aesthetic. */
.hero-nle .nle-mark { filter: grayscale(1) brightness(2.2) contrast(0.9); }
.hero-nle .nle-badge span { color: var(--muted); }

/* Product demo: sneak peek — constrained width, clipped height, gradient fade */
.hero-demo-full {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  /* Side margins match Linear — generous padding brings the frame in from both edges */
  padding: 0 clamp(56px, 8vw, 120px);
  /* Clip the tall iframe so only the top portion shows (sneak peek) */
  height: 660px;
  overflow: hidden;
}
.hero-demo-full::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}
.hero-demo-frame-full {
  display: block;
  width: 100%;
  /* Taller than the container — the overflow clip reveals only the top portion */
  height: 1100px;
  border: 0;
  border-radius: 10px 10px 0 0;
  pointer-events: none;
}

/* Specs row: contained within site max-width */
.hero-meta {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (max-width: 720px) {
  .hero-text { grid-template-columns: 1fr; }
  .hero-rail { display: none; }
  .hero-demo-full { display: none; }
}

/* ---------- Callout — bold positioning statement, after the demo ---------- */

.section-callout {
  border-top: 1px solid var(--hairline);
}
.callout-statement {
  font-size: clamp(1.375rem, 2.4vw, 2.125rem);
  line-height: 1.25;
  letter-spacing: var(--tracking-tight);
  font-weight: 700;
  color: var(--fg);
  margin: 0;
}

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

.hero-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.hero-spec {
  padding: 20px 24px;
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-spec:last-child { border-right: 0; }
.hero-spec dt {
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--muted);
}
.hero-spec dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--fg);
}

@media (max-width: 720px) {
  .hero-specs { grid-template-columns: repeat(2, 1fr); }
  .hero-spec { border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
  .hero-spec:nth-child(2), .hero-spec:nth-child(4) { border-right: 0; }
  .hero-spec:nth-child(3), .hero-spec:nth-child(4) { border-bottom: 0; }
}

.eyebrow {
  display: inline-block;
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--muted);
  padding-bottom: 32px;
}

.headline {
  font-size: var(--t-headline);
  line-height: 1.02;
  letter-spacing: var(--tracking-tight);
  font-weight: 700;
  margin: 0 0 40px 0;
}
.headline-line { display: block; }
.headline-mark {
  white-space: nowrap;  /* keep "hidden*" glued together if it wraps */
}

.headline-ast {
  display: inline-block;
  vertical-align: 0.52em;  /* sits above the cap-height of "hidden" */
  width: 0.52em;
  height: 0.52em;
  margin-left: -0.08em;    /* tucked right against "hidden" — footnote-style */
  color: rgba(255,255,255,0.6);  /* Synema asterisk — subtle on dark bg */
  position: relative;
}
.ast { width: 100%; height: 100%; display: block; overflow: visible; }

/* V1: subtle fade-in on load. V2 will replace this with the convergence animation —
   5 play-triangles fly in from scattered positions and lock to form the asterisk. */
.ast-hero { opacity: 0; transition: opacity 700ms ease 200ms; }
.ast-hero.is-in { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .ast-hero { opacity: 1; transition: none; }
}

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

.subhead {
  max-width: 60ch;
  margin: clamp(20px, 2.5vw, 32px) 0 0 0;
  font-size: clamp(0.875rem, 1vw, 1rem);
  line-height: 1.5;
  color: var(--muted);
}
.subhead-secondary {
  max-width: 40ch;
  margin: 14px 0 0 0;
  font-size: clamp(0.875rem, 1vw, 1rem);
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Manifesto — newspaper callout section ---------- */

.section-manifesto {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(96px, 14vw, 200px) var(--gutter);
  border-top: 1px solid var(--hairline);
}
.manifesto-inner {
  max-width: 72ch;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 72px);
}

.manifesto-portrait figcaption {
  margin-top: 16px;
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--dim);
}

.manifesto-callout {
  font-size: clamp(1.625rem, 3.4vw, 3.125rem);
  line-height: 1.04;
  letter-spacing: var(--tracking-tight);
  font-weight: 700;
  color: var(--fg);
  margin: 0;
}
.manifesto-callout-close {
  border-top: 1px solid var(--hairline);
  padding-top: clamp(40px, 5vw, 72px);
}

/* ---------- Manifesto hero image — composite: video underneath, transparent PNG on top.
   Video shows through the phone-screen region of the PNG (where it's transparent).
   PNG is filtered to B&W for consistency. Screen coords are tuned to the specific PNG. ---------- */
.manifesto-portrait {
  margin: 0;
  width: 100%;
}
.manifesto-portrait-img {
  aspect-ratio: 3 / 2;  /* tune once we know the PNG's native ratio */
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
/* Video sits underneath — positioned to fill the phone's screen bounds.
   TUNE these four values once the PNG is in — measure the screen region and match. */
.manifesto-video {
  position: absolute;
  left: 33%;
  top: 20%;
  width: 34%;
  height: 35%;
  object-fit: cover;  /* crop video to match screen aspect */
  z-index: 0;
  background: #000;  /* fallback if video is missing */
}
/* Transparent hand+phone PNG on top. Grayscale filter guarantees B&W even if the
   source is in color. If the image 404s, we hide it so only the video shows. */
.manifesto-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;  /* preserve PNG aspect ratio without cropping */
  z-index: 1;
  filter: grayscale(1) contrast(1.06);
  pointer-events: none;
}
/* Suppress the broken-image icon while the overlay file isn't present yet */
.manifesto-overlay[src=""],
.manifesto-overlay:not([src]) { display: none; }
/* Placeholder state while assets are missing — gives us a visible frame to work against */
.manifesto-portrait-img:has(.manifesto-overlay[src=""]),
.manifesto-portrait-img:not(:has(.manifesto-overlay)) {
  border: 1px solid var(--hairline);
}

/* ---------- Manifesto header: 16:9 image + opening callout side by side ---------- */
.manifesto-header {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;  /* callout vertically centered with 16:9 image */
}
@media (max-width: 720px) {
  .manifesto-header { grid-template-columns: 1fr; align-items: start; }
}

.manifesto-body {
  max-width: 60ch;
  align-self: center;
  width: 100%;
}
.manifesto-body p {
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 22px 0;
}
.manifesto-body p:last-child { margin-bottom: 0; color: var(--fg); }
.manifesto-body em {
  font-style: italic;
  color: var(--fg);
}
/* Final sentence emphasis: the one sentence the whole manifesto exists to ask. */
.manifesto-body p:last-child em { color: var(--fg); }

/* ---------- Features grid — sits below manifesto closing callout ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
  margin-top: clamp(48px, 7vw, 96px);
}

.feature-cell {
  padding: clamp(24px, 3vw, 40px) clamp(20px, 2.5vw, 36px);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.feature-cell:nth-child(3n) { border-right: none; }
.feature-cell:nth-last-child(-n+3) { border-bottom: none; }

.feature-name {
  font-size: var(--t-micro);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--fg);
  margin: 0 0 10px 0;
}

.feature-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 840px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-cell:nth-child(3n) { border-right: 1px solid var(--hairline); }
  .feature-cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--hairline); }
  .feature-cell:nth-child(2n) { border-right: none; }
  .feature-cell:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-cell { border-right: none !important; border-bottom: 1px solid var(--hairline) !important; }
  .feature-cell:last-child { border-bottom: none !important; }
}

/* ---------- Form — unified dark bar, submit lives INSIDE the field.
   Design + tech: one container, two regions. The ⏎ badge is the craft signal. ---------- */

.form {
  display: flex;
  align-items: stretch;
  max-width: 620px;
  background: #000;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.22);
  border-radius: 0;
  transition: box-shadow 160ms ease;
}
.form:focus-within {
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
}

.form-input {
  flex: 1;
  background: transparent;
  color: var(--fg);
  border: 0;
  padding: 13px 20px;
  font: inherit;
  font-size: 0.9375rem;
  outline: none;
  min-width: 0;
  border-radius: 0;
}
.form-input::placeholder { color: var(--dim); }

.form-submit {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  border-radius: 0;
  transition: color 160ms ease;
}
.form-submit::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.18);
  transition: background 160ms ease;
}
.form-submit:hover { color: var(--fg); }
.form-submit:hover::before { background: rgba(255,255,255,0.3); }
.form:focus-within .form-submit { color: var(--fg); }

.form-submit-text { letter-spacing: inherit; }

/* Phosphor arrow-right: the most Rams possible submit mark.
   A line with an arrowhead. The mark on a Braun dial. */
.form-icon {
  font-size: 1.125rem;
  line-height: 1;
  display: inline-flex;
  color: inherit;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.form-submit:hover .form-icon {
  transform: translateX(3px);
}

.form-note {
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--dim);
  margin: 16px 0 0 0;
}

.form-perks {
  list-style: none;
  margin: 20px 0 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  max-width: 620px;
}
.form-perks li {
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--muted);
  position: relative;
  padding-left: 14px;
}
.form-perks li::before {
  content: "*";
  position: absolute;
  left: 0; top: 0;
  color: rgba(255,255,255,0.45);
}

@media (max-width: 560px) {
  .form-input { padding: 16px 18px; font-size: 1rem; }
  .form-submit { padding: 0 16px; }
  .form-perks { flex-direction: column; gap: 8px; }
}

/* ---------- Product mockup ---------- */

.section-product {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(72px, 10vw, 140px);
}

.product-frame {
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
}

.product-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 16px;
  background: #141414;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.product-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}
.product-dots span {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2e2e2e;
}

.product-project {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
}

.product-tabs {
  display: flex;
}

.product-tab {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  padding: 0 16px;
  height: 40px;
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(255,255,255,0.07);
}

.product-tab-active {
  color: var(--fg);
  background: #111;
}

.product-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  height: 400px;
  overflow: hidden;
}

.product-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.transcript-panel {
  border-right: 1px solid #1a1a1a;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: #141414;
  flex-shrink: 0;
}

.panel-meta { color: var(--dim); }

.panel-badge {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(239,51,64,0.12);
  padding: 2px 7px;
  border-radius: 3px;
}

.transcript-block {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.transcript-speaker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--av, #555);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
  flex-shrink: 0;
}

.speaker-name {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.timecode {
  margin-left: auto;
  font-size: var(--t-micro);
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.transcript-text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.75;
  color: var(--muted);
}

.ts-story {
  background: rgba(239, 51, 64, 0.12);
  color: var(--fg);
  border-radius: 2px;
  padding: 1px 2px;
}
.ts-story::before {
  content: '◆';
  color: var(--accent);
  font-size: 0.55em;
  margin-right: 4px;
  vertical-align: 0.2em;
  opacity: 0.8;
}

/* ---------- Mockup animation — scoped under .will-animate so static fallback works ---------- */

.will-animate .transcript-block .ts {
  color: #282828;
  transition: color 700ms ease;
}
.will-animate .transcript-block .ts-story {
  background: transparent;
  color: #282828;
  padding: 0;
  transition: background 500ms ease 150ms, color 500ms ease 150ms, padding 500ms ease 150ms;
}
.will-animate .transcript-block.is-read .ts {
  color: var(--muted);
}
.will-animate .transcript-block.is-story-found .ts-story {
  background: rgba(239, 51, 64, 0.12);
  color: var(--fg);
  padding: 1px 2px;
}
.will-animate .cut-clip {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.will-animate .cut-clip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cut list */
.cut-panel { background: #0e0e0e; border-left: 1px solid #222; }

.cut-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

.cut-clip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cut-thumb {
  width: 68px;
  height: 40px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Cinematic gradient thumbnails */
.cut-warm-1 {
  background:
    radial-gradient(ellipse at 40% 35%, rgba(200,120,50,0.7) 0%, transparent 55%),
    linear-gradient(160deg, #1a0c04 0%, #3d1e0a 55%, #180800 100%);
}
.cut-cool-1 {
  background:
    radial-gradient(ellipse at 45% 38%, rgba(80,140,200,0.6) 0%, transparent 55%),
    linear-gradient(160deg, #040d1a 0%, #0a1e30 55%, #040d1a 100%);
}
.cut-broll-1 {
  background:
    linear-gradient(160deg, #050c14 0%, #0d1c28 55%, #050c14 100%);
}
.cut-warm-2 {
  background:
    radial-gradient(ellipse at 55% 40%, rgba(160,90,110,0.5) 0%, transparent 55%),
    linear-gradient(160deg, #0f080e 0%, #261018 55%, #0f080e 100%);
}
.cut-broll-2 {
  background:
    radial-gradient(ellipse at 50% 70%, rgba(180,140,60,0.4) 0%, transparent 55%),
    linear-gradient(180deg, #060400 0%, #161000 45%, #2a2000 70%, #0a0800 100%);
}

.cut-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cut-speaker {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
}

.cut-line {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cut-dur {
  font-size: var(--t-micro);
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .product-body { grid-template-columns: 1fr; height: auto; }
  .cut-panel { display: none; }
  .product-body { height: 360px; }
  .transcript-panel { border-right: none; }
}

/* ---------- Sections ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 12vw, 160px) var(--gutter);
  border-top: 1px solid var(--hairline);
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 64px;
}

.section-num {
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.section-title {
  font-size: var(--t-section);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
  margin: 0 0 48px 0;
}

/* ---------- Features — text-only narrative rows (UI captures go here later) ---------- */

.feature-copy { max-width: 64ch; }
.feature-num {
  display: inline-block;
  font-size: var(--t-micro);
  letter-spacing: var(--tracking-wide);
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}
.feature-title {
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  margin: 0 0 24px 0;
}
.feature-narrative {
  margin: 0 0 20px 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}
.feature-answer {
  margin: 0;
  color: var(--fg);
  font-size: 1rem;
  line-height: 1.55;
}
.feature-answer em {
  font-style: italic;
  color: var(--fg);
}

.feature-visual {
  min-width: 0;
}

/* ---------- UI micro-element: Search ---------- */
.ui-search {
  background: #0A0A0A;
  border: 1px solid var(--hairline);
  padding: 20px;
  font-size: 0.8125rem;
  line-height: 1.4;
}
.ui-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  background: var(--bg);
}
.ui-search-icon { color: var(--muted); font-size: 0.875rem; }
.ui-search-query { flex: 1; color: var(--fg); }
.ui-search-kbd {
  font-size: 0.6875rem;
  color: var(--muted);
  border: 1px solid var(--hairline);
  padding: 2px 6px;
}
.ui-search-meta {
  padding: 12px 0 10px;
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--muted);
  border-bottom: 1px solid var(--hairline);
}
.ui-search-results { list-style: none; margin: 0; padding: 0; }
.ui-result {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: center;
}
.ui-result:last-child { border-bottom: 0; }
.ui-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1A1A1A 0%, #2A2A35 100%);
  border: 1px solid var(--hairline);
}
.ui-thumb-1 { background: linear-gradient(135deg, #1A1520 0%, #3A2A50 100%); }
.ui-thumb-2 { background: linear-gradient(135deg, #201A15 0%, #50402A 100%); }
.ui-thumb-3 { background: linear-gradient(135deg, #151A20 0%, #2A4050 100%); }
.ui-result-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ui-result-tc {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: rgba(255,255,255,0.4);
  font-variant-numeric: tabular-nums;
}
.ui-result-caption {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.35;
}

/* ---------- UI micro-element: Timeline ---------- */
.ui-timeline {
  background: #0A0A0A;
  border: 1px solid var(--hairline);
  padding: 20px;
  font-size: 0.75rem;
}
.ui-timeline-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 16px;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--muted);
}
.ui-timeline-dur { color: var(--fg); font-variant-numeric: tabular-nums; }
.ui-track {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.ui-track-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--muted);
}
.ui-track-body {
  position: relative;
  height: 22px;
  background: var(--bg);
  border: 1px solid var(--hairline);
}
.ui-track-faces .ui-track-body { height: 14px; }
.ui-chip {
  position: absolute;
  top: 2px; bottom: 2px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 0.6875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ui-chip-a { background: rgba(255, 255, 255, 0.07); color: var(--fg); border-left: 2px solid rgba(255,255,255,0.35); }
.ui-chip-b { background: rgba(255, 255, 255, 0.08); color: var(--fg); border-left: 2px solid var(--fg); }
.ui-chip-ghost { background: transparent; color: var(--muted); border: 1px solid var(--hairline); border-left: 2px solid var(--hairline); }
.ui-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  background: rgba(255,255,255,0.45);
  border-radius: 50%;
}
.ui-timeline-ruler {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-left: 76px;
  font-size: 0.625rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- UI micro-element: Sequence ---------- */
.ui-sequence {
  background: #0A0A0A;
  border: 1px solid var(--hairline);
  padding: 20px;
}
.ui-seq-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 16px;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--muted);
}
.ui-seq-dur { color: var(--fg); font-variant-numeric: tabular-nums; }
.ui-seq-track {
  display: flex;
  height: 56px;
  gap: 2px;
  margin-bottom: 14px;
}
.ui-clip {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 10px;
  min-width: 0;
  overflow: hidden;
}
.ui-clip-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ui-clip-dur {
  font-size: 0.625rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ui-clip-interview {
  background: rgba(255, 255, 255, 0.06);
  border-left: 2px solid rgba(255,255,255,0.35);
}
.ui-clip-broll {
  background: rgba(255, 255, 255, 0.06);
  border-left: 2px solid rgba(255, 255, 255, 0.3);
}
.ui-seq-foot {
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--muted);
}

/* ---------- Story types grid ---------- */

.types-lede {
  max-width: 54ch;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 48px 0;
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
  margin-bottom: 56px;
}
@media (max-width: 960px) { .types-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .types-grid { grid-template-columns: 1fr; } }

.type-cell {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 22px 22px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  align-items: flex-start;
  transition: background 140ms ease;
}
.type-cell:hover { background: #0A0A0A; }
.type-cell-custom .type-num { color: var(--fg); font-size: 1rem; font-weight: 700; padding-top: 0; }
.type-cell-custom .type-label { color: var(--fg); }
.type-cell-custom .type-desc a { color: var(--fg); border-bottom-color: var(--dim); }

.type-num {
  font-size: var(--t-micro);
  letter-spacing: var(--tracking-wide);
  color: rgba(255,255,255,0.35);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}
.type-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.type-desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- Hero NLE row — badges left, White Paper right ---------- */
.hero-nle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(28px, 3.5vw, 48px);
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(7px, 0.9vw, 11px) 0;
}
.hero-nle-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-nle-label {
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--muted);
  white-space: nowrap;
}
.hero-nle-left .nle-list { margin: 0; }

/* Hero NLE badges — icons + labels, no box border */
.hero-nle .nle-badge {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  gap: 10px;
}
.hero-nle .nle-badge:hover { background: transparent; border-color: transparent; }
.hero-nle .nle-list { gap: 16px; }

/* White Paper link — mirrors Linear's "Issue tracking is dead" placement.
   Right edge aligned with the hero demo iframe edge by matching its extra inset. */
.hero-white-paper {
  font-family: var(--font-plex);
  font-weight: var(--font-plex-weight);
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--font-plex-tracking);
  color: var(--fg);
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  /* Pull right edge in to match demo iframe padding (demo: clamp(56,8vw,120px) vs gutter: clamp(20,4vw,56px)) */
  margin-right: clamp(32px, 4vw, 64px);
}
/* Grey label — document title, no underline */
.hero-paper-sub {
  color: var(--muted);
}
/* White link label — carries the underline */
.hero-paper-label {
  color: var(--fg);
  border-bottom: 1px solid var(--dim);
  padding-bottom: 1px;
  transition: border-color 120ms ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.hero-white-paper:hover .hero-paper-label { border-color: var(--fg); }
.hero-paper-label .ph { font-size: 0.85em; }

/* Synema asterisk in red — marks the document */
.hero-paper-ast {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
  display: block;
}

/* ---------- NLE compatibility block ---------- */
.nle-block {
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
}
.nle-label {
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--muted);
}
.nle-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.nle-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  transition: border-color 140ms ease, background 140ms ease;
}
.nle-badge:hover { border-color: var(--dim); background: #0A0A0A; }
.nle-mark {
  width: 32px;
  height: 32px;
  display: block;
  flex: none;
}
.nle-badge span {
  font-size: 0.8125rem;
  color: var(--fg);
  white-space: nowrap;
}

/* ---------- About ---------- */

.about-body {
  max-width: 62ch;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--fg);
}
.about-body p { margin: 0 0 20px 0; }
.about-body a { border-bottom-color: var(--dim); }

/* ---------- Enterprise ---------- */

.enterprise-lede {
  max-width: 54ch;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.45;
  margin: 0 0 64px 0;
  color: var(--fg);
}

.enterprise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 0 0 72px 0;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
@media (max-width: 720px) { .enterprise-grid { grid-template-columns: 1fr; } }

.enterprise-item {
  padding: 32px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.enterprise-item dt {
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}
.enterprise-item dd {
  margin: 0;
  color: var(--muted);
  max-width: 38ch;
}

.enterprise-cta {
  border-top: 1px solid var(--hairline);
  padding-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.enterprise-cta p {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
}

.btn-secondary {
  display: inline-block;
  border: 1px solid var(--fg);
  padding: 16px 28px;
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--fg);
  transition: background 120ms ease, color 120ms ease;
}
.btn-secondary:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- Waitlist repeat ---------- */

.section-waitlist-repeat {
  text-align: left;
}
.closer {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 0.95;
  margin: 0 0 48px 0;
  max-width: 14ch;
}

/* ---------- Footer + Colophon ---------- */

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--gutter) 48px;
  border-top: 1px solid var(--hairline);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-row { display: flex; align-items: center; gap: 24px; }

.colophon {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.colophon p {
  margin: 0;
  max-width: 64ch;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--dim);
  font-style: italic;
}
.footer-mark {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: var(--tracking-tight);
}
.footer-ast { color: rgba(255,255,255,0.5); }
.footer-meta, .footer-links a {
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--muted);
}
.footer-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 20px;
}
.footer-links a { border: 0; }
.footer-links a:hover { color: var(--fg); }

/* ---------- Hero specs section wrapper ---------- */

.hero-specs-section {
  max-width: var(--max);
  margin: 0 auto;
  /* Match demo's left/right padding so spec grid edges align with the iframe */
  padding-left: clamp(56px, 8vw, 120px);
  padding-right: clamp(56px, 8vw, 120px);
}

/* ---------- Platform section — "One platform. Every tool pointed at one thing." ---------- */

.section-platform {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 12vw, 160px) var(--gutter);
  border-top: 1px solid var(--hairline);
}
.platform-headline {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: var(--tracking-tight);
  margin: 0 0 clamp(48px, 7vw, 80px) 0;
  max-width: 18ch;
}

/* ---------- Full Engine section — detailed feature table ---------- */

.section-engine {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 12vw, 160px) var(--gutter);
  border-top: 1px solid var(--hairline);
}
.engine-eyebrow {
  font-size: var(--t-micro);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--muted);
  margin: 0 0 16px 0;
}
.engine-lede {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 clamp(40px, 6vw, 64px) 0;
}

/* 4-col grid: [name][desc][name][desc] per row */
.engine-table {
  display: grid;
  grid-template-columns: minmax(160px, 210px) 1fr minmax(160px, 210px) 1fr;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.engine-name,
.engine-desc {
  padding: clamp(14px, 2vw, 22px) clamp(16px, 2vw, 24px);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.engine-name {
  font-size: var(--t-micro);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--fg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.engine-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}
.engine-name--soon { color: var(--muted); }
.engine-desc--soon { color: var(--dim); }

.coming-soon-badge {
  display: inline-block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--muted);
  border: 1px solid var(--hairline);
  padding: 2px 7px;
  font-weight: 400;
  width: fit-content;
}

@media (max-width: 840px) {
  .engine-table { grid-template-columns: minmax(140px, 180px) 1fr; }
}
@media (max-width: 480px) {
  .engine-table { grid-template-columns: 1fr; }
  .engine-name { border-bottom: 0; padding-bottom: 6px; }
}

/* ---------- StoryCut section (03) — team narrative ---------- */

.section-storycut .section-title { max-width: 20ch; }

.section-prose {
  max-width: 60ch;
  margin-top: clamp(24px, 3vw, 36px);
}
.section-prose p {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 20px 0;
}
.section-prose p:last-child {
  margin-bottom: 0;
  color: var(--fg);
}

/* ---------- Scroll progress rail — fixed left sidebar ---------- */
/* 12 short horizontal dashes (à la Claude's console) + vertical section label.
   Sits in the left gutter; hidden below 1024px where there's no space. */

.scroll-rail {
  position: fixed;
  left: clamp(10px, 1.4vw, 18px);
  top: clamp(80px, 9vh, 120px);
  z-index: 20;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  pointer-events: none;
}

.scroll-dashes {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}

.scroll-dash {
  width: 16px;
  height: 2px;
  background: rgba(255,255,255,0.10);
  transition: background 300ms ease, width 220ms ease;
  flex-shrink: 0;
}

.scroll-dash.is-past {
  background: rgba(255,255,255,0.20);
}

.scroll-dash.is-active {
  background: rgba(255,255,255,0.75);
  width: 22px;
}

.scroll-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.5625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.28);
  white-space: nowrap;
  transition: opacity 250ms ease;
  line-height: 1;
}

@media (max-width: 1024px) {
  .scroll-rail { display: none; }
}
