/* =============================================================
   1. Tokens
   ============================================================= */
@property --mesh-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@property --mesh-x {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 30%;
}
@property --mesh-y {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 40%;
}

:root {
  /* Neutrals — warm near-black, never pure #000 */
  --bg: #0b0b0a;
  --bg-2: #141310;
  --bg-3: #1d1c18;
  --bg-4: #26241e;

  /* Text */
  --cream: #ede9dd;
  --cream-2: #c7c2b2;
  --cream-3: #8c8779;

  /* Gold — sampled directly from the Lynx mark artwork */
  --gold-50: #fff8e7;
  --gold-200: #ffe9ae;
  --gold: #e4b563;
  --gold-600: #b9873e;
  --gold-900: #6b4c1f;

  /* Steel — cool secondary accent (the "engineering / global" counterpoint) */
  --steel: #7f95a0;
  --steel-dim: #4a5a61;
  --steel-bg: #202a2c;

  --line: rgba(237, 233, 221, 0.12);
  --line-strong: rgba(237, 233, 221, 0.22);

  --serif: "Fraunces", ui-serif, serif;
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1220px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4 {
  text-wrap: balance;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-family: var(--serif);
  font-weight: 500;
}
em {
  font-style: italic;
  color: var(--gold-200);
}
::selection {
  background: var(--gold);
  color: #1a1407;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  padding: 0.6rem 1rem;
  background: var(--cream);
  color: var(--bg);
  z-index: 9999;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.3s var(--ease-out);
}
.skip-link:focus {
  top: 1rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-200);
}
.kicker::before {
  content: "";
  width: 1.4em;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.section {
  position: relative;
  padding-block: clamp(4rem, 9vw, 8rem);
}
.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 {
  margin-top: 0.75rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
}
.section-head p {
  margin-top: 1rem;
  color: var(--cream-2);
  font-size: 1.05rem;
}
.section-with-mesh {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.section-with-mesh::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  background: radial-gradient(60% 50% at var(--mesh-x) var(--mesh-y), rgba(228, 181, 99, 0.22), transparent 62%),
    conic-gradient(from var(--mesh-angle), rgba(228, 181, 99, 0.14), rgba(127, 149, 160, 0.1), rgba(228, 181, 99, 0.14));
  filter: blur(90px) saturate(115%);
  opacity: 0.8;
  animation: meshShift 26s linear infinite;
  mix-blend-mode: screen;
}
@keyframes meshShift {
  0% {
    --mesh-angle: 0deg;
    --mesh-x: 30%;
    --mesh-y: 35%;
  }
  50% {
    --mesh-angle: 180deg;
    --mesh-x: 68%;
    --mesh-y: 55%;
  }
  100% {
    --mesh-angle: 360deg;
    --mesh-x: 30%;
    --mesh-y: 35%;
  }
}

/* =============================================================
   4. Typography
   ============================================================= */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-3);
}

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.45s var(--ease-soft), box-shadow 0.45s var(--ease-soft), background 0.35s var(--ease-out);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-200), var(--gold), var(--gold-600));
  color: #1a1407;
  box-shadow: 0 4px 14px rgba(228, 181, 99, 0.15), 0 1px 3px rgba(0, 0, 0, 0.2);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(228, 181, 99, 0.25), 0 10px 20px rgba(0, 0, 0, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-200);
  transform: translateY(-3px);
}
.btn:active {
  transform: translateY(-1px);
  transition-duration: 0.12s;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  padding-block: 1.1rem;
  transition: background-color 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
    padding 0.4s var(--ease-out);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav.is-scrolled {
  background: rgba(11, 11, 10, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-word b {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--cream);
}
.brand-word span {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.2rem;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 960px) {
  .nav-links {
    display: flex;
  }
}
.nav-link {
  position: relative;
  padding: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--cream-2);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav-link:hover {
  color: var(--cream);
}
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-cta {
  display: none;
}
@media (min-width: 720px) {
  .nav-cta {
    display: inline-flex;
    padding: 0.6rem 1.3rem;
    font-size: 0.85rem;
  }
}
.nav-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
}
@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--cream);
  position: relative;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-toggle span::before {
  position: absolute;
  top: -6px;
}
.nav-toggle span::after {
  position: absolute;
  top: 6px;
}
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  display: grid;
  place-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.65s var(--ease-soft);
}
.nav-mobile[aria-hidden="false"] {
  clip-path: inset(0);
}
.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  text-align: center;
}
.nav-mobile-links a {
  font-family: var(--serif);
  font-size: 1.8rem;
}

/* Cards (services / jurisdictions share tilt+halo mechanics) */
.card {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem;
  isolation: isolate;
}
.has-tilt {
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.55s var(--ease-soft), border-color 0.4s;
}
.has-tilt:hover {
  transition-duration: 0.15s;
  border-color: var(--line-strong);
}
.has-halo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(228, 181, 99, 0.22), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
}
.has-halo:hover::before {
  opacity: 1;
}
.card-n {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.card-title {
  margin-top: 0.9rem;
  font-size: 1.35rem;
}
.card-text {
  margin-top: 0.8rem;
  color: var(--cream-2);
  font-size: 0.96rem;
}
.card-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
  padding: 0;
}
.card-tags li {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  background: var(--steel-bg);
  border: 1px solid rgba(127, 149, 160, 0.25);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* Splash */
.splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: grid;
  place-items: center;
  pointer-events: auto;
  transition: opacity 0.9s, clip-path 1.1s;
  animation: splashSafety 0.01s 3.5s forwards;
}
.splash.is-out {
  opacity: 0;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
}
@keyframes splashSafety {
  to {
    opacity: 0;
    pointer-events: none;
    clip-path: inset(0 0 100% 0);
  }
}
.splash-mark {
  width: 72px;
  height: 72px;
  object-fit: contain;
  animation: splashPulse 1.8s var(--ease-soft) infinite;
}
@keyframes splashPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.97);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

/* Form fields */
.field {
  position: relative;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 1.3rem 1rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-3);
  color: var(--cream);
  font-family: inherit;
  font-size: 1rem;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  transition: all 0.25s var(--ease-out);
  color: var(--cream-3);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: 0.65rem;
  transform: none;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.field-select label {
  position: static;
  display: block;
  transform: none;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--cream-3);
}

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 4rem;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: -2;
  background: radial-gradient(55% 45% at var(--mesh-x) var(--mesh-y), rgba(228, 181, 99, 0.3), transparent 62%),
    radial-gradient(45% 40% at 80% 75%, rgba(127, 149, 160, 0.18), transparent 60%),
    conic-gradient(from var(--mesh-angle), rgba(228, 181, 99, 0.16), rgba(107, 76, 31, 0.12), rgba(127, 149, 160, 0.14), rgba(228, 181, 99, 0.16));
  filter: blur(100px) saturate(120%);
  animation: meshShift 30s linear infinite;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 0%, transparent 0%, rgba(11, 11, 10, 0.5) 55%, var(--bg) 100%);
  pointer-events: none;
}
.hero-emblem {
  position: absolute;
  right: clamp(-6rem, -2vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 34vw, 520px);
  opacity: 0.16;
  filter: saturate(1.1);
  pointer-events: none;
  display: none;
}
@media (min-width: 960px) {
  .hero-emblem {
    display: block;
  }
}
.hero-inner {
  position: relative;
  max-width: 780px;
}
.hero-title {
  margin-top: 1.1rem;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-style: italic;
  font-weight: 500;
  max-width: 16ch;
}
.hero-sub {
  margin-top: 1.6rem;
  max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--cream-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
  max-width: 640px;
}
.stat-value {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--gold-200);
  letter-spacing: -0.02em;
}
.stat-label {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--cream-3);
  max-width: 16ch;
}

/* --- Philosophy --- */
.pillars {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
@media (min-width: 720px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1280px) {
  .pillars {
    grid-template-columns: repeat(4, 1fr);
  }
}
.pillar {
  background: var(--bg-2);
  padding: 2.2rem 1.8rem;
}
.pillar-n {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--steel);
}
.pillar-title {
  margin-top: 1rem;
  font-size: 1.3rem;
}
.pillar-text {
  margin-top: 0.8rem;
  color: var(--cream-2);
  font-size: 0.94rem;
}

/* --- Simulator --- */
.simulator {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sim-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 960px) {
  .sim-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.sim-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.sim-goals {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.sim-goal {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.92rem;
  transition: border-color 0.3s, background 0.3s;
}
.sim-goal:has(input:checked) {
  border-color: var(--gold);
  background: rgba(228, 181, 99, 0.06);
}
.sim-goal input {
  accent-color: var(--gold);
}
.sim-panel {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.sim-result {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px dashed var(--line-strong);
  display: grid;
  gap: 1.2rem;
  opacity: 0.35;
  filter: saturate(0.5);
  transition: opacity 0.5s var(--ease-out), filter 0.5s var(--ease-out);
}
.sim-result.is-visible {
  opacity: 1;
  filter: none;
}
.sim-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.sim-row-label {
  font-size: 0.85rem;
  color: var(--cream-2);
}
.sim-row-value {
  font-family: var(--mono);
  font-size: 1.5rem;
  color: var(--cream);
}
.sim-row-value[data-sim-current] {
  color: var(--steel);
}
.sim-row-value[data-sim-target] {
  color: var(--gold-200);
}
.sim-headline {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-style: italic;
}
.sim-headline span {
  color: var(--gold-200);
  font-style: normal;
}
.sim-disclaimer {
  font-size: 0.76rem;
  color: var(--cream-3);
  line-height: 1.6;
  margin-top: 0.4rem;
}

/* --- Services --- */
.services-grid {
  display: grid;
  gap: 1.4rem;
}
@media (min-width: 720px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Jurisdictions world map --- */
.showcase {
  position: relative;
}
.map-grid {
  display: grid;
  gap: 1.2rem;
}
@media (min-width: 960px) {
  .map-grid {
    grid-template-columns: 1.6fr 1fr;
    align-items: start;
  }
}
.map-canvas {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  min-height: 340px;
}
.world-svg {
  display: block;
  width: 100%;
  height: auto;
}
.world-ocean {
  fill: var(--bg-2);
}
.map-country {
  fill: var(--bg-4);
  stroke: var(--bg-2);
  stroke-width: 0.6;
  pointer-events: none;
}
.map-country.is-active {
  fill: var(--gold-600);
  stroke: var(--bg-2);
  stroke-width: 0.7;
  cursor: pointer;
  pointer-events: all;
  transition: fill 0.3s var(--ease-out), filter 0.3s var(--ease-out);
}
.map-country.is-active:hover,
.map-country.is-active.is-hovered,
.map-country.is-active:focus-visible {
  fill: var(--gold-200);
  filter: drop-shadow(0 0 6px rgba(228, 181, 99, 0.55));
  outline: none;
}
.map-country.is-active.is-selected {
  fill: var(--gold-50);
  filter: drop-shadow(0 0 8px rgba(228, 181, 99, 0.7));
}
.map-pin-hit {
  fill: transparent;
  cursor: pointer;
}
.map-pin-hit:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.map-pin {
  fill: var(--gold-200);
  stroke: var(--bg-2);
  stroke-width: 0.8;
  transition: r 0.25s var(--ease-out), fill 0.25s var(--ease-out);
  animation: pinPulse 2.6s ease-in-out infinite;
}
.map-pin.is-hovered {
  r: 6.5;
  fill: var(--gold-50);
  filter: drop-shadow(0 0 6px rgba(228, 181, 99, 0.75));
  animation-play-state: paused;
}
.map-pin.is-selected {
  r: 6;
  fill: var(--gold-50);
}
@keyframes pinPulse {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .map-pin {
    animation: none;
  }
}
.map-panel {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.4rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.map-panel-name {
  margin-top: 0.7rem;
  font-size: 1.5rem;
  transition: color 0.3s;
}
.map-panel.is-active .map-panel-name {
  color: var(--gold-200);
}
.map-panel-note {
  margin-top: 0.9rem;
  color: var(--cream-2);
  font-size: 0.94rem;
}
.map-panel-features {
  list-style: none;
  padding: 0;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.map-panel-features li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--cream-2);
}
.map-panel-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* Fallback list — always present for no-JS/accessibility; hidden once
   the interactive map has built successfully (see .has-map below). */
.juris-fallback-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  display: grid;
  gap: 0.7rem 2rem;
  color: var(--cream-2);
  font-size: 0.92rem;
}
@media (min-width: 720px) {
  .juris-fallback-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
.juris-fallback-list strong {
  color: var(--cream);
}
.showcase.has-map .juris-fallback-list {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  margin: 0;
}
.juris-footnote {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--cream-3);
  max-width: 60ch;
}

/* --- Process --- */
.steps {
  display: grid;
  gap: 2.2rem;
}
@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1280px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.step {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.4rem;
}
.step-n {
  font-family: var(--mono);
  color: var(--gold);
  font-size: 0.85rem;
}
.step-title {
  margin-top: 0.8rem;
  font-size: 1.25rem;
}
.step-text {
  margin-top: 0.6rem;
  color: var(--cream-2);
  font-size: 0.92rem;
}

/* --- CTA / contact --- */
.cta {
  background: var(--bg-2);
  border-radius: 28px;
  padding: clamp(2rem, 6vw, 4rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: radial-gradient(45% 45% at 80% 20%, rgba(228, 181, 99, 0.16), transparent 70%);
  filter: blur(60px);
}
.cta-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 960px) {
  .cta-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}
.cta-copy h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}
.cta-copy p {
  margin-top: 1.2rem;
  color: var(--cream-2);
}
.cta-email {
  margin-top: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--gold-200);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.2rem;
}
.cta-form-wrap {
  position: relative;
}
.cta-form {
  display: grid;
  gap: 1.1rem;
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-soft);
}
.cta-form.is-sent {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}
.cta-form-row {
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 540px) {
  .cta-form-row {
    grid-template-columns: 1fr 1fr;
  }
}
.cta-submit {
  position: relative;
  justify-self: start;
}
.cta-form-label {
  transition: opacity 0.2s;
}
.cta-form.is-sending .cta-form-label {
  opacity: 0;
}
.cta-form-spinner,
.cta-form-check {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
}
.cta-form.is-sending .cta-form-spinner {
  opacity: 1;
}
.cta-form-spinner::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(26, 20, 7, 0.35);
  border-top-color: #1a1407;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.cta-success {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-40%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s var(--ease-out) 0.2s, transform 0.9s var(--ease-soft) 0.2s;
}
.cta-success.is-visible {
  opacity: 1;
  transform: translateY(-50%);
  pointer-events: auto;
}
.cta-success-check {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
}
.cta-success-check svg {
  width: 22px;
  height: 22px;
}
.cta-success-check path {
  stroke: var(--gold-200);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.6s var(--ease-out) 0.3s;
}
.cta-success.is-visible .cta-success-check path {
  stroke-dashoffset: 0;
}
.cta-success h3 {
  font-size: 1.5rem;
}
.cta-success p {
  margin-top: 0.7rem;
  color: var(--cream-2);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-top {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 960px) {
  .footer-top {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}
.footer-brand p {
  margin-top: 1rem;
  color: var(--cream-3);
  max-width: 34ch;
  font-size: 0.9rem;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-3);
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-col a {
  color: var(--cream-2);
  font-size: 0.92rem;
}
.footer-col a:hover {
  color: var(--gold-200);
}
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--cream-3);
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
}
.footer-legal-links a:hover {
  color: var(--gold-200);
}

/* =============================================================
   7. Responsive tweaks
   ============================================================= */
@media (max-width: 719px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

/* =============================================================
   8. Reduced motion — only truly intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .section-with-mesh::before,
  .hero::before {
    animation: none;
  }
  .splash-mark {
    animation: none;
  }
}

/* =============================================================
   9. Legal pages (aviso-legal.html, privacidad.html, cookies.html)
   ============================================================= */
.legal-hero {
  padding-block: clamp(7rem, 12vw, 9rem) 2rem;
}
.legal-hero .kicker {
  margin-bottom: 0.9rem;
}
.legal-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}
.legal-updated {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--cream-3);
}
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
@media (min-width: 960px) {
  .legal-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
  }
}
.legal-toc {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
}
@media (min-width: 960px) {
  .legal-toc {
    position: sticky;
    top: 6.5rem;
  }
}
.legal-toc h2 {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-3);
  font-weight: 500;
}
.legal-toc ol {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.legal-toc li {
  counter-increment: toc;
  font-size: 0.86rem;
}
.legal-toc a {
  display: flex;
  gap: 0.6rem;
  color: var(--cream-2);
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  color: var(--gold);
  flex-shrink: 0;
}
.legal-toc a span {
  min-width: 0;
}
.legal-toc a:hover {
  color: var(--gold-200);
}
.legal-content {
  max-width: 72ch;
  color: var(--cream-2);
}
.legal-content h2 {
  font-size: 1.5rem;
  color: var(--cream);
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 6rem;
}
.legal-content > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.legal-content h3 {
  font-size: 1.1rem;
  color: var(--cream);
  margin-top: 1.8rem;
}
.legal-content p {
  margin-top: 1rem;
  font-size: 0.98rem;
}
.legal-content ul,
.legal-content ol.legal-list {
  margin-top: 1rem;
  padding-left: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.98rem;
}
.legal-content a {
  color: var(--gold-200);
  text-decoration: underline;
  text-decoration-color: rgba(228, 181, 99, 0.4);
  text-underline-offset: 3px;
}
.legal-content a:hover {
  text-decoration-color: var(--gold-200);
}
.legal-content strong {
  color: var(--cream);
}
.table-scroll {
  margin-top: 1.2rem;
  overflow-x: auto;
}
.legal-content table {
  width: 100%;
  min-width: 640px;
  margin-top: 0;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.legal-content th,
.legal-content td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
}
.legal-content th {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream-3);
  background: var(--bg-2);
}
.legal-callout {
  margin-top: 1.4rem;
  padding: 1.1rem 1.3rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  font-size: 0.92rem;
}
.legal-callout strong {
  color: var(--gold-200);
}
.legal-placeholder {
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.88em;
}

/* =============================================================
   10. Cookie consent banner + preferences panel
   ============================================================= */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 500;
  max-width: 640px;
  margin-inline: auto;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 1.6rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: translateY(calc(100% + 2rem));
  opacity: 0;
  transition: transform 0.6s var(--ease-soft), opacity 0.5s var(--ease-out);
}
.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner p {
  font-size: 0.9rem;
  color: var(--cream-2);
}
.cookie-banner a {
  color: var(--gold-200);
  text-decoration: underline;
  text-decoration-color: rgba(228, 181, 99, 0.4);
}
.cookie-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.cookie-actions .btn {
  padding: 0.7rem 1.2rem;
  font-size: 0.85rem;
}
.cookie-panel {
  position: fixed;
  inset: 0;
  z-index: 501;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(11, 11, 10, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}
.cookie-panel.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-panel-inner {
  width: min(560px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: clamp(1.6rem, 4vw, 2.2rem);
}
.cookie-panel-inner h2 {
  font-size: 1.4rem;
}
.cookie-panel-inner > p {
  margin-top: 0.8rem;
  color: var(--cream-2);
  font-size: 0.92rem;
}
.cookie-category {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-category-copy h3 {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--cream);
}
.cookie-category-copy p {
  margin-top: 0.4rem;
  font-size: 0.86rem;
  color: var(--cream-2);
  max-width: 40ch;
}
.cookie-switch {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 24px;
}
.cookie-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.cookie-switch-track {
  position: absolute;
  inset: 0;
  background: var(--bg-4);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background 0.25s;
}
.cookie-switch-track::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cream-3);
  transition: transform 0.25s var(--ease-out), background 0.25s;
}
.cookie-switch input:checked + .cookie-switch-track {
  background: rgba(228, 181, 99, 0.25);
  border-color: var(--gold);
}
.cookie-switch input:checked + .cookie-switch-track::before {
  transform: translateX(18px);
  background: var(--gold-200);
}
.cookie-switch input:disabled + .cookie-switch-track {
  opacity: 0.6;
  cursor: not-allowed;
}
.cookie-switch input:focus-visible + .cookie-switch-track {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.cookie-panel-actions {
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
}
.cookie-panel-actions .btn {
  padding: 0.7rem 1.2rem;
  font-size: 0.85rem;
}
@media (max-width: 539px) {
  .cookie-banner {
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0.6rem;
    padding: 1.3rem;
  }
  .cookie-actions {
    flex-direction: column;
  }
  .cookie-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
