/* OrbiQore — Obsidian Gold · Rebuilt for UX feedback
   Changes: contrast, hierarchy, brand presence, flow, content clarity
============================================================== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  /* ── Backgrounds ── */
  --bg:        #100F0D;   /* warm near-black — less harsh than pure #000 */
  --bg2:       #161410;   /* card/section alt */
  --bg3:       #1E1A14;   /* elevated surfaces */
  --bg4:       #252018;   /* hover states */

  /* ── Gold accent ── */
  --gold:      #C9960E;
  --gold-lt:   #E4B030;
  --gold-dim:  rgba(201,150,14,0.12);
  --gold-bdr:  rgba(201,150,14,0.28);
  --gold-glow: rgba(201,150,14,0.06);

  /* ── Text — WCAG AA compliant on --bg ── */
  --text-1:    #F5F0E8;   /* primary: 16.8:1 on --bg ✓ */
  --text-2:    #C8B898;   /* secondary: 8.4:1 ✓ */
  --text-3:    #9A8870;   /* tertiary: 5.1:1 ✓ (minimum AA for large text) */
  --text-4:    #6E5E4E;   /* disabled/decorative only */

  /* ── Borders ── */
  --border:    rgba(201,150,14,0.10);
  --border-2:  rgba(201,150,14,0.22);
  --border-3:  rgba(255,255,255,0.06);

  /* ── Typography ── */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'DM Mono', 'SF Mono', 'Fira Code', 'Consolas', 'Courier New', monospace;

  /* ── Spacing ── */
  --section-v: 120px;
  --section-h: 64px;
}

/* ── RESET & BASE ── */
html { scroll-behavior:smooth; font-size:16px; overflow-x:hidden; }
body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text-2);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  line-height: 1.65;
}
a { color:inherit; text-decoration:none; }
img { display:block; max-width:100%; }

/* ── NAVIGATION ── */
.nav {
  position: fixed; top:0; left:0; right:0; z-index:500;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--section-h);
  background: rgba(16,15,13,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.nav.scrolled {
  box-shadow: 0 1px 0 var(--border-2), 0 8px 48px rgba(0,0,0,0.6);
}
.nav-logo img { height: 40px; width: auto; display: block; }
.nav-links { display:flex; gap:36px; list-style:none; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em;
  color: var(--text-3);
  transition: color 0.2s;
  padding: 4px 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform 0.22s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-1); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em;
  padding: 10px 26px;
  background: var(--gold); color: var(--bg);
  font-weight: 700; cursor: pointer; transition: all 0.22s;
  border: none;
}
.nav-cta:hover { background: var(--gold-lt); }

/* ── PAGE ── */
.page { padding-top: 72px; }

/* ── TYPE HIERARCHY — clear 4-level system ── */
/* Level 1: Hero display */
.t-hero {
  font-family: var(--font-display);
  font-size: clamp(48px,6vw,84px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--text-1);
}
/* Level 2: Section titles */
.t-h2 {
  font-family: var(--font-display);
  font-size: clamp(32px,3.8vw,52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-1);
}
/* Level 3: Card/sub titles */
.t-h3 {
  font-family: var(--font-display);
  font-size: clamp(20px,2vw,26px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-1);
}
/* Level 4: Card names, labels */
.t-h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-1);
}
/* Body: 3 sizes */
.t-body-lg { font-size: 19px; line-height: 1.78; color: var(--text-2); }
.t-body    { font-size: 16px; line-height: 1.75; color: var(--text-2); }
.t-body-sm { font-size: 14px; line-height: 1.7;  color: var(--text-3); }
/* Eyebrow label */
.t-eye {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.28em;
  color: var(--gold);
  display: block; margin-bottom: 16px;
  text-transform: uppercase;
}
/* Gold highlight in headings */
.gold { color: var(--gold); }

/* ── GOLD DIVIDER ── */
.bar { width: 40px; height: 2px; background: var(--gold); margin: 24px 0 32px; }
.bar-lg { width: 64px; height: 3px; background: var(--gold); margin: 28px 0 40px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.14em; font-weight: 700;
  padding: 15px 36px; cursor: pointer;
  transition: all 0.22s; border: none;
}
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-2);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }
.btn-text {
  background: transparent; border: none;
  color: var(--gold); padding: 0; font-size: 11px;
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: 0.14em;
}
.btn-text:hover { gap: 12px; }

/* ── SECTION LAYOUT ── */
.section { padding: var(--section-v) var(--section-h); }
.section-alt { background: var(--bg2); }
.section-dark { background: var(--bg3); }
.max-w { max-width: 1200px; margin: 0 auto; }

/* ── CARD SYSTEM ── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 40px 36px;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
  position: relative; overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.card:hover {
  border-color: var(--border-2);
  background: var(--bg3);
  transform: translateY(-2px);
}
.card:hover::before { transform: scaleX(1); }

/* ── FEATURE ROW ── */
.feat-row {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--border-3);
  transition: background 0.2s;
}
.feat-row:first-child { border-top: 1px solid var(--border-3); }
.feat-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0; margin-top: 8px;
}
.feat-text { font-size: 15.5px; line-height: 1.7; color: var(--text-2); }
.feat-text strong { color: var(--text-1); font-weight: 600; }

/* ── STAT ── */
.stat-val {
  font-family: var(--font-display);
  font-size: 48px; font-weight: 800;
  color: var(--gold); line-height: 1;
  letter-spacing: -0.02em;
  display: block;
}
.stat-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; color: var(--text-3);
  margin-top: 8px; display: block;
}

/* ── FOOTER ── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 80px var(--section-h) 44px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px; padding-bottom: 56px;
  border-bottom: 1px solid var(--border-3);
}
.ft-logo img { height: 34px; width: auto; margin-bottom: 18px; display: block; }
.ft-logo p { font-size: 14px; color: var(--text-3); line-height: 1.72; max-width: 220px; }
.ft-col h5 {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.24em; color: var(--gold);
  margin-bottom: 20px; text-transform: uppercase;
}
.ft-col a { display: block; font-size: 14px; color: var(--text-3); margin-bottom: 12px; transition: color 0.2s; }
.ft-col a:hover { color: var(--text-1); }
.footer-bottom {
  padding-top: 28px; display: flex;
  justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom span {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-4); letter-spacing: 0.08em;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(28px); }
  to   { opacity:1; transform:translateY(0); }
}
.fu   { opacity:1; transform:none; }
.reveal { opacity:1; transform:none; transition:opacity .75s ease,transform .75s ease; }
.js-ready .fu { animation: fadeUp 0.65s ease forwards; }
.fu { opacity:1; transform:none; }
.js-ready .d1 { animation-delay:0.1s; }
.js-ready .d2 { animation-delay:0.22s; }
.js-ready .d3 { animation-delay:0.34s; }
.js-ready .d4 { animation-delay:0.48s; }
.js-ready .d5 { animation-delay:0.64s; }
/* content always visible — GSAP enhances with animation */
.js-ready .reveal.visible { opacity:1; transform:translateY(0); }
.js-ready .reveal.d1 { transition-delay:.08s; }
.js-ready .reveal.d2 { transition-delay:.18s; }
.js-ready .reveal.d3 { transition-delay:.28s; }

/* ── RESPONSIVE ── */
@media(max-width:1100px) {
  :root { --section-h: 40px; }
}
@media(max-width:900px) {
  :root { --section-v: 80px; --section-h: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media(max-width:520px) {
  .footer-grid { grid-template-columns: 1fr; }
  :root { --section-v: 60px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HDR / XDR DISPLAY ENHANCEMENTS
   Targets: Apple XDR displays, OLED panels, HDR-capable monitors
   Uses CSS Display P3 wide gamut color space — colors beyond sRGB
   Falls back gracefully on standard displays (sRGB values used instead)
   ═══════════════════════════════════════════════════════════════════════════ */

@media (dynamic-range: high) {

  :root {
    /* ── Wide-gamut gold — more saturated, more luminous than sRGB ── */
    /* sRGB #C9960E = P3 equivalent but P3 allows higher saturation */
    --gold:       color(display-p3 0.82 0.60 0.02);   /* vivid, luminous gold */
    --gold-lt:    color(display-p3 0.95 0.72 0.08);   /* brighter hover state */
    --gold-dim:   color(display-p3 0.82 0.60 0.02 / 0.14);
    --gold-bdr:   color(display-p3 0.82 0.60 0.02 / 0.32);
    --gold-glow:  color(display-p3 0.82 0.60 0.02 / 0.08);

    /* ── True deep blacks — HDR panels can render below sRGB black floor ── */
    --bg:   color(display-p3 0.032 0.028 0.020);   /* deeper than #100F0D */
    --bg2:  color(display-p3 0.048 0.042 0.030);
    --bg3:  color(display-p3 0.072 0.062 0.044);
    --bg4:  color(display-p3 0.094 0.080 0.056);

    /* ── Brilliant whites — P3 white is visibly brighter on XDR ── */
    --text-1: color(display-p3 0.98 0.96 0.94);    /* warm brilliant white */
    --text-2: color(display-p3 0.82 0.74 0.62);    /* richer warm mid-tone */
    --text-3: color(display-p3 0.62 0.56 0.46);
    --text-4: color(display-p3 0.44 0.38 0.30);

    /* ── Borders with P3 gold ── */
    --border:   color(display-p3 0.82 0.60 0.02 / 0.12);
    --border-2: color(display-p3 0.82 0.60 0.02 / 0.26);
    --border-3: color(display-p3 1 1 1 / 0.07);
  }

  /* ── Body: use P3 color profile hint ── */
  body {
    background: color(display-p3 0.032 0.028 0.020);
    /* Subtle HDR-only texture — XDR can render the difference */
    -webkit-font-smoothing: subpixel-antialiased;
  }

  /* ── Nav: deeper black, more refined ── */
  .nav {
    background: color(display-p3 0.032 0.028 0.020 / 0.97);
    box-shadow: 0 1px 0 color(display-p3 0.82 0.60 0.02 / 0.10);
  }

  /* ── Gold CTA button: glows on HDR ── */
  .btn-gold {
    background: color(display-p3 0.82 0.60 0.02);
    color: color(display-p3 0.032 0.028 0.020);
    /* HDR-only subtle luminance bloom */
    box-shadow:
      0 0 0 1px color(display-p3 0.82 0.60 0.02 / 0.4),
      0 4px 24px color(display-p3 0.82 0.60 0.02 / 0.25),
      0 1px 4px  color(display-p3 0.82 0.60 0.02 / 0.5);
  }
  .btn-gold:hover {
    background: color(display-p3 0.95 0.72 0.08);
    box-shadow:
      0 0 0 1px color(display-p3 0.95 0.72 0.08 / 0.5),
      0 6px 32px color(display-p3 0.95 0.72 0.08 / 0.35),
      0 2px 8px  color(display-p3 0.95 0.72 0.08 / 0.6);
    transform: translateY(-1px);
  }

  /* ── Ghost button: gold border luminance ── */
  .btn-ghost {
    border-color: color(display-p3 0.82 0.60 0.02 / 0.35);
  }
  .btn-ghost:hover {
    border-color: color(display-p3 0.82 0.60 0.02);
    color: color(display-p3 0.82 0.60 0.02);
    box-shadow: 0 0 16px color(display-p3 0.82 0.60 0.02 / 0.15);
  }

  /* ── Nav CTA: gold bloom ── */
  .nav-cta {
    background: color(display-p3 0.82 0.60 0.02);
    box-shadow: 0 2px 16px color(display-p3 0.82 0.60 0.02 / 0.30);
  }
  .nav-cta:hover {
    background: color(display-p3 0.95 0.72 0.08);
    box-shadow: 0 4px 24px color(display-p3 0.82 0.60 0.02 / 0.45);
  }

  /* ── Gold highlight text: luminance beyond sRGB ── */
  .gold {
    color: color(display-p3 0.82 0.60 0.02);
    /* Subtle HDR text glow — only visible on HDR panels */
    text-shadow: 0 0 40px color(display-p3 0.82 0.60 0.02 / 0.20);
  }

  /* ── Bar dividers: glowing rule ── */
  .bar, .bar-lg {
    background: color(display-p3 0.82 0.60 0.02);
    box-shadow: 0 0 12px color(display-p3 0.82 0.60 0.02 / 0.5);
  }

  /* ── Product cards: deeper blacks, sharper borders ── */
  .pcard {
    background: color(display-p3 0.032 0.028 0.020);
    border-color: color(display-p3 0.82 0.60 0.02 / 0.08);
  }
  .pcard::before {
    background: linear-gradient(90deg,
      color(display-p3 0.82 0.60 0.02),
      color(display-p3 0.95 0.72 0.08)
    );
    box-shadow: 0 0 8px color(display-p3 0.82 0.60 0.02 / 0.6);
  }
  .pcard:hover {
    background: color(display-p3 0.048 0.042 0.030);
    box-shadow: 0 8px 48px color(display-p3 0.82 0.60 0.02 / 0.06);
  }

  /* ── Eyebrow labels: more luminant ── */
  .t-eye {
    color: color(display-p3 0.82 0.60 0.02);
    letter-spacing: 0.30em;
  }

  /* ── Stat values ── */
  .stat-val {
    color: color(display-p3 0.82 0.60 0.02);
    text-shadow: 0 0 48px color(display-p3 0.82 0.60 0.02 / 0.25);
  }

  /* ── Hero panel: glass effect deeper on OLED ── */
  .hero-panel {
    background: color(display-p3 0.055 0.050 0.038 / 0.95);
    border-color: color(display-p3 0.82 0.60 0.02 / 0.32);
    box-shadow:
      0 32px 80px color(display-p3 0 0 0 / 0.8),
      0 0 0 1px   color(display-p3 0.82 0.60 0.02 / 0.15) inset;
  }

  /* ── Trust bar ── */
  .trust-bar {
    background: color(display-p3 0.048 0.042 0.030);
    border-color: color(display-p3 0.82 0.60 0.02 / 0.10);
  }

  /* ── Footer deeper ── */
  .footer {
    background: color(display-p3 0.040 0.035 0.025);
  }

  /* ── Why/arch sections: card surfaces pop on OLED ── */
  .a-node, .a-node.gld {
    background: color(display-p3 0.048 0.042 0.030);
  }
  .a-node.gld {
    border-color: color(display-p3 0.82 0.60 0.02 / 0.28);
    box-shadow: 0 0 16px color(display-p3 0.82 0.60 0.02 / 0.06);
  }
  .arch-diagram {
    background: color(display-p3 0.032 0.028 0.020);
    box-shadow: 0 16px 64px color(display-p3 0 0 0 / 0.5);
  }

  /* ── Scan activity bars: gold luminance ── */
  .abar.on {
    background: color(display-p3 0.82 0.60 0.02);
    box-shadow: 0 0 6px color(display-p3 0.82 0.60 0.02 / 0.5);
  }
  .pos-dot {
    background: color(display-p3 0.12 0.82 0.46);
    box-shadow: 0 0 8px color(display-p3 0.12 0.82 0.46 / 0.5);
  }
  .status-dot {
    background: color(display-p3 0.82 0.60 0.02);
    box-shadow: 0 0 6px color(display-p3 0.82 0.60 0.02 / 0.6);
  }

  /* ── Images: HDR screens can handle higher contrast ── */
  .hero-img {
    filter: brightness(0.60) saturate(1.1) contrast(1.05) !important;
  }
  .pg-item img {
    filter: saturate(1.05) brightness(1.05) !important;
  }
  .ac-photo img {
    filter: saturate(0.95) brightness(1.05) !important;
  }

  /* ── Scrollbar: HDR-aware gold ── */
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: color(display-p3 0.032 0.028 0.020); }
  ::-webkit-scrollbar-thumb {
    background: color(display-p3 0.82 0.60 0.02 / 0.35);
    border-radius: 3px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: color(display-p3 0.82 0.60 0.02 / 0.65);
  }

} /* end @media (dynamic-range: high)

/* ═══════════════════════════════════════════════════════════════════════════
   FONT UPGRADE: use SF Pro Display on Apple devices (it's already installed)
   and Inter for non-Apple — both render beautifully on XDR/Retina
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── INTER FONT TUNING ── */
/* Inter has optical size variants — use them for best results */
.t-hero, .hero-h1 {
  font-variation-settings: 'opsz' 72;  /* optical size for large display */
  font-weight: 800;
  letter-spacing: -0.03em;
}
.t-h2 {
  font-variation-settings: 'opsz' 36;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.t-h3, .t-h4 {
  font-variation-settings: 'opsz' 24;
  font-weight: 700;
  letter-spacing: -0.015em;
}
/* Body: Inter at text size — clean, highly readable */
.t-body-lg { font-weight: 400; letter-spacing: -0.005em; }
.t-body     { font-weight: 400; letter-spacing: -0.005em; }
.t-body-sm  { font-weight: 400; letter-spacing: 0; }

/* DM Mono: elegant monospace for labels */
.t-eye, .pcard-tag, .pcard-num, .chrome-title, .chrome-status,
.sstat-label, .tx-header, .tx-tag, .act-label,
.nav-links a, .nav-cta, .btn, .btn-gold, .btn-ghost,
.trust-label, .trust-item, .stat-label, .footer-bottom span,
.ft-col h5 {
  font-family: 'DM Mono', 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-weight: 400;
}

/* HDR hero heading — letters appear to be lit */
.hdr .hero-h1 {
  text-shadow:
    0 0  80px color(display-p3 1 1 1 / 0.04),
    0 0 160px color(display-p3 1 1 1 / 0.02);
}
.hdr .hero-h1 .gold {
  text-shadow:
    0 0  30px color(display-p3 0.82 0.60 0.02 / 0.45),
    0 0  80px color(display-p3 0.82 0.60 0.02 / 0.25),
    0 0 160px color(display-p3 0.82 0.60 0.02 / 0.12);
}

/* HDR nav — glass depth */
.hdr .nav {
  background: color(display-p3 0.032 0.028 0.020 / 0.92);
  box-shadow:
    0 1px 0 color(display-p3 0.82 0.60 0.02 / 0.15),
    0 8px 40px color(display-p3 0 0 0 / 0.5);
}

/* HDR — product cards bloom on hover */
.hdr .pcard:hover {
  box-shadow:
    0 0 0 1px color(display-p3 0.82 0.60 0.02 / 0.3),
    0 16px 64px color(display-p3 0.82 0.60 0.02 / 0.08),
    0 2px 8px color(display-p3 0 0 0 / 0.6);
}

/* HDR — photo grid: images look like HDR media */
.hdr .pg-item img {
  filter: saturate(1.15) brightness(1.06) contrast(1.04) !important;
}
.hdr .pg-item:hover img {
  filter: saturate(1.25) brightness(1.12) contrast(1.06) !important;
}

/* HDR — trust bar items glow on hover */
.hdr .trust-item:hover {
  color: color(display-p3 0.82 0.60 0.02);
  text-shadow: 0 0 20px color(display-p3 0.82 0.60 0.02 / 0.4);
}

/* HDR — stat values are luminous */
.hdr .stat-val {
  text-shadow:
    0 0  24px color(display-p3 0.82 0.60 0.02 / 0.5),
    0 0  64px color(display-p3 0.82 0.60 0.02 / 0.25),
    0 0 120px color(display-p3 0.82 0.60 0.02 / 0.12);
}

/* HDR — scroll-reveal elements have P3 enhanced entrance */
.hdr .reveal.visible {
  animation: hdrReveal 0.7s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes hdrReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: brightness(0.4);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: brightness(1);
  }
}

/* HDR — live panel border pulses */
.hdr .hero-panel {
  animation: panelBreath 4s ease-in-out infinite alternate;
}
@keyframes panelBreath {
  0%   { box-shadow: 0 32px 80px color(display-p3 0 0 0 / 0.8), 0 0 0 1px color(display-p3 0.82 0.60 0.02 / 0.18) inset; }
  100% { box-shadow: 0 32px 80px color(display-p3 0 0 0 / 0.8), 0 0 0 1px color(display-p3 0.82 0.60 0.02 / 0.38) inset, 0 0 40px color(display-p3 0.82 0.60 0.02 / 0.06) inset; }
}

/* HDR — arch diagram nodes pulse gold on hover */
.hdr .a-node.gld:hover {
  box-shadow:
    0 0 24px color(display-p3 0.82 0.60 0.02 / 0.25),
    0 0 48px color(display-p3 0.82 0.60 0.02 / 0.12);
  border-color: color(display-p3 0.82 0.60 0.02 / 0.5) !important;
}

/* Parallax-ready: images transition smoothly */
.hero-img, .pg-item img, .ac-photo img, .cta-bg {
  will-change: transform;
  transition: filter 0.5s ease;
}

/* ── LENIS SCROLL ENHANCEMENTS ── */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* Custom scrollbar — slim, gold */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--gold-bdr);
  border-radius: 3px;
  transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ════════════════════════════════════════════════════════════════════════════
   GLOBAL EXPERIENCE LAYER
   Custom cursor · Magnetic buttons · Page transitions · Noise grain
   ════════════════════════════════════════════════════════════════════════════ */

/* cursor-dot removed — using native cursor */

.compare-wrap {
  position: relative; overflow: hidden;
  cursor: ew-resize;
}
.compare-before, .compare-after {
  position: absolute; inset: 0;
}
.compare-after { clip-path: inset(0 50% 0 0); }
.compare-handle {
  position: absolute; top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 3px; background: var(--gold);
  z-index: 10;
}
.compare-handle::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 20px rgba(201,150,14,0.4);
}

/* ── Typewriter for hero badge ── */
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.typewriter-cursor {
  display: inline-block; width: 2px; height: 1em;
  background: var(--gold); vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s infinite;
}

/* ── Focus glow for interactive elements ── */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* Capabilities strip tiles */

/* ── CURSOR: Native pointer always visible ── */
/* XDR glow cursor — additive overlay, never hides native cursor */
.xdr-cursor-glow {
  position: fixed;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,150,14,0.55);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease,
              border-color 0.25s ease, background 0.25s ease;
  will-change: transform;
  mix-blend-mode: screen;
}
.xdr-cursor-glow.on-link {
  width: 44px; height: 44px;
  border-color: rgba(201,150,14,0.8);
  background: rgba(201,150,14,0.06);
}
.xdr-cursor-glow.clicking {
  width: 18px; height: 18px;
  background: rgba(201,150,14,0.18);
}
/* HDR: glow ring uses P3 gold */
.hdr .xdr-cursor-glow {
  border-color: color(display-p3 0.85 0.62 0.02 / 0.6);
  box-shadow: 0 0 12px color(display-p3 0.85 0.62 0.02 / 0.3);
}
.hdr .xdr-cursor-glow.on-link {
  border-color: color(display-p3 0.85 0.62 0.02 / 0.9);
  box-shadow: 0 0 20px color(display-p3 0.85 0.62 0.02 / 0.4);
}
/* Mobile: no cursor ring */

/* ════════════════════════════════════════════════════════════════════════
   OPERATIONAL CLARITY SECTION
   Shows OrbiQore's dashboard interface — the XDR difference is in
   contrast depth and operational status clarity, not rainbow colors
   ════════════════════════════════════════════════════════════════════════ */

.clarity-sec {
  background: var(--bg);
  padding: var(--section-v) var(--section-h);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.clarity-sec::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 60% at 70% 50%,
    rgba(201,150,14,0.025) 0%, transparent 65%);
}
.clarity-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.clarity-left { }
.clarity-right { }

/* ── Dashboard mock ── */
.ops-dashboard {
  background: #0A0908;
  border: 1px solid rgba(201,150,14,0.18);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.7),
              0 0 0 1px rgba(201,150,14,0.06) inset;
}

/* HDR: blacks go deeper, contrast sharpens */
.hdr .ops-dashboard {
  background: color(display-p3 0.022 0.018 0.014);
  box-shadow:
    0 40px 80px color(display-p3 0 0 0 / 0.8),
    0 0 0 1px color(display-p3 0.82 0.60 0.02 / 0.08) inset;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid rgba(201,150,14,0.10);
}
.dash-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(245,240,232,0.5);
}
.dash-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #C9960E;
}
.dash-live-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #C9960E;
  animation: livePulse 1.6s ease-in-out infinite;
}
.hdr .dash-live-dot {
  background: color(display-p3 0.82 0.60 0.02);
  box-shadow: 0 0 8px color(display-p3 0.82 0.60 0.02 / 0.7);
}
@keyframes livePulse { 0%,100%{opacity:1}50%{opacity:.3} }

/* Metric row */
.dash-metrics {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(201,150,14,0.08);
}
.dash-metric {
  padding: 14px 14px 12px;
  background: #0A0908;
}
.hdr .dash-metric { background: color(display-p3 0.022 0.018 0.014); }

.dm-label {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.14em;
  color: rgba(245,240,232,0.3);
  display: block;
  margin-bottom: 6px;
}
.dm-val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: block;
}
.dm-val.ok     { color: #C9960E; }
.dm-val.warn   { color: #B8780A; }
.dm-val.alert  { color: #C44030; }
.dm-val.neutral{ color: rgba(245,240,232,0.75); }

/* HDR metric values: deeper distinction between states */
.hdr .dm-val.ok    { color: color(display-p3 0.82 0.60 0.02); }
.hdr .dm-val.warn  { color: color(display-p3 0.78 0.46 0.01); }
.hdr .dm-val.alert { color: color(display-p3 0.88 0.16 0.10); }

/* Scan activity bars */
.dash-chart {
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(201,150,14,0.06);
}
.dash-chart-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: rgba(245,240,232,0.25);
  display: block;
  margin-bottom: 10px;
}
.dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 52px;
}
.db {
  flex: 1;
  border-radius: 1px 1px 0 0;
  transition: opacity 0.3s;
}
.db.ok    { background: rgba(201,150,14,0.7); }
.db.warn  { background: rgba(184,120,10,0.55); }
.db.alert { background: rgba(196,64,48,0.7); }
.hdr .db.ok    { background: color(display-p3 0.82 0.60 0.02 / 0.75); }
.hdr .db.alert { background: color(display-p3 0.88 0.16 0.10 / 0.75); }

/* Event log */
.dash-log {
  padding: 10px 18px 14px;
}
.log-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  align-items: center;
}
.log-row:last-child { border-bottom: none; }
.log-time {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(245,240,232,0.28);
}
.log-text {
  font-size: 11.5px;
  color: rgba(245,240,232,0.6);
  line-height: 1.4;
}
.log-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  padding: 3px 8px;
}
.log-tag.ok    { color: #C9960E;    background: rgba(201,150,14,0.12); }
.log-tag.warn  { color: #B8780A;    background: rgba(184,120,10,0.12); }
.log-tag.alert { color: #C44030;    background: rgba(196,64,48,0.14); }
.hdr .log-tag.ok    { color: color(display-p3 0.82 0.60 0.02); background: color(display-p3 0.82 0.60 0.02 / 0.12); }
.hdr .log-tag.alert { color: color(display-p3 0.88 0.16 0.10); background: color(display-p3 0.88 0.16 0.10 / 0.12); }

/* Copy side */
.clarity-feature {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-3);
  align-items: flex-start;
}
.clarity-feature:first-child { border-top: 1px solid var(--border-3); }
.cf-icon {
  width: 36px; height: 36px;
  background: rgba(201,150,14,0.08);
  border: 1px solid rgba(201,150,14,0.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.cf-title { font-size: 15px; font-weight: 600; color: var(--text-1); margin-bottom: 5px; }
.cf-body  { font-size: 13.5px; line-height: 1.7; color: var(--text-3); }

/* XDR note pill */
.xdr-note-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 10px 18px;
  border: 1px solid rgba(201,150,14,0.2);
  background: rgba(201,150,14,0.04);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: rgba(245,240,232,0.4);
}
.xdr-note-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(201,150,14,0.5);
}
.hdr .xdr-note-pill {
  border-color: color(display-p3 0.82 0.60 0.02 / 0.25);
  color: color(display-p3 0.82 0.60 0.02 / 0.6);
}
.hdr .xdr-note-pill .dot {
  background: color(display-p3 0.82 0.60 0.02);
  box-shadow: 0 0 8px color(display-p3 0.82 0.60 0.02 / 0.6);
}

@media(max-width:1024px) {
  .clarity-inner { grid-template-columns: 1fr; gap: 48px; }
}

/* ════════════════════════════════════════════════════════════════
   MISSING CLASSES — restored
   ════════════════════════════════════════════════════════════════ */

/* Page transition veil */
.page-veil {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: var(--bg);
  transform: scaleY(0);
  transform-origin: top;
  pointer-events: none;
  will-change: transform;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 140px var(--section-h) 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.page-h1 {
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--text-1);
  font-family: var(--font-display);
}
.page-h1 .gold { color: var(--gold); }

/* Section alt background */
.sec-alt { background: var(--bg2); }
.sec { padding: var(--section-v) var(--section-h); }

/* Magnetic button — position wrapper */
.mag-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Grain texture */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  animation: grainAnim 0.5s steps(2) infinite;
}
@keyframes grainAnim {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-1%,-2%); }
  50%  { transform: translate(2%,1%); }
  75%  { transform: translate(-1%,2%); }
  100% { transform: translate(1%,-1%); }
}

@media(max-width:1024px) {
  .page-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .page-hero { padding: 110px var(--section-h) 60px; }
}

@media(max-width:768px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  
  .hscroll-panel { width: 85vw; height: 420px; }
  .xdr-cursor-glow { display: none; }
}
