/* ============================================
   Synexar — Launch 2026 dress: "The Unbroken Line"
   Additive layer. Loaded AFTER each page's inlined styles so it wins
   the cascade at equal specificity. All new selectors are l26-prefixed;
   the only overrides of existing selectors are the fixed-header offsets
   and the footer masthead lockup.

   Palette discipline:
   - --line-accent  #b3573a  terracotta: the Line, launch accents
   - --line-ember   #d98e4a  ember: MOTION-ONLY (the tip riding the Line)
   - --launch-ground #faf6ef parchment ground
   - #B83848 reserved red: fragmentation dashes ONLY — its one sanctioned
     static appearance in the launch identity
   ============================================ */

:root {
  --line-accent: #b3573a;
  --line-accent-deep: #96452c;
  --line-ember: #d98e4a;
  --launch-ground: #faf6ef;
  --launch-ink: #2a201a;
  --launch-ink-soft: rgba(42, 32, 26, 0.66);
  --l26-frag-red: #B83848;
  --l26-ribbon-h: 2.2rem;
}

/* ===== Fixed-header compensation (ribbon lives inside the fixed .nav) ===== */
body { padding-top: var(--l26-ribbon-h); }
.nav { padding-top: 0; }
.nav > .container { padding-top: 0.75rem; }
.nav__mobile-menu { top: calc(5rem + var(--l26-ribbon-h)); }
@media (max-width: 640px) {
  .nav__mobile-menu { top: calc(4.25rem + var(--l26-ribbon-h)); }
}

/* ===== Countdown ribbon ===== */
.l26-ribbon {
  height: var(--l26-ribbon-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  background: var(--line-accent);
  color: var(--launch-ground);
  font-family: var(--font-body, 'Satoshi', sans-serif);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}
.l26-ribbon__date {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-bottom: 1px solid rgba(250, 246, 239, 0.55);
  padding-bottom: 1px;
}

/* ===== Launch lockup — header (masthead beneath wordmark) =====
   The masthead is never truncated or shortened: surfaces too narrow to
   carry it whole drop it entirely. The header carries it only on wide
   viewports; the footer lockup and hero carry it everywhere. */
@media (min-width: 1500px) {
  .nav .nav__logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .nav .nav__logo::after {
    content: "Building the AI-native operating system for procedural healthcare.";
    display: block;
    white-space: nowrap;
    font-family: var(--font-body, 'Satoshi', sans-serif);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--color-text-muted, #718096);
  }
}

/* ===== Launch lockup — footer ===== */
.footer .l26-masthead-footer {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--color-text-muted, #718096);
}

/* ============================================================
   HERO TAKEOVER — index.html only
   Parchment ground in both themes: the launch identity is the surface.
   ============================================================ */
.l26-hero {
  position: relative;
  overflow: hidden;
  background: var(--launch-ground);
  color: var(--launch-ink);
  padding-top: calc(6.5rem + var(--l26-ribbon-h));
  padding-bottom: clamp(2.25rem, 4vw, 3.5rem);
  border-bottom: 1px solid rgba(179, 87, 58, 0.25);
}
.l26-hero__inner {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}
.l26-hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--line-accent);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  animation: l26-fade-up 0.6s var(--ease-out, ease-out) 0s both;
}
.l26-hero__villain {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.08;
  color: var(--launch-ink);
  margin-bottom: 0.9rem;
  animation: l26-fade-up 0.6s var(--ease-out, ease-out) 0.08s both;
}
/* Fragmentation dashes — reserved red, its one sanctioned appearance */
.l26-frag-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
  animation: l26-fade-up 0.6s var(--ease-out, ease-out) 0.22s both;
}
.l26-frag-row i {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--l26-frag-red);
}
.l26-frag-row i:nth-child(1) { width: 26px; transform: rotate(-7deg) translateY(3px); }
.l26-frag-row i:nth-child(2) { width: 16px; transform: rotate(5deg) translateY(-4px); }
.l26-frag-row i:nth-child(3) { width: 32px; transform: rotate(-3deg); }
.l26-frag-row i:nth-child(4) { width: 12px; transform: rotate(9deg) translateY(4px); }
.l26-frag-row i:nth-child(5) { width: 22px; transform: rotate(-8deg) translateY(-3px); }
.l26-frag-row i:nth-child(6) { width: 18px; transform: rotate(4deg) translateY(2px); }
.l26-frag-row i:nth-child(7) { width: 28px; transform: rotate(-5deg); }

/* ===== The Unbroken Line ===== */
.l26-line {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-block: clamp(0.5rem, 2vw, 1.5rem);
}
.l26-line svg {
  display: block;
  width: 100%;
  height: clamp(120px, 15vw, 190px);
}
/* No vector-effect here: non-scaling-stroke breaks pathLength-normalized
   dash drawing in Chromium, leaving the Line short of the right edge. */
.l26-line__path {
  fill: none;
  stroke: var(--line-accent);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  animation: l26-draw 2.6s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}
@media (max-width: 760px) {
  .l26-line__path { stroke-width: 7; }
  .l26-line__ember { r: 10; }
}
/* Ember tip — motion-only. Rides the Line and exits the right edge. */
.l26-line__ember {
  fill: var(--line-ember);
  filter: drop-shadow(0 0 6px rgba(217, 142, 74, 0.85));
  animation: l26-fade-in 0.3s ease-out 0.5s both;
}
/* Journey stops are HTML, positioned in % of the figure, so they stay
   round and legible while the stretched SVG carries only the Line. */
.l26-stops {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}
.l26-stops li {
  position: absolute;
  transform: translate(-50%, -50%);
}
.l26-dot {
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--launch-ground);
  border: 3px solid var(--line-accent);
  animation: l26-stop-in 0.35s var(--ease-out, ease-out) both;
}
.l26-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(0.55rem, 1.1vw, 0.76rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--launch-ink-soft);
  white-space: nowrap;
  animation: l26-fade-in 0.4s ease-out both;
}
.l26-label.l26-below { top: 16px; }
.l26-label.l26-above { bottom: 16px; }
@media (max-width: 760px) {
  .l26-label { font-size: 0.55rem; letter-spacing: 0.04em; }
  .l26-label.l26-below { top: 12px; }
  .l26-label.l26-above { bottom: 12px; }
}

/* ===== The turn ===== */
.l26-turn {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.08;
  color: var(--launch-ink);
  margin-top: clamp(0.75rem, 2vw, 1.5rem);
  margin-bottom: 1.1rem;
  animation: l26-fade-up 0.7s var(--ease-out, ease-out) 2.9s both;
}
.l26-turn strong { color: var(--line-accent); font-weight: 700; }

.l26-hero__masthead {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--launch-ink);
  max-width: 44ch;
  margin-inline: auto;
  margin-bottom: 1.9rem;
  animation: l26-fade-up 0.7s var(--ease-out, ease-out) 3.15s both;
}
.l26-hero__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
  animation: l26-fade-up 0.7s var(--ease-out, ease-out) 3.35s both;
}
.l26-hero .btn--primary {
  background: var(--line-accent);
  border-color: var(--line-accent);
  color: var(--launch-ground);
}
.l26-hero .btn--primary:hover {
  background: var(--line-accent-deep);
  border-color: var(--line-accent-deep);
}
.l26-hero .btn--secondary {
  background: transparent;
  border: 1px solid rgba(42, 32, 26, 0.35);
  color: var(--launch-ink);
}
.l26-hero .btn--secondary:hover {
  border-color: var(--launch-ink);
  background: rgba(42, 32, 26, 0.05);
}
/* Dated availability — the honesty line stays welded to the promise */
.l26-hero__availability {
  font-size: 0.82rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--launch-ink-soft);
  max-width: none;
  animation: l26-fade-up 0.7s var(--ease-out, ease-out) 3.5s both;
}
.l26-hero__availability strong { color: var(--launch-ink); font-weight: 600; }
.l26-hero__availability .l26-sep { color: var(--line-accent); padding-inline: 0.55em; }

/* ===== Keyframes =====
   Initial states live in the from{} frames on purpose: if animations are
   unsupported, everything renders fully drawn and visible. */
@keyframes l26-draw {
  from { stroke-dashoffset: 1000; }
  to   { stroke-dashoffset: 0; }
}
@keyframes l26-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes l26-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes l26-stop-in {
  from { opacity: 0; transform: scale(0.4); }
  to   { opacity: 1; transform: scale(1); }
}

/* Reduced motion: the Line renders drawn (the base reset already collapses
   CSS animation durations); the SMIL-driven ember is motion-only, so hide it. */
@media (prefers-reduced-motion: reduce) {
  .l26-line__ember { display: none; }
}
