/* =========================================================================
   NKOSI VIP PROTECTION — Design System
   Tactical-luxury aesthetic for a high-end South African security firm
   Built by JonyX WebWorks
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* Surfaces — deep matte blacks with warm undertones */
  --obsidian: #0A0908;
  --carbon: #121110;
  --graphite: #1A1817;
  --smoke: #252320;
  --ash-line: #2E2B27;

  /* Gold — brushed, NOT yellow. Signals luxury and discretion. */
  --gold: #C9A961;
  --gold-bright: #E5C98A;
  --gold-deep: #8A7340;
  /* Text-safe muted gold. --gold-deep is a gradient/border value and fails
     AA as text (~3.4:1); this clears 4.5:1 while staying dimmer than --gold. */
  --gold-muted: #A88A4E;
  --gold-shadow: #4A3E22;

  /* Type colors */
  --bone: #F5F1E8;        /* primary text — warm off-white */
  --pearl: #E8E2D4;       /* secondary text */
  --ash: #8B8680;         /* muted/captions */
  --shadow-text: #5A5550; /* deep muted */

  /* Signal red — emergency CTA only */
  --blood: #B8242C;
  --blood-bright: #D63540;

  /* Functional */
  --border-subtle: rgba(201, 169, 97, 0.12);
  --border-gold: rgba(201, 169, 97, 0.35);
  --overlay-dark: rgba(10, 9, 8, 0.85);
  --overlay-deep: rgba(10, 9, 8, 0.95);

  /* Typography */
  --font-display: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --font-body: "Geist", "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", "SF Mono", Consolas, monospace;

  /* Type scale */
  --fs-micro: clamp(0.7rem, 0.68rem + 0.1vw, 0.75rem);
  --fs-caption: clamp(0.78rem, 0.76rem + 0.1vw, 0.85rem);
  --fs-body: clamp(0.95rem, 0.92rem + 0.15vw, 1.05rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  --fs-h6: clamp(1.1rem, 1.05rem + 0.25vw, 1.25rem);
  --fs-h5: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --fs-h4: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --fs-h3: clamp(2rem, 1.6rem + 2vw, 3rem);
  --fs-h2: clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem);
  --fs-h1: clamp(3rem, 2rem + 5vw, 6rem);
  --fs-mega: clamp(4rem, 2rem + 10vw, 10rem);

  /* Spacing */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;
  --space-4xl: 8rem;
  --space-5xl: 12rem;

  /* Layout */
  --container-max: 1440px;
  --container-tight: 1200px;
  --container-narrow: 900px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-power: cubic-bezier(0.7, 0, 0.3, 1);
  --dur-fast: 200ms;
  --dur-base: 400ms;
  --dur-slow: 700ms;
  --dur-cinematic: 1200ms;

  /* Z-layers */
  --z-base: 1;
  --z-content: 10;
  --z-nav: 100;
  --z-emergency: 110;
  --z-cursor: 9999;
  --z-overlay: 9000;
}

/* -------------------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--pearl);
  background: var(--obsidian);
  overflow-x: hidden;
  min-height: 100vh;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "ss01" 1;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Selection */
::selection {
  background: var(--gold);
  color: var(--obsidian);
}

/* Keyboard focus — a gold ring that reads on obsidian.
   :focus-visible only, so mouse clicks stay clean. */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Scrollbar (desktop) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--obsidian); }
::-webkit-scrollbar-thumb {
  background: var(--gold-deep);
  border-radius: 0;
  border: 2px solid var(--obsidian);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* -------------------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------------------- */
.display-mega {
  font-family: var(--font-display);
  font-size: var(--fs-mega);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--bone);
  font-style: italic;
}

.display-1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--bone);
}

.display-2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--bone);
}

.display-3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--bone);
}

.heading-4 {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--bone);
}

.heading-5 {
  font-family: var(--font-body);
  font-size: var(--fs-h5);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--bone);
}

.heading-6 {
  font-family: var(--font-body);
  font-size: var(--fs-h6);
  font-weight: 500;
  line-height: 1.4;
  color: var(--bone);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--pearl);
  font-weight: 300;
  max-width: 60ch;
}

.italic { font-style: italic; }
.gold { color: var(--gold); }
.gold-bright { color: var(--gold-bright); }
.bone { color: var(--bone); }
.ash { color: var(--ash); }

/* Tactical labels — small caps in mono */
.tactical-label {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.tactical-label::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.tactical-label--center::before {
  content: none;
}

.tactical-label--center {
  display: block;
  text-align: center;
}

.tactical-label--center::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: var(--space-sm) auto 0;
}

/* Numeric tactical readout */
.readout {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--gold);
}

/* -------------------------------------------------------------------------
   4. LAYOUT
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--tight {
  max-width: var(--container-tight);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section--lg { padding: var(--space-5xl) 0; }
.section--sm { padding: var(--space-3xl) 0; }

@media (max-width: 768px) {
  .section { padding: var(--space-3xl) 0; }
  .section--lg { padding: var(--space-4xl) 0; }
}

/* Editorial grid — asymmetric */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-lg);
}

.editorial-grid > .span-3 { grid-column: span 3; }
.editorial-grid > .span-4 { grid-column: span 4; }
.editorial-grid > .span-5 { grid-column: span 5; }
.editorial-grid > .span-6 { grid-column: span 6; }
.editorial-grid > .span-7 { grid-column: span 7; }
.editorial-grid > .span-8 { grid-column: span 8; }
.editorial-grid > .span-9 { grid-column: span 9; }
.editorial-grid > .span-12 { grid-column: span 12; }

.editorial-grid > .start-2 { grid-column-start: 2; }
.editorial-grid > .start-3 { grid-column-start: 3; }
.editorial-grid > .start-4 { grid-column-start: 4; }
.editorial-grid > .start-7 { grid-column-start: 7; }
.editorial-grid > .start-8 { grid-column-start: 8; }

@media (max-width: 1024px) {
  .editorial-grid > [class*="span-"] { grid-column: span 12; }
  .editorial-grid > [class*="start-"] { grid-column-start: 1; }
}

/* Section divider — thin gold rule */
.gold-rule {
  width: 80px;
  height: 1px;
  background: var(--gold);
  border: none;
  margin: var(--space-lg) 0;
}

.gold-rule--center {
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------------------------------------------------
   5. BUTTONS & CTAs
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 1.05rem 2rem;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: all var(--dur-base) var(--ease-out);
  border: 1px solid transparent;
  white-space: nowrap;
  will-change: transform;
}

/* Primary — solid gold on dark */
.btn--primary {
  background: var(--gold);
  color: var(--obsidian);
  border-color: var(--gold);
}

.btn--primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(201, 169, 97, 0.5);
}

/* Ghost — outline gold */
.btn--ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--border-gold);
}

.btn--ghost:hover {
  background: rgba(201, 169, 97, 0.08);
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* Emergency — filled, not outlined.
   The outlined version put #D63540 text on the page ground at ~3.4–4.2:1
   (failing AA) and read as visually subordinate to the gold sales CTA
   sitting next to it. Filled blood with bone text is 5.63:1 and correctly
   outranks the sales action for a visitor in an active incident. */
.btn--emergency {
  background: var(--blood);
  color: var(--bone);
  border-color: var(--blood);
  position: relative;
}

.btn--emergency::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--bone);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(245, 241, 232, 0.7);
  animation: pulse-blood 2s var(--ease-in-out) infinite;
}

.btn--emergency {
  padding-left: 2.4rem;
}

.btn--emergency:hover {
  background: var(--blood-bright);
  border-color: var(--blood-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(184, 36, 44, 0.55);
}

@keyframes pulse-blood {
  0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
  50% { opacity: 0.5; transform: translateY(-50%) scale(1.3); }
}

/* Arrow link — minimal text + arrow */
.arrow-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* was rendering ~26px; it is a primary conversion link */
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  position: relative;
  padding-bottom: 6px;
  transition: color var(--dur-base) var(--ease-out);
}

.arrow-link::after {
  content: "→";
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out);
}

.arrow-link:hover::after {
  transform: translateX(6px);
}

.arrow-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform-origin: right;
  transform: scaleX(0);
  transition: transform var(--dur-base) var(--ease-out);
}

.arrow-link:hover::before {
  transform-origin: left;
  transform: scaleX(1);
}

/* Magnetic data attribute hooks JS */
[data-magnetic] {
  display: inline-block;
  will-change: transform;
}

/* -------------------------------------------------------------------------
   6. CARDS & SURFACES
   ------------------------------------------------------------------------- */
.surface {
  background: var(--carbon);
  border: 1px solid var(--ash-line);
  position: relative;
}

.surface--graphite {
  background: var(--graphite);
}

/* Service card — used on home and division pages */
.service-card {
  position: relative;
  padding: var(--space-2xl);
  background: var(--carbon);
  border: 1px solid var(--ash-line);
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-out);
  cursor: pointer;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}

.service-card:hover {
  background: var(--graphite);
  border-color: var(--border-gold);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__number {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--gold-muted);
  letter-spacing: 0.2em;
  margin-bottom: var(--space-xl);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  color: var(--bone);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.service-card__desc {
  color: var(--ash);
  font-size: var(--fs-body);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

.service-card__list {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.service-card__list li {
  font-size: var(--fs-caption);
  color: var(--pearl);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--ash-line);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.service-card__list li::before {
  content: "—";
  color: var(--gold);
}

/* Trust badge / spec block */
.spec-block {
  border-left: 1px solid var(--gold);
  padding-left: var(--space-lg);
}

.spec-block__value {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--bone);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.spec-block__label {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ash);
}

/* -------------------------------------------------------------------------
   7. FORMS
   ------------------------------------------------------------------------- */
.form-field {
  position: relative;
  margin-bottom: var(--space-xl);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 1.1rem 0 0.6rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ash-line);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--bone);
  outline: none;
  transition: border-color var(--dur-base) var(--ease-out);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23C9A961' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 12px;
  appearance: none;
  -webkit-appearance: none;
}

.form-field select option {
  background: var(--carbon);
  color: var(--bone);
}

.form-field label {
  position: absolute;
  top: 1.1rem;
  left: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--ash);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  transition: all var(--dur-base) var(--ease-out);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-bottom-color: var(--gold);
}

/* Keyboard users get the ring on top of the underline shift */
.form-field input:focus-visible,
.form-field textarea:focus-visible,
.form-field select:focus-visible {
  outline: 1px solid var(--border-gold);
  outline-offset: 6px;
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label,
.form-field select:focus + label,
.form-field select:valid + label {
  top: -0.3rem;
  font-size: var(--fs-micro);
  color: var(--gold);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

.form-status {
  margin-top: var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-status--success { color: var(--gold-bright); }
.form-status--error { color: var(--blood-bright); }

/* Inline field errors (written by main.js validation) */
.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select {
  border-bottom-color: var(--blood-bright);
}

.form-field.has-error label {
  color: var(--blood-bright);
}

.form-field__error {
  margin-top: var(--space-xs);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blood-bright);
}

/* -------------------------------------------------------------------------
   8. UTILITIES
   ------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.flex-wrap { flex-wrap: wrap; }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.mt-md { margin-top: var(--space-md); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.relative { position: relative; }
.absolute { position: absolute; }

.full-width { width: 100%; }
.full-height { height: 100%; }

.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;
}

/* Hide on breakpoints */
.hide-mobile { }
.hide-desktop { display: none; }

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .hide-desktop { display: initial; }
}

/* Reveal animation hooks (used by scroll-animations.js)
   Only hide content if .js class is present on <html>.
   Without JS (or if JS errors), content stays visible by default. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--dur-cinematic) var(--ease-out),
              transform var(--dur-cinematic) var(--ease-out);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children animate via CSS now (per-child transition-delay is set
   inline by scroll-animations.js) rather than through GSAP, so the reveal
   no longer depends on a CDN script arriving. */
.js [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.js [data-reveal-stagger].is-revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* Split text reveal */
.split-line {
  display: block;
  overflow: hidden;
}

.js .split-line__inner {
  display: block;
  transform: translateY(110%);
  transition: transform var(--dur-cinematic) var(--ease-out);
}

.js .is-revealed .split-line__inner,
.js [data-reveal].is-revealed .split-line__inner {
  transform: translateY(0);
}

/* -------------------------------------------------------------------------
   9. ATMOSPHERIC EFFECTS
   ------------------------------------------------------------------------- */
/* Grain overlay — subtle texture across the whole site */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Vignette */
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 0%, transparent 50%, rgba(10, 9, 8, 0.7) 100%);
  z-index: 2;
}

/* Decorative corner brackets — used on hero and key sections */
.bracket-frame {
  position: relative;
}

.bracket-frame::before,
.bracket-frame::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold);
}

.bracket-frame::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.bracket-frame::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

/* -------------------------------------------------------------------------
   10. CUSTOM CURSOR
   ------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  body.cursor-active {
    cursor: none;
  }

  body.cursor-active a,
  body.cursor-active button,
  body.cursor-active [data-magnetic],
  body.cursor-active input,
  body.cursor-active textarea,
  body.cursor-active select {
    cursor: none;
  }

  .cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: var(--z-cursor);
    mix-blend-mode: difference;
  }

  /* Outer elements are fixed-size wrappers moved by cursor.js;
     inner spans carry the visuals and animate via transform only. */
  .cursor__dot,
  .cursor__ring {
    position: absolute;
  }

  .cursor__dot-inner {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bone);
    transform: translate(-50%, -50%);
    transition: transform var(--dur-base) var(--ease-out),
                background var(--dur-base) var(--ease-out);
  }

  .cursor__ring-inner {
    display: block;
    width: 36px;
    height: 36px;
    border: 1px solid var(--bone);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform var(--dur-base) var(--ease-out),
                opacity var(--dur-base) var(--ease-out),
                border-color var(--dur-base) var(--ease-out);
  }

  /* Hover state on links/buttons — scale, never resize */
  .cursor.is-hovering .cursor__dot-inner {
    transform: translate(-50%, -50%) scale(0);
  }

  .cursor.is-hovering .cursor__ring-inner {
    transform: translate(-50%, -50%) scale(1.56);
    border-color: var(--gold);
  }
}

/* -------------------------------------------------------------------------
   11. STICKY MOBILE CTA
   ------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  z-index: var(--z-nav);
  display: none;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Matches where the header CTA and desktop nav disappear (1024px), so the
   769–1024px band keeps a persistent conversion + emergency affordance. */
@media (max-width: 1024px) {
  .sticky-cta { display: flex; }
}

.sticky-cta__btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background: var(--gold);
  color: var(--obsidian);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: transform var(--dur-base) var(--ease-out);
}

/* An unlabelled circle asks the visitor to guess. This one says what it is. */
.sticky-cta__label {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
}

.sticky-cta__btn--emergency {
  background: var(--blood);
  color: var(--bone);
}

.sticky-cta__btn:active {
  transform: scale(0.95);
}

.sticky-cta__btn svg {
  width: 20px;
  height: 20px;
}
