/* ============================================================
   HYYRYN — KAIZEN / TRILITHON DESIGN SYSTEM
   Shared stylesheet for all non-home pages. Home page keeps its
   own inline styles (the hero illustration is bespoke).
   ============================================================ */

:root {
  --cream: #FAF8F3;
  --cream-2: #F3EFE4;
  --cream-3: #EFE8D4;
  --cream-4: #E8DEC2;
  --navy: #0A1628;
  --navy-2: #152238;
  --ink: #1B2638;
  --muted: #6B7280;
  --line: #E6E0D0;
  --line-2: #D8CFB8;
  --line-3: #C8BFA0;
  --green: #0F5A4F;
  --green-2: #0B3F37;
  --green-soft: #E8F0ED;
  --gold: #8C6A2F;
  --gold-soft: #D4A943;
  --gold-pale: #F5ECD4;
  --success: #0F5A4F;
  --danger: #A94442;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* ============ PAGE ENTRANCE ANIMATION ============ */
@keyframes pageEnter {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}
/* All pages — animate the whole body (topbar and public layouts) */
body:not(:has(.app)) {
  animation: pageEnter 0.4s cubic-bezier(0.25, 0.1, 0.25, 1) both;
}
/* Admin pages (still use .app grid) — animate main content only */
.app > .main-wrap,
.app > main {
  animation: pageEnter 0.4s cubic-bezier(0.25, 0.1, 0.25, 1) both;
}
/* Page exit animation — triggered by hyyryn-transitions.js on internal link clicks */
@keyframes pageExit {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(18px); }
}
body.page-exit {
  animation: pageExit 0.3s cubic-bezier(0.25, 0.1, 0.25, 1) both;
  pointer-events: none;
}
.app > .main-wrap.page-exit,
.app > main.page-exit {
  animation: pageExit 0.3s cubic-bezier(0.25, 0.1, 0.25, 1) both;
  pointer-events: none;
}

/* Intro splash overlay (index.html only) */
.intro-splash {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.splash-arch {
  opacity: 0;
  transform: scale(0.97);
  will-change: opacity, transform;
}
.splash-gold-line {
  width: 0px;
  height: 1.5px;
  background: var(--gold-soft);
  margin: 10px 0 6px 0;
  opacity: 0;
  will-change: width, opacity;
}
.splash-text {
  font-family: 'Instrument Serif', serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: 0.02em;
  opacity: 0;
  will-change: opacity, letter-spacing;
}
.splash-tagline {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(10, 22, 40, 0.4);
  letter-spacing: 0.06em;
  margin-top: 6px;
  opacity: 0;
  will-change: opacity;
}
.splash-tagline .gold {
  color: var(--gold-soft);
}

@media (prefers-reduced-motion: reduce) {
  body, .app > .main-wrap, .app > main { animation: none !important; }
  .intro-splash { display: none; }
}

/* ============ ACCESSIBILITY ============ */
.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; }

/* Focus-visible — keyboard accessibility across all pages */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* Global interactive transitions */
a { transition: color 180ms ease, opacity 180ms ease; }
button, .btn, [role="button"] { transition: all 180ms cubic-bezier(0.25,0.1,0.25,1); }
input, textarea, select { transition: border-color 180ms ease, box-shadow 180ms ease; }
input:focus, textarea:focus, select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15,90,79,0.08);
}

/* ============ SCROLLBARS — thin, calm, trilithon-consistent ============ */
html { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: var(--line-3); background-clip: padding-box; border: 2px solid transparent; }
*::-webkit-scrollbar-corner { background: transparent; }
/* Dark surfaces (navy) — thumb uses cream tint so it's visible on dark */
.sidebar::-webkit-scrollbar-thumb,
.topnav::-webkit-scrollbar-thumb {
  background: rgba(250,248,243,0.18);
  background-clip: padding-box;
}
.sidebar::-webkit-scrollbar-thumb:hover,
.topnav::-webkit-scrollbar-thumb:hover {
  background: rgba(250,248,243,0.32);
  background-clip: padding-box;
}
/* Horizontal drag rows — always hide the bar (drag + edge fades do the work) */
.cats::-webkit-scrollbar,
.proven-row::-webkit-scrollbar,
.portfolio-row::-webkit-scrollbar,
[data-drag-scroll]::-webkit-scrollbar { display: none; }
.cats, .proven-row, .portfolio-row, [data-drag-scroll] { scrollbar-width: none; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font-family: inherit; }

/* ============ TOP BAR ============ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,243,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand .mark { width: 26px; height: 26px; }
.brand .word { font-family: 'Instrument Serif', serif; font-size: 26px; color: var(--navy); line-height: 1; letter-spacing: -0.01em; }
.nav { display: flex; gap: 28px; }
.nav a { font-size: 14px; font-weight: 500; color: var(--ink); opacity: 0.82; transition: opacity 160ms ease; }
.nav a:hover { opacity: 1; }
.nav a.active { opacity: 1; color: var(--green); }
.nav a.nav-accent { color: var(--gold-soft); opacity: 1; font-weight: 600; }
.nav a.nav-accent:hover { color: #c49b35; }
.nav a.nav-tr .tr-arch {
  vertical-align: baseline;
  opacity: 0.5;
  transition: opacity 160ms ease;
  position: relative; top: -1px;
  margin-right: 2px;
}
.nav a.nav-tr:hover .tr-arch { opacity: 0.75; }

/* ============ NAV DROPDOWN ============ */
.nav-drop { position: relative; }
.nav-drop-trigger {
  font-size: 14px; font-weight: 500; color: var(--ink); opacity: 0.82;
  cursor: pointer; display: flex; align-items: center; gap: 5px;
  transition: opacity 180ms ease; background: none; border: none; padding: 0;
}
.nav-drop-trigger:hover { opacity: 1; }
.nav-drop-trigger svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform 180ms ease; }
.nav-drop:hover .nav-drop-trigger svg { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 0; min-width: 200px;
  box-shadow: 0 12px 32px -8px rgba(10,22,40,0.12);
  opacity: 0; pointer-events: none; transition: all 180ms ease;
  transform: translateX(-50%) translateY(4px);
}
.nav-drop:hover .nav-drop-menu {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-drop-menu a {
  display: block; padding: 10px 20px; font-size: 14px; font-weight: 500;
  color: var(--ink); opacity: 0.82; transition: all 140ms ease;
}
.nav-drop-menu a:hover {
  background: var(--cream-2); opacity: 1; color: var(--ink);
}

.cta-row { display: flex; gap: 10px; align-items: center; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-size: 14px; font-weight: 500;
  border: 1px solid transparent; transition: all 180ms ease;
  text-decoration: none; cursor: pointer;
}
.btn-primary { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-primary:hover { background: var(--navy); color: var(--cream); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-green { background: var(--green); color: var(--cream); }
.btn-green:hover { background: var(--green-2); transform: translateY(-1px); }
.btn-gold { background: var(--gold-soft); color: var(--navy); }
.btn-gold:hover { background: #C89A35; transform: translateY(-1px); }
.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 12px; }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-1px); }

/* ============ LAYOUT ============ */
.wrap { max-width: 1240px; margin: 0 auto; padding: 56px 32px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 56px 32px; }
.wrap-wide { max-width: 1400px; margin: 0 auto; padding: 40px 32px; }

/* ============ PAGE HEADER ============ */
.page-head {
  padding: 64px 32px 40px;
  background: linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-head-inner {
  max-width: 1240px; margin: 0 auto;
  position: relative; z-index: 2;
}
.page-head .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green); margin-bottom: 18px;
}
.page-head .eyebrow::before, .page-head .eyebrow::after {
  content: ''; width: 20px; height: 1px; background: var(--green);
}
.page-head h1 {
  font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: 56px; line-height: 1.05; letter-spacing: -0.015em;
  color: var(--navy); margin: 0 0 16px; max-width: 860px;
}
.page-head h1 em { font-style: italic; color: var(--green); }
.page-head .sub {
  font-size: 17px; color: var(--muted); max-width: 620px;
  line-height: 1.55; margin: 0;
}
/* Subtle trilithon mark in the corner of page headers */
.page-head .gate-watermark {
  position: absolute;
  top: 40%; right: -40px;
  width: 260px; height: 260px;
  transform: translateY(-50%);
  opacity: 0.06;
  pointer-events: none;
}

/* ============ CARDS ============ */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 28px;
  transition: all 220ms ease;
}
.card-hover:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -22px rgba(10,22,40,0.15);
}
.card-hover:active { transform: translateY(-1px); }
.card h3 {
  font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: 24px; color: var(--navy); margin: 0 0 8px;
}
.card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }

/* ============ FORMS ============ */
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--cream);
  color: var(--navy);
  font-size: 15px;
  transition: all 180ms ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10,22,40,0.08);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group .help { font-size: 12px; color: var(--muted); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============ BADGES / PILLS / STATUS ============ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
}
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-gold { background: var(--gold-pale); color: var(--gold); }
.badge-navy { background: rgba(10,22,40,0.08); color: var(--navy); }
.badge-muted { background: var(--cream-2); color: var(--muted); }

.pill {
  padding: 9px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--ink);
  transition: all 180ms ease; cursor: pointer;
}
.pill:hover { border-color: var(--navy); }
.pill.active { background: var(--navy); color: var(--cream); border-color: var(--navy); }

.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-dot.green { background: var(--green); }
.status-dot.gold { background: var(--gold-soft); }
.status-dot.red { background: var(--danger); }

/* ============ TABLES ============ */
table.data-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: 2px; overflow: hidden;
  border: 1px solid var(--line);
}
.data-table th {
  text-align: left; padding: 16px 20px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  background: var(--cream-2); border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: 18px 20px; font-size: 14px; color: var(--navy);
  border-bottom: 1px solid var(--line);
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: var(--cream-2); }

/* ============ SECTION HEADINGS ============ */
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 32px; gap: 32px;
}
.section-head h2 {
  font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: 40px; line-height: 1.05; letter-spacing: -0.015em;
  color: var(--navy); margin: 0; max-width: 640px;
}
.section-head h2 em { font-style: italic; color: var(--green); }
.section-head .link {
  font-size: 14px; font-weight: 500; color: var(--navy);
  display: inline-flex; gap: 6px;
}
.section-head .link:hover { color: var(--green); }

/* ============ TRUST BAR ============ */
.trust-bar {
  background: var(--navy);
  color: var(--cream);
  padding: 18px 32px;
}
.trust-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; justify-content: space-around; align-items: center;
  font-size: 13px; flex-wrap: wrap; gap: 20px;
}
.trust-inner .item { display: flex; align-items: center; gap: 10px; opacity: 0.9; }
.trust-inner svg { width: 18px; height: 18px; flex-shrink: 0; }
.trust-inner .sep { width: 1px; height: 18px; background: rgba(250,248,243,0.2); }

/* ============ FOOTER ============ */
.footer { background: var(--cream-2); padding: 72px 32px 40px; border-top: 1px solid var(--line); }
.footer-inner { max-width: 1240px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line);
}
.footer .brand-big .word { font-size: 32px; }
.footer .brand-big .mark { width: 32px; height: 32px; }
.footer .tag {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 17px; color: var(--muted); max-width: 280px;
  margin-top: 16px; line-height: 1.4;
}
.footer-col h5 {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px; font-weight: 600;
}
.footer-col a { display: block; font-size: 14px; color: var(--navy); margin-bottom: 11px; opacity: 0.82; }
.footer-col a:hover { opacity: 1; }
.bottom-row {
  display: flex; justify-content: space-between;
  padding-top: 32px; margin-top: 0;
  font-size: 12px; color: var(--muted);
}

/* ============ GATES (step numerals + icons) ============ */
.gate-num {
  font-family: 'Instrument Serif', serif; font-style: italic;
  color: var(--green); font-size: 16px;
}
.gate-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--cream-2);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.gate-icon svg { width: 22px; height: 22px; stroke: var(--navy); fill: none; stroke-width: 1.6; }

/* ============ ALTERNATING SECTION BACKGROUNDS ============ */
.sec-warm {
  background: var(--cream-2);
  position: relative;
}
.sec-warm::before {
  content: '';
  position: absolute; top: -20px; left: 0; right: 0; height: 40px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  pointer-events: none; z-index: 1;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  .nav { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .page-head h1 { font-size: 40px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head h2 { font-size: 32px; }
}
@media (max-width: 640px) {
  .wrap, .wrap-narrow, .wrap-wide { padding: 40px 20px; }
  .page-head { padding: 40px 20px 28px; }
  .page-head h1 { font-size: 32px; }
}

/* ============================================================
   STEPPER ANIMATIONS — unified system
   Add [data-step-animate] to any stepper container.
   JS adds .in-view when it enters the viewport.
   ============================================================ */

/* --- Keyframes --- */
@keyframes stepFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes stepFadeRight {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes dotScaleIn {
  from { opacity: 0; transform: scale(0.3); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes checkPop {
  0%   { opacity: 0; transform: scale(0); }
  60%  { transform: scale(1.25); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes lineDrawV {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes lineDrawH {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 169, 67, 0.45); }
  50%      { box-shadow: 0 0 0 8px rgba(212, 169, 67, 0); }
}
@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(15, 90, 79, 0.35); }
  50%      { box-shadow: 0 0 0 8px rgba(15, 90, 79, 0); }
}

/* --- Pre-animation state: children hidden --- */
[data-step-animate] > * {
  opacity: 0;
}

/* --- Vertical steppers (default) --- */
[data-step-animate="vertical"].in-view > *,
[data-step-animate="v"].in-view > * {
  animation: stepFadeUp 550ms cubic-bezier(0.25, 0.1, 0.25, 1) both;
}

/* --- Horizontal steppers --- */
[data-step-animate="horizontal"].in-view > *,
[data-step-animate="h"].in-view > * {
  animation: stepFadeRight 550ms cubic-bezier(0.25, 0.1, 0.25, 1) both;
}

/* --- Generic (auto-direction) --- */
[data-step-animate=""].in-view > *,
[data-step-animate].in-view > * {
  animation: stepFadeUp 550ms cubic-bezier(0.25, 0.1, 0.25, 1) both;
}

/* --- Stagger delays (up to 12 children) --- */
[data-step-animate].in-view > *:nth-child(1)  { animation-delay: 0ms; }
[data-step-animate].in-view > *:nth-child(2)  { animation-delay: 140ms; }
[data-step-animate].in-view > *:nth-child(3)  { animation-delay: 280ms; }
[data-step-animate].in-view > *:nth-child(4)  { animation-delay: 420ms; }
[data-step-animate].in-view > *:nth-child(5)  { animation-delay: 560ms; }
[data-step-animate].in-view > *:nth-child(6)  { animation-delay: 700ms; }
[data-step-animate].in-view > *:nth-child(7)  { animation-delay: 840ms; }
[data-step-animate].in-view > *:nth-child(8)  { animation-delay: 980ms; }
[data-step-animate].in-view > *:nth-child(9)  { animation-delay: 1120ms; }
[data-step-animate].in-view > *:nth-child(10) { animation-delay: 1260ms; }
[data-step-animate].in-view > *:nth-child(11) { animation-delay: 1400ms; }
[data-step-animate].in-view > *:nth-child(12) { animation-delay: 1540ms; }

/* --- Dot state animations (apply to indicator elements) --- */
[data-step-animate].in-view .dot-done,
[data-step-animate].in-view .dot.done,
[data-step-animate].in-view .stepper-indicator.completed,
[data-step-animate].in-view .et-step.done .et-dot,
[data-step-animate].in-view .timeline-dot.done,
[data-step-animate].in-view .tl-dot--done {
  animation: dotScaleIn 400ms cubic-bezier(0.25, 0.1, 0.25, 1) both;
}

/* Check marks inside done dots */
[data-step-animate].in-view .dot.done svg,
[data-step-animate].in-view .stepper-indicator.completed::after,
[data-step-animate].in-view .timeline-dot.done::before {
  animation: checkPop 350ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: inherit;
}

/* Active/current dot pulse */
[data-step-animate].in-view .dot-active,
[data-step-animate].in-view .dot.current,
[data-step-animate].in-view .stepper-indicator.active,
[data-step-animate].in-view .et-step.active .et-dot,
[data-step-animate].in-view .tl-dot--active {
  animation: pulseGold 2s ease-in-out infinite;
  animation-delay: inherit;
}

/* --- Connector line draw --- */
[data-step-animate].in-view .step-line-v,
[data-step-animate="vertical"].in-view .walkthrough-spine,
[data-step-animate="vertical"].in-view .timeline::before {
  transform-origin: top center;
  animation: lineDrawV 800ms cubic-bezier(0.25, 0.1, 0.25, 1) both;
  animation-delay: 100ms;
}
[data-step-animate].in-view .step-line-h,
[data-step-animate="horizontal"].in-view .et-steps::before,
[data-step-animate="horizontal"].in-view .stepper-item:not(:last-child)::after {
  transform-origin: left center;
  animation: lineDrawH 800ms cubic-bezier(0.25, 0.1, 0.25, 1) both;
  animation-delay: 100ms;
}

/* --- Respect prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
  [data-step-animate] > * {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
  [data-step-animate].in-view .dot.current,
  [data-step-animate].in-view .stepper-indicator.active,
  [data-step-animate].in-view .et-step.active .et-dot,
  [data-step-animate].in-view .tl-dot--active {
    animation: none !important;
  }
}

/* ============ TOPBAR BADGE (pre-launch / beta label) ============ */
.topbar-badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--gold-soft);
  background: rgba(212,169,67,0.1); padding: 4px 10px;
  border-radius: 99px; border: 1px solid rgba(212,169,67,0.2);
}

/* ============ HAMBURGER / MOBILE DRAWER ============ */
.hamburger {
  display: none; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  align-items: center; justify-content: center; z-index: 201;
  transition: background 180ms;
}
.hamburger:hover { background: var(--cream-2); }
.hamburger svg { width: 20px; height: 20px; stroke: var(--navy); fill: none; stroke-width: 1.8; }

.mobile-drawer {
  display: none; position: fixed; top: 0; right: 0; bottom: 0; width: 280px;
  background: var(--cream); z-index: 200; transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.4,0,0.2,1);
  box-shadow: -4px 0 24px rgba(10,22,40,0.1);
  flex-direction: column; padding: 24px;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer .md-close {
  align-self: flex-end; width: 36px; height: 36px; border-radius: 2px;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}
.mobile-drawer .md-close:hover { background: var(--cream-2); }
.mobile-drawer .md-close svg { width: 18px; height: 18px; stroke: var(--navy); fill: none; stroke-width: 1.8; }
.mobile-drawer a {
  display: block; padding: 14px 0; font-size: 15px; color: var(--navy);
  text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 500;
}
.mobile-drawer a:hover { color: var(--green); }
.mobile-overlay {
  display: none; position: fixed; inset: 0; z-index: 199;
  background: rgba(10,22,40,0.3); backdrop-filter: blur(2px);
}

/* ============ DECORATIVE BACKGROUND SHAPES ============ */
.page-wrap {
  position: relative;
  background: linear-gradient(180deg, var(--cream) 0%, rgba(243,239,228,0.4) 35%, var(--cream) 65%, rgba(239,232,212,0.3) 100%);
  overflow: hidden;
}
.bg-shapes {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.bg-shape { position: absolute; animation: shapeDrift ease-in-out infinite; }
.bg-shape svg { display: block; }
@keyframes shapeDrift {
  0%   { transform: translateY(0)   rotate(var(--r, 0deg)); }
  50%  { transform: translateY(-18px) rotate(calc(var(--r, 0deg) + 6deg)); }
  100% { transform: translateY(0)   rotate(var(--r, 0deg)); }
}
.bg-s1 { top: 6%;  left: 18%; --r: -15deg; animation-duration: 7s;   animation-delay: 0s; }
.bg-s2 { top: 14%; left: 72%; --r: 12deg;  animation-duration: 9s;   animation-delay: 1s; }
.bg-s3 { top: 35%; left: 8%;  --r: 20deg;  animation-duration: 8s;   animation-delay: 2.5s; }
.bg-s4 { top: 50%; left: 60%; --r: -8deg;  animation-duration: 10s;  animation-delay: 0.5s; }
.bg-s5 { top: 70%; left: 25%; --r: 10deg;  animation-duration: 7.5s; animation-delay: 3s; }
.bg-s6 { top: 85%; left: 80%; --r: -20deg; animation-duration: 11s;  animation-delay: 1.5s; }
@media (prefers-reduced-motion: reduce) { .bg-shape { animation: none; } }

/* ============ HAMBURGER RESPONSIVE ============ */
@media (max-width: 1000px) {
  .hamburger { display: flex; width: 44px; height: 44px; }
  .mobile-drawer { display: flex; }
}
@media (max-width: 640px) {
  .mobile-drawer { width: 100%; padding: 20px 16px; }
  .mobile-drawer a { font-size: 16px; padding: 16px 0; min-height: 52px; display: flex; align-items: center; }
  .bg-shapes { display: none; }
}
