/* Crown Tax & Accounting Service — design system
   Palette: deep navy (authority) + warm gold (crown) + off-white paper */

:root {
  --navy-900: #0a1f33;
  --navy-800: #0e2a45;
  --navy-700: #143a5e;
  --navy-100: #e8eef5;
  --gold-500: #c9a227;
  --gold-400: #dcb946;
  --gold-100: #faf3dd;
  --paper: #fbfaf7;
  --white: #ffffff;
  --ink: #1c2733;
  --ink-soft: #4a5a6a;
  --green-600: #1e7a4f;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(10, 31, 51, 0.10);
  --shadow-sm: 0 2px 10px rgba(10, 31, 51, 0.07);
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { color: var(--ink-soft); }

a { color: var(--navy-700); }

img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { padding: 72px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}
.btn-primary:hover { background: var(--gold-400); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover { border-color: var(--white); }

.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 31, 51, 0.96);
  backdrop-filter: blur(8px);
  color: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
}
.brand .crown { color: var(--gold-400); font-size: 1.3rem; }
.brand small { display: block; font-family: Inter, sans-serif; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-400); font-weight: 600; }

.nav-links { display: flex; gap: 26px; align-items: center; list-style: none; }
.nav-links a { color: rgba(255, 255, 255, 0.85); text-decoration: none; font-size: 0.93rem; font-weight: 500; }
.nav-links a:hover { color: var(--gold-400); }
.nav-links .btn { padding: 10px 20px; font-size: 0.9rem; }

.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--navy-900);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 18px;
  }
  .nav-links.open { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(201, 162, 39, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  color: var(--white);
  padding: 88px 0 72px;
}

.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero .lede { font-size: 1.15rem; color: rgba(255, 255, 255, 0.82); max-width: 560px; margin: 20px 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); margin-top: 14px; }

.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 28px;
}
.hero-card h3 { color: var(--gold-400); font-size: 1rem; margin-bottom: 14px; }
.hero-card ul { list-style: none; }
.hero-card li { padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; }
.hero-card li:last-child { border-bottom: none; }
.hero-card li::before { content: "✓ "; color: var(--gold-400); font-weight: 700; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--navy-100); padding: 26px 0; }
.trust-items { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.trust-item { text-align: center; flex: 1; min-width: 150px; }
.trust-item strong { display: block; font-family: "Fraunces", serif; font-size: 1.6rem; color: var(--navy-900); }
.trust-item span { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 31, 51, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .icon { font-size: 1.8rem; margin-bottom: 14px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }
.card a.more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 0.9rem; text-decoration: none; color: var(--gold-500); }

/* ---------- Section headers ---------- */
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 12px; }

.alt { background: var(--white); }

/* ---------- Steps ---------- */
.step { position: relative; padding-left: 0; }
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-500);
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

/* ---------- Calculator ---------- */
.calc-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .calc-wrap { grid-template-columns: 1fr; } }

.calc-form { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.calc-form label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--navy-900); margin: 18px 0 6px; }
.calc-form label:first-of-type { margin-top: 0; }
.calc-form input, .calc-form select {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid #d5dde5;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
}
.calc-form input:focus, .calc-form select:focus { outline: none; border-color: var(--gold-500); }
.calc-form .btn { width: 100%; margin-top: 24px; }
.calc-form .fine { font-size: 0.78rem; color: var(--ink-soft); margin-top: 14px; }

.calc-result {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  position: sticky;
  top: 90px;
}
.calc-result h3 { color: var(--gold-400); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: Inter, sans-serif; }
.calc-result .figure { font-family: "Fraunces", serif; font-size: 3rem; font-weight: 700; margin: 10px 0 4px; }
.calc-result .figure.refund { color: #7fe0a7; }
.calc-result .figure.owing { color: #f0a8a8; }
.calc-result .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 0.93rem; color: rgba(255,255,255,0.85); }
.calc-result .row:last-of-type { border-bottom: none; }
.calc-result .cta-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.18); }
.calc-result .cta-block p { color: rgba(255,255,255,0.85); font-size: 0.95rem; margin-bottom: 14px; }

/* ---------- Deduction finder ---------- */
.occ-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.occ-buttons button {
  padding: 11px 20px;
  border-radius: 999px;
  border: 1.5px solid #d5dde5;
  background: var(--white);
  font-size: 0.93rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}
.occ-buttons button:hover { border-color: var(--gold-500); }
.occ-buttons button.active { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }

.deduction-list { list-style: none; margin-top: 8px; }
.deduction-list li {
  background: var(--white);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.deduction-list li .tick { color: var(--green-600); font-weight: 700; margin-top: 2px; }
.deduction-list li strong { display: block; color: var(--navy-900); font-size: 0.98rem; }
.deduction-list li span { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white);
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq summary {
  padding: 20px 24px;
  font-weight: 600;
  color: var(--navy-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--gold-500); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 24px 20px; font-size: 0.95rem; }

/* ---------- Contact / booking ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info .line { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-info .line .ic { font-size: 1.2rem; margin-top: 2px; }
.contact-info .line strong { display: block; color: var(--navy-900); font-size: 0.95rem; }
.contact-info .line span, .contact-info .line a { font-size: 0.93rem; color: var(--ink-soft); }

form.lead-form { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
form.lead-form label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--navy-900); margin: 16px 0 6px; }
form.lead-form label:first-of-type { margin-top: 0; }
form.lead-form input, form.lead-form select, form.lead-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid #d5dde5;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}
form.lead-form input:focus, form.lead-form select:focus, form.lead-form textarea:focus { outline: none; border-color: var(--gold-500); }
form.lead-form .btn { width: 100%; margin-top: 22px; }
form.lead-form .fine { font-size: 0.78rem; color: var(--ink-soft); margin-top: 12px; }

/* ---------- Banner CTA ---------- */
.banner-cta {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  text-align: center;
  border-radius: var(--radius);
  padding: 56px 32px;
}
.banner-cta h2 { color: var(--white); margin-bottom: 12px; }
.banner-cta p { color: rgba(255,255,255,0.8); max-width: 520px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.75); padding: 56px 0 28px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,0.75); text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; font-size: 0.8rem; color: rgba(255,255,255,0.5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Chat assistant ---------- */
#chat-launcher {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 90;
  background: var(--gold-500);
  color: var(--navy-900);
  border: none;
  border-radius: 999px;
  padding: 15px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(10,31,51,0.3);
}

#chat-panel {
  position: fixed;
  bottom: 84px; right: 22px;
  z-index: 95;
  width: 340px;
  max-width: calc(100vw - 44px);
  height: 460px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 16px 60px rgba(10,31,51,0.35);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
#chat-panel.open { display: flex; }
#chat-panel header { background: var(--navy-900); color: var(--white); padding: 16px 18px; font-weight: 600; font-size: 0.95rem; }
#chat-panel header span { display: block; font-weight: 400; font-size: 0.75rem; color: rgba(255,255,255,0.65); }
#chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 0.88rem; line-height: 1.45; }
.chat-msg.bot { background: var(--navy-100); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--navy-800); color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-options { display: flex; flex-direction: column; gap: 8px; align-self: flex-start; width: 90%; }
.chat-options button {
  text-align: left;
  padding: 10px 14px;
  border: 1.5px solid var(--navy-100);
  background: var(--white);
  border-radius: 10px;
  font-size: 0.86rem;
  font-family: inherit;
  cursor: pointer;
  color: var(--navy-800);
  font-weight: 500;
}
.chat-options button:hover { border-color: var(--gold-500); background: var(--gold-100); }
#chat-input-row { display: flex; border-top: 1px solid #e5eaf0; }
#chat-input-row input { flex: 1; border: none; padding: 14px 16px; font-size: 0.9rem; font-family: inherit; }
#chat-input-row input:focus { outline: none; }
#chat-input-row button { border: none; background: var(--white); color: var(--gold-500); font-weight: 700; padding: 0 18px; cursor: pointer; font-size: 0.9rem; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.hidden { display: none; }

/* ==========================================================================
   MOTION LAYER — progressive enhancement, activated by motion.js (.js-motion)
   Only transform/opacity/filter are animated. Fully disabled for
   prefers-reduced-motion (motion.js never runs, so .js-motion is never set).
   ========================================================================== */

/* Cross-document view transitions (Chrome 126+, Safari 18.2+; ignored elsewhere) */
@view-transition { navigation: auto; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
::view-transition-old(root) { animation: vt-out 0.18s ease-in both; }
::view-transition-new(root) { animation: vt-in 0.24s ease-out both; }

/* Scroll progress bar — pure CSS scroll-timeline; invisible where unsupported */
#scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 100;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  @keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  #scroll-progress { animation: grow-x linear both; animation-timeline: scroll(root); }
}

/* Scroll reveals (elements tagged by motion.js) */
.js-motion .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease-out, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}
.js-motion .reveal.in-view { opacity: 1; transform: none; }
/* keep card hover lift working after reveal */
.js-motion .card.reveal.in-view { transition: opacity 0.65s ease-out, transform 0.2s ease, box-shadow 0.2s ease; }

/* Kinetic hero headline */
@keyframes kw-rise {
  from { opacity: 0; transform: translateY(0.6em) rotate(1.5deg); }
  to { opacity: 1; transform: none; }
}
.js-motion .hero h1.kinetic .kw {
  display: inline-block;
  animation: kw-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--kd, 0ms);
}

/* Ambient aurora drift in hero (compositor-only, slow) */
.hero { position: relative; overflow: hidden; }
.hero > .container { position: relative; z-index: 2; }
@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 40px) scale(1.15); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, -30px) scale(0.9); }
}
.js-motion .hero::before,
.js-motion .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 1;
}
.js-motion .hero::before {
  width: 480px; height: 480px;
  top: -160px; right: -80px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.22), transparent 65%);
  animation: drift-a 16s ease-in-out infinite;
}
.js-motion .hero::after {
  width: 380px; height: 380px;
  bottom: -140px; left: -60px;
  background: radial-gradient(circle, rgba(20, 58, 94, 0.55), transparent 65%);
  animation: drift-b 20s ease-in-out infinite;
}

/* CTA sheen sweep */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.45s ease;
  pointer-events: none;
}
.btn-primary:hover::after { left: 130%; }

/* Spotlight glow cards (motion.js sets --mx/--my on pointer devices) */
.card.spot { position: relative; }
.card.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(201, 162, 39, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.card.spot:hover::before { opacity: 1; }

/* Tilt + magnetic transforms are set inline by motion.js; smooth them here */
.js-motion .hero-card { transition: transform 0.18s ease-out; will-change: transform; }
.js-motion .btn-primary { transition: transform 0.15s ease-out, background 0.15s ease, box-shadow 0.15s ease; }

/* Sticky conversion bar */
#cta-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 120%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(10, 31, 51, 0.97);
  color: var(--white);
  padding: 12px 14px 12px 22px;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(10, 31, 51, 0.4);
  border: 1px solid rgba(201, 162, 39, 0.35);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: calc(100vw - 32px);
}
#cta-bar.up { transform: translate(-50%, 0); }
#cta-bar span { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#cta-bar .btn { padding: 10px 20px; font-size: 0.88rem; flex-shrink: 0; }
#cta-bar button {
  background: none; border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem; cursor: pointer;
  padding: 4px 6px;
}
#cta-bar button:hover { color: var(--white); }
@media (max-width: 560px) { #cta-bar span { display: none; } }

/* Chat panel entrance */
@keyframes chat-pop { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
.js-motion #chat-panel.open { animation: chat-pop 0.28s cubic-bezier(0.22, 1, 0.36, 1); }

/* ---------- Always-on ambient motion (visible without any user input) ---------- */

/* Canvas particle field + optional client video, layered under hero content */
#hero-canvas, .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.hero-video { object-fit: cover; opacity: 0.28; }

/* Gold shimmer sweeping the headline accent — infinite, subtle */
@keyframes shimmer { to { background-position: 200% center; } }
.js-motion .hero h1 em {
  background: linear-gradient(100deg, var(--gold-400) 40%, #fff3c4 50%, var(--gold-400) 60%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3.5s linear infinite;
}

/* Ticker strip — continuous marquee under the hero */
.ticker {
  background: var(--navy-900);
  border-top: 1px solid rgba(201, 162, 39, 0.25);
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
  overflow: hidden;
  white-space: nowrap;
  padding: 11px 0;
}
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
.ticker-track {
  display: inline-flex;
  animation: ticker-scroll 36s linear infinite;
  will-change: transform;
}
.ticker-track span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.ticker:hover .ticker-track { animation-play-state: paused; }

/* Stronger aurora so the ambient drift is actually perceptible */
.js-motion .hero::before {
  background: radial-gradient(circle, rgba(201, 162, 39, 0.38), transparent 62%);
  filter: blur(52px);
  animation-duration: 11s;
}
.js-motion .hero::after {
  background: radial-gradient(circle, rgba(72, 130, 190, 0.45), transparent 62%);
  filter: blur(52px);
  animation-duration: 14s;
}

/* Safety net: never animate for reduced-motion users even if .js-motion leaked */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-motion .reveal { opacity: 1; transform: none; }
}
