/* ==========================================================================
   RM Tax Consultant — Design System
   Navy + Gold + White premium theme (brief §15)
   Layers: tokens → base → layout → components → sections → pages → motion
   Bootstrap 5.3 (reboot + grid only) provides normalisation and the grid.
   ========================================================================== */

/* ----------------------------------------------------------------- tokens */
:root {
  /* Brand palette */
  --navy-900: #0E1626;   /* Deep Navy — primary */
  --navy-800: #18233A;   /* Secondary Navy — surfaces */
  --navy-700: #22304D;
  --navy-600: #2E3D5C;
  --gold: #C6A15B;       /* Premium Gold — accents, CTAs */
  --gold-600: #A98543;   /* Dark Gold — hover */
  --gold-ink: #85662B;   /* Gold for text on light backgrounds (AA contrast) */
  --gold-soft: rgba(198, 161, 91, .12);
  --gold-line: rgba(198, 161, 91, .35);
  --ivory: #F8F7F4;      /* Warm Ivory — alternate sections */
  --white: #FFFFFF;
  --slate: #334155;      /* Body text */
  --muted: #64748B;      /* Secondary text */
  --line: #E6E1D6;
  --line-soft: #EFEBE3;
  --on-navy: #D6DCE6;    /* Body text on navy */
  --on-navy-muted: #A3AEC2;
  --danger: #B42318;
  --success: #1F7A4D;

  /* Type */
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-h1: clamp(2.6rem, 2rem + 3.2vw, 4.6rem);
  --fs-h2: clamp(2.1rem, 1.7rem + 1.9vw, 3.3rem);
  --fs-h3: clamp(1.45rem, 1.3rem + .6vw, 1.75rem);
  --fs-lead: clamp(1.05rem, 1rem + .3vw, 1.2rem);

  /* Space, shape, depth */
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(14, 22, 38, .06), 0 2px 8px rgba(14, 22, 38, .04);
  --shadow: 0 10px 30px -12px rgba(14, 22, 38, .18);
  --shadow-lg: 0 30px 60px -20px rgba(14, 22, 38, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 80px;

  --z-header: 50;
  --z-nav: 60;
  --z-float: 40;
  --z-cookie: 70;
}

/* ------------------------------------------------------------------- base */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy-900); font-weight: 600; line-height: 1.12; letter-spacing: -.005em; margin: 0 0 .6em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--navy-800); text-decoration-color: var(--gold); text-underline-offset: 3px; transition: color .2s var(--ease); }
a:hover { color: var(--gold-ink); }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
ul, ol { padding-left: 1.2rem; }
strong { font-weight: 600; color: var(--navy-900); }
::selection { background: var(--gold); color: var(--navy-900); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.section--navy :focus-visible, .site-footer :focus-visible, .main-nav :focus-visible { outline-color: var(--gold); }
.site-header :focus-visible { outline-color: var(--gold-ink); }
main:focus { outline: none; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.25em; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--gold); color: var(--navy-900); padding: .75rem 1.25rem; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }

.container { --bs-gutter-x: 2rem; max-width: 1240px; }
@media (max-width: 575.98px) { .container { --bs-gutter-x: 2rem; } }

/* --------------------------------------------------------------- utilities */
/* Spacing, display & flex utilities (mt-*, d-flex, justify-content-*…) come from bootstrap-grid.css */
.text-center { text-align: center; }
.lead { font-size: var(--fs-lead); line-height: 1.7; color: var(--slate); }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.measure { max-width: 46rem; }
.measure-sm { max-width: 38rem; }

/* --------------------------------------------------------------- sections */
.section { padding: var(--section-y) 0; position: relative; }
.section--tight { padding: calc(var(--section-y) * .65) 0; }
.section--white { background: var(--white); }
.section--ivory { background: var(--ivory); }
.section--navy { background: var(--navy-900); color: var(--on-navy); }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4, .section--navy strong { color: var(--white); }
.section--navy .lead { color: var(--on-navy); }
.section--navy a:not(.btn) { color: var(--gold); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 4vw, 3.75rem); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; }
.section-head--split > :first-child { max-width: 40rem; flex: 1 1 26rem; }
.section-head--split > :last-child:not(:first-child) { max-width: 30rem; flex: 0 1 26rem; }
.section-head p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--font-body); font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .8; }
.eyebrow--light, .section--navy .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: var(--gold); }
.section-head--center .eyebrow::after { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .8; }

.title-accent { font-style: italic; color: var(--gold-ink); font-weight: 500; }
.section--navy .title-accent, .hero .title-accent, .page-hero .title-accent, .cta-band .title-accent { color: var(--gold); }

.rule-gold { width: 64px; height: 2px; background: linear-gradient(90deg, var(--gold), rgba(198,161,91,0)); border: 0; margin: 1.5rem 0; opacity: 1; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-bg: transparent; --btn-fg: var(--navy-900); --btn-bd: transparent;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.6rem;
  font-family: var(--font-body); font-size: .95rem; font-weight: 600; letter-spacing: .01em; line-height: 1.2;
  color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-bd); border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon[class*="icon"]:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn::after { /* subtle sheen */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn-sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .875rem; }
.btn-lg { min-height: 56px; padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-gold { --btn-bg: var(--gold); --btn-fg: var(--navy-900); --btn-bd: var(--gold); box-shadow: 0 8px 24px -10px rgba(198,161,91,.6); }
.btn-gold:hover { --btn-bg: var(--gold-600); --btn-bd: var(--gold-600); --btn-fg: var(--navy-900); color: var(--navy-900); box-shadow: 0 12px 28px -10px rgba(198,161,91,.7); transform: translateY(-2px); }
.btn-outline-gold { --btn-fg: var(--gold); --btn-bd: var(--gold); }
.btn-outline-gold:hover { --btn-bg: var(--gold); --btn-fg: var(--navy-900); color: var(--navy-900); transform: translateY(-2px); }
.btn-navy { --btn-bg: var(--navy-900); --btn-fg: var(--white); --btn-bd: var(--navy-900); }
.btn-navy:hover { --btn-bg: var(--navy-800); --btn-bd: var(--gold); --btn-fg: var(--white); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { --btn-fg: var(--navy-900); --btn-bd: var(--line); }
.btn-ghost:hover { --btn-bd: var(--gold); color: var(--navy-900); }
.btn-ghost-light { --btn-fg: var(--white); --btn-bd: rgba(255,255,255,.25); }
.btn-ghost-light:hover { --btn-bd: var(--gold); color: var(--white); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.btn-row--center { justify-content: center; }

.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .92rem; color: var(--navy-900); text-decoration: none; }
.link-arrow .icon { color: var(--gold-ink); transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--gold-ink); }
.link-arrow:hover .icon { transform: translateX(4px); }
.section--navy .link-arrow { color: var(--white); }
.section--navy .link-arrow .icon { color: var(--gold); }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 3px; }
.link-btn:hover { color: var(--gold); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--navy-900); cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold-ink); transform: translateY(-1px); }
.icon-btn--light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.2); }
.icon-btn--light:hover { color: var(--gold); }

.icon-badge {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--gold-soft); color: var(--gold-ink); border: 1px solid rgba(198,161,91,.25);
  transition: transform .4s var(--ease), background-color .4s var(--ease), color .4s var(--ease);
}
.icon-badge .icon { width: 26px; height: 26px; }
.icon-badge--sm { width: 44px; height: 44px; border-radius: 12px; }
.icon-badge--sm .icon { width: 21px; height: 21px; }
.section--navy .icon-badge, .icon-badge--dark { background: rgba(198,161,91,.1); color: var(--gold); border-color: rgba(198,161,91,.3); }

.tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--white); }
.tag .icon { width: 14px; height: 14px; }
.tag--sample { border-style: dashed; border-color: var(--gold-line); color: var(--gold-ink); background: rgba(198,161,91,.06); }
.tag--verified { color: var(--success); border-color: rgba(31,122,77,.3); background: rgba(31,122,77,.06); }

.placeholder-note { display: flex; align-items: flex-start; gap: .5rem; font-size: .82rem; color: var(--muted); margin: 1.25rem 0 0; }
.placeholder-note .icon { color: var(--gold-ink); margin-top: .15rem; }
.placeholder-note--center { justify-content: center; text-align: center; }
.section--navy .placeholder-note, .hero .placeholder-note { color: var(--on-navy-muted); }
.section--navy .placeholder-note .icon { color: var(--gold); }

/* ----------------------------------------------------------------- topbar */
.topbar { background: var(--ivory); color: var(--muted); font-size: .8rem; border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar__item, .topbar__links a { display: inline-flex; align-items: center; gap: .45rem; margin: 0; }
.topbar .icon { color: var(--gold-ink); width: 15px; height: 15px; }
.topbar__links { display: flex; gap: 1.5rem; }
.topbar__links a { color: var(--navy-800); text-decoration: none; }
.topbar__links a:hover { color: var(--gold-ink); }
@media (max-width: 767.98px) { .topbar { display: none; } }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled { background: rgba(255,255,255,.9); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 10px 30px -18px rgba(14,22,38,.28); }
.site-header__inner { display: flex; align-items: center; gap: 1.25rem; height: var(--header-h); transition: height .35s var(--ease); }
.site-header.is-scrolled .site-header__inner { height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy-900); margin-right: auto; }
.brand:hover { color: var(--navy-900); }
.brand__logo { height: 52px; width: auto; flex-shrink: 0; border-radius: 10px; transition: transform .5s var(--ease); }
.brand:hover .brand__logo { transform: scale(1.04); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: .01em; color: var(--navy-900); }
.brand__tag { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); margin-top: .2rem; }

.main-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.main-nav__list a {
  position: relative; display: block; padding: .6rem .8rem; font-size: .92rem; font-weight: 500;
  color: var(--slate); text-decoration: none; border-radius: var(--radius-sm);
}
.main-nav__list a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .3rem; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.main-nav__list a:hover, .main-nav__list a[aria-current="page"] { color: var(--navy-900); }
.main-nav__list a:hover::after, .main-nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav__head, .main-nav__foot { display: none; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; place-items: center; }
.nav-toggle__bars { display: grid; gap: 5px; width: 20px; }
.nav-toggle__bars span { display: block; height: 1.5px; background: var(--navy-900); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle__bars span:nth-child(2) { width: 70%; justify-self: end; }
.nav-toggle:hover .nav-toggle__bars span:nth-child(2) { width: 100%; }

.nav-backdrop { position: fixed; inset: 0; background: rgba(8,12,22,.55); z-index: calc(var(--z-nav) - 1); opacity: 0; transition: opacity .35s var(--ease); }
.nav-backdrop.is-visible { opacity: 1; }

@media (max-width: 1199.98px) {
  .nav-toggle { display: inline-grid; }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-nav);
    width: min(380px, 88vw); padding: 1.25rem 1.5rem 2rem;
    /* Closed: removed from layout entirely. An off-screen translated panel would
       widen the mobile layout viewport and cause horizontal scrolling. */
    display: none; flex-direction: column; gap: 1.5rem; overflow-y: auto;
    background: var(--navy-900); border-left: 1px solid rgba(198,161,91,.2);
    transform: translateX(100%);
    transition: transform .45s var(--ease-out);
  }
  .main-nav.is-mounted { display: flex; }
  .main-nav.is-open { transform: none; box-shadow: var(--shadow-lg); }
  .main-nav__head { display: flex; align-items: center; justify-content: space-between; }
  .main-nav__label { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
  .main-nav__list { flex-direction: column; gap: 0; }
  .main-nav__list li { border-bottom: 1px solid rgba(255,255,255,.07); opacity: 0; transform: translateX(16px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
  .main-nav.is-open .main-nav__list li { opacity: 1; transform: none; }
  .main-nav.is-open .main-nav__list li:nth-child(2) { transition-delay: .04s; }
  .main-nav.is-open .main-nav__list li:nth-child(3) { transition-delay: .08s; }
  .main-nav.is-open .main-nav__list li:nth-child(4) { transition-delay: .12s; }
  .main-nav.is-open .main-nav__list li:nth-child(5) { transition-delay: .16s; }
  .main-nav.is-open .main-nav__list li:nth-child(6) { transition-delay: .2s; }
  .main-nav.is-open .main-nav__list li:nth-child(7) { transition-delay: .24s; }
  .main-nav__list a { font-family: var(--font-display); font-size: 1.45rem; padding: .85rem 0; color: var(--white); }
  .main-nav__list a::after { left: 0; right: auto; width: 40px; bottom: .55rem; }
  .main-nav__list a:hover, .main-nav__list a[aria-current="page"] { color: var(--gold); }
  .main-nav__foot { display: grid; gap: 1rem; margin-top: auto; }
  .main-nav__quick { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
  .main-nav__quick a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-sm); color: var(--on-navy); text-decoration: none; font-size: .88rem; }
  .main-nav__quick a:hover { border-color: var(--gold); color: var(--gold); }
  .nav-open .nav-toggle__bars span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle__bars span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}
@media (max-width: 575.98px) {
  .header-cta { display: none; }
  .brand__name { font-size: 1.22rem; }
  .brand__tag { font-size: .58rem; letter-spacing: .16em; }
  .brand__logo { height: 44px; }
  :root { --header-h: 70px; }
}
body.nav-locked { overflow: hidden; }

/* ------------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; background: var(--navy-900); color: var(--on-navy); padding: clamp(3.5rem, 6vw, 6.5rem) 0 clamp(7rem, 10vw, 9rem); }
.hero__grid-bg, .page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(198,161,91,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(198,161,91,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero__glow { position: absolute; width: 640px; height: 640px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(198,161,91,.18), transparent); pointer-events: none; }
.hero .container { position: relative; }
.hero h1 { color: var(--white); font-weight: 600; margin-bottom: 1.5rem; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; }
.hero__lead { font-size: var(--fs-lead); color: var(--on-navy); max-width: 36rem; margin-bottom: 2.25rem; }
.hero__trust { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; font-size: .88rem; color: var(--on-navy-muted); }
.hero__trust li { display: inline-flex; align-items: center; gap: .5rem; }
.hero__trust .icon { color: var(--gold); }

.hero__visual { position: relative; max-width: 520px; margin-left: auto; }
.hero__frame { position: relative; border-radius: 200px 200px var(--radius-lg) var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy-800); box-shadow: var(--shadow-lg); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.02); }
.hero__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,22,38,0) 55%, rgba(14,22,38,.55)); }
.hero__outline { position: absolute; inset: -18px 18px 18px -18px; border: 1px solid var(--gold-line); border-radius: 210px 210px var(--radius-lg) var(--radius-lg); pointer-events: none; }
.hero__ring { position: absolute; width: 150px; height: 150px; right: -40px; top: 8%; pointer-events: none; color: var(--gold); opacity: .7; }
.hero__ring circle { fill: none; stroke: currentColor; stroke-width: 1; stroke-dasharray: 4 7; }

.glass-card {
  position: absolute; display: flex; align-items: center; gap: .85rem;
  padding: .9rem 1.1rem; border-radius: 14px; min-width: 220px;
  background: rgba(24,35,58,.72); border: 1px solid rgba(198,161,91,.28);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  color: var(--white); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
}
.glass-card small { display: block; color: var(--on-navy-muted); font-size: .74rem; letter-spacing: .04em; }
.glass-card strong { display: block; color: var(--white); font-size: .95rem; font-weight: 600; }
.glass-card .icon-badge { width: 42px; height: 42px; border-radius: 10px; }
.glass-card .icon-badge .icon { width: 20px; height: 20px; }
.glass-card--a { left: -56px; bottom: 18%; }
.glass-card--b { right: -24px; top: 16%; }
.glass-card .status-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 4px rgba(74,222,128,.15); margin-left: auto; }
@media (max-width: 991.98px) {
  .hero__visual { margin: 3.5rem auto 0; max-width: 440px; }
  .glass-card--a { left: -8px; }
  .glass-card--b { right: -8px; }
}
@media (max-width: 575.98px) {
  .hero__visual { max-width: 330px; }
  .glass-card { min-width: 0; padding: .7rem .85rem; }
  .glass-card--a { left: -12px; bottom: 10%; }
  .glass-card--b { right: -12px; top: 8%; }
  .hero__ring { display: none; }
  .hero__outline { inset: -12px 12px 12px -12px; }
}

/* Floating animated orbs (hero / CTA) */
.bg-orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bg-orbs span { position: absolute; border-radius: 50%; border: 1px solid rgba(198,161,91,.18); animation: drift 18s ease-in-out infinite alternate; }
.bg-orbs span:nth-child(1) { width: 420px; height: 420px; left: -140px; bottom: -200px; }
.bg-orbs span:nth-child(2) { width: 260px; height: 260px; right: 8%; top: -120px; animation-duration: 22s; animation-delay: -6s; }
@keyframes drift { from { transform: translate3d(0,0,0) rotate(0); } to { transform: translate3d(30px,-24px,0) rotate(20deg); } }

/* ------------------------------------------------------------- page hero */
.page-hero { position: relative; overflow: hidden; background: var(--navy-900); color: var(--on-navy); padding: clamp(3.5rem, 6vw, 6rem) 0 clamp(3.5rem, 6vw, 5.5rem); }
.page-hero::before { -webkit-mask-image: radial-gradient(ellipse 60% 80% at 85% 30%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 60% 80% at 85% 30%, #000 10%, transparent 70%); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-line), transparent); }
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); max-width: 18ch; margin-bottom: 1.1rem; }
.page-hero__lead { font-size: var(--fs-lead); max-width: 40rem; color: var(--on-navy); margin: 0; }
.page-hero .btn-row { margin-top: 2rem; }

.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .82rem; color: var(--on-navy-muted); }
.breadcrumb li + li::before { content: ""; display: inline-block; width: 5px; height: 5px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); transform: rotate(45deg); margin-right: .7rem; vertical-align: middle; }
.breadcrumb a { color: var(--on-navy); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current] { color: var(--gold); }

/* ------------------------------------------------------------------ stats */
.stats-wrap { position: relative; z-index: 2; margin-top: clamp(-5.5rem, -7vw, -4rem); }
.stats-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.5rem, 3vw, 3rem); border: 1px solid var(--line-soft); position: relative; }
.stats-card::before { content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: .5rem 1rem; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat p { margin: 0; }
.stat__value { font-family: var(--font-display); font-size: clamp(2.4rem, 2rem + 1.8vw, 3.4rem); font-weight: 600; color: var(--navy-900); line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat__label { font-size: .86rem; color: var(--muted); margin-top: .35rem !important; letter-spacing: .02em; }
.stats-card .placeholder-note { justify-content: center; text-align: center; }
@media (max-width: 767.98px) {
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 1.25rem; }
  .stat:nth-child(3) { border-left: 0; }
}

/* ---------------------------------------------------------- service cards */
.service-card {
  position: relative; display: flex; flex-direction: column; width: 100%;
  padding: 2rem 1.75rem 1.75rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.service-card::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-600)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); border-radius: var(--radius) var(--radius) 0 0; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover .icon-badge { background: var(--navy-900); color: var(--gold); transform: rotate(-6deg); }
.service-card__title { font-size: 1.45rem; margin: 1.4rem 0 .6rem; }
.service-card p { color: var(--muted); font-size: .94rem; flex-grow: 1; }
.service-card .link-arrow { margin-top: .5rem; }
.section--ivory .service-card { border-color: transparent; box-shadow: var(--shadow-sm); }

/* ------------------------------------------------------------- why choose */
.why-media { position: relative; }
.why-media__frame { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy-800); }
.why-media__frame img { width: 100%; height: 100%; object-fit: cover; }
.why-media__badge { position: absolute; right: -1.5rem; bottom: 2rem; background: var(--navy-900); color: var(--white); padding: 1.25rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--gold-line); max-width: 250px; box-shadow: var(--shadow-lg); }
.why-media__badge strong { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--white); line-height: 1.2; margin-bottom: .25rem; }
.why-media__badge span { font-size: .82rem; color: var(--on-navy-muted); }
@media (max-width: 991.98px) { .why-media { max-width: 520px; } .why-media__frame { aspect-ratio: 4 / 3; } .why-media__badge { right: 1rem; } }

.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.feature { display: flex; gap: 1.1rem; padding: 1.6rem 1.5rem 1.6rem 0; border-top: 1px solid var(--line); }
.feature:nth-child(odd) { padding-right: 2rem; }
.feature:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.feature h3 { font-size: 1.3rem; margin: .1rem 0 .4rem; }
.feature p { font-size: .92rem; color: var(--muted); margin: 0; }
.feature:hover .icon-badge { background: var(--navy-900); color: var(--gold); }
@media (max-width: 575.98px) {
  .feature-list { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(odd), .feature:nth-child(even) { padding: 1.4rem 0; border-left: 0; }
}

/* ---------------------------------------------------------------- process */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; counter-reset: step; }
.timeline::before { content: ""; position: absolute; top: 32px; left: 32px; right: calc((100% - 6rem) / 4 - 32px); height: 1px; background: var(--line); }
.timeline::after { content: ""; position: absolute; top: 32px; left: 32px; right: calc((100% - 6rem) / 4 - 32px); height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; }
.timeline.is-visible::after { transform: scaleX(1); }
.timeline__step { position: relative; counter-increment: step; }
.timeline__num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--gold-line); color: var(--gold-ink);
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem;
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.section--ivory .timeline__num { background: var(--ivory); }
.timeline__step:hover .timeline__num { background: var(--navy-900); color: var(--gold); transform: scale(1.06); }
.timeline__step h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.timeline__step p { font-size: .93rem; color: var(--muted); margin: 0; }
@media (max-width: 991.98px) {
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .timeline::before, .timeline::after { display: none; }
}
@media (max-width: 575.98px) {
  .timeline { grid-template-columns: 1fr; gap: 0; padding-left: 0; }
  .timeline__step { display: grid; grid-template-columns: 64px 1fr; column-gap: 1.25rem; padding-bottom: 2rem; }
  .timeline__step::before { content: ""; position: absolute; left: 32px; top: 64px; bottom: 0; width: 1px; background: var(--gold-line); }
  .timeline__step:last-child::before { display: none; }
  .timeline__num { grid-row: span 2; margin: 0; }
}

/* ------------------------------------------------------------- industries */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(198,161,91,.16); border: 1px solid rgba(198,161,91,.16); border-radius: var(--radius-lg); overflow: hidden; }
.industry { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 2rem 1.75rem; background: var(--navy-900); transition: background-color .4s var(--ease); }
.industry::after { content: ""; position: absolute; left: 1.75rem; bottom: 1.5rem; width: 24px; height: 1px; background: var(--gold); transition: width .45s var(--ease); }
.industry:hover { background: var(--navy-800); }
.industry:hover::after { width: 56px; }
.industry:hover .icon-badge { transform: translateY(-3px); background: var(--gold); color: var(--navy-900); }
.industry h3 { font-size: 1.3rem; margin: 0; color: var(--white); }
.industry p { font-size: .88rem; color: var(--on-navy-muted); margin: 0 0 1.25rem; }
@media (max-width: 991.98px) { .industries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479.98px) { .industries { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ testimonials */
.t-slider { position: relative; max-width: 900px; margin: 0 auto; }
.t-slider__viewport { overflow: hidden; border-radius: var(--radius-lg); }
.t-slider__track { display: flex; transition: transform .7s var(--ease-out); will-change: transform; }
.t-slide { flex: 0 0 100%; margin: 0; padding: clamp(2rem, 5vw, 3.5rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); text-align: center; position: relative; }
.t-slide .t-badges { justify-content: center; }
.t-slide .t-author { justify-content: center; }
.t-slide .t-quote { margin: 0 auto 1.25rem; }
.t-slider__controls { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: 1.75rem; }
.t-slider__dots { display: flex; gap: .5rem; padding: 0 .5rem; }
.dot { width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; padding: 0; cursor: pointer; display: grid; place-items: center; }
.dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background-color .3s, width .3s var(--ease); }
.dot[aria-current="true"]::before { background: var(--gold); width: 22px; border-radius: 6px; }
[data-toggle-play] .i-play { display: none; }
[data-toggle-play].is-paused .i-play { display: block; }
[data-toggle-play].is-paused .i-pause { display: none; }

.t-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.t-quote { display: block; width: 40px; height: 40px; color: var(--gold); stroke-width: 1.25; }
.t-text { margin: 0 0 1.75rem; }
.t-text p { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.5; color: var(--navy-900); font-weight: 500; margin: 0; }
.t-text--lg p { font-size: clamp(1.4rem, 1.2rem + .9vw, 1.95rem); }
.t-author { display: flex; align-items: center; gap: .9rem; text-align: left; }
.t-author strong { display: block; font-size: .98rem; }
.t-author span span { display: block; font-size: .84rem; color: var(--muted); }
.t-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy-900); color: var(--gold); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.t-avatar .icon { width: 22px; height: 22px; }

.t-card { display: flex; flex-direction: column; width: 100%; margin: 0; padding: 2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.t-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.t-card .t-text { flex-grow: 1; }
.t-card .t-quote { width: 32px; height: 32px; margin-bottom: 1rem; }

/* ------------------------------------------------------------- accordions */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-h { margin: 0; font-family: var(--font-body); font-size: 1rem; }
.acc-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; width: 100%;
  padding: 1.3rem 0; background: none; border: 0; text-align: left; cursor: pointer;
  font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; color: var(--navy-900); line-height: 1.45;
  transition: color .25s var(--ease);
}
.acc-btn:hover { color: var(--gold-ink); }
.acc-icon { position: relative; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .4s var(--ease); }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--gold-ink); transform: translate(-50%, -50%); transition: transform .4s var(--ease), opacity .3s; }
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-btn[aria-expanded="true"] .acc-icon { background: var(--navy-900); border-color: var(--navy-900); transform: rotate(180deg); }
.acc-btn[aria-expanded="true"] .acc-icon::before { background: var(--gold); }
.acc-btn[aria-expanded="true"] .acc-icon::after { opacity: 0; }
.acc-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s var(--ease); }
.js .acc-panel { grid-template-rows: 0fr; }
.js .acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; }
.acc-body { padding: 0 3.5rem 1.4rem 0; color: var(--slate); font-size: .96rem; opacity: 1; transition: opacity .4s var(--ease); }
.js .acc-item:not(.is-open) .acc-body { opacity: 0; }
.acc-body p:last-child { margin-bottom: 0; }
.acc-item[hidden] { display: none; }

.section--navy .accordion, .section--navy .acc-item { border-color: rgba(255,255,255,.12); }
.section--navy .acc-btn { color: var(--white); }
.section--navy .acc-btn:hover { color: var(--gold); }
.section--navy .acc-icon { border-color: rgba(255,255,255,.2); }
.section--navy .acc-icon::before, .section--navy .acc-icon::after { background: var(--gold); }
.section--navy .acc-btn[aria-expanded="true"] .acc-icon { background: var(--gold); border-color: var(--gold); }
.section--navy .acc-btn[aria-expanded="true"] .acc-icon::before { background: var(--navy-900); }
.section--navy .acc-body { color: var(--on-navy); }

/* ------------------------------------------------------------- FAQ preview */
.faq-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
.help-card { margin-top: 2rem; padding: 1.5rem; border-radius: var(--radius); background: var(--navy-900); color: var(--on-navy); display: flex; gap: 1rem; align-items: flex-start; }
.help-card strong { color: var(--white); display: block; margin-bottom: .25rem; font-size: 1rem; }
.help-card p { font-size: .9rem; margin-bottom: .6rem; }
.help-card a { color: var(--gold); font-weight: 600; text-decoration: none; }
.help-card a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--navy-900); color: var(--on-navy); padding: clamp(5rem, 9vw, 8rem) 0; text-align: center; }
.cta-band__bg { position: absolute; inset: 0; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .14; filter: grayscale(.5); }
.cta-band__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(14,22,38,.55), rgba(14,22,38,.96) 75%); }
.cta-band .container { position: relative; }
.cta-band__inner { max-width: 50rem; margin: 0 auto; }
.cta-band .eyebrow { justify-content: center; }
.cta-band .eyebrow::after { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .8; }
.cta-band h2 { color: var(--white); font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.8rem); margin-bottom: 1.1rem; }
.cta-band__text { font-size: var(--fs-lead); color: var(--on-navy); max-width: 36rem; margin: 0 auto 2.25rem; }

/* ----------------------------------------------------------------- footer */
.site-footer { background: #0A111E; color: var(--on-navy-muted); font-size: .92rem; padding-top: clamp(4rem, 7vw, 5.5rem); border-top: 1px solid rgba(198,161,91,.18); }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer__about { margin: 1.5rem 0; max-width: 22rem; }
.footer-title { font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; }
.footer-links, .footer-contact, .footer-legal, .social { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: .6rem; }
.footer-links a { display: inline-block; transition: color .2s, transform .3s var(--ease); }
.footer-links a:hover { transform: translateX(4px); }
.footer-contact li { display: flex; gap: .75rem; align-items: flex-start; }
.footer-contact li + li { margin-top: .85rem; }
.footer-contact .icon { color: var(--gold); margin-top: .2rem; width: 18px; height: 18px; }
.social { display: flex; gap: .6rem; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); color: var(--on-navy); transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900); transform: translateY(-3px); }
.social .icon { width: 18px; height: 18px; }
.site-footer__disclaimer { margin: 3.5rem 0 0; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .8rem; color: #8592A8; max-width: 60rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem 0 2rem; font-size: .84rem; }
.site-footer__bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-legal .link-btn { text-decoration: none; color: var(--on-navy); }
.footer-legal .link-btn:hover { color: var(--gold); }

.to-top, .wa-float {
  position: fixed; right: 1.25rem; z-index: var(--z-float); display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; text-decoration: none; box-shadow: var(--shadow);
  transition: opacity .35s var(--ease), transform .35s var(--ease), background-color .3s;
}
.to-top { bottom: 5.5rem; background: var(--navy-800); color: var(--gold); border: 1px solid var(--gold-line); opacity: 0; transform: translateY(12px); pointer-events: none; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gold); color: var(--navy-900); }
.wa-float { bottom: 1.25rem; width: 52px; height: 52px; background: #1F7A4D; color: var(--white); }
.wa-float:hover { color: var(--white); background: #19663F; transform: translateY(-3px); }
.wa-float .icon { width: 24px; height: 24px; }

/* ---------------------------------------------------------- cookie consent */
.btn-outline-navy { --btn-fg: var(--navy-900); --btn-bd: var(--navy-900); }
.btn-outline-navy:hover { --btn-bg: var(--navy-900); --btn-fg: var(--white); color: var(--white); transform: translateY(-2px); }

@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }

/* Preferences dialog — scrollable body, fixed header & footer */
.cookie-dialog { width: min(560px, calc(100vw - 2rem)); max-height: min(720px, calc(100dvh - 2rem)); padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); color: var(--slate); overflow: hidden; }
.cookie-dialog[open] { display: flex; animation: pop-in .4s var(--ease-out); }
.cookie-dialog::backdrop { background: rgba(8,12,22,.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.cookie-dialog__form { display: flex; flex-direction: column; width: 100%; max-height: inherit; min-height: 0; }
.cookie-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.75rem 1rem; border-bottom: 1px solid var(--line); }
.cookie-dialog__head h2 { font-size: 1.75rem; margin: 0; }
.cookie-dialog__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 1.1rem 1.75rem .25rem; }
.cookie-dialog__intro { font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }
.cookie-opt { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; padding: 1.1rem 0; }
.cookie-opt + .cookie-opt { border-top: 1px solid var(--line); }
.cookie-opt h3 { font-family: var(--font-body); font-size: .98rem; font-weight: 600; margin: 0 0 .25rem; }
.cookie-opt p { font-size: .86rem; color: var(--muted); margin: 0; }
.tag--on { flex-shrink: 0; margin-top: .15rem; color: var(--navy-900); border-color: var(--gold-line); background: var(--gold-soft); text-transform: none; letter-spacing: .01em; font-size: .78rem; }
.cookie-dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; padding: 1rem 1.75rem 1.25rem; border-top: 1px solid var(--line); background: var(--ivory); }
.cookie-dialog__save { order: -1; margin-right: auto; }
@media (max-width: 575.98px) {
  .cookie-dialog { width: 100%; max-width: 100%; max-height: 88dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; border-width: 1px 0 0; }
  .cookie-dialog[open] { animation-name: sheet-up; }
  .cookie-dialog__head { padding: 1.1rem 1.1rem .85rem; }
  .cookie-dialog__head h2 { font-size: 1.5rem; }
  .cookie-dialog__body { padding: .9rem 1.1rem .25rem; }
  .cookie-opt { gap: 1rem; }
  .cookie-dialog__actions { display: grid; grid-template-columns: 1fr 1fr; padding: .85rem 1.1rem calc(.9rem + env(safe-area-inset-bottom)); }
  .cookie-dialog__actions .btn { white-space: normal; line-height: 1.2; min-height: 46px; padding: .5rem; font-size: .84rem; }
  .cookie-dialog__save { order: 3; grid-column: 1 / -1; margin: 0; }
}

.switch { position: relative; display: inline-block; width: 48px; height: 28px; flex-shrink: 0; margin-top: .2rem; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch input:disabled { cursor: not-allowed; }
.switch__track { position: absolute; inset: 0; border-radius: 999px; background: #CBD2DC; transition: background-color .3s var(--ease); }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .3s var(--ease); }
.switch input:checked + .switch__track { background: var(--navy-900); }
.switch input:checked + .switch__track::after { transform: translateX(20px); background: var(--gold); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--gold); outline-offset: 3px; }
.switch input:disabled + .switch__track { opacity: .6; }

/* -------------------------------------------------------------- media */
.media-frame { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-800); aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.media-frame:hover img { transform: scale(1.05); }
.media-frame::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.35); border-radius: calc(var(--radius-lg) - 8px); pointer-events: none; }
.media-frame--wide { aspect-ratio: 3 / 2; }
@media (max-width: 991.98px) { .media-frame { aspect-ratio: 16 / 10; } }

/* -------------------------------------------------------------- About page */
.story-grid .media-frame { aspect-ratio: 4 / 5; }
.story-stack { position: relative; }
.story-stack .media-frame--small { position: absolute; width: 48%; right: -6%; bottom: -10%; aspect-ratio: 1; border: 6px solid var(--white); box-shadow: var(--shadow-lg); }
@media (max-width: 991.98px) { .story-stack { margin-bottom: 3rem; } .story-stack .media-frame--small { right: 0; } }
.pull-quote { font-family: var(--font-display); font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); line-height: 1.35; font-style: italic; color: var(--navy-900); border-left: 2px solid var(--gold); padding-left: 1.5rem; margin: 2rem 0; }

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.vm-card { position: relative; padding: clamp(2rem, 4vw, 3rem); border-radius: var(--radius-lg); border: 1px solid rgba(198,161,91,.3); background: linear-gradient(160deg, rgba(198,161,91,.08), rgba(198,161,91,0) 45%), var(--navy-800); overflow: hidden; }
.vm-card h3 { color: var(--white); font-size: 2rem; margin: 1.25rem 0 .75rem; }
.vm-card p { color: var(--on-navy); margin: 0; font-size: 1.02rem; }
.vm-card__num { position: absolute; right: 1.5rem; top: .5rem; font-family: var(--font-display); font-size: 6rem; font-weight: 700; color: rgba(198,161,91,.08); line-height: 1; }
@media (max-width: 767.98px) { .vm-grid { grid-template-columns: 1fr; } }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; }
.value h3 { font-size: 1.4rem; margin: 1.1rem 0 .4rem; }
.value p { color: var(--muted); font-size: .94rem; margin: 0; }
@media (max-width: 991.98px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .values { grid-template-columns: 1fr; } }

.approach { list-style: none; padding: 0; margin: 0; counter-reset: ap; }
.approach li { counter-increment: ap; display: grid; grid-template-columns: 80px 1fr; gap: 1.5rem; padding: 1.75rem 0; border-top: 1px solid rgba(255,255,255,.1); }
.approach li:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
.approach li::before { content: "0" counter(ap); font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--gold); line-height: 1; }
.approach h3 { font-size: 1.45rem; margin: 0 0 .35rem; }
.approach p { margin: 0; font-size: .95rem; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .75rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; }
.check-list .icon { flex-shrink: 0; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-ink); margin-top: .12rem; stroke-width: 2.5; }
.section--navy .check-list .icon { background: rgba(198,161,91,.15); color: var(--gold); }
.check-list--2 { grid-template-columns: 1fr 1fr; gap: .9rem 2rem; }
@media (max-width: 575.98px) { .check-list--2 { grid-template-columns: 1fr; } }

.expertise { display: flex; flex-wrap: wrap; gap: .75rem; }
.expertise span { display: inline-flex; align-items: center; gap: .55rem; padding: .65rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: .9rem; font-weight: 500; color: var(--navy-900); transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.expertise span:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.expertise .icon { color: var(--gold-ink); width: 18px; height: 18px; }

/* ----------------------------------------------------------- Services page */
.subnav { position: sticky; top: 68px; z-index: calc(var(--z-header) - 1); background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.subnav__list::-webkit-scrollbar { display: none; }
.subnav__list a { display: block; white-space: nowrap; padding: 1rem .9rem; font-size: .85rem; font-weight: 500; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; transition: color .25s, border-color .25s; }
.subnav__list a:hover { color: var(--navy-900); }
.subnav__list a.is-active { color: var(--navy-900); border-bottom-color: var(--gold); }
@media (max-width: 575.98px) { .subnav { top: 70px; } }
.page-services { --scroll-extra: 56px; }
.page-services { scroll-padding-top: calc(var(--header-h) + 72px); }
html:has(.page-services) { scroll-padding-top: calc(var(--header-h) + 76px); }

.svc-title { font-size: clamp(2.1rem, 1.7rem + 1.8vw, 3rem); }
.svc-num { font-family: var(--font-display); font-size: 1rem; font-weight: 700; letter-spacing: .05em; color: var(--navy-900); background: var(--gold-soft); border: 1px solid var(--gold-line); padding: .1rem .55rem; border-radius: 6px; margin-right: .25rem; }
.section--navy .svc-num { color: var(--gold); background: rgba(198,161,91,.1); }
.svc .eyebrow::before { display: none; }
.mini-title { display: flex; align-items: center; gap: .5rem; font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--navy-900); margin: 0 0 1.25rem; }
.mini-title .icon { color: var(--gold-ink); }
.section--navy .mini-title { color: var(--gold); }
.section--navy .mini-title .icon { color: var(--gold); }
.mini-steps { list-style: none; padding: 0; margin: 0 0 1.5rem; counter-reset: ms; display: grid; gap: 0; }
.mini-steps li { counter-increment: ms; position: relative; display: flex; gap: 1rem; align-items: flex-start; padding-bottom: 1.15rem; font-size: .95rem; }
.mini-steps li::before { content: counter(ms); flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold-line); font-family: var(--font-display); font-weight: 700; color: var(--gold-ink); background: var(--white); position: relative; z-index: 1; }
.mini-steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 30px; bottom: 0; width: 1px; background: var(--gold-line); }
.mini-steps span { padding-top: .2rem; }
.section--navy .mini-steps li::before { background: var(--navy-800); color: var(--gold); }
.section--ivory .mini-steps li::before { background: var(--ivory); }
.doc-box { padding: 1.5rem; border-radius: var(--radius); border: 1px dashed var(--gold-line); background: rgba(198,161,91,.04); }
.section--navy .doc-box { background: rgba(255,255,255,.03); }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .92rem; }
.doc-list li { display: flex; gap: .65rem; align-items: flex-start; }
.doc-list li::before { content: ""; flex-shrink: 0; width: 14px; height: 14px; margin-top: .3rem; border: 1.5px solid var(--gold); border-radius: 3px; }
.doc-box__note { font-size: .78rem; color: var(--muted); margin: 1rem 0 0; font-style: italic; }
.section--navy .doc-box__note { color: var(--on-navy-muted); }
.svc-col { height: 100%; padding: 1.75rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.svc-col .check-list, .svc-col .mini-steps { margin-bottom: 0; }
.glass-panel { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(198,161,91,.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.glass-panel .mini-steps { margin: 0; }
.svc-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: clamp(2.5rem, 4vw, 3.5rem); padding: 1.5rem 1.75rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.svc-cta p { margin: 0; }
.section--ivory .svc-cta { background: var(--white); }
.section--white .svc-cta { background: var(--ivory); border-color: transparent; }
.section--navy .svc-cta { background: rgba(255,255,255,.04); border-color: rgba(198,161,91,.22); }
.svc--navy { background: radial-gradient(ellipse at 100% 0%, rgba(198,161,91,.1), transparent 50%), var(--navy-900); }
.svc .accordion .acc-btn { font-size: .95rem; padding: 1.05rem 0; }
.svc .acc-body { font-size: .92rem; padding-right: 1rem; }

/* --------------------------------------------------------------- FAQ page */
.faq-tools { position: sticky; top: calc(var(--header-h) + 1rem); }
.search-field { position: relative; }
.search-field .icon { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field input { width: 100%; min-height: 56px; padding: .9rem 1rem .9rem 3rem; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; color: var(--navy-900); background: var(--white); transition: border-color .25s, box-shadow .25s; }
.search-field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(198,161,91,.18); }
.search-field input::-webkit-search-cancel-button { cursor: pointer; }
.faq-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
@media (min-width: 992px) { .faq-filters { flex-direction: column; align-items: stretch; } .faq-filters .chip { text-align: left; } }
.chip { min-height: 42px; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--slate); font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; transition: all .25s var(--ease); }
@media (min-width: 992px) { .chip { border-radius: var(--radius-sm); } }
.chip:hover { border-color: var(--gold); color: var(--navy-900); }
.chip[aria-pressed="true"] { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.faq-count { font-size: .85rem; color: var(--muted); margin: 1rem 0 0; min-height: 1.5em; }
.faq-group + .faq-group { margin-top: 3.5rem; }
.faq-group[hidden] { display: none; }
.faq-group__title { display: flex; align-items: center; gap: .9rem; font-size: clamp(1.7rem, 1.5rem + .8vw, 2.2rem); margin-bottom: 1rem; }
.faq-empty { padding: 2.5rem; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.faq-empty[hidden] { display: none; }
.review-note { display: flex; gap: .75rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--ivory); border-left: 3px solid var(--gold); font-size: .86rem; color: var(--slate); margin-top: 2rem; }
.review-note .icon { color: var(--gold-ink); margin-top: .15rem; }
::highlight(faq-match) { background-color: rgba(198,161,91,.35); color: var(--navy-900); }

/* ------------------------------------------------------------ Contact page */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.contact-card { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.75rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-line); }
.contact-card h2 { font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 1rem 0 .15rem; }
.contact-card p, .contact-card a { margin: 0; font-weight: 600; color: var(--navy-900); text-decoration: none; word-break: break-word; }
.contact-card a:hover { color: var(--gold-ink); }
.contact-card small { color: var(--muted); font-size: .82rem; }
@media (max-width: 991.98px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 479.98px) { .contact-cards { grid-template-columns: 1fr; } }
.section--overlap { padding-top: 0; display: flow-root; }
.contact-overlap { margin-top: -3.5rem; position: relative; z-index: 2; }

.form-card { padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 575.98px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label, .field legend { font-size: .86rem; font-weight: 600; color: var(--navy-900); }
.field .req { color: var(--danger); margin-left: .15rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem; font: inherit; font-size: 1rem; color: var(--navy-900);
  background: var(--white); border: 1px solid #D5D0C6; border-radius: var(--radius-sm);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2385662B' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #B9B2A4; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(198,161,91,.18); }
.field [aria-invalid="true"] { border-color: var(--danger); background-color: #FFF8F7; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180,35,24,.14); }
.field-error { display: flex; align-items: center; gap: .35rem; font-size: .82rem; color: var(--danger); min-height: 0; margin: 0; }
.field-error:empty { display: none; }
.field-error::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700; }
.field-hint { font-size: .8rem; color: var(--muted); margin: 0; display: flex; justify-content: space-between; gap: 1rem; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.segmented label { position: relative; display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: .6rem 1rem; border: 1px solid #D5D0C6; border-radius: var(--radius-sm); cursor: pointer; font-weight: 500; color: var(--slate); transition: all .25s var(--ease); }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented label:has(input:checked) { border-color: var(--navy-900); background: var(--navy-900); color: var(--white); }
.segmented label:has(input:checked) .icon { color: var(--gold); }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.segmented[aria-invalid="true"] label { border-color: var(--danger); }
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: .9rem; color: var(--slate); cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: .15rem; accent-color: var(--navy-900); flex-shrink: 0; cursor: pointer; }
.check input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 2px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; gap: .75rem; align-items: flex-start; padding: 1rem 1.25rem; border-radius: var(--radius-sm); font-size: .92rem; margin-bottom: 1.25rem; }
.form-status.is-error { display: flex; background: #FEF3F2; color: #7A271A; border: 1px solid #FDA29B; }
.form-status .icon { margin-top: .1rem; }
.form-success { display: none; text-align: center; padding: 2rem 1rem; }
.form-success.is-visible { display: block; animation: pop-in .5s var(--ease-out); }
.form-success .icon-badge { width: 72px; height: 72px; border-radius: 50%; margin-bottom: 1.25rem; background: rgba(31,122,77,.1); color: var(--success); border-color: rgba(31,122,77,.25); }
.form-success .icon-badge .icon { width: 34px; height: 34px; }
.form-success h3 { font-size: 2rem; }
.form-privacy { font-size: .8rem; color: var(--muted); margin: 1rem 0 0; display: flex; gap: .5rem; }
.form-privacy .icon { color: var(--gold-ink); width: 16px; height: 16px; margin-top: .15rem; }
.btn .spinner { width: 18px; height: 18px; border: 2px solid rgba(14,22,38,.25); border-top-color: var(--navy-900); border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .icon { display: none; }

.contact-aside { display: grid; gap: 1.5rem; align-content: start; }
.aside-panel { padding: 1.75rem; border-radius: var(--radius-lg); background: var(--navy-900); color: var(--on-navy); }
.aside-panel h2, .aside-panel h3 { color: var(--white); font-size: 1.6rem; margin-bottom: .75rem; }
.hours { margin: 0; display: grid; gap: .65rem; font-size: .9rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .65rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.hours dt { font-weight: 500; color: var(--on-navy); }
.hours dd { margin: 0; color: var(--white); text-align: right; }
.map-ph { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-800); border: 1px solid var(--line); }
.map-ph iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-ph__cover { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .85rem; padding: 1.5rem; text-align: center; color: var(--on-navy); background-image: linear-gradient(rgba(198,161,91,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(198,161,91,.08) 1px, transparent 1px); background-size: 32px 32px; }
.map-ph__cover p { margin: 0; font-size: .85rem; max-width: 22rem; color: var(--on-navy-muted); }
.map-ph__pin { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--gold); color: var(--navy-900); animation: pulse 2.4s var(--ease) infinite; }
.map-ph__pin .icon { width: 26px; height: 26px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(198,161,91,.45); } 70% { box-shadow: 0 0 0 22px rgba(198,161,91,0); } 100% { box-shadow: 0 0 0 0 rgba(198,161,91,0); } }

/* ----------------------------------------------------------------- 404 */
.error-page { position: relative; overflow: hidden; background: var(--navy-900); color: var(--on-navy); padding: clamp(3.5rem, 7vw, 6.5rem) 0; min-height: calc(100vh - var(--header-h) - 40px); display: grid; align-items: center; }
.error-page .container { position: relative; }
.error-page__glow { position: absolute; width: 680px; height: 680px; right: -180px; top: 50%; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(198,161,91,.16), transparent); pointer-events: none; }
.error-page .icon-badge { background: rgba(198,161,91,.1); color: var(--gold); border-color: rgba(198,161,91,.3); }

.error-copy { max-width: 34rem; }
.error-copy .eyebrow { color: var(--gold); }
.error-copy h1 { color: var(--white); font-size: clamp(2.5rem, 2rem + 2.6vw, 4rem); margin-bottom: 1.1rem; }
.error-copy h1 .title-accent { color: var(--gold); }
.error-copy__lead { font-size: var(--fs-lead); color: var(--on-navy); margin-bottom: 2rem; }

.error-links__title { margin: 2.75rem 0 1rem; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--on-navy-muted); }
.error-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.error-links a { display: flex; align-items: center; gap: .85rem; height: 100%; padding: .85rem 1rem; border-radius: var(--radius); background: rgba(24,35,58,.6); border: 1px solid rgba(255,255,255,.08); color: var(--on-navy); text-decoration: none; transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease); }
.error-links a > span:nth-child(2) { flex: 1; min-width: 0; line-height: 1.35; }
.error-links strong { display: block; color: var(--white); font-size: .95rem; font-weight: 600; }
.error-links small { display: block; color: var(--on-navy-muted); font-size: .8rem; }
.error-links a > .icon { color: var(--gold); opacity: .6; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.error-links a:hover { border-color: var(--gold-line); background: rgba(34,48,77,.8); transform: translateY(-2px); color: var(--on-navy); }
.error-links a:hover > .icon { opacity: 1; transform: translateX(3px); }

/* Illustration */
.error-visual { container-type: inline-size; position: relative; max-width: 500px; margin: 0 auto; aspect-ratio: 1 / .82; display: grid; place-items: center; }
.error-visual__ring { position: absolute; width: 78%; aspect-ratio: 1; color: var(--gold); opacity: .55; animation: ring-spin 50s linear infinite; }
.error-visual__ring circle { fill: none; stroke: currentColor; stroke-width: .6; stroke-dasharray: 3 6; }
.error-code { position: relative; display: flex; align-items: center; justify-content: center; gap: .02em; margin: 0; font-family: var(--font-body); font-variant-numeric: lining-nums tabular-nums; font-weight: 700; font-size: clamp(7rem, 4rem + 13vw, 12.5rem); line-height: 1; letter-spacing: -.04em; color: transparent; background: linear-gradient(180deg, rgba(222,192,132,.95) 0%, rgba(198,161,91,.55) 55%, rgba(198,161,91,.08) 100%); -webkit-background-clip: text; background-clip: text; user-select: none; }
.error-code__zero { opacity: .12; }

.error-doc { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 3 / 4; margin: -20% 0 0 -15%; padding: 7.8cqw 4.2cqw 0; display: flex; flex-direction: column; gap: 2.7cqw; border-radius: 10px; background: linear-gradient(160deg, var(--navy-700), var(--navy-800)); border: 1px solid var(--gold-line); box-shadow: 0 30px 50px -20px rgba(0,0,0,.7); animation: float 5s ease-in-out infinite; }
.error-doc__corner { position: absolute; right: -1px; top: -1px; width: 24%; aspect-ratio: 1; background: linear-gradient(225deg, var(--navy-900) 50%, var(--navy-600) 50%); border-bottom-left-radius: 6px; border-top-right-radius: 10px; }
.error-doc__line { display: block; height: max(3px, 1.05cqw); border-radius: 3px; background: rgba(198,161,91,.4); }
.error-doc__line--short { width: 60%; }
.error-doc__stamp { position: absolute; left: 50%; bottom: 12%; translate: -50% 0; padding: .2rem .45rem; border: 1.5px solid var(--gold); border-radius: 4px; background: var(--navy-800); color: var(--gold); font-size: clamp(.5rem, .4rem + .3vw, .64rem); font-weight: 700; letter-spacing: .1em; line-height: 1.3; text-transform: uppercase; transform: rotate(-10deg); white-space: nowrap; }

.error-mag { position: absolute; width: 20%; left: 53%; top: 30%; fill: none; stroke: var(--white); stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(0 8px 14px rgba(0,0,0,.5)); animation: search 6s ease-in-out infinite; }
.error-mag circle { fill: rgba(198,161,91,.1); }
.error-chip { right: 0; bottom: 2%; animation: bob 6s ease-in-out infinite; }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes search { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-40%, -30%); } 50% { transform: translate(-15%, 20%); } 75% { transform: translate(20%, -10%); } }

.error-copy > *, .error-visual { animation: slide-up .9s var(--ease-out) both; }
.error-copy > :nth-child(2) { animation-delay: .08s; }
.error-copy > :nth-child(3) { animation-delay: .16s; }
.error-copy > :nth-child(4) { animation-delay: .24s; }
.error-copy > :nth-child(n+5) { animation-delay: .32s; }

@media (max-width: 991.98px) {
  .error-page { min-height: 0; }
  .error-copy { margin: 0 auto; text-align: center; }
  .error-copy .eyebrow { justify-content: center; }
  .error-copy .eyebrow::after { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .8; }
  .error-copy .btn-row { justify-content: center; }
  .error-links { text-align: left; }
  .error-visual { max-width: 420px; }
}
@media (max-width: 575.98px) {
  .error-visual { max-width: 320px; }
  .error-chip { right: -4px; bottom: -4%; }
  .error-copy .btn-row .btn { width: 100%; }
  .error-links { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------- legal pages */
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 2rem); padding: 1.5rem; border-radius: var(--radius); background: var(--ivory); font-size: .88rem; }
.legal-toc p { font-weight: 600; color: var(--navy-900); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.legal-toc ol { margin: 0; padding-left: 1.1rem; display: grid; gap: .45rem; }
.legal-toc a { color: var(--slate); text-decoration: none; }
.legal-toc a:hover { color: var(--gold-ink); }
.legal-body { max-width: 48rem; }
.legal-body h2 { font-size: 1.9rem; margin-top: 2.75rem; padding-top: .25rem; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 { font-size: 1.3rem; margin-top: 1.75rem; }
.legal-body li { margin-bottom: .4rem; }
.legal-body table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1rem 0 1.5rem; }
.legal-body th, .legal-body td { text-align: left; padding: .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-body th { background: var(--ivory); color: var(--navy-900); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.legal-notice { display: flex; gap: .85rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); border: 1px dashed var(--gold); background: rgba(198,161,91,.06); margin-bottom: 2.5rem; font-size: .92rem; }
.legal-notice .icon { color: var(--gold-ink); margin-top: .15rem; }
.legal-meta { font-size: .88rem; color: var(--muted); }
@media (max-width: 991.98px) { .legal { grid-template-columns: 1fr; } .legal-toc { position: static; } }

/* ------------------------------------------------------ testimonials page */
.feedback-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feedback-item { display: flex; gap: 1rem; align-items: flex-start; }
.feedback-item h3 { font-size: 1.3rem; margin: 0 0 .3rem; }
.feedback-item p { margin: 0; font-size: .92rem; color: var(--muted); }
@media (max-width: 767.98px) { .feedback-band { grid-template-columns: 1fr; } }

/* ================================================================ motion */
@keyframes slide-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes line-up { from { transform: translateY(110%); } to { transform: none; } }
@keyframes ring-spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Scroll reveal: only hidden when JS is running */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translateX(-32px); }
.js [data-reveal="right"] { transform: translateX(32px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Hero entrance */
.hero h1 .line > span { animation: line-up 1.1s var(--ease-out) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero [data-enter] { animation: slide-up .9s var(--ease-out) both; animation-delay: var(--enter, .25s); }
.hero__visual { animation: fade-in 1.2s var(--ease) .2s both; }
.hero__ring { animation: ring-spin 40s linear infinite; }
.glass-card--a { animation: bob 6s ease-in-out infinite; }
.glass-card--b { animation: bob 7s ease-in-out -2s infinite; }
.page-hero h1, .page-hero .breadcrumb, .page-hero__lead, .page-hero .btn-row { animation: slide-up .9s var(--ease-out) both; }
.page-hero .breadcrumb { animation-delay: 0s; }
.page-hero h1 { animation-delay: .08s; }
.page-hero__lead { animation-delay: .18s; }
.page-hero .btn-row { animation-delay: .28s; }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

/* ------------------------------------------------------------------ print */
@media print {
  .topbar, .site-header, .site-footer, .cookie-dialog, .wa-float, .to-top, .cta-band, .subnav { display: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .page-hero, .section--navy { background: none; color: #000; }
}
@media (min-width: 992px) { .text-lg-end { text-align: right; } }

/* Numerals: Cormorant ships old-style figures only, so numeric displays use Inter's lining, tabular figures */
.stat__value, .timeline__num, .svc-num, .mini-steps li::before, .approach li::before, .vm-card__num {
  font-family: var(--font-body); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.02em;
}
.stat__value { font-weight: 600; font-size: clamp(2rem, 1.7rem + 1.4vw, 2.85rem); }
.timeline__num { font-size: 1.15rem; font-weight: 600; }
.mini-steps li::before { font-size: .82rem; font-weight: 600; }
.svc-num { font-size: .8rem; font-weight: 700; }
.approach li::before { font-size: 1.9rem; font-weight: 500; }
.vm-card__num { font-weight: 700; }
@media (min-width: 992px) and (max-width: 1299.98px) { .glass-card--b { right: -8px; } .hero__ring { right: -10px; } }

/* Mobile gutters: Bootstrap .g-5 (3rem) rows have -1.5rem side margins, wider than the
   container's 1rem padding — that 8px overflow made the fixed cookie sheet scroll sideways. */
@media (max-width: 767.98px) {
  .g-5, .gx-5 { --bs-gutter-x: 2rem; }
  .story-stack .media-frame--small { right: 0; }
}
@media (max-width: 991.98px) {
  .js [data-reveal="left"], .js [data-reveal="right"] { transform: translateY(28px); }
}
main { overflow-x: clip; }

/* Header monogram (transparent PNG cut from RM_tax_final_RM_logo.jpg) */
.brand__logo--mark { border-radius: 0; height: 50px; }
@media (max-width: 575.98px) { .brand__logo--mark { height: 42px; } }

/* Keep footer bottom links clear of the floating WhatsApp / back-to-top buttons */
@media (max-width: 767.98px) { .site-footer__bottom { padding-bottom: 5.5rem; } }

/* Footer brand sits on the dark footer — use light/gold text so the name is visible */
.brand--footer, .brand--footer:hover { color: var(--on-navy); }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__tag { color: var(--gold); }

/* ======================================================= design refinements */
/* Footer: disclaimer divider spans the full container width */
.site-footer__disclaimer { max-width: none; }

/* Testimonial slider: centre the quote vertically; keep controls round on small screens */
.t-slide { display: flex; flex-direction: column; justify-content: center; }
.t-slider__controls .icon-btn { flex-shrink: 0; }
@media (max-width: 575.98px) {
  .t-slider__controls { gap: .4rem; }
  .t-slider__dots { gap: 0; padding: 0; }
  .t-slider__dots .dot { width: 22px; }
}

/* Testimonials page: masonry columns so short quotes don't leave gaps */
.t-masonry { columns: 3 300px; column-gap: 1.5rem; }
.t-masonry .t-card { break-inside: avoid; margin-bottom: 1.5rem; display: flex; }
.t-masonry .t-card .t-text { flex-grow: 0; }

/* Contact: keep the email address on readable lines */
.contact-card__email { overflow-wrap: normal; word-break: normal !important; }
@media (min-width: 992px) { .contact-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: flex-start; } }

/* Services: breathing room above sub-headings that follow body copy */
p + .mini-title, .lead + .mini-title, .svc-lead + .mini-title { margin-top: 2rem; }

/* Inner page heroes: fill the empty right side on desktop with a quiet ring motif */
@media (min-width: 992px) {
  .page-hero .container::after {
    content: ""; position: absolute; right: 2%; top: 50%; width: 340px; aspect-ratio: 1; translate: 0 -50%; pointer-events: none;
    background:
      radial-gradient(closest-side, rgba(198,161,91,.14), transparent 70%),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23C6A15B'%3E%3Ccircle cx='100' cy='100' r='98' stroke-opacity='.35' stroke-dasharray='2 5'/%3E%3Ccircle cx='100' cy='100' r='72' stroke-opacity='.22'/%3E%3Ccircle cx='100' cy='100' r='46' stroke-opacity='.4' stroke-dasharray='1 3'/%3E%3Ccircle cx='100' cy='2' r='3' fill='%23C6A15B' stroke='none'/%3E%3Ccircle cx='172' cy='100' r='2.5' fill='%23C6A15B' fill-opacity='.7' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: ring-spin 80s linear infinite;
  }
}
