/* ============================================================
   CPA GALAXY — Design System
   Navy primary · White surfaces · Teal accent
   Serif display (Fraunces) + Sans body (Inter Tight)
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter+Tight:wght@400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.4rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.4rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.875rem; --radius-xl: 1.25rem;
  --radius-full: 9999px;

  --content-narrow: 680px;
  --content-default: 1040px;
  --content-wide: 1240px;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter Tight', -apple-system, 'Helvetica Neue', sans-serif;

  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Light (default) ---------- */
:root, [data-theme='light'] {
  --color-bg: #ffffff;
  --color-surface: #f7f9fb;
  --color-surface-2: #eef2f6;
  --color-surface-navy: #0b1f3a;      /* deep navy sections */
  --color-navy: #0b1f3a;
  --color-navy-2: #13294d;
  --color-border: #dbe2ea;
  --color-divider: #e7edf3;

  --color-text: #0b1f3a;
  --color-text-muted: #4a5c73;
  --color-text-faint: #8a99ad;
  --color-text-inverse: #f2f6fa;

  --color-primary: #0f8a8f;           /* teal accent */
  --color-primary-hover: #0b6e72;
  --color-primary-soft: #e3f2f2;
  --color-gold: #c9a04a;

  --shadow-sm: 0 1px 3px rgba(11,31,58,0.06);
  --shadow-md: 0 6px 20px rgba(11,31,58,0.08);
  --shadow-lg: 0 18px 48px rgba(11,31,58,0.14);
}

/* ---------- Dark ---------- */
[data-theme='dark'] {
  --color-bg: #081524;
  --color-surface: #0d1e33;
  --color-surface-2: #12294269;
  --color-surface-navy: #04101d;
  --color-navy: #04101d;
  --color-navy-2: #0b1f3a;
  --color-border: #1e3a55;
  --color-divider: #16304a;

  --color-text: #e6eef6;
  --color-text-muted: #9fb2c6;
  --color-text-faint: #64788f;
  --color-text-inverse: #e6eef6;

  --color-primary: #3fb5b8;
  --color-primary-hover: #57c8ca;
  --color-primary-soft: #10333a;
  --color-gold: #d8b45f;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.45);
  --shadow-lg: 0 18px 48px rgba(0,0,0,0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #081524; --color-surface: #0d1e33; --color-surface-2: #122942;
    --color-surface-navy: #04101d; --color-navy: #04101d; --color-navy-2: #0b1f3a;
    --color-border: #1e3a55; --color-divider: #16304a;
    --color-text: #e6eef6; --color-text-muted: #9fb2c6; --color-text-faint: #64788f;
    --color-text-inverse: #e6eef6;
    --color-primary: #3fb5b8; --color-primary-hover: #57c8ca; --color-primary-soft: #10333a;
    --color-gold: #d8b45f;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4); --shadow-md: 0 6px 20px rgba(0,0,0,0.45);
    --shadow-lg: 0 18px 48px rgba(0,0,0,0.55);
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
body {
  min-height: 100dvh; line-height: 1.65;
  font-family: var(--font-body); font-size: var(--text-base);
  color: var(--color-text); background: var(--color-bg);
  transition: background var(--transition), color var(--transition);
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
h1,h2,h3,h4,h5,h6 { text-wrap: balance; line-height: 1.12; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
::selection { background: color-mix(in oklab, var(--color-primary) 25%, transparent); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
a, button, input, textarea, select {
  transition: color var(--transition), background var(--transition),
              border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.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; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--content-wide); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.wrap-narrow { max-width: var(--content-narrow); }
.wrap-default { max-width: var(--content-default); }
section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.eyebrow {
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-primary);
  margin-bottom: var(--space-4); display: inline-flex; align-items: center; gap: var(--space-2);
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--color-primary); display: inline-block; }
.lead { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600;
  padding: 0.8rem 1.5rem; border-radius: var(--radius-full); white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { border: 1px solid var(--color-border); color: var(--color-text); }
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-light { background: #fff; color: var(--color-navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline-light { border: 1px solid rgba(255,255,255,0.35); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.header.scrolled { border-bottom-color: var(--color-divider); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 4.75rem; }
.brand { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--color-text); letter-spacing: -0.02em; }
.brand svg { color: var(--color-primary); flex-shrink: 0; }
.brand small { display:block; font-family: var(--font-body); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-text-faint); margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: var(--space-6); }
.nav-links a { font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--color-primary); }
.nav-actions { display: flex; align-items: center; gap: var(--space-3); }
.nav-mobile-cta { display: none; }
.theme-toggle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-full); color: var(--color-text-muted); border: 1px solid var(--color-border); }
.theme-toggle:hover { color: var(--color-primary); border-color: var(--color-primary); }
.menu-btn { display: none; width: 42px; height: 42px; place-items: center; color: var(--color-text); }
@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 4.75rem 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--color-bg); border-bottom: 1px solid var(--color-divider); padding: var(--space-4) clamp(1.25rem,4vw,3rem) var(--space-6);
    transform: translateY(-120%); transition: transform var(--transition); box-shadow: var(--shadow-lg); }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: var(--space-4) 0; border-bottom: 1px solid var(--color-divider); font-size: var(--text-base); }
  .nav-links .btn { margin-top: var(--space-4); justify-content: center; }
  .nav-mobile-cta { display: inline-flex; }
  .menu-btn { display: grid; }
  .nav-desktop-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--color-navy); color: #fff; overflow: hidden; padding-block: clamp(4rem, 10vw, 8rem); }
.hero::before { content:''; position:absolute; inset:0; background:
  radial-gradient(60% 80% at 85% 10%, rgba(15,138,143,0.35), transparent 60%),
  radial-gradient(50% 60% at 10% 90%, rgba(201,160,74,0.14), transparent 60%); }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { font-size: var(--text-3xl); color: #fff; max-width: 16ch; margin-bottom: var(--space-6); }
.hero h1 .accent { color: var(--color-gold); font-style: italic; }
.hero .lead { color: rgba(230,238,246,0.82); font-size: var(--text-lg); max-width: 52ch; margin-bottom: var(--space-8); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.hero-badges { display:flex; flex-wrap:wrap; gap: var(--space-3) var(--space-6); margin-top: var(--space-12); padding-top: var(--space-8); border-top: 1px solid rgba(255,255,255,0.12); }
.hero-badges span { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(230,238,246,0.7); display:flex; align-items:center; gap: var(--space-2); }
.hero-badges span svg { color: var(--color-gold); }

/* ---------- Animated galaxy hero ---------- */
.hero--galaxy { min-height: min(88vh, 760px); display: flex; align-items: center; }
.galaxy { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.galaxy-stars { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* stage anchored to the right half where the visual lives */
.galaxy-stage { position: absolute; top: 50%; right: clamp(2%, 8vw, 12%); width: min(420px, 42vw); aspect-ratio: 1; transform: translateY(-50%); }
@media (max-width: 900px) { .galaxy-stage { top: auto; bottom: 4%; right: 50%; transform: translateX(50%); opacity: 0.14; width: min(300px, 64vw); } }

/* orbit rings slowly rotating */
.orbit { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid rgba(15,138,143,0.28); }
.orbit-1 { width: 92%; height: 92%; top:0;bottom:0;left:0;right:0; animation: orbit-spin 46s linear infinite; }
.orbit-2 { width: 62%; height: 62%; top:0;bottom:0;left:0;right:0; border-color: rgba(201,160,74,0.22); border-style: dashed; animation: orbit-spin 32s linear infinite reverse; }
.orbit::after { content:''; position:absolute; width:6px; height:6px; border-radius:50%; background: var(--color-gold); top:-3px; left:50%; box-shadow: 0 0 10px 2px rgba(201,160,74,0.6); }
.orbit-2::after { background: #3fb5b8; box-shadow: 0 0 10px 2px rgba(63,181,184,0.6); }
@keyframes orbit-spin { to { transform: rotate(360deg); } }

/* assembly = SVG Astral Compass mark */
.assembly { position: absolute; inset: 0; margin: auto; width: 82%; height: 82%; overflow: visible; filter: drop-shadow(0 10px 34px rgba(4,16,29,0.5)); }
.compass-outer, .compass-inner { transform-box: fill-box; transform-origin: center; opacity: 0; }
.compass-ring, .compass-glow { transform-box: fill-box; transform-origin: center; opacity: 0; }

/* constellation overlay */
.constellation { opacity:0; transition: opacity .8s ease; }
.constellation .c-stars, .constellation .c-lines { filter: drop-shadow(0 0 5px rgba(201,160,74,0.7)); }

/* reveal sequence: glow + ring fade in, teal star rotates/scales in, gold star follows, constellation lights up */
.galaxy.assemble .compass-glow { animation: compass-fade 1.2s ease .2s forwards; }
.galaxy.assemble .compass-ring { animation: compass-fade 1s ease .1s forwards; }
.galaxy.assemble .compass-outer { animation: compass-in 1.1s cubic-bezier(.22,1,.36,1) forwards; }
.galaxy.assemble .compass-inner { animation: compass-in 1.1s cubic-bezier(.22,1,.36,1) .18s forwards; }
.galaxy.assemble .constellation { opacity: 1; transition-delay: 1.2s; }
@keyframes compass-in { from { opacity:0; transform: rotate(-90deg) scale(.4); } to { opacity:1; transform: rotate(0) scale(1); } }
@keyframes compass-fade { from { opacity:0; } to { opacity:1; } }

/* slow idle rotation of the dashed ring once assembled */
.galaxy.assemble .compass-ring { animation: compass-fade 1s ease .1s forwards, ring-spin 60s linear 1.4s infinite; }
@keyframes ring-spin { to { transform: rotate(360deg); } }

/* subtle idle float once assembled */
.galaxy.assemble .assembly { animation: assembly-float 7s ease-in-out 1.6s infinite; }
@keyframes assembly-float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(0.6deg); } }

/* No-JS fallback + reduced motion: show mark, no animation */
.no-js .compass-outer, .no-js .compass-inner, .no-js .compass-ring, .no-js .compass-glow, .no-js .constellation { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .compass-outer, .compass-inner, .compass-ring, .compass-glow, .constellation { opacity: 1 !important; animation: none !important; transform: none !important; }
  .orbit { animation: none !important; }
  .galaxy.assemble .assembly { animation: none !important; }
}

/* ---------- Section heads ---------- */
.section-head { max-width: 60ch; margin-bottom: var(--space-12); }
.section-head h2 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: var(--space-6); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-6);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in oklab, var(--color-primary) 40%, var(--color-border)); }
.card .ico { width: 46px; height: 46px; border-radius: var(--radius-md); display: grid; place-items: center;
  background: var(--color-primary-soft); color: var(--color-primary); margin-bottom: var(--space-4); }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); font-family: var(--font-display); }
.card p { font-size: var(--text-sm); color: var(--color-text-muted); }
.card .num { font-family: var(--font-display); font-size: var(--text-sm); color: var(--color-primary); font-weight: 600; }

/* ---------- Industry chips ---------- */
.chip {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-4) var(--space-5);
  font-weight: 500; font-size: var(--text-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.chip:hover { transform: translateY(-3px); border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.chip svg { color: var(--color-primary); flex-shrink: 0; }

/* ---------- Feature / split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split-media { border-radius: 0; overflow: visible; box-shadow: none; }
.split-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 50%; display: block; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }

/* ---------- Stat / snapshot ---------- */
.snapshot { background: var(--color-navy); color: #fff; border-radius: var(--radius-xl); padding: clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.snapshot::after { content:''; position:absolute; inset:0; background: radial-gradient(60% 90% at 90% 20%, rgba(15,138,143,0.4), transparent 60%); }
.snapshot > * { position: relative; z-index: 1; }
.snapshot .quote { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.3; max-width: 30ch; }
.snapshot .quote em { color: var(--color-gold); font-style: italic; }
.snapshot .metrics { display:flex; flex-wrap:wrap; gap: var(--space-8); margin-top: var(--space-8); }
.snapshot .metric b { display:block; font-family: var(--font-display); font-size: var(--text-2xl); color: #fff; }
.snapshot .metric span { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: rgba(230,238,246,0.65); }

/* ---------- Value/why list ---------- */
.value-item { display:flex; gap: var(--space-4); }
.value-item .dot { flex-shrink:0; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--color-primary-soft); color: var(--color-primary); display:grid; place-items:center; }
.value-item h3 { font-size: var(--text-lg); margin-bottom: var(--space-1); }
.value-item p { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); align-items: start; }
.price-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; }
@media (max-width: 940px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.tier { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-8); display:flex; flex-direction: column; }
.tier.featured { background: var(--color-navy); color: #fff; border-color: var(--color-navy); box-shadow: var(--shadow-lg); position: relative; }
.tier.featured .tier-best, .tier.featured p, .tier.featured .price small { color: rgba(230,238,246,0.75); }
.tier.featured .feat li { color: rgba(230,238,246,0.9); }
.tier .badge { position:absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--color-gold); color: #0b1f3a; font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.9rem; border-radius: var(--radius-full); }
.tier h3 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.tier .tier-best { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-5); min-height: 3.2em; }
.tier .price { font-family: var(--font-display); font-size: var(--text-2xl); margin-bottom: var(--space-1); }
.tier .price .price-from { display: block; font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--color-primary); margin-bottom: 2px; }
.tier.featured .price .price-from { color: var(--color-gold); }
.tier .price small { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500; color: var(--color-text-faint); }
.tier .price-note { font-size: var(--text-xs); color: var(--color-text-faint); margin-bottom: var(--space-6); }
.feat { list-style: none; display: grid; gap: var(--space-3); margin-bottom: var(--space-8); }
.feat li { display:flex; gap: var(--space-3); font-size: var(--text-sm); color: var(--color-text-muted); align-items: flex-start; }
.feat li svg { flex-shrink:0; color: var(--color-primary); margin-top: 3px; }
.tier.featured .feat li svg { color: var(--color-gold); }
.tier .btn { margin-top: auto; justify-content: center; }

/* ---------- Blog cards ---------- */
.post-card { display:flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card .post-media { display:block; aspect-ratio: 16/9; overflow: hidden; }
.post-card .post-media img { width:100%; height:100%; object-fit: cover; transition: transform 400ms ease; }
.post-card:hover .post-media img { transform: scale(1.05); }
.post-card .post-body { padding: var(--space-6); display:flex; flex-direction:column; gap: var(--space-1); }
.post-card .tag { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary); }
.post-card h3 { font-size: var(--text-lg); margin: var(--space-2) 0; }
.post-card h3 a { color: var(--color-text); }
.post-card h3 a:hover { color: var(--color-primary); }
.post-card p { font-size: var(--text-sm); color: var(--color-text-muted); }
.post-card .post-meta { margin-top: var(--space-3); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-faint); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field.full { grid-column: 1 / -1; }
.form-submit { grid-column: 1 / -1; justify-content: center; }
.field label { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-muted); }
.field input, .field select, .field textarea {
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 0.8rem 1rem; font-size: var(--text-sm); color: var(--color-text); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-soft); }
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- Contact card ---------- */
.vcard { background: var(--color-navy); color: #fff; border-radius: var(--radius-xl); padding: clamp(2rem,4vw,2.75rem); }
.vcard-logo { width: 56px; height: 56px; margin-bottom: var(--space-5); color: var(--color-primary); }
.vcard-logo svg { width: 100%; height: 100%; }
.vcard h3 { font-size: var(--text-xl); color:#fff; margin-bottom: var(--space-1); }
.vcard .vcard-role { font-size: var(--text-sm); color: rgba(230,238,246,0.7); margin-bottom: var(--space-6); }
.vcard-list { list-style:none; display:grid; gap: var(--space-1); }
.vcard-list li { display:flex; gap: var(--space-3); align-items: center; padding-block: var(--space-4); border-bottom: 1px solid rgba(255,255,255,0.1); font-size: var(--text-sm); color: rgba(230,238,246,0.85); }
.vcard-list li svg { color: var(--color-gold); flex-shrink:0; }
.vcard-list a { color: rgba(230,238,246,0.85); }
.vcard-list a:hover { color:#fff; }
.vcard-hours { font-size: var(--text-xs); color: rgba(230,238,246,0.55); margin-top: var(--space-5); text-align:center; line-height:1.6; }
.field-row { display:grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); grid-column: 1 / -1; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.form-note { grid-column: 1 / -1; font-size: var(--text-xs); color: var(--color-text-faint); line-height: 1.6; }
.form-note code { background: var(--color-surface-2); padding: 1px 5px; border-radius: 4px; font-size: 0.85em; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--color-navy); color: #fff; text-align: center; border-radius: var(--radius-xl); padding: clamp(2.5rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.cta-band::before { content:''; position:absolute; inset:0; background: radial-gradient(50% 120% at 50% 0%, rgba(15,138,143,0.35), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: var(--text-2xl); color: #fff; margin-bottom: var(--space-4); max-width: 20ch; margin-inline: auto; }
.cta-band p { color: rgba(230,238,246,0.8); max-width: 46ch; margin: 0 auto var(--space-8); }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--color-navy); color: #fff; padding-block: clamp(3.5rem, 8vw, 6rem); position: relative; overflow: hidden; }
.page-hero::before { content:''; position:absolute; inset:0; background: radial-gradient(55% 90% at 88% 15%, rgba(15,138,143,0.3), transparent 60%); }
.page-hero .wrap { position: relative; z-index:1; }
.page-hero .eyebrow { color: var(--color-gold); }
.page-hero .eyebrow::before { background: var(--color-gold); }
.page-hero h1 { font-size: var(--text-2xl); color:#fff; max-width: 20ch; margin-bottom: var(--space-4); }
.page-hero p { color: rgba(230,238,246,0.82); max-width: 56ch; font-size: var(--text-lg); }

/* ---------- Footer ---------- */
.footer { background: var(--color-surface-navy); color: rgba(230,238,246,0.75); padding-block: var(--space-16) var(--space-8); }
.footer a { color: rgba(230,238,246,0.75); font-size: var(--text-sm); }
.footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--space-12); padding-bottom: var(--space-12); border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: var(--space-8); } }
.footer .brand { color: #fff; margin-bottom: var(--space-4); }
.footer .brand small { color: rgba(230,238,246,0.5); }
.footer h4 { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: var(--space-5); }
.footer-col nav { display: grid; gap: var(--space-3); }
.footer-tag { max-width: 34ch; font-size: var(--text-sm); }
.footer-bottom { display:flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; align-items: center; padding-top: var(--space-8); }
.footer-disclaimer { font-size: var(--text-xs); color: rgba(230,238,246,0.5); max-width: 70ch; margin-top: var(--space-4); line-height: 1.6; }

/* ---------- Reveal animation (only when JS enables it) ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal .reveal { opacity: 1; transform: none; } }

/* ---------- Utility ---------- */
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.text-center { text-align: center; }
.divider-soft { border: none; border-top: 1px solid var(--color-divider); }

/* ============ Galaxy intro loader ============ */
html.cg-intro-lock, html.cg-intro-lock body { overflow: hidden; }
.cg-intro {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(120% 120% at 50% 45%, #0b1f3a 0%, #04101d 70%);
  display: grid; place-items: center;
  opacity: 1; transition: opacity .7s ease;
}
.cg-intro.cg-done { opacity: 0; pointer-events: none; }
.cg-intro-canvas { position: absolute; inset: 0; }
.cg-intro-mark {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 1.1rem; z-index: 2;
}
.cg-intro-svg { width: min(150px, 34vw); height: auto; opacity: 0; transform: scale(.4) rotate(-90deg); }
.cg-intro-svg .cg-star-outer,
.cg-intro-svg .cg-star-inner,
.cg-intro-svg .cg-ring { opacity: 0; }
.cg-intro-word {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 600; letter-spacing: .01em;
  color: #f7f9fb; opacity: 0; transform: translateY(12px);
  filter: drop-shadow(0 2px 18px rgba(4,16,29,.6));
}
.cg-intro-word span { color: var(--color-gold, #c9a04a); }

/* Reveal sequence (triggered by JS adding .cg-reveal after the swirl) */
.cg-intro.cg-reveal .cg-intro-svg {
  animation: cg-mark-in .95s cubic-bezier(.22,1,.36,1) forwards;
}
.cg-intro.cg-reveal .cg-ring {
  animation: cg-fade .7s ease .15s forwards, cg-ring-spin 22s linear .9s infinite;
  transform-box: fill-box; transform-origin: center;
}
.cg-intro.cg-reveal .cg-star-outer { animation: cg-fade .6s ease .05s forwards; }
.cg-intro.cg-reveal .cg-star-inner { animation: cg-fade .7s ease .3s forwards; }
.cg-intro.cg-reveal .cg-intro-word {
  animation: cg-word-in .8s cubic-bezier(.22,1,.36,1) .5s forwards;
}
@keyframes cg-mark-in {
  from { opacity: 0; transform: scale(.4) rotate(-90deg); }
  60%  { opacity: 1; }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes cg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cg-ring-spin { to { transform: rotate(360deg); } }
@keyframes cg-word-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .cg-intro { display: none !important; }
}
