/* =========================================================================
   RESOLVERE — Design system
   Midnight #071A2F · Royal #10263D · Champagne #C7A36B · Antique #B5945B
   Ivory #F7F3EB · White #FFFFFF
   Display: Cinzel (capitals) · Editorial: Cormorant Garamond · Body: Manrope
   ========================================================================= */
:root {
  --midnight: #071a2f;
  --royal: #10263d;
  --royal-2: #163152;
  --gold: #c7a36b;
  --antique: #b5945b;
  --gold-hi: #e9d3a6;
  --ivory: #f7f3eb;
  --ivory-2: #efe8da;
  --white: #ffffff;
  --ink: #0b1d31;
  --ink-soft: #3b4a5c;
  --mist: rgba(247, 243, 235, 0.72);
  --mist-2: rgba(247, 243, 235, 0.5);
  --line-gold: rgba(199, 163, 107, 0.38);
  --line-gold-soft: rgba(199, 163, 107, 0.18);
  --gold-grad: linear-gradient(115deg, #8f7140 0%, #c7a36b 28%, #f1dfb8 48%, #c7a36b 66%, #9c7b46 100%);
  --f-display: "Cinzel", "Times New Roman", serif;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --f-sans: "Manrope", "Helvetica Neue", Helvetica, sans-serif;
  --nav-h: 84px;
  --wrap: min(1240px, calc(100vw - 48px));
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--midnight);
  color: var(--ivory);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; font-weight: 400; }
::selection { background: var(--gold); color: var(--midnight); }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--midnight); padding: 10px 18px;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: var(--wrap); margin-inline: auto; }

/* ---------- Typographic primitives ---------- */
.eyebrow {
  font-family: var(--f-sans); font-size: 12px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .8; }
.eyebrow.center::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .8; }
.display {
  font-family: var(--f-display); font-weight: 500; letter-spacing: .08em; line-height: 1.08;
}
.h-xl { font-size: clamp(44px, 7.4vw, 112px); }
.h-lg { font-size: clamp(34px, 4.6vw, 64px); }
.h-md { font-size: clamp(26px, 3vw, 40px); }
.serif { font-family: var(--f-serif); }
.gold-text {
  background: var(--gold-grad); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s var(--ease) infinite;
}
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.lede { font-family: var(--f-serif); font-size: clamp(22px, 2.1vw, 30px); line-height: 1.45; font-weight: 400; }
.muted { color: var(--mist); }
.italic { font-style: italic; }

/* Ornamental rule */
.orn {
  display: flex; align-items: center; gap: 14px; color: var(--gold); width: 100%; max-width: 360px;
}
.orn.center { margin-inline: auto; }
.orn::before, .orn::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.orn::after { background: linear-gradient(270deg, transparent, var(--gold)); }
.orn i { width: 8px; height: 8px; transform: rotate(45deg); border: 1px solid currentColor; flex: none; }
.orn i + i { width: 5px; height: 5px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--gold);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px; min-height: 52px; border: 1px solid var(--b); background: transparent;
  font-family: var(--f-sans); font-size: 12.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold-grad); background-size: 200% 100%;
  transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:hover, .btn:focus-visible { color: var(--midnight); }
.btn svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn.solid { color: var(--midnight); }
.btn.solid::before { transform: scaleX(1); }
.btn.solid:hover::before { background-position: 100% 0; }
.btn.ghost { --b: var(--line-gold); color: var(--ivory); }
.on-ivory .btn.ghost { color: var(--ink); --b: var(--antique); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link {
  color: var(--gold); text-decoration: none; font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  display: inline-flex; gap: 10px; align-items: center; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 4px; transition: background-size .45s var(--ease);
}
.text-link:hover, .text-link:focus-visible { background-size: 100% 1px; }
.text-link svg { width: 15px; height: 15px; }
.on-ivory .text-link { color: #8a6c38; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--nav-h);
  display: flex; align-items: center; transition: background .5s var(--ease), border-color .5s, height .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 26, 47, 0.78); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-color: var(--line-gold-soft); height: 70px;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(1400px, calc(100vw - 48px)); }
.brand-lock { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-lock .wm { display: flex; flex-direction: column; line-height: 1; }
.brand-lock .wm b { font-family: var(--f-display); font-weight: 600; letter-spacing: .26em; font-size: 18px; color: var(--ivory); }
.brand-lock .wm small { font-size: 8.5px; letter-spacing: .34em; color: var(--gold); margin-top: 6px; font-weight: 600; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; display: block; padding: 10px 12px; text-decoration: none; font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--mist); transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: var(--gold-grad);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ivory); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { padding: 12px 20px; min-height: 44px; font-size: 11px; }
.menu-btn {
  display: none; width: 48px; height: 48px; background: none; border: 1px solid var(--line-gold); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 6px;
}
.menu-btn span { width: 20px; height: 1px; background: var(--gold); transition: transform .4s var(--ease), opacity .3s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 85; background: var(--midnight);
  display: flex; flex-direction: column; padding: calc(var(--nav-h) + 24px) 28px 32px;
  clip-path: circle(0% at calc(100% - 48px) 42px); visibility: hidden;
  transition: clip-path .8s var(--ease), visibility 0s .8s; overflow-y: auto;
}
.mobile-menu::before { content: ""; position: absolute; inset: 14px; border: 1px solid var(--line-gold-soft); pointer-events: none; }
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 48px) 42px); visibility: visible; transition: clip-path .8s var(--ease), visibility 0s; }
.mobile-menu ol { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.mobile-menu li { counter-increment: m; border-bottom: 1px solid var(--line-gold-soft); }
.mobile-menu li a {
  display: flex; align-items: baseline; gap: 18px; padding: 14px 4px; text-decoration: none;
  font-family: var(--f-display); font-size: clamp(22px, 6vw, 30px); letter-spacing: .06em;
}
.mobile-menu li a::before { content: counter(m, upper-roman); font-family: var(--f-sans); font-size: 11px; color: var(--gold); letter-spacing: .2em; min-width: 32px; }
.mobile-menu li a[aria-current="page"] { color: var(--gold); }
.mobile-menu .mm-foot { margin-top: auto; padding-top: 28px; font-size: 14px; color: var(--mist); }
.mobile-menu .mm-foot a { color: var(--gold); }

/* ---------- Page shell / transitions ---------- */
main { min-height: 100vh; }
.page-veil {
  position: fixed; inset: 0; z-index: 120; pointer-events: none; background: var(--midnight);
  transform: scaleY(0); transform-origin: bottom;
  display: flex; align-items: center; justify-content: center;
}
.page-veil .seal-mini { opacity: 0; }

section { position: relative; }
.sec { padding: clamp(96px, 12vw, 168px) 0; }
.sec-sm { padding: clamp(64px, 8vw, 110px) 0; }
.on-ivory { background: var(--ivory); color: var(--ink); }
.on-ivory .eyebrow { color: #8a6c38; }
.on-ivory .muted { color: var(--ink-soft); }
.on-royal { background: var(--royal); }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Framed border (PDF decorative border motif) */
.frame { position: relative; }
.frame::before {
  content: ""; position: absolute; inset: 18px; border: 1px solid var(--line-gold); pointer-events: none;
}
.frame > .corner { position: absolute; width: 22px; height: 22px; border: 1px solid var(--gold); pointer-events: none; }
.frame > .c-tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.frame > .c-tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.frame > .c-bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.frame > .c-br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.on-ivory.frame::before { border-color: rgba(181, 148, 91, .45); }

/* ---------- Monogram (typographic reconstruction) ---------- */
.mono {
  --s: 46px; width: var(--s); height: var(--s); border-radius: 50%; position: relative; flex: none;
  display: grid; place-items: center; color: var(--gold);
  background: radial-gradient(circle at 35% 30%, rgba(233, 211, 166, .18), transparent 60%);
  box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 calc(var(--s) * .06) transparent, inset 0 0 0 calc(var(--s) * .075) rgba(199,163,107,.55);
}
.mono b {
  font-family: var(--f-display); font-weight: 600; font-size: calc(var(--s) * .5); line-height: 1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-top: calc(var(--s) * .12);
}
.mono svg { position: absolute; top: calc(var(--s) * .13); width: calc(var(--s) * .28); height: calc(var(--s) * .28); stroke-width: 1.4; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse 60% 70% at 72% 45%, rgba(199,163,107,.14), transparent 65%),
    radial-gradient(ellipse 80% 60% at 10% 100%, rgba(22,49,82,.9), transparent 70%),
    var(--midnight);
}
.hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hero-canvas canvas { width: 100% !important; height: 100% !important; }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; padding-top: var(--nav-h); }
.hero-copy { padding: 40px 0 80px; }
.hero h1 { margin: 28px 0 10px; font-size: clamp(44px, 7vw, 112px); letter-spacing: .1em; line-height: 1; margin-right: -.1em; }
@media (min-width: 1021px) { .hero h1 { font-size: clamp(52px, 6.2vw, 112px); } }
.hero .descriptor { font-family: var(--f-display); letter-spacing: .42em; font-size: clamp(12px, 1.25vw, 17px); color: var(--gold); }
.hero .motto { font-family: var(--f-serif); font-style: italic; font-size: clamp(24px, 2.4vw, 34px); margin: 34px 0 6px; }
.hero .addr { font-size: 14px; color: var(--mist-2); letter-spacing: .04em; margin: 0 0 40px; display: flex; gap: 10px; align-items: center; }
.hero .addr svg { width: 15px; height: 15px; color: var(--gold); flex: none; }
.hero-frame { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero-hint {
  position: absolute; z-index: 3; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--mist-2);
}
.hero-hint span { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: drip 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.scene-tip {
  position: absolute; right: 40px; bottom: 34px; z-index: 3; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--mist-2); display: flex; align-items: center; gap: 10px;
}
.scene-tip svg { width: 14px; height: 14px; color: var(--gold); }

/* WebGL loading skeleton & fallback */
.scene-skel {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 0; pointer-events: none;
  transition: opacity .9s var(--ease);
}
.scene-skel .ring {
  width: min(42vw, 420px); aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line-gold-soft); position: relative; margin-left: 46%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(199,163,107,.4) 85%, transparent 100%);
  -webkit-mask: radial-gradient(circle, transparent 69%, #000 70%, #000 71%, transparent 72%);
          mask: radial-gradient(circle, transparent 69%, #000 70%, #000 71%, transparent 72%);
  animation: spin 2.4s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.scene-ready .scene-skel { opacity: 0; }
.scene-fallback { position: absolute; inset: 0; display: none; place-items: center; z-index: 0; }
.scene-fallback .mono { --s: min(34vw, 340px); margin-left: 46%; opacity: .9; }
.no-webgl .scene-fallback { display: grid; }
.no-webgl .scene-skel, .no-webgl .scene-tip { display: none; }

/* ---------- Preamble ---------- */
.preamble { text-align: center; }
.preamble .wrap { max-width: 1000px; }
.preamble blockquote { margin: 40px auto 0; font-family: var(--f-serif); font-size: clamp(26px, 3.2vw, 46px); line-height: 1.32; font-weight: 400; color: var(--ink); }
.preamble blockquote::first-letter { font-family: var(--f-display); color: #8a6c38; }
.dropcap::first-letter {
  float: left; font-family: var(--f-display); font-size: 4.4em; line-height: .82; padding: 8px 14px 0 0; color: #8a6c38;
}

/* ---------- Split (About) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.seal-stage { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; margin-inline: auto; }
.seal-stage canvas { width: 100% !important; height: 100% !important; }
.seal-stage .scene-skel .ring { margin: 0; width: 70%; }
.seal-stage .scene-fallback .mono { margin: 0; --s: 62%; }
.seal-stage::before {
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle, rgba(199,163,107,.18), transparent 65%);
}
.feature-quote {
  margin: 44px 0 0; padding: 30px 0 0; border-top: 1px solid var(--line-gold); position: relative;
  font-family: var(--f-serif); font-style: italic; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.35; color: var(--gold-hi);
}
.on-ivory .feature-quote { color: #7b5f2f; border-color: rgba(181,148,91,.5); }
.feature-quote::before {
  content: "\201C"; position: absolute; top: -6px; left: 0; transform: translateY(-50%);
  font-family: var(--f-display); font-style: normal; font-size: 64px; line-height: 1; color: var(--gold);
  background: inherit; padding-right: 14px;
}
.body-stack p { margin: 0 0 18px; font-size: 18px; }
.body-stack p:first-child { font-family: var(--f-serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.45; }

/* ---------- Section heads ---------- */
.sec-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 6vw, 84px); }
.sec-head.center { text-align: center; justify-items: center; }
.sec-head .index { font-family: var(--f-display); color: var(--gold); font-size: 14px; letter-spacing: .3em; }
.sec-head p { max-width: 640px; margin: 0; }

/* ---------- Philosophy cards ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; perspective: 1400px; }
.pillar {
  position: relative; min-height: 520px; padding: 46px 38px 40px; display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgba(22,49,82,.85), rgba(7,26,47,.92));
  border: 1px solid var(--line-gold-soft); transform-style: preserve-3d;
  transition: transform .8s var(--ease), border-color .5s, box-shadow .8s var(--ease); will-change: transform;
}
.pillar::before {
  content: ""; position: absolute; inset: 12px; border: 1px solid rgba(199,163,107,.12); pointer-events: none; transition: border-color .5s, inset .6s var(--ease);
}
.pillar:hover { border-color: var(--line-gold); box-shadow: 0 50px 80px -40px rgba(0,0,0,.7), 0 0 0 1px rgba(199,163,107,.2); }
.pillar:hover::before { inset: 8px; border-color: rgba(199,163,107,.32); }
.pillar .glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(233,211,166,.16), transparent 50%);
}
.pillar:hover .glare { opacity: 1; }
.pillar .numeral {
  font-family: var(--f-display); font-size: 120px; line-height: .8; transform: translateZ(60px);
  background: linear-gradient(180deg, rgba(199,163,107,.55), rgba(199,163,107,0)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pillar .p-ico { width: 64px; height: 64px; border: 1px solid var(--line-gold); display: grid; place-items: center; transform: translateZ(40px) rotate(45deg); margin: 34px 0 34px 6px; }
.pillar .p-ico svg { transform: rotate(-45deg); width: 26px; height: 26px; color: var(--gold); stroke-width: 1.3; }
.pillar h3 { font-family: var(--f-display); letter-spacing: .18em; font-size: clamp(20px, 1.8vw, 25px); transform: translateZ(30px); }
.pillar p { margin: 18px 0 0; color: var(--mist); font-size: 16.5px; transform: translateZ(20px); }
.pillar .bar { margin-top: auto; height: 1px; background: var(--gold-grad); transform-origin: left; transform: scaleX(.18); transition: transform 1s var(--ease); }
.pillar:hover .bar { transform: scaleX(1); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: rgba(181,148,91,.35); border: 1px solid rgba(181,148,91,.35); }
.svc {
  grid-column: span 2; position: relative; background: var(--ivory); padding: 44px 36px 36px; min-height: 360px;
  display: flex; flex-direction: column; overflow: hidden; isolation: isolate; text-decoration: none; color: inherit;
  transition: color .6s var(--ease);
}
.svc:nth-child(4), .svc:nth-child(5) { grid-column: span 3; }
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--midnight);
  clip-path: inset(100% 0 0 0); transition: clip-path .7s var(--ease);
}
.svc:hover, .svc:focus-within { color: var(--ivory); }
.svc:hover::before, .svc:focus-within::before { clip-path: inset(0 0 0 0); }
.svc .s-top { display: flex; justify-content: space-between; align-items: flex-start; }
.svc .s-no { font-family: var(--f-display); font-size: 13px; letter-spacing: .3em; color: #8a6c38; transition: color .5s; }
.svc:hover .s-no { color: var(--gold); }
.svc .s-ico { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(181,148,91,.6); display: grid; place-items: center; transition: transform .8s var(--ease), border-color .5s; }
.svc .s-ico svg { width: 22px; height: 22px; color: #8a6c38; stroke-width: 1.3; transition: color .5s; }
.svc:hover .s-ico { transform: rotate(360deg) scale(1.08); border-color: var(--gold); }
.svc:hover .s-ico svg { color: var(--gold); }
.svc h3 { margin-top: auto; padding-top: 44px; font-family: var(--f-display); font-size: clamp(22px, 2vw, 30px); letter-spacing: .06em; }
.svc p { margin: 14px 0 0; font-size: 16px; color: var(--ink-soft); transition: color .5s; max-width: 46ch; }
.svc:hover p { color: var(--mist); }
.svc .s-link { margin-top: 22px; }
.svc:hover .s-link, .svc:focus-within .s-link { color: var(--gold); }
.svc-line { position: absolute; left: 36px; right: 36px; bottom: 0; height: 2px; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .1s; }
.svc:hover .svc-line { transform: scaleX(1); }

/* ---------- Clientele ---------- */
.clients-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.client {
  position: relative; padding: clamp(48px, 6vw, 80px) 32px; text-align: center; border: 1px solid var(--line-gold);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  backdrop-filter: blur(6px); transition: transform .7s var(--ease), border-color .5s;
}
.client:hover { transform: translateY(-6px); border-color: var(--gold); }
.client::before, .client::after { content: ""; position: absolute; width: 8px; height: 8px; border: 1px solid var(--gold); transform: rotate(45deg); background: var(--midnight); }
.client::before { top: -5px; left: calc(50% - 4px); }
.client::after { bottom: -5px; left: calc(50% - 4px); }
.client .c-name { font-family: var(--f-display); font-size: clamp(24px, 2.8vw, 40px); letter-spacing: .14em; }
.client .c-cap { margin-top: 16px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.verify-flag {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 11.5px; letter-spacing: .06em;
  color: var(--mist-2); border: 1px dashed var(--line-gold); padding: 6px 12px;
}
.verify-flag svg { width: 13px; height: 13px; color: var(--gold); }

/* ---------- Process timeline ---------- */
.proc-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 60px; align-items: end; margin-bottom: 80px; }
.total-badge {
  position: relative; padding: 34px 30px; text-align: center; border: 1px solid var(--gold);
  background: radial-gradient(circle at 50% 0%, rgba(199,163,107,.18), transparent 70%);
}
.total-badge .t1 { font-size: 11px; letter-spacing: .32em; color: var(--gold); font-weight: 700; }
.total-badge .t2 { font-family: var(--f-display); font-size: clamp(26px, 2.6vw, 36px); letter-spacing: .08em; margin: 8px 0 6px; }
.total-badge .t3 { font-family: var(--f-serif); font-style: italic; font-size: 22px; color: var(--gold-hi); }
.timeline { position: relative; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
.tl-aside { position: sticky; top: calc(var(--nav-h) + 30px); align-self: start; }
.tl-counter { font-family: var(--f-display); line-height: 1; }
.tl-counter .cur { font-size: 88px; display: block; }
.tl-counter .of { font-size: 13px; letter-spacing: .3em; color: var(--gold); font-family: var(--f-sans); font-weight: 700; }
.tl-meter { margin-top: 26px; height: 3px; background: var(--line-gold-soft); position: relative; overflow: hidden; }
.tl-meter i { position: absolute; inset: 0; background: var(--gold-grad); transform-origin: left; transform: scaleX(0); }
.tl-aside .tl-stage-name { margin-top: 18px; font-family: var(--f-serif); font-size: 22px; font-style: italic; color: var(--gold-hi); min-height: 3em; }
.tl-list { list-style: none; margin: 0; padding: 0 0 0 0; position: relative; }
.tl-rail { position: absolute; left: 31px; top: 32px; bottom: 32px; width: 1px; background: var(--line-gold-soft); }
.tl-rail i { position: absolute; inset: 0; background: linear-gradient(var(--gold-hi), var(--gold), var(--antique)); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 12px rgba(199,163,107,.6); }
.tl-item { position: relative; padding-left: 96px; padding-bottom: 22px; }
.tl-dot {
  position: absolute; left: 0; top: 0; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; background: var(--midnight); border: 1px solid var(--line-gold);
  font-family: var(--f-display); font-size: 15px; letter-spacing: .04em; color: var(--mist);
  transition: background .6s var(--ease), color .5s, border-color .5s, box-shadow .6s, transform .6s var(--ease);
}
.tl-dot::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px solid rgba(199,163,107,.15); transition: border-color .5s; }
.tl-item.passed .tl-dot { border-color: var(--gold); color: var(--gold); }
.tl-item.active .tl-dot { background: var(--gold-grad); color: var(--midnight); border-color: var(--gold-hi); box-shadow: 0 0 0 8px rgba(199,163,107,.12), 0 0 40px rgba(199,163,107,.45); transform: scale(1.08); }
.tl-item.active .tl-dot::after { border-color: rgba(7,26,47,.3); }
.tl-card {
  border: 1px solid var(--line-gold-soft); background: rgba(16,38,61,.55); backdrop-filter: blur(8px);
  transition: border-color .5s, background .5s, transform .6s var(--ease);
}
.tl-item.active .tl-card { border-color: var(--line-gold); background: rgba(22,49,82,.75); transform: translateX(6px); }
.tl-head {
  width: 100%; display: flex; align-items: center; gap: 18px; padding: 18px 24px; min-height: 64px;
  background: none; border: 0; cursor: pointer; text-align: left;
}
.tl-head .tl-title { flex: 1; font-family: var(--f-display); font-size: clamp(17px, 1.6vw, 22px); letter-spacing: .05em; line-height: 1.3; }
.tl-head .tl-title small { display: inline-block; margin-left: 10px; font-family: var(--f-sans); font-size: 11px; letter-spacing: .18em; color: var(--gold); border: 1px solid var(--line-gold); padding: 3px 8px; vertical-align: middle; }
.pill {
  flex: none; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  padding: 8px 14px; border-radius: 99px; border: 1px solid var(--gold); color: var(--gold);
}
.pill.int { border-style: dashed; color: var(--gold-hi); }
.tl-item.active .pill { background: var(--gold); color: var(--midnight); }
.tl-chev { width: 20px; height: 20px; color: var(--gold); transition: transform .5s var(--ease); flex: none; }
.tl-head[aria-expanded="true"] .tl-chev { transform: rotate(180deg); }
.tl-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.tl-body > div { overflow: hidden; }
.tl-head[aria-expanded="true"] + .tl-body { grid-template-rows: 1fr; }
.tl-body .inner { padding: 0 24px 22px; border-top: 1px solid var(--line-gold-soft); margin: 0 24px; padding: 18px 0 22px; display: grid; gap: 10px; }
.tl-body dl { margin: 0; display: grid; grid-template-columns: 130px 1fr; gap: 8px 18px; font-size: 15px; }
.tl-body dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); padding-top: 4px; }
.tl-body dd { margin: 0; color: var(--mist); }
.tl-end { margin-top: 26px; padding-left: 96px; }
.tl-note { font-size: 14px; color: var(--mist-2); max-width: 720px; margin-top: 28px; display: flex; gap: 10px; }
.tl-note svg { width: 16px; height: 16px; color: var(--gold); flex: none; margin-top: 4px; }

/* Mini timeline (home teaser) */
.mini-tl { display: grid; grid-template-columns: repeat(11, 1fr); gap: 0; position: relative; margin: 60px 0 40px; }
.mini-tl::before { content: ""; position: absolute; left: 4.5%; right: 4.5%; top: 22px; height: 1px; background: var(--line-gold-soft); }
.mini-tl .ml-line { position: absolute; left: 4.5%; right: 4.5%; top: 22px; height: 1px; background: var(--gold-grad); transform-origin: left; transform: scaleX(0); }
.mini-tl li { list-style: none; text-align: center; position: relative; padding: 0 4px; }
.mini-tl .md {
  width: 44px; height: 44px; margin: 0 auto 16px; border-radius: 50%; border: 1px solid var(--gold); background: var(--midnight);
  display: grid; place-items: center; font-family: var(--f-display); font-size: 12px; color: var(--gold); position: relative;
}
.mini-tl .mt { font-size: 12.5px; line-height: 1.35; color: var(--mist); }
.mini-tl .mtime { display: block; margin-top: 6px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.mini-tl { padding: 0; }

/* ---------- Terms ---------- */
.terms-list { list-style: none; margin: 0; padding: 0; counter-reset: c; border-top: 1px solid rgba(181,148,91,.45); }
.terms-list li {
  counter-increment: c; display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 28px; padding: 36px 0;
  border-bottom: 1px solid rgba(181,148,91,.45); align-items: start;
}
.terms-list li::before {
  content: counter(c, decimal-leading-zero); font-family: var(--f-display); font-size: 40px; line-height: 1; color: #9c7b46;
}
.terms-list p { margin: 0; font-family: var(--f-serif); font-size: clamp(21px, 1.9vw, 27px); line-height: 1.45; color: var(--ink); }
.terms-list .t-tag { display: inline-block; margin-top: 14px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: #8a6c38; }
.fee-viz { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid rgba(181,148,91,.6); position: relative; }
.fee-viz .fee { padding: 40px 34px; position: relative; }
.fee-viz .fee + .fee { border-left: 1px solid rgba(181,148,91,.6); }
.fee-viz .pct { font-family: var(--f-display); font-size: clamp(56px, 7vw, 96px); line-height: 1; color: var(--ink); }
.fee-viz .pct span { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fee-viz .stage { margin-top: 10px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: #8a6c38; font-weight: 700; }
.fee-viz .flabel { margin-top: 12px; font-family: var(--f-serif); font-size: 22px; line-height: 1.35; }
.fee-viz .fnote { margin-top: 8px; font-size: 14.5px; color: var(--ink-soft); font-style: italic; }
.fee-bar { grid-column: 1 / -1; height: 10px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(181,148,91,.6); }
.fee-bar i { background: var(--gold-grad); transform-origin: left; transform: scaleX(0); }
.fee-bar i + i { background: linear-gradient(90deg, #10263d, #163152); }
.fee-mid {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(45deg); width: 44px; height: 44px;
  background: var(--ivory); border: 1px solid var(--antique); display: grid; place-items: center;
}
.fee-mid svg { transform: rotate(-45deg); width: 18px; height: 18px; color: #8a6c38; }
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.scope { padding: 34px; border: 1px solid rgba(181,148,91,.5); background: var(--white); }
.scope h4 { font-family: var(--f-display); font-size: 18px; letter-spacing: .14em; display: flex; align-items: center; gap: 12px; }
.scope h4 svg { width: 20px; height: 20px; color: #8a6c38; }
.scope ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.scope li { display: flex; gap: 12px; font-size: 16.5px; }
.scope li::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--antique); margin-top: 10px; flex: none; }
.scope.ex li::before { background: transparent; border: 1px solid var(--antique); }
.scope-note { margin-top: 18px; font-size: 14.5px; color: var(--ink-soft); display: flex; gap: 10px; }
.scope-note svg { width: 16px; height: 16px; color: #8a6c38; flex: none; margin-top: 4px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
.c-cards { display: grid; gap: 18px; }
.c-card {
  display: flex; gap: 20px; padding: 26px 26px; border: 1px solid var(--line-gold-soft);
  background: linear-gradient(180deg, rgba(22,49,82,.6), rgba(16,38,61,.3)); backdrop-filter: blur(10px);
  transition: border-color .5s, transform .6s var(--ease);
}
.c-card:hover { border-color: var(--line-gold); transform: translateX(4px); }
.c-card .ci { width: 48px; height: 48px; flex: none; border: 1px solid var(--line-gold); display: grid; place-items: center; transform: rotate(45deg); }
.c-card .ci svg { transform: rotate(-45deg); width: 19px; height: 19px; color: var(--gold); stroke-width: 1.4; }
.c-card h4 { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.c-card .cv { margin-top: 6px; font-size: 17px; }
.c-card .cv a { text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); display: inline-block; word-break: break-all; }
.c-card .cv a:hover, .c-card .cv a:focus-visible { background-size: 100% 1px; }
.c-card .cnote { margin-top: 8px; font-size: 13px; color: var(--mist-2); }
.chambers-title { font-family: var(--f-display); letter-spacing: .14em; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.1; }

/* ---------- Forms ---------- */
.form-panel {
  position: relative; padding: clamp(28px, 4vw, 52px); border: 1px solid var(--line-gold);
  background: linear-gradient(170deg, rgba(22,49,82,.7), rgba(7,26,47,.7)); backdrop-filter: blur(14px);
}
.form-panel h3 { font-family: var(--f-display); font-size: clamp(22px, 2vw, 28px); letter-spacing: .08em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 22px; margin-top: 30px; }
.field { display: grid; gap: 8px; position: relative; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--gold); }
.field .req { color: var(--gold-hi); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ivory); background: rgba(7,26,47,.55);
  border: 1px solid var(--line-gold-soft); border-radius: 0; padding: 14px 16px; min-height: 52px;
  transition: border-color .3s, box-shadow .3s, background .3s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field select option { background: var(--royal); color: var(--ivory); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199,163,107,.18); background: rgba(7,26,47,.85); }
.field[data-invalid] input, .field[data-invalid] select, .field[data-invalid] textarea { border-color: #e48b7d; }
.field .err { font-size: 13px; color: #f0a597; min-height: 0; }
.field .hint { font-size: 13px; color: var(--mist-2); }
.check { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--mist); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { width: 22px; height: 22px; flex: none; border: 1px solid var(--gold); margin-top: 2px; display: grid; place-items: center; transition: background .3s; }
.check .box svg { width: 14px; height: 14px; color: var(--midnight); opacity: 0; transform: scale(.5); transition: .3s var(--ease); }
.check input:checked + .box { background: var(--gold); }
.check input:checked + .box svg { opacity: 1; transform: none; }
.check input:focus-visible + .box { outline: 2px solid var(--gold); outline-offset: 3px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; margin-top: 8px; }
.form-actions .small { font-size: 13px; color: var(--mist-2); max-width: 340px; }
.btn[aria-busy="true"] { pointer-events: none; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; display: none; }
.btn[aria-busy="true"] .spin { display: block; }
.btn[aria-busy="true"] svg:not(.spin) { display: none; }
.form-status { grid-column: 1 / -1; padding: 20px 22px; border: 1px solid; display: none; gap: 14px; font-size: 15px; }
.form-status.show { display: flex; }
.form-status svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.form-status.ok { border-color: rgba(140, 200, 160, .6); background: rgba(80, 140, 100, .12); }
.form-status.ok svg { color: #9fd8b2; }
.form-status.warn { border-color: var(--line-gold); background: rgba(199,163,107,.08); }
.form-status.warn svg { color: var(--gold); }
.form-status.bad { border-color: rgba(228,139,125,.6); background: rgba(228,139,125,.1); }
.form-status.bad svg { color: #f0a597; }
.form-status b { display: block; color: var(--ivory); margin-bottom: 4px; }
.form-status a { color: var(--gold); }
.scope-alert { grid-column: 1 / -1; display: none; gap: 12px; padding: 16px 18px; border: 1px dashed var(--line-gold); font-size: 14.5px; color: var(--mist); }
.scope-alert.show { display: flex; }
.scope-alert svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 3px; }

/* ---------- Closing ---------- */
.closing {
  min-height: 92vh; display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 50% 60% at 50% 40%, rgba(199,163,107,.22), transparent 70%), radial-gradient(ellipse 100% 70% at 50% 120%, #163152, transparent 70%), var(--midnight);
}
.closing .beam {
  position: absolute; top: -10%; left: 50%; width: 60vw; height: 120%; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: conic-gradient(from 180deg at 50% 0%, transparent 0deg 160deg, rgba(233,211,166,.12) 175deg, rgba(233,211,166,.2) 180deg, rgba(233,211,166,.12) 185deg, transparent 200deg);
  filter: blur(8px);
}
.closing .inner { position: relative; padding: clamp(60px, 8vw, 110px) clamp(24px, 6vw, 100px); }
.closing .motto-big { font-family: var(--f-display); font-size: clamp(36px, 6.4vw, 96px); line-height: 1.08; letter-spacing: .04em; margin: 40px 0 26px; font-weight: 500; }
.closing .trans { font-family: var(--f-sans); font-size: clamp(11px, 1.15vw, 15px); letter-spacing: .38em; color: var(--gold); font-weight: 600; }
.closing .mono { --s: 92px; margin: 0 auto; }
.closing .frame-box { position: relative; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  padding: calc(var(--nav-h) + clamp(70px, 9vw, 130px)) 0 clamp(70px, 8vw, 110px); overflow: hidden;
  background: radial-gradient(ellipse 60% 80% at 85% 0%, rgba(199,163,107,.14), transparent 60%), var(--midnight);
  border-bottom: 1px solid var(--line-gold-soft);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { margin: 26px 0 0; }
.page-hero .ph-lede { max-width: 760px; margin-top: 28px; }
.page-hero .ph-src { position: absolute; right: 0; bottom: 0; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--mist-2); }
.page-hero .ph-mark { position: absolute; right: -2%; top: 50%; transform: translateY(-50%); font-family: var(--f-display); font-size: clamp(140px, 22vw, 340px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(199,163,107,.16); pointer-events: none; user-select: none; }
.crumbs { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--mist-2); display: flex; gap: 10px; }
.crumbs a { color: var(--gold); text-decoration: none; }

/* Next-route band */
.next-band { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-gold-soft); }
.next-band a { padding: 56px clamp(24px, 4vw, 64px); text-decoration: none; display: grid; gap: 10px; transition: background .5s; position: relative; }
.next-band a + a { border-left: 1px solid var(--line-gold-soft); text-align: right; }
.next-band a:hover { background: var(--royal); }
.next-band small { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.next-band span { font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 36px); letter-spacing: .06em; }

/* ---------- Footer ---------- */
.footer { background: #051526; border-top: 1px solid var(--line-gold-soft); padding: 90px 0 36px; position: relative; overflow: hidden; }
.footer .f-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1.1fr; gap: 48px; }
.footer h5 { margin: 0 0 18px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; color: var(--mist); font-size: 15px; transition: color .3s; }
.footer a:hover, .footer a:focus-visible { color: var(--gold); }
.footer .f-desc { color: var(--mist-2); font-size: 15px; max-width: 380px; margin: 22px 0 0; }
.footer .f-motto { font-family: var(--f-serif); font-style: italic; font-size: 22px; color: var(--gold-hi); margin-top: 22px; }
.footer .f-addr { font-size: 15px; color: var(--mist); font-style: normal; line-height: 1.7; }
.footer .f-bottom { margin-top: 70px; padding-top: 26px; border-top: 1px solid var(--line-gold-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--mist-2); }
.footer .f-word { font-family: var(--f-display); font-size: clamp(64px, 15vw, 230px); letter-spacing: .14em; line-height: .8; text-align: center; margin: 60px 0 0; color: transparent; -webkit-text-stroke: 1px rgba(199,163,107,.18); user-select: none; white-space: nowrap; }

/* ---------- Utilities: cursor, to-top ---------- */
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(199,163,107,.11), transparent 62%); mix-blend-mode: screen; opacity: 0; transition: opacity .6s;
}
.cursor-dot { position: fixed; left: 0; top: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--gold); pointer-events: none; z-index: 150; opacity: 0; transition: opacity .3s, transform .3s var(--ease); }
.cursor-ring { position: fixed; left: 0; top: 0; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 1px solid rgba(199,163,107,.6); pointer-events: none; z-index: 150; opacity: 0; transition: opacity .3s, width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s; }
.has-cursor .cursor-dot, .has-cursor .cursor-ring, .has-cursor .cursor-glow { opacity: 1; }
.cursor-ring.hot { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(199,163,107,.08); }
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 80; width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid var(--gold); background: rgba(7,26,47,.85); backdrop-filter: blur(8px); cursor: pointer;
  display: grid; place-items: center; opacity: 0; transform: translateY(20px); pointer-events: none; transition: .5s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg.ar { width: 18px; height: 18px; color: var(--gold); }
.to-top svg.prog { position: absolute; inset: -1px; width: 54px; height: 54px; transform: rotate(-90deg); }
.to-top svg.prog circle { fill: none; stroke: var(--gold-hi); stroke-width: 1.5; stroke-dasharray: 163; stroke-dashoffset: 163; }
.to-top:hover { background: var(--gold); }
.to-top:hover svg.ar { color: var(--midnight); }

/* Reveal defaults (JS sets initial state; content visible if JS fails) */
.js .rv { opacity: 0; transform: translateY(36px); }
.js .rv-line { transform: scaleX(0); transform-origin: left; }

/* Source map table */
.smap { width: 100%; border-collapse: collapse; font-size: 15px; }
.smap th, .smap td { text-align: left; padding: 16px 14px; border-bottom: 1px solid rgba(181,148,91,.4); vertical-align: top; }
.smap th { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #8a6c38; }
.smap td:first-child { font-family: var(--f-display); white-space: nowrap; }
.smap a { color: #7b5f2f; }
.smap .ok { color: #2f6b45; font-weight: 700; }
.verify-list { display: grid; gap: 14px; margin-top: 28px; }
.verify-list div { padding: 18px 20px; border: 1px dashed rgba(181,148,91,.7); background: var(--white); }
.verify-list b { font-family: var(--f-display); letter-spacing: .04em; }
.verify-list p { margin: 6px 0 0; font-size: 15px; color: var(--ink-soft); }

/* 404 */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 40px) 24px 80px; }
.nf .code { font-family: var(--f-display); font-size: clamp(120px, 22vw, 260px); line-height: .9; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-cta { display: none; }
}
@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { padding: 30vh 0 120px; }
  .hero-canvas { opacity: .55; }
  .scene-skel .ring, .scene-fallback .mono { margin-left: 0; }
  .split, .contact-grid, .proc-intro { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { min-height: 0; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .svc, .svc:nth-child(4), .svc:nth-child(5) { grid-column: span 1; }
  .svc:nth-child(5) { grid-column: 1 / -1; }
  .timeline { grid-template-columns: 1fr; }
  .tl-aside { position: sticky; top: 70px; z-index: 5; background: rgba(7,26,47,.92); backdrop-filter: blur(10px); padding: 14px 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; border-bottom: 1px solid var(--line-gold-soft); }
  .tl-counter .cur { font-size: 40px; display: inline; }
  .tl-meter { margin: 0; grid-column: 1 / -1; }
  .tl-aside .tl-stage-name { margin: 0; min-height: 0; font-size: 18px; }
  .mini-tl { grid-template-columns: 1fr; gap: 0; }
  .mini-tl::before, .mini-tl .ml-line { display: none; }
  .mini-tl li { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line-gold-soft); }
  .mini-tl .md { margin: 0; }
  .mini-tl .mtime { margin: 0; }
  .footer .f-grid { grid-template-columns: 1fr 1fr; }
  .scene-tip { display: none; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  :root { --wrap: calc(100vw - 36px); --nav-h: 72px; }
  .services-grid { grid-template-columns: 1fr; }
  .svc:nth-child(5) { grid-column: auto; }
  .svc { min-height: 0; padding: 34px 26px 30px; }
  .clients-row, .scope-grid, .form-grid, .fee-viz, .next-band { grid-template-columns: 1fr; }
  .fee-viz .fee + .fee { border-left: 0; border-top: 1px solid rgba(181,148,91,.6); }
  .fee-mid { display: none; }
  .next-band a + a { border-left: 0; border-top: 1px solid var(--line-gold-soft); text-align: left; }
  .terms-list li { grid-template-columns: 1fr; gap: 12px; }
  .tl-item { padding-left: 0; }
  .tl-dot { position: relative; width: 48px; height: 48px; font-size: 13px; margin-bottom: 10px; display: none; }
  .tl-rail { display: none; }
  .tl-head { flex-wrap: wrap; gap: 10px 14px; padding: 16px 18px; }
  .tl-head .tl-num { display: inline-grid !important; }
  .tl-head .tl-title { flex-basis: calc(100% - 80px); }
  .tl-end { padding-left: 0; }
  .tl-body dl { grid-template-columns: 1fr; gap: 2px; }
  .tl-body .inner { margin: 0 18px; }
  .footer .f-grid { grid-template-columns: 1fr; }
  .frame::before { inset: 10px; }
  .frame > .corner { display: none; }
  .page-hero .ph-src { position: static; margin-top: 30px; }
  .smap td:first-child { white-space: normal; }
  .hero h1 { letter-spacing: .08em; }
}
.tl-num { display: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gold); place-items: center; font-family: var(--f-display); font-size: 12px; color: var(--gold); flex: none; }
.tl-item.active .tl-num { background: var(--gold); color: var(--midnight); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .rv { opacity: 1; transform: none; }
  .js .rv-line { transform: none; }
  .cursor-glow, .cursor-dot, .cursor-ring { display: none; }
}
@media (hover: none) { .cursor-glow, .cursor-dot, .cursor-ring { display: none; } }
@media print {
  .nav, .to-top, .cursor-glow, .cursor-dot, .cursor-ring, .hero-canvas, .seal-stage canvas { display: none !important; }
  body { background: #fff; color: #000; }
}
