*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kaleko105Round';
  src: url('../fonts/kaleko-105-round-bold.woff2') format('woff2'),
       url('../fonts/kaleko-105-round-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kaleko105RoundW01-Bold';
  src: url('../fonts/kaleko-105-round-bold.woff2') format('woff2'),
       url('../fonts/kaleko-105-round-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #111111;
  --white: #ffffff;
  --red: #DC2626;
  --red-light: rgba(220, 38, 38, 0.08);
  --red-dim: rgba(220, 38, 38, 0.15);
  --gray-100: #F5F4F2;
  --gray-200: #E8E6E1;
  --gray-400: #686660;
  --gray-600: #5C5A55;
  --gray-700: #3E3C37;
  --gray-800: #2C2A25;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-brand: 'Kaleko105RoundW01-Bold', 'Kaleko105Round', sans-serif;
  --font-mono: 'SF Mono', 'IBM Plex Mono', 'Menlo', monospace;
  --radius: 4px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 1000;
  padding: 10px 14px; color: var(--white); background: var(--black);
  border-radius: var(--radius); transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--red); outline-offset: 3px;
}

/* ── Nav ──────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-brand { text-decoration: none; line-height: 0; }
.nav-links { display: flex; gap: 24px; align-items: center; list-style: none; }
.nav-links a {
  font-size: 14px; color: var(--gray-600); text-decoration: none;
  font-weight: 500; transition: color 0.15s;
}
.nav-links a:hover { color: var(--black); }
.nav-links a[aria-current="page"] { color: var(--black); font-weight: 700; }
.nav-cta, .nav-cta:link, .nav-cta:visited {
  font-size: 13px; font-weight: 600; color: #ffffff;
  background: var(--red); padding: 8px 18px; border-radius: var(--radius);
  text-decoration: none; transition: background 0.15s;
}
.nav-cta:hover { background: #B91C1C; }

/* ── Container ───────────────────── */
.container { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ─────────────────────── */
.btn {
  display: inline-block; font-weight: 600; font-size: 15px;
  color: var(--white); background: var(--red);
  padding: 14px 36px; border-radius: var(--radius);
  text-decoration: none; transition: background 0.15s;
}
.btn:hover { background: #B91C1C; }
.btn-large { padding: 16px 48px; font-size: 17px; }

/* ── Section ─────────────────────── */
section { padding: 80px 24px; }
section.dark { background: var(--gray-100); }

.section-left { text-align: left; }
.section-right { text-align: right; }

.section-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red); margin-bottom: 12px;
}

h2 {
  font-family: var(--font-brand);
  font-size: clamp(28px, 4vw, 42px); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.12; margin-bottom: 20px;
}
h2 em, h3 em { color: var(--red); font-style: normal; }
h3 {
  font-family: var(--font-brand);
  font-size: clamp(18px, 2.5vw, 24px); font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 10px;
}
p {
  color: var(--gray-600); font-size: 16px; line-height: 1.7;
  margin-bottom: 12px;
}
p.lead { font-size: 18px; color: var(--gray-800); font-weight: 500; margin-bottom: 14px; }
p strong { color: var(--black); font-weight: 600; }

/* ── Image helpers ─────────────────── */
.img-contain { width: 100%; height: auto; object-fit: contain; display: block; }
.img-cover { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ══════════════════ 1. HERO ═══════════════ */
.hero-section {
  position: relative; overflow: hidden;
  min-height: calc(100vh - 72px); display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 100px 24px;
}

.hero-remote-field {
  position: absolute; inset: 0; pointer-events: none;
  overflow: hidden; z-index: 0;
}

/* ── Content fade mask ───────────────── */
.hero-content {
  position: relative; z-index: 2; text-align: center;
  max-width: 680px;
}
.hero-content::before {
  content: ''; position: absolute;
  top: -40px; left: 50%; transform: translateX(-50%);
  width: calc(100% + 80px); height: calc(100% + 80px);
  background: rgba(255,255,255,0.88); border-radius: 12px;
  z-index: -1; pointer-events: none;
}

.hero-content h1 {
  font-family: var(--font-brand);
  font-size: clamp(36px, 6vw, 64px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 18px;
}
.hero-content h1 em { color: var(--red); font-style: normal; }

.hero-sub {
  font-size: clamp(18px, 2vw, 22px); line-height: 1.5;
  color: var(--gray-800); max-width: 560px;
  margin: 0 auto 32px auto;
}

.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-bottom: 16px; flex-wrap: wrap;
}

.hero-secondary, .hero-secondary:link, .hero-secondary:visited, .hero-secondary:hover, .hero-secondary:active {
  font-size: 15px; font-weight: 700; color: var(--red) !important;
  text-decoration: underline; text-underline-offset: 4px;
  opacity: 1;
}
.hero-secondary:hover { opacity: 0.75; }

.hero-proof {
  display: block; font-size: 13px; color: var(--gray-400);
}

/* ── Remote marquee tracks ─────────── */
.hero-track {
  position: absolute; left: 0; right: 0;
  pointer-events: none;
}

.hero-track-inner {
  display: flex; align-items: center;
  white-space: nowrap; width: max-content;
  gap: 64px; padding-right: 64px;
}
.hero-track-inner img {
  display: block; object-fit: contain; flex-shrink: 0;
}
.hero-track-inner.animating {
  will-change: transform;
}

/* per-track speeds */
.track-top .hero-track-inner.animating    { animation: marquee-reverse 80s linear infinite; }
.track-middle .hero-track-inner.animating { animation: marquee 65s linear infinite; }
.track-bottom .hero-track-inner.animating { animation: marquee-reverse 55s linear infinite; }

/* per-track depth — top = lightest blur, bottom = strongest blur, soft foreground */
.track-top img    { opacity: 0.26; filter: grayscale(0.5) blur(1.2px); }
.track-middle img { opacity: 0.36; filter: grayscale(0.5) blur(0.2px); }
.track-bottom img { opacity: 0.2; filter: grayscale(0.5) blur(1.6px); }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-reverse {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ══════════════════ 2-3. SPLIT SECTIONS ═══════════ */
.section-split { padding: 100px 24px; }
.split-row {
  display: grid; grid-template-columns: 38fr 62fr;
  gap: 40px; align-items: center;
}
.split-image-left {
  grid-template-columns: 68fr 32fr;
}
.split-reverse { direction: rtl; }
.split-reverse .split-text,
.split-reverse .split-visual { direction: ltr; }
.split-text { max-width: 340px; }
.split-text h2 { margin-bottom: 16px; }
.split-text p.lead {
  font-size: 18px; color: var(--gray-800); font-weight: 500;
  margin-bottom: 8px;
}
.split-text p { color: var(--gray-700); }
.split-visual { display: flex; align-items: center; justify-content: center; }
.split-visual img { width: 100%; height: auto; }

/* ══════════════════ 4. LOCAL BY DESIGN ═══════════ */
.proof-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 32px; margin-bottom: 32px;
}
.proof-item { padding: 8px 0; text-align: center; }
.proof-heading { margin-top: 0; margin-bottom: 8px; }
.proof-tagline {
  font-family: var(--font-brand);
  font-size: 20px; font-weight: 700; color: var(--black);
  margin-top: 20px;
}

/* ══════════════════ 5. TABS ═══════════ */
.tabs-container {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 48px; margin-top: 32px; align-items: start;
}
.tab-list { display: flex; flex-direction: column; gap: 4px; }
.tab-btn {
  text-align: left; padding: 16px 20px;
  border: none; background: transparent;
  font-family: var(--font-sans); font-size: 16px; font-weight: 500;
  color: var(--gray-600); cursor: pointer;
  border-left: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  outline-offset: -2px;
}
.tab-btn:hover { color: var(--black); background: rgba(0,0,0,0.03); }
.tab-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.tab-btn.active {
  color: var(--black); font-weight: 600;
  border-left-color: var(--red);
  background: var(--red-light);
}
.tab-panels { position: relative; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel-content p {
  font-size: 15px; color: var(--gray-600); margin-top: 12px; margin-bottom: 0;
}
.tab-img { max-height: 340px; }

/* ══════════════════ 6. COMPARISON ═══════════ */
.compare-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-top: 32px;
}
.compare-card {
  border: 1px solid var(--gray-200); border-radius: 8px;
  padding: 32px 28px; background: var(--white);
  display: flex; flex-direction: column;
}
.compare-card.plus { border-color: var(--red); border-width: 2px; }
.compare-img-wrap { height: 180px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.compare-img { max-height: 160px; }
.compare-card h3 { font-size: 22px; margin-top: 0; margin-bottom: 2px; }
.compare-card .price { font-size: 26px; font-weight: 700; color: var(--black); margin-bottom: 8px; }
.compare-card .price span { font-size: 14px; color: var(--gray-400); font-weight: 400; }
.compare-position { font-size: 14px; color: var(--gray-600); margin-bottom: 16px; }
.compare-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; flex: 1; }
.compare-card li { font-size: 14px; color: var(--gray-600); padding-left: 18px; position: relative; }
.compare-card li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); opacity: 0.6; }
.compare-cta {
  display: inline-block; font-size: 14px; font-weight: 600;
  color: var(--red); text-decoration: none;
  padding: 10px 20px; border: 1px solid var(--red);
  border-radius: var(--radius); text-align: center;
  transition: background 0.15s, color 0.15s;
}
.compare-cta:hover { background: var(--red); color: var(--white); }
.plus-cta { background: var(--red); color: var(--white); }
.plus-cta:hover { background: #B91C1C; }

/* ══════════════════ 7. TESTING ═══════════ */
.testing-caption { font-size: 13px; color: var(--gray-400); margin-bottom: 28px; }
.testing-grid { display: flex; gap: 24px; align-items: flex-start; }
.testing-photos { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.testing-photo-slot { aspect-ratio: 4/3; overflow: hidden; border-radius: 6px; background: var(--gray-200); }
.testing-photo-slot img { width: 100%; height: 100%; object-fit: cover; }

/* ══════════════════ 8. BETA CTA ═══════════ */
.beta-cta-section {
  padding: 100px 24px; text-align: center;
  background: var(--gray-100);
}
.beta-cta-visual { max-width: 260px; margin: 0 auto 28px; }
.beta-cta-img { max-height: 200px; }
.beta-cta-section h2 { margin-bottom: 12px; }
.beta-cta-section .lead { max-width: 520px; margin-left: auto; margin-right: auto; margin-bottom: 28px; }
.beta-cta-secondary { margin-top: 16px; }

/* ══════════════════ 9. ROADMAP ═══════════ */
.section-divider {
  border: none; border-top: 1px solid var(--gray-200);
  margin: 80px auto 40px;
  max-width: 400px;
}
.roadmap-inline {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; text-align: left;
  max-width: 600px; margin: 0 auto;
}
.roadmap-inline p { font-size: 14px; color: var(--gray-600); margin-bottom: 0; max-width: 400px; }
.roadmap-link, .roadmap-link:link, .roadmap-link:visited {
  font-size: 14px; font-weight: 700; color: var(--red) !important;
  text-decoration: underline; text-underline-offset: 4px;
  white-space: nowrap;
}

.roadmap-strip {
  padding: 40px 0; margin: 60px 0 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.roadmap-heading { font-size: 16px; margin-top: 0; margin-bottom: 4px; }
.roadmap-strip p { margin-bottom: 0; font-size: 14px; max-width: 440px; }

/* ── Footer ──────────────────── */
footer {
  padding: 56px 24px 48px; text-align: center;
  color: var(--gray-400); font-size: 13px;
}
footer .footer-brand { margin-bottom: 6px; }
footer .footer-links { display: flex; gap: 16px; justify-content: center; list-style: none; margin: 12px 0 4px; }
footer .footer-links a { color: var(--gray-600); text-decoration: none; font-size: 13px; }
footer .footer-links a:hover { color: var(--black); }
footer .tagline { margin-top: 8px; color: var(--gray-400); }

/* ── FAQ page ───────────────── */
.page-header {
  padding: 120px 24px 24px; text-align: center; max-width: 680px; margin: 0 auto;
}
.page-header + section { padding-top: 32px; }
.page-header h1 {
  font-family: var(--font-brand);
  font-size: clamp(28px, 5vw, 48px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 12px;
}
.page-header p { color: var(--gray-600); font-size: 17px; }
.faq-list { padding: 0 24px 80px; max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--gray-200); padding: 28px 0;
}
.faq-item:first-child { border-top: 1px solid var(--gray-200); }
.faq-item h3 { font-size: 17px; font-weight: 600; margin: 0 0 10px; cursor: default; }
.faq-item p { color: var(--gray-600); font-size: 15px; line-height: 1.7; max-width: 600px; }

/* ── Beta page ──────────────── */
.beta-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px;
}
.beta-card {
  border: 1px solid var(--gray-200); border-radius: 8px; padding: 28px 24px;
}
.beta-card h3 { margin-top: 0; font-size: 18px; margin-bottom: 16px; }
.beta-card ul {
  list-style: none; display: flex; flex-direction: column; gap: 10px;
}
.beta-card li {
  font-size: 15px; color: var(--gray-600);
  padding-left: 18px; position: relative; line-height: 1.5;
}
.beta-card li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--red); opacity: 0.5;
}

/* ── Form ───────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600; color: var(--black);
  margin-bottom: 6px; letter-spacing: 0.02em;
}
.form-group .hint { display: block; font-size: 12px; color: var(--gray-400); margin-bottom: 6px; }
.form-group input:not([type="radio"]):not([type="checkbox"]),
.form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-200);
  border-radius: var(--radius); font-family: var(--font-sans);
  font-size: 15px; color: var(--black); background: var(--white);
  transition: border-color 0.15s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--red); }
.form-group input[type="radio"], .form-group input[type="checkbox"] { accent-color: var(--red); }
.form-choice { border: 0; min-width: 0; }
.form-choice legend {
  font-size: 13px; font-weight: 600; color: var(--black);
  margin-bottom: 6px; letter-spacing: 0.02em;
}
.form-options { display: flex; gap: 14px; margin-top: 6px; }
.form-options label {
  display: flex; align-items: center; gap: 6px; margin: 0;
  font-weight: 400; font-size: 14px; cursor: pointer;
}
.form-note { margin-top: 10px; font-size: 13px; color: var(--gray-400); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-submit {
  font-weight: 600; font-size: 15px; color: var(--white);
  background: var(--red); padding: 14px 36px; border: none;
  border-radius: var(--radius); cursor: pointer; transition: background 0.15s;
}
.form-submit:hover { background: #B91C1C; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

[id] { scroll-margin-top: 80px; }

/* ── Mobile nav ─────── */
.menu-toggle {
  display: none; background: none; border: none;
  padding: 8px; cursor: pointer; position: relative; z-index: 102;
  font-size: 28px; line-height: 1; color: var(--black);
}
.nav-drawer { display: none; }

/* ── Responsive ───────────────── */
@media (max-width: 768px) {
  /* nav */
  nav { padding: 14px 20px; height: 60px; }
  .menu-toggle { display: block; }
  .nav-links { display: none; }
  .nav-drawer {
    display: block; position: fixed; top: 60px; left: 0; right: 0;
    min-height: calc(100vh - 60px);
    background: #ffffff; z-index: 101; padding: 32px 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .nav-drawer.open { transform: translateX(0); }
  .nav-drawer a {
    display: block; font-size: 17px; font-weight: 600; color: var(--black);
    text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--gray-200);
  }
  .nav-drawer a[aria-current="page"] { color: var(--red); }
  .nav-drawer a.nav-cta-drawer {
    margin-top: 12px; text-align: center; color: var(--white);
    background: var(--red); border-radius: var(--radius); border-bottom: none;
  }
  body.nav-open { overflow: hidden; }

  /* centering */
  h1, h2, h3, .hero-sub, .hero-proof, .hero-actions,
  .section-split .split-text, .split-text,
  .proof-tagline, .beta-cta-section,
  .roadmap-inline, .testing-caption,
  .compare-position { text-align: center !important; }
  .split-text, .beta-cta-visual { margin-left: auto; margin-right: auto; }
  .roadmap-inline { flex-direction: column; align-items: center; }
  .roadmap-inline p { text-align: center; }

  /* hero */
  .hero-section { padding: 120px 20px 72px; min-height: auto; }
  .hero-content h1 { font-size: clamp(28px, 7vw, 44px); }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; text-align: center; }

  /* split sections */
  section { padding: 56px 20px; }
  .section-split { padding: 56px 20px; }
  .split-row { grid-template-columns: 1fr; gap: 28px; }
  .split-reverse { direction: ltr; }
  .split-visual { order: 1; }
  .split-text { order: 0; max-width: 100%; }
  .split-visual img { max-height: none; }

  /* heading line breaks — preserve intentional <br> on mobile */
  .split-text h2 br, .hero-content h1 br { display: inline; }
  .beta-cta-section h2 br { display: none; }

  /* local by design */
  .proof-strip { grid-template-columns: 1fr; gap: 12px; }
  .proof-item { text-align: center; }
  .proof-tagline { margin-top: 16px; }

  /* tabs → accordion */
  .tabs-container { grid-template-columns: 1fr; gap: 0; }
  .tab-list { display: none; }
  .tab-accordion { display: block; }
  .tab-accordion-item {
    border-bottom: 1px solid var(--gray-200);
  }
  .tab-accordion-btn {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; padding: 16px 0; border: none; background: none;
    font-family: var(--font-sans); font-size: 16px; font-weight: 600; color: var(--black);
    cursor: pointer; text-align: left;
  }
  .tab-accordion-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
  .tab-accordion-btn::after {
    content: '+'; font-size: 20px; font-weight: 400; color: var(--gray-400);
    transition: transform 0.2s ease;
  }
  .tab-accordion-btn[aria-expanded="true"]::after {
    content: '−';
  }
  .tab-accordion-panel {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .tab-accordion-panel.open { max-height: 600px; }
  .tab-accordion-panel .tab-panel-content {
    padding-bottom: 20px; text-align: center;
  }
  .tab-panel-content p { font-size: 15px; margin-top: 0; }
  .tab-panels { display: none; }
  .tab-img { max-height: 240px; }

  /* product comparison */
  .compare-card { text-align: center; }
  .compare-card ul { text-align: left; }
  .compare-img-wrap { height: auto; margin-bottom: 16px; }
  .compare-img { max-height: 140px; }

  /* testing */
  .testing-grid { flex-direction: column; align-items: center; }
  .testing-photos { grid-template-columns: 1fr; max-width: 400px; }
  .testing-caption { text-align: center; }

  /* final CTA */
  .beta-cta-section { padding: 64px 20px; }
  .beta-cta-visual { max-width: 200px; }
  .section-divider { margin: 48px auto 28px; }

  /* FAQ */
  .faq-item h3 { font-size: 16px; padding-right: 8px; }

  /* forms */
  .row { grid-template-columns: 1fr; }
  .form-submit { width: 100%; }
  .form-options { justify-content: center; }

  /* page header */
  .page-header { padding: 100px 20px 20px; }
  .page-header + section { padding-top: 24px; }
}

@media (max-width: 430px) {
  .hero-section { padding: 100px 16px 56px; }
  section { padding: 40px 16px; }
  .split-row { gap: 20px; }
  .hero-content h1 { font-size: 26px; }
  .hero-sub { font-size: 15px; }
  .btn-large { padding: 14px 28px; font-size: 16px; }
  .section-divider { margin: 36px auto 24px; }
}

@media (max-width: 620px) {
  .compare-grid, .beta-grid, .row { grid-template-columns: 1fr; }
  .page-header { padding: 100px 16px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  .hero-track-inner.animating { animation: none; }
  .signal-state:first-child { opacity: 0; clip-path: inset(0 100% 0 0); }
  .signal-after { clip-path: inset(0 0 0 0); }
}

/* ── Signal crossfade ────────────── */
.signal-crossfade {
  position: relative; display: inline-block;
  line-height: 0;
}
.signal-state {
  display: block; height: auto;
}
.signal-crossfade .signal-state:first-child {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.2s ease;
}
.signal-after {
  position: absolute; top: 0; left: 0;
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1.2s ease;
}
.signal-crossfade:hover .signal-after,
.signal-crossfade:focus-within .signal-after {
  clip-path: inset(0 0 0 0);
}
.signal-crossfade:hover .signal-state:first-child,
.signal-crossfade:focus-within .signal-state:first-child {
  clip-path: inset(0 100% 0 0);
}

.signal-crossfade.no-hover:hover .signal-after,
.signal-crossfade.no-hover:focus-within .signal-after,
.signal-crossfade.no-hover:hover .signal-state:first-child,
.signal-crossfade.no-hover:focus-within .signal-state:first-child {
  clip-path: inherit;
}
