/* ==========================================================================
   Atlas Travel Management — Design System
   Cinematic / immersive — dark midnight + molten gold
   ========================================================================== */

/* ---------- Tokens ------------------------------------------------------- */
:root {
  /* Color */
  --bg-0:     #06090F;            /* near-black, page bg */
  --bg-1:     #0A0E1A;            /* midnight base */
  --bg-2:     #111726;            /* card surface */
  --bg-3:     #18203A;            /* elevated surface */
  --line:     rgba(245, 241, 232, 0.08);
  --line-strong: rgba(245, 241, 232, 0.18);

  --ink-0:    #F5F1E8;            /* ivory, primary text */
  --ink-1:    #C9C2B4;            /* warm gray, secondary */
  --ink-2:    #8A8579;            /* muted */
  --ink-3:    #5C5A52;            /* faint */

  --gold:     #D4A574;            /* molten gold accent */
  --gold-soft: #E8C8A0;
  --gold-deep: #A47A4D;

  --cyan:     #7DD3FC;            /* arctic cyan, route lines */
  --cyan-deep: #38BDF8;

  --danger:   #F87171;
  --success:  #86EFAC;

  /* Type */
  --font-display: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Type scale (fluid) */
  --fs-xs:  clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --fs-sm:  clamp(0.875rem, 0.85rem + 0.2vw, 0.9375rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-md:  clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
  --fs-lg:  clamp(1.375rem, 1.2rem + 0.8vw, 1.625rem);
  --fs-xl:  clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem);
  --fs-2xl: clamp(2.25rem, 1.7rem + 2.6vw, 3.25rem);
  --fs-3xl: clamp(2.75rem, 2rem + 3.5vw, 4.25rem);
  --fs-4xl: clamp(3.5rem, 2.4rem + 5vw, 6rem);

  /* Space (8pt-ish) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;
  --s-11: 12rem;

  /* Radius */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.5);
  --glow-gold: 0 0 0 1px rgba(212, 165, 116, 0.4), 0 8px 32px rgba(212, 165, 116, 0.18);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0.05, 0.36, 1);
  --dur-fast: 200ms;
  --dur: 400ms;
  --dur-slow: 800ms;
  --dur-slower: 1200ms;

  /* Layout */
  --container: 1240px;
  --container-narrow: 880px;
  --container-wide: 1440px;
  --header-h: 76px;
}

/* ---------- Reset / base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-0);
  color: var(--ink-0);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  /* Subtle film grain backdrop */
  background-image:
    radial-gradient(ellipse at top, rgba(212, 165, 116, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(125, 211, 252, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
  background-attachment: fixed;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: var(--bg-0); }

/* ---------- Typography --------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-0);
}
h1 { font-size: var(--fs-4xl); font-weight: 400; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); font-weight: 600; font-family: var(--font-body); letter-spacing: 0; }
h6 { font-size: var(--fs-md); font-weight: 600; font-family: var(--font-body); letter-spacing: 0; }

p { color: var(--ink-1); max-width: 64ch; }
p.lead { font-size: var(--fs-md); color: var(--ink-0); max-width: 56ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.serif { font-family: var(--font-display); font-style: italic; font-weight: 400; }
.mono  { font-family: var(--font-mono); }
.muted { color: var(--ink-2); }

/* ---------- Layout primitives ------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-5); }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--s-5); }
.container-wide   { width: 100%; max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--s-5); }

.section { padding-block: var(--s-10); position: relative; }
.section-tight { padding-block: var(--s-8); }

.stack > * + * { margin-top: var(--s-5); }
.stack-lg > * + * { margin-top: var(--s-7); }
.stack-sm > * + * { margin-top: var(--s-3); }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.row { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }
.row-end { justify-content: flex-end; }
.row-between { justify-content: space-between; }

/* ---------- Header / Nav ------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: linear-gradient(180deg, rgba(6,9,15,0.85) 0%, rgba(6,9,15,0) 100%);
  backdrop-filter: blur(0px);
  transition: backdrop-filter var(--dur), background var(--dur), border-color var(--dur);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  backdrop-filter: blur(16px) saturate(140%);
  background: rgba(6, 9, 15, 0.7);
  border-bottom-color: var(--line);
}
.site-header .container-wide { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }

.brand { display: flex; align-items: center; gap: var(--s-3); }
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--bg-0);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; }
.brand-tag  { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--ink-2); letter-spacing: 0.12em; text-transform: uppercase; }

.nav-links {
  display: flex; align-items: center; gap: var(--s-6);
  list-style: none;
}
.nav-links a {
  position: relative;
  font-size: var(--fs-sm);
  color: var(--ink-1);
  transition: color var(--dur-fast);
  padding-block: var(--s-2);
}
.nav-links a:hover { color: var(--ink-0); }
.nav-links a.is-active { color: var(--gold); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--dur) var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.is-active::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: var(--s-3); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  color: var(--ink-0);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-secondary { display: none; }
  .nav-cta .btn { padding-inline: var(--s-4); }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0;
  background: rgba(6,9,15,0.96);
  backdrop-filter: blur(20px);
  z-index: 200;
  display: none;
  flex-direction: column;
  padding: var(--s-7) var(--s-5);
}
.mobile-drawer.is-open { display: flex; }
.mobile-drawer .drawer-close {
  position: absolute; top: var(--s-5); right: var(--s-5);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--ink-0);
}
.mobile-drawer ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-5); margin-top: var(--s-9); }
.mobile-drawer a { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 400; }
.mobile-drawer a.is-active { color: var(--gold); }
.mobile-drawer .drawer-foot { margin-top: auto; color: var(--ink-2); font-size: var(--fs-sm); }
.mobile-drawer .drawer-foot a { font-family: var(--font-body); font-size: var(--fs-sm); }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.875rem 1.5rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--r-pill);
  transition: all var(--dur) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }

.btn-primary {
  background: var(--gold);
  color: var(--bg-0);
  box-shadow: var(--glow-gold);
}
.btn-primary:hover {
  background: var(--gold-soft);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--gold), 0 12px 40px rgba(212, 165, 116, 0.35);
}
.btn-primary:hover svg { transform: translateX(3px); }

.btn-secondary {
  background: transparent;
  color: var(--ink-0);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 165, 116, 0.06);
}
.btn-secondary:hover svg { transform: translateX(3px); }

.btn-ghost {
  color: var(--ink-1);
  padding: 0.625rem 1rem;
}
.btn-ghost:hover { color: var(--ink-0); background: rgba(245,241,232,0.04); }

.btn-lg { padding: 1.125rem 2rem; font-size: var(--fs-base); }
.btn-sm { padding: 0.5rem 1rem; font-size: var(--fs-xs); }

/* ---------- Hero --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + var(--s-7));
  padding-bottom: var(--s-7);
  overflow: hidden;
  isolation: isolate;
}

/* ============================================================
   Makhno-style hero — single cinematic scene + arch hotspots
   ============================================================ */
.hero-mk {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg-0);
  overflow: hidden;
  isolation: isolate;
}

/* Full-bleed background scene */
.hero-mk__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-mk__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
  filter: brightness(0.92) contrast(1.04);
  animation: heroSceneBreathe 24s ease-in-out infinite alternate;
  transform-origin: 50% 60%;
}
@keyframes heroSceneBreathe {
  from { transform: scale(1); }
  to   { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mk__bg img { animation: none; transform: none; }
}

.hero-mk__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(6,9,15,0.55) 0%,
      rgba(6,9,15,0.10) 18%,
      rgba(6,9,15,0.35) 42%,
      rgba(6,9,15,0.35) 58%,
      rgba(6,9,15,0.10) 75%,
      rgba(6,9,15,0.85) 100%);
}

/* Heading — top of viewport, overlaid on scene */
.hero-mk__head {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: calc(var(--header-h) + var(--s-6)) var(--s-5) 0;
  max-width: 1500px;
  margin-inline: auto;
  width: 100%;
}
.hero-mk__head .eyebrow { justify-content: center; display: inline-flex; }
.hero-mk__head .eyebrow::before { display: none; }

.hero-mk__heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 5vw + 1rem, 6.5rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--ink-0);
  margin-top: var(--s-3);
  text-shadow: 0 1px 24px rgba(0,0,0,0.4);
}
.hero-mk__heading-accent,
.hero-mk__heading-accent .char {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-mk__sub {
  margin: var(--s-3) auto 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-1);
}

/* Hotspots layer — absolutely positioned over scene */
.hero-mk__hotspots {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.hotspot {
  position: absolute;
  left: var(--hs-x, 50%);
  top: var(--hs-y, 50%);
  transform: translate(-50%, -50%);
  pointer-events: auto;
  text-decoration: none;
  color: var(--ink-0);
  width: clamp(150px, 14vw, 320px);
  height: clamp(280px, 28vw, 600px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

/* ============================================================
   Sunshine focus — hovering an arch intensifies golden light
   through that specific arch while gently shadowing the rest
   ============================================================ */
.hero-mk__shadow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: rgba(6, 9, 15, 0);
  transition: background 900ms var(--ease-out);
}
.hero-mk__shadow.is-dim {
  background: rgba(6, 9, 15, 0.42);
}

.hero-mk__lights {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

/* Each light is a narrow sun-cone — tight apex above the arch widening
   only slightly toward the floor, ALWAYS staying within the arch silhouette.
   On hover, the cone "pours through" from top by scaling Y from the apex. */
.hero-mk__light {
  position: absolute;
  top: 0;
  left: var(--lx);
  width: 16%;            /* narrow box that hugs the arch's actual width */
  height: 100%;
  transform: translateX(-50%) translateY(-6%) scaleY(0.55);
  transform-origin: 50% 0%;  /* scale from the top — light "descends" */
  /* Cone polygon — narrow apex, slightly wider base, all within the arch */
  clip-path: polygon(
    32% 5%,
    68% 5%,
    80% 96%,
    20% 96%
  );
  background:
    /* Sun bloom at apex */
    radial-gradient(ellipse 48% 28% at 50% 14%,
      rgba(255, 238, 200, 0.95) 0%,
      rgba(255, 222, 175, 0.65) 28%,
      rgba(255, 205, 145, 0.32) 58%,
      rgba(255, 195, 135, 0.08) 82%,
      transparent 100%),
    /* Soft warm fill through the cone */
    linear-gradient(180deg,
      rgba(255, 224, 175, 0.48) 12%,
      rgba(255, 215, 160, 0.28) 45%,
      rgba(255, 205, 145, 0.12) 75%,
      transparent 100%);
  mix-blend-mode: screen;
  filter: blur(22px);
  opacity: 0;
  transition:
    opacity 1500ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1500ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 1500ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

/* Active state — light "pours" down from the apex through the arch to the floor */
.hero-mk__light.is-active {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scaleY(1);
  filter: blur(24px);
}

@media (prefers-reduced-motion: reduce) {
  .hero-mk__light, .hero-mk__shadow { transition: none; }
  .hero-mk__light {
    transform: translateX(-50%) translateY(0) scaleY(1);
  }
}

/* The cursor-target reticle (Makhno-style: square frame + center dot) */
.hotspot__target {
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  transition: transform 500ms var(--ease-out);
}
.hotspot__corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(245, 241, 232, 0.7);
  background: transparent;
  transition: border-color 400ms var(--ease-out), width 400ms var(--ease-out), height 400ms var(--ease-out);
}
.hotspot__corner--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hotspot__corner--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hotspot__corner--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hotspot__corner--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hotspot__dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(245, 241, 232, 0.9);
  transform: translate(-50%, -50%);
  transition: background 400ms, box-shadow 400ms, width 400ms, height 400ms;
}

/* Hover — turns gold, expands corners, dot glows */
.hotspot:hover .hotspot__target,
.hotspot:focus-visible .hotspot__target {
  transform: scale(1.25);
}
.hotspot:hover .hotspot__corner,
.hotspot:focus-visible .hotspot__corner {
  border-color: var(--gold);
  width: 16px;
  height: 16px;
}
.hotspot:hover .hotspot__dot,
.hotspot:focus-visible .hotspot__dot {
  background: var(--gold);
  width: 7px;
  height: 7px;
  box-shadow: 0 0 14px var(--gold), 0 0 28px rgba(212, 165, 116, 0.4);
}

/* Hotspot label below the target (flex flow within hotspot column) */
.hotspot__label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-align: center;
  flex-shrink: 0;
}
.hotspot__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  opacity: 0.85;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
  transition: opacity 400ms;
}
.hotspot__name {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-0);
  position: relative;
  padding: 6px 12px 9px;
  background: rgba(6, 9, 15, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0.5px solid rgba(212, 165, 116, 0.25);
  border-radius: 2px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  transition: color 400ms, background 400ms, border-color 400ms;
}
.hotspot__name::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 500ms var(--ease-out), left 500ms var(--ease-out);
}
.hotspot:hover .hotspot__num { opacity: 1; }
.hotspot:hover .hotspot__name {
  color: var(--gold);
  background: rgba(6, 9, 15, 0.75);
  border-color: var(--gold);
}
.hotspot:hover .hotspot__name::after { width: 100%; left: 0; }

/* Hero foot (stats + scroll) */
.hero-mk__foot {
  position: relative;
  z-index: 5;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-5) var(--s-5);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: var(--s-4);
}
.hero-mk__stats {
  display: flex;
  gap: var(--s-7);
  flex-wrap: wrap;
}
.hero-mk__stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero-mk__stats strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-md);
  color: var(--ink-0);
  letter-spacing: -0.02em;
}

/* Mobile — stack hotspots horizontally, smaller scene */
@media (max-width: 768px) {
  .hero-mk { min-height: 100svh; }
  .hero-mk__heading { font-size: clamp(2rem, 11vw, 3.5rem); }
  .hero-mk__hotspots { display: flex; align-items: center; justify-content: space-around; padding: 0 var(--s-4); top: 60%; bottom: auto; height: auto; }
  .hotspot { position: relative; left: auto; top: auto; transform: none; --hs-x: auto; --hs-y: auto; }
}

/* The 2x2 grid of service blocks */
.hero-mk__grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  background: rgba(245, 241, 232, 0.06);
  min-height: 64vh;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .hero-mk__grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, minmax(40vh, 1fr));
  }
  .hero-mk__heading { font-size: clamp(2.5rem, 12vw, 5rem); }
}

/* Individual service block (editorial card) */
.hero-block {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-1);
  isolation: isolate;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.hero-block__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-block__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.42) saturate(0.7) grayscale(0.35) contrast(1.05);
  transform: scale(1.06);
  transition:
    filter 900ms var(--ease-out),
    transform 1.4s var(--ease-out);
  will-change: transform, filter;
}
.hero-block:hover .hero-block__bg img,
.hero-block:focus-visible .hero-block__bg img {
  filter: brightness(0.7) saturate(1.05) grayscale(0);
  transform: scale(1);
}

.hero-block__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(6,9,15,0.35) 0%, rgba(6,9,15,0.78) 100%);
  pointer-events: none;
  transition: background 900ms var(--ease-out);
}
.hero-block:hover .hero-block__overlay {
  background: linear-gradient(180deg, rgba(6,9,15,0.15) 0%, rgba(6,9,15,0.55) 100%);
}

/* Animated gold outline borders — draw in on hover */
.hero-block__outline {
  position: absolute;
  background: var(--gold);
  z-index: 4;
  pointer-events: none;
  transition: transform 600ms var(--ease-out);
}
.hero-block__outline--top, .hero-block__outline--bottom {
  height: 1px; left: 0; right: 0;
  transform: scaleX(0);
}
.hero-block__outline--left, .hero-block__outline--right {
  width: 1px; top: 0; bottom: 0;
  transform: scaleY(0);
}
.hero-block__outline--top { top: 0; transform-origin: left center; }
.hero-block__outline--right { right: 0; transform-origin: center top; }
.hero-block__outline--bottom { bottom: 0; transform-origin: right center; }
.hero-block__outline--left { left: 0; transform-origin: center bottom; }

.hero-block:hover .hero-block__outline--top { transform: scaleX(1); transition-delay: 0ms; }
.hero-block:hover .hero-block__outline--right { transform: scaleY(1); transition-delay: 120ms; }
.hero-block:hover .hero-block__outline--bottom { transform: scaleX(1); transition-delay: 240ms; }
.hero-block:hover .hero-block__outline--left { transform: scaleY(1); transition-delay: 360ms; }

/* Block content (text overlay) */
.hero-block__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--s-7) var(--s-7) var(--s-7);
  gap: var(--s-3);
}

.hero-block__num {
  position: absolute;
  top: var(--s-6);
  left: var(--s-7);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.7;
  transition: opacity 600ms var(--ease-out);
}
.hero-block:hover .hero-block__num { opacity: 1; }

.hero-block__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-1);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  opacity: 0.65;
  transition: opacity 600ms var(--ease-out), color 600ms var(--ease-out);
}
.hero-block__label::after {
  content: '→';
  display: inline-block;
  transition: transform 500ms var(--ease-out);
}
.hero-block:hover .hero-block__label { opacity: 1; color: var(--gold); }
.hero-block:hover .hero-block__label::after { transform: translateX(8px); }

.hero-block__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 4.5vw + 0.5rem, 5.5rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--ink-0);
  transition: transform 700ms var(--ease-out), letter-spacing 700ms var(--ease-out);
}
.hero-block:hover .hero-block__title {
  transform: translateY(-6px);
  letter-spacing: -0.035em;
}
.hero-block__title::after {
  content: '';
  display: block;
  margin-top: var(--s-2);
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 800ms var(--ease-out);
}
.hero-block:hover .hero-block__title::after { width: 60px; }

.hero-block__desc {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--ink-1);
  max-width: 36ch;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms var(--ease-out) 100ms, transform 600ms var(--ease-out) 100ms;
  margin-top: var(--s-2);
}
.hero-block:hover .hero-block__desc { opacity: 1; transform: none; }

/* Glass-point cursor follower (visible inside blocks) */
.glass-point {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(212, 165, 116, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 400ms var(--ease-out);
  z-index: 5;
  display: grid;
  place-items: center;
}
.glass-point__inner {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}
.hero-block:hover .glass-point { transform: translate(-50%, -50%) scale(1); }

/* Hero footer (stats + scroll cue) */
.hero-mk__foot {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-5) var(--s-5);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: var(--s-4);
}
.hero-mk__stats {
  display: flex;
  gap: var(--s-7);
  flex-wrap: wrap;
}
.hero-mk__stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero-mk__stats strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-md);
  color: var(--ink-0);
  letter-spacing: -0.02em;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-block__bg img { transform: none; transition: none; }
  .hero-block__outline { transition: none; }
}

/* Legacy globe styles kept (no-op when not used) */
.hero-globe {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-globe canvas { width: 100% !important; height: 100% !important; display: block; }
.hero-vignette {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 65%, var(--bg-0) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 920px;
}
.hero h1 {
  margin-top: var(--s-5);
  background: linear-gradient(180deg, var(--ink-0) 0%, var(--ink-1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .accent {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: var(--s-5);
  font-size: var(--fs-md);
  max-width: 640px;
  color: var(--ink-1);
}
.hero-actions {
  margin-top: var(--s-7);
  display: flex; flex-wrap: wrap; gap: var(--s-3);
}

.hero-meta {
  position: absolute;
  bottom: var(--s-6);
  left: 0; right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--s-5);
  flex-wrap: wrap;
  pointer-events: none;
}
.hero-meta > * { pointer-events: auto; }

.hero-stats {
  display: flex;
  gap: var(--s-7);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { font-family: var(--font-display); font-style: italic; font-size: var(--fs-lg); font-weight: 400; color: var(--ink-0); letter-spacing: -0.02em; }

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.scroll-cue::after {
  content: '';
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, var(--ink-2) 0%, transparent 100%);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { transform: scaleY(1); opacity: 1; }
  50%     { transform: scaleY(0.4); opacity: 0.4; }
}

@media (max-width: 720px) {
  .hero-stats { display: none; }
  .hero-meta { justify-content: center; }
}

/* ---------- Cards / Service tiles --------------------------------------- */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur), box-shadow var(--dur);
  overflow: hidden;
  isolation: isolate;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(212,165,116,0.10), transparent 40%);
  opacity: 0;
  transition: opacity var(--dur);
  z-index: -1;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(212,165,116,0.15) 0%, rgba(212,165,116,0.04) 100%);
  border: 1px solid rgba(212,165,116,0.25);
  color: var(--gold);
  margin-bottom: var(--s-4);
}
.card-icon svg { width: 22px; height: 22px; }
.card h3, .card h4 { margin-bottom: var(--s-3); }
.card h3 { font-size: var(--fs-xl); }
.card p  { color: var(--ink-1); font-size: var(--fs-sm); }

.card-link {
  margin-top: var(--s-5);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap var(--dur) var(--ease-out);
}
.card-link:hover { gap: 14px; }
.card-link::after {
  content: '→';
  transition: transform var(--dur) var(--ease-out);
}
.card-link:hover::after { transform: translateX(4px); }

/* Service tile (large) */
.service-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: var(--s-7) var(--s-6) var(--s-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(17, 23, 38, 0.85) 0%, rgba(10, 14, 26, 0.95) 100%);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur);
}
.service-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--tile-art, linear-gradient(135deg, rgba(212,165,116,0.08), rgba(125,211,252,0.06)));
  opacity: 0.55;
  transition: opacity var(--dur), transform 1.2s var(--ease-out);
}
.service-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 0%, rgba(6,9,15,0.85) 70%, var(--bg-1) 100%);
}
.service-tile:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.service-tile:hover::before { opacity: 0.85; transform: scale(1.04); }

.service-tile .tile-num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  color: var(--ink-2);
  text-transform: uppercase;
}
.service-tile h3 {
  font-size: var(--fs-2xl);
  margin-top: var(--s-3);
  max-width: 18ch;
}
.service-tile p {
  margin-top: var(--s-4);
  color: var(--ink-1);
  max-width: 38ch;
}
.service-tile .tile-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-6);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
}

/* ---------- Process / timeline ------------------------------------------ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process-step {
  padding: var(--s-7) var(--s-5);
  border-right: 1px solid var(--line);
  position: relative;
}
.process-step:last-child { border-right: 0; }
.process-step .step-num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}
.process-step h4 {
  margin-top: var(--s-3);
  font-size: var(--fs-lg);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.process-step p { margin-top: var(--s-3); color: var(--ink-1); font-size: var(--fs-sm); }
.process-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 600ms var(--ease-out);
}
.process-step.is-revealed::before { width: 100%; }
@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .process-step:last-child { border-bottom: 0; }
}

/* ---------- Pillars / why-us -------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
@media (max-width: 1100px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .pillars { grid-template-columns: 1fr; } }

.pillar {
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(17, 23, 38, 0.4);
  transition: border-color var(--dur), background var(--dur);
}
.pillar:hover { border-color: var(--gold); background: rgba(212,165,116,0.04); }
.pillar svg { width: 28px; height: 28px; color: var(--gold); }
.pillar h5 { margin-top: var(--s-4); font-size: var(--fs-md); font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
.pillar p  { margin-top: var(--s-3); color: var(--ink-1); font-size: var(--fs-sm); }

/* ---------- Stats band -------------------------------------------------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: var(--s-7) var(--s-5);
  border-right: 1px solid var(--line);
  text-align: left;
}
.stat:last-child { border-right: 0; }
.stat .stat-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-3xl);
  letter-spacing: -0.03em;
  color: var(--ink-0);
  line-height: 1;
}
.stat .stat-num .unit { font-size: 0.55em; color: var(--gold); margin-left: 4px; }
.stat .stat-label {
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
@media (max-width: 900px) {
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Section heading --------------------------------------------- */
.sec-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-7);
  align-items: end;
  margin-bottom: var(--s-8);
}
.sec-head h2 { max-width: 18ch; }
.sec-head .sec-lead { color: var(--ink-1); font-size: var(--fs-md); max-width: 56ch; }
@media (max-width: 900px) {
  .sec-head { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* ---------- Pricing tiers ---------------------------------------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

.tier {
  padding: var(--s-7);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  display: flex; flex-direction: column;
  transition: border-color var(--dur), transform var(--dur);
}
.tier:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.tier.is-featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(212,165,116,0.08) 0%, var(--bg-1) 60%);
  box-shadow: var(--glow-gold);
}
.tier .tier-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.tier h3 { margin-top: var(--s-3); font-size: var(--fs-xl); font-family: var(--font-display); font-weight: 500; }
.tier .price {
  margin-top: var(--s-5);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-2xl);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink-0);
}
.tier .price small { font-style: normal; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-2); display: block; margin-top: 4px; letter-spacing: 0.12em; text-transform: uppercase; }
.tier .tier-desc { margin-top: var(--s-4); color: var(--ink-1); font-size: var(--fs-sm); }
.tier ul { margin-top: var(--s-5); list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.tier ul li { font-size: var(--fs-sm); color: var(--ink-1); padding-left: 28px; position: relative; }
.tier ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 18px; height: 1px;
  background: var(--gold);
}
.tier .btn { margin-top: auto; }
.tier-foot { margin-top: var(--s-6); }

/* ---------- FAQ accordion ---------------------------------------------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-0);
  transition: color var(--dur);
}
.faq-q:hover { color: var(--gold); }
.faq-q .icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur);
}
.faq-item.is-open .faq-q .icon { transform: rotate(45deg); border-color: var(--gold); color: var(--gold); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur) var(--ease-out);
}
.faq-a-inner { padding-bottom: var(--s-6); padding-right: var(--s-9); color: var(--ink-1); font-size: var(--fs-base); }
.faq-item.is-open .faq-a { max-height: 800px; }

/* ---------- Form ------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; } }

.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(17, 23, 38, 0.5);
  color: var(--ink-0);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: var(--fs-base);
  transition: border-color var(--dur), background var(--dur), box-shadow var(--dur);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; font-family: inherit; }
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9C2B4' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(17, 23, 38, 0.8);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.15);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.form-status {
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  display: none;
}
.form-status.is-success { display: block; background: rgba(134,239,172,0.08); border: 1px solid rgba(134,239,172,0.4); color: var(--success); }
.form-status.is-error   { display: block; background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.4); color: var(--danger); }

/* ---------- Disclosure / callout ---------------------------------------- */
.callout {
  padding: var(--s-5) var(--s-6);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(125, 211, 252, 0.04);
  border-left: 3px solid var(--cyan);
  font-size: var(--fs-sm);
  color: var(--ink-1);
}
.callout.is-warn { background: rgba(248,113,113,0.04); border-left-color: var(--danger); }
.callout strong { color: var(--ink-0); }

/* ---------- Footer ----------------------------------------------------- */
.site-footer {
  margin-top: var(--s-10);
  padding-block: var(--s-9) var(--s-6);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse at top, rgba(212,165,116,0.04) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--s-7);
  align-items: start;
  margin-bottom: var(--s-8);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h6 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-4);
}
.footer-grid ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.footer-grid a { color: var(--ink-1); font-size: var(--fs-sm); transition: color var(--dur-fast); }
.footer-grid a:hover { color: var(--ink-0); }

.footer-brand-block p { margin-top: var(--s-4); color: var(--ink-1); font-size: var(--fs-sm); max-width: 36ch; }
.footer-contact { margin-top: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); font-size: var(--fs-sm); color: var(--ink-1); }
.footer-contact a { color: var(--ink-0); }

.footer-base {
  border-top: 1px solid var(--line);
  padding-top: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
.footer-base a { color: var(--ink-2); }
.footer-base a:hover { color: var(--ink-0); }
.footer-disclaimer { color: var(--ink-3); font-size: var(--fs-xs); max-width: 90ch; margin-top: var(--s-5); line-height: 1.6; }

/* ---------- Page header (inner pages) ----------------------------------- */
.page-header {
  position: relative;
  padding-top: calc(var(--header-h) + var(--s-9));
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 30%, rgba(212,165,116,0.08), transparent 60%),
    radial-gradient(ellipse 50% 80% at 0% 80%, rgba(125,211,252,0.05), transparent 60%);
  z-index: 1;
  pointer-events: none;
}
.page-header > * { position: relative; z-index: 2; }
.page-header h1 { font-size: var(--fs-3xl); margin-top: var(--s-4); max-width: 22ch; }
.page-header p.lead { margin-top: var(--s-5); }

/* Background image layer for page headers */
.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.page-header > .page-header-bg { z-index: 0; }
.page-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.92) brightness(0.82);
}
.page-header-bg::after {
  /* Soft gold edge wash that sits between bg and overlay */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 30%, rgba(212,165,116,0.18), transparent 60%);
  pointer-events: none;
}

/* Darker overlay when bg image is present (legibility) */
.page-header.has-bg::before {
  background:
    radial-gradient(ellipse 80% 60% at 80% 30%, rgba(212,165,116,0.10), transparent 60%),
    radial-gradient(ellipse 50% 80% at 0% 80%, rgba(125,211,252,0.06), transparent 60%),
    linear-gradient(180deg, rgba(6,9,15,0.55) 0%, rgba(6,9,15,0.92) 100%);
}
.page-header.has-bg {
  padding-top: calc(var(--header-h) + var(--s-10));
  padding-bottom: var(--s-9);
}
@media (prefers-reduced-motion: reduce) {
  .page-header-bg img { filter: none; }
}

/* ---------- Breadcrumb ------------------------------------------------- */
.crumb {
  display: flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.crumb a { color: var(--ink-2); }
.crumb a:hover { color: var(--gold); }
.crumb .sep { color: var(--ink-3); }

/* ---------- Reveal animation primitives -------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-revealed {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

/* Magnetic / cursor parallax */
.magnetic { transition: transform 200ms var(--ease-out); will-change: transform; }

/* Split-text letter-by-letter reveal */
[data-split-chars] .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40%);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  will-change: opacity, transform;
}
[data-split-chars].chars-revealed .char {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion fallback ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .scroll-cue::after { animation: none; }
}

/* ---------- Utilities -------------------------------------------------- */
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.full-bleed { width: 100vw; margin-left: calc(-50vw + 50%); }
.divider { height: 1px; background: var(--line); margin-block: var(--s-6); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -40px; left: 16px;
  background: var(--gold); color: var(--bg-0);
  padding: 8px 16px; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 500;
  z-index: 9999;
  transition: top var(--dur);
}
.skip-link:focus { top: 16px; }

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
