/* ============================================================
   BlackFruit — Trail
   Virtual beard & hair colour studio
   Scoped stylesheet (standalone page)
   ============================================================ */

/* ===== TOKENS ===== */
:root {
  --color-bg: #050f12;
  --color-bg-light: #081a1c;
  --color-bg-lighter: #0d2a28;
  --color-surface: rgba(255, 255, 255, 0.045);
  --color-surface-hover: rgba(255, 255, 255, 0.075);
  --color-border: rgba(180, 226, 216, 0.10);
  --color-border-gold: rgba(212, 175, 55, 0.28);
  --color-text: #eaf1ee;
  --color-text-muted: rgba(234, 241, 238, 0.62);
  --color-text-dim: rgba(234, 241, 238, 0.36);
  --color-accent: #3db4a8;
  --color-accent-dark: #2a8a80;
  --color-gold: #d4af37;
  --color-gold-light: #f4d47a;
  --color-fruit: #e8435e;

  --gradient-accent: linear-gradient(135deg, #3db4a8 0%, #2a8a80 100%);
  --gradient-gold: linear-gradient(135deg, #fdf0b8 0%, #d4af37 45%, #8a6a1f 72%, #f4d47a 100%);
  --gradient-title: linear-gradient(135deg, #9bf3e6 0%, #e8435e 48%, #f4d47a 100%);
  --gradient-glass: linear-gradient(150deg, rgba(255,255,255,0.075) 0%, rgba(255,255,255,0.018) 52%, rgba(61,180,168,0.05) 100%);
  --gradient-deep: radial-gradient(120% 90% at 18% 0%, #0d2f2a 0%, #07191d 46%, #1b0e18 100%);

  --shadow-lg: 0 30px 100px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 0 0 1px rgba(212, 175, 55, 0.22), 0 24px 90px rgba(0, 0, 0, 0.6);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-elegant: 'Cormorant Garamond', Georgia, serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

@property --ring-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: calc(96px + env(safe-area-inset-top));
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 800px at 78% -8%, rgba(61, 180, 168, 0.13), transparent 62%),
    radial-gradient(1000px 700px at 6% 14%, rgba(232, 67, 94, 0.06), transparent 60%),
    radial-gradient(900px 900px at 62% 102%, rgba(212, 175, 55, 0.05), transparent 66%),
    var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background-image: var(--noise);
  background-size: 200px 200px;
  opacity: 0.04;
}

img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: none; }
a { color: inherit; }
ul { list-style: none; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible {
  outline: 2px solid var(--color-gold-light);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ===== VEIL ===== */
.trail-veil {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(900px 600px at 50% 30%, rgba(61, 180, 168, 0.14), transparent 65%),
    radial-gradient(700px 600px at 60% 80%, rgba(212, 175, 55, 0.08), transparent 70%),
    #050f12;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
  animation: veilFailsafe 0.6s ease 3s forwards;
}
.trail-veil.is-open { opacity: 0; visibility: hidden; pointer-events: none; animation: none; }
@keyframes veilFailsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.veil-noise {
  position: absolute; inset: 0; background-image: var(--noise);
  background-size: 200px 200px; opacity: 0.05; pointer-events: none;
}
.veil-lockup { position: relative; display: grid; justify-items: center; gap: 18px; padding: 20px; }
.veil-mark { position: relative; display: block; }
.veil-mark img {
  height: clamp(64px, 9vw, 92px); width: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 24px rgba(61, 180, 168, 0.2));
}
.veil-line {
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.8), transparent);
  position: relative; overflow: hidden;
}
.veil-line::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, #fff8d8, transparent);
  transform: translateX(-100%);
  animation: veilSweep 1.6s var(--ease-out) infinite;
}
.veil-tag {
  font-size: 11px; letter-spacing: 3.4px; text-transform: uppercase;
  color: var(--color-text-dim);
}
@keyframes veilSweep { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ===== COMB CURSOR ===== */
.comb-cursor {
  position: fixed; top: 0; left: 0; width: 46px; height: 46px;
  margin: -7px 0 0 -5px; pointer-events: none; z-index: 9999;
  opacity: 0; will-change: transform; transition: opacity 0.22s ease;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.6));
}
.comb-cursor.is-ready { opacity: 1; }
.comb-cursor.is-active { transform-origin: 50% 80%; }
.comb-cursor.is-down { opacity: 0.7; }
.comb-cursor svg { width: 100%; height: 100%; }
body.comb-cursor-active,
body.comb-cursor-active a,
body.comb-cursor-active button,
body.comb-cursor-active input,
body.comb-cursor-active label,
body.comb-cursor-active .shade-chip { cursor: none; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0; transition: all 0.4s var(--ease-out);
}
.navbar.scrolled {
  padding: 14px 0;
  background: rgba(5, 18, 18, 0.82);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.nav-container {
  max-width: 1280px; margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img {
  height: 56px; width: auto; transition: transform 0.3s;
  filter: brightness(1.06) saturate(1.04)
          drop-shadow(0 1px 2px rgba(0,0,0,0.8))
          drop-shadow(0 3px 12px rgba(0,0,0,0.6))
          drop-shadow(0 0 16px rgba(61,180,168,0.2));
}
.nav-logo:hover img { transform: scale(1.04); }
.nav-links { display: flex; gap: clamp(16px, 2.1vw, 28px); list-style: none; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 13px; font-weight: 500; color: var(--color-text-muted);
  text-decoration: none; text-transform: uppercase; letter-spacing: 1.5px;
  position: relative; padding: 6px 0; transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 6px; left: 0; width: 0; height: 2px;
  background: var(--gradient-accent); transition: width 0.4s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--color-text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active::after {
  background: linear-gradient(90deg, #f4d47a, #d4af37);
}
.nav-actions { display: flex; align-items: center; gap: 20px; }
.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; background: var(--gradient-accent); color: var(--color-bg);
  font-size: 13px; font-weight: 600; text-decoration: none;
  text-transform: uppercase; letter-spacing: 1.5px; border-radius: 100px;
  transition: all 0.3s var(--ease-out); white-space: nowrap;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(61, 180, 168, 0.4); }
/* Trail — gold signature action in the header */
.btn-trail {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; min-height: 40px;
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 58%, #b08a26 100%);
  color: #0a1214;
  font-size: 12px; font-weight: 700; text-decoration: none;
  text-transform: uppercase; letter-spacing: 1.6px;
  border-radius: 100px; border: 1px solid rgba(244, 212, 122, 0.55);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.16);
  white-space: nowrap;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), filter 0.3s var(--ease-out);
}
.btn-trail:hover, .btn-trail:focus-visible {
  transform: translateY(-2px); filter: brightness(1.05);
  box-shadow: 0 10px 32px rgba(212, 175, 55, 0.3);
}
.btn-trail.active, .btn-trail[aria-current="page"] {
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px rgba(212, 175, 55, 0.6),
              0 10px 32px rgba(212, 175, 55, 0.28);
}
.nav-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; position: relative; flex-shrink: 0;
}
.nav-menu-btn span {
  display: block; width: 26px; height: 2px; background: var(--color-text);
  position: absolute; left: 9px; transition: all 0.3s;
}
.nav-menu-btn span:nth-child(1) { top: 14px; }
.nav-menu-btn span:nth-child(2) { top: 21px; }
.nav-menu-btn span:nth-child(3) { bottom: 14px; }
.nav-menu-btn.active span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-menu-btn.active span:nth-child(2) { opacity: 0; }
.nav-menu-btn.active span:nth-child(3) { bottom: 21px; transform: rotate(-45deg); }

/* ===== BUTTONS ===== */
.trail-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 22px; border-radius: 100px;
  font-size: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.35s, border-color 0.35s, opacity 0.3s;
}
.trail-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.trail-btn--gold {
  background: var(--gradient-gold); color: #160f04;
  box-shadow: 0 10px 34px rgba(212, 175, 55, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.trail-btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(212, 175, 55, 0.32), inset 0 1px 0 rgba(255,255,255,0.6); }
.trail-btn--ghost {
  background: rgba(255, 255, 255, 0.035); color: var(--color-text);
  border: 1px solid rgba(180, 226, 216, 0.16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.trail-btn--ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(212, 175, 55, 0.35); transform: translateY(-2px); }
.trail-btn:disabled { opacity: 0.38; cursor: not-allowed; transform: none !important; box-shadow: none; }

/* ===== REVEAL ===== */
[data-reveal] {
  opacity: 1; transform: none;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
/* Only hide content once the script has confirmed it can reveal it again. */
.reveal-armed [data-reveal]:not(.revealed) {
  opacity: 0; transform: translateY(34px);
}
[data-reveal].revealed { opacity: 1; transform: none; }

/* ===== HERO ===== */
.trail-hero {
  position: relative;
  padding: calc(128px + env(safe-area-inset-top)) 0 clamp(60px, 8vw, 110px);
  overflow: hidden;
}
.trail-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.trail-hero-bg .orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5;
  will-change: transform;
}
.orb-1 {
  width: 520px; height: 520px; top: -160px; right: 6%;
  background: radial-gradient(circle, rgba(61,180,168,0.3), transparent 68%);
}
.orb-2 {
  width: 460px; height: 460px; top: 32%; left: -160px;
  background: radial-gradient(circle, rgba(232,67,94,0.16), transparent 68%);
}
.orb-3 {
  width: 520px; height: 520px; bottom: -200px; right: 24%;
  background: radial-gradient(circle, rgba(212,175,55,0.15), transparent 68%);
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(180, 226, 216, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 226, 216, 0.045) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 10%, transparent 75%);
}
.hero-beam {
  position: absolute; top: -20%; left: 46%; width: 1px; height: 120%;
  background: linear-gradient(180deg, transparent, rgba(212,175,55,0.22), transparent);
  transform: rotate(18deg); filter: blur(0.5px);
}
.hero-watermark {
  position: absolute; top: 44%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-size: clamp(160px, 30vw, 400px);
  font-weight: 900; letter-spacing: 0.08em;
  color: transparent; -webkit-text-stroke: 1px rgba(180, 226, 216, 0.05);
  white-space: nowrap; user-select: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(36px, 5vw, 72px); align-items: start;
}

/* Intro */
.trail-intro { padding-top: clamp(6px, 2vw, 30px); position: sticky; top: 120px; }
.trail-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--color-accent);
  margin-bottom: 26px;
}
.eyebrow-line {
  width: 34px; height: 1px; background: linear-gradient(90deg, var(--color-gold), transparent);
}
.trail-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(44px, 6vw, 82px); line-height: 1.02; letter-spacing: -1.6px;
  margin-bottom: 26px;
}
.trail-title em {
  font-style: italic; font-weight: 500;
  background: var(--gradient-title); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.trail-lede {
  font-family: var(--font-elegant); font-size: clamp(18px, 2vw, 22px);
  line-height: 1.62; color: rgba(234, 241, 238, 0.72);
  max-width: 470px; margin-bottom: 36px;
}
.trail-metrics {
  display: flex; gap: clamp(20px, 3vw, 38px);
  padding: 22px 0; margin-bottom: 30px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.trail-metrics div { display: grid; gap: 2px; }
.trail-metrics strong {
  font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px);
  font-weight: 600; color: var(--color-gold-light); line-height: 1;
}
.trail-metrics span {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--color-text-dim);
}
.trail-checks { display: grid; gap: 13px; margin-bottom: 34px; }
.trail-checks li {
  display: flex; align-items: flex-start; gap: 13px;
  font-size: 14px; color: var(--color-text-muted); line-height: 1.5;
}
.trail-checks li span {
  font-size: 10px; letter-spacing: 1px; color: var(--color-gold);
  padding-top: 3px; flex-shrink: 0;
}
.intro-scroll {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--color-text-muted); text-decoration: none;
  border-bottom: 1px solid rgba(180, 226, 216, 0.18); padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
}
.intro-scroll span { color: var(--color-gold); transition: transform 0.3s; }
.intro-scroll:hover { color: var(--color-text); border-color: var(--color-gold); }
.intro-scroll:hover span { transform: translateY(3px); }

/* ===== THE MIRROR ===== */
.studio-column { min-width: 0; }
.mirror {
  position: relative;
  border-radius: 38px;
  padding: 13px;
  background:
    linear-gradient(155deg, rgba(255,255,255,0.06), rgba(255,255,255,0.012) 42%, rgba(61,180,168,0.04)),
    linear-gradient(180deg, #0a1a1b, #060f11 62%, #0c1013);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(0, 0, 0, 0.6),
    0 40px 120px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(212, 175, 55, 0.14);
  transform: perspective(1500px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease-out);
  will-change: transform;
}
.mirror::before {
  content: '';
  position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--ring-angle),
    rgba(212, 175, 55, 0.05) 0deg,
    rgba(212, 175, 55, 0.65) 55deg,
    rgba(61, 180, 168, 0.45) 120deg,
    rgba(212, 175, 55, 0.06) 200deg,
    rgba(244, 212, 122, 0.55) 300deg,
    rgba(212, 175, 55, 0.05) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: ringSpin 16s linear infinite;
  pointer-events: none;
}
.mirror-ring {
  position: absolute; inset: -4px; border-radius: 42px; pointer-events: none;
  border: 1px solid rgba(212, 175, 55, 0.08);
}
.mirror-aura {
  position: absolute; inset: 6% -8% -12%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.16), transparent 64%);
  filter: blur(46px); z-index: -1; pointer-events: none;
}
@keyframes ringSpin { to { --ring-angle: 360deg; } }

.mirror-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, #0d2526 0%, #061112 55%, #040b0c 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055), inset 0 40px 90px rgba(0, 0, 0, 0.35);
  isolation: isolate;
}
.frame-corners { position: absolute; inset: 22px; pointer-events: none; z-index: 5; }
.frame-corners i {
  position: absolute; width: 18px; height: 18px;
  border-color: rgba(212, 175, 55, 0.55); border-style: solid; border-width: 0;
}
.frame-corners i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.frame-corners i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.frame-corners i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.frame-corners i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.frame-sheen {
  position: absolute; inset: 0; border-radius: 38px; pointer-events: none; z-index: 4;
  background: linear-gradient(118deg, rgba(255,255,255,0.055) 0%, transparent 32%, transparent 68%, rgba(61,180,168,0.045) 100%);
  mix-blend-mode: screen;
}
.mirror-caption {
  display: flex; align-items: center; gap: 9px;
  padding: 15px 18px 3px;
  font-size: 10px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--color-text-dim);
}
.caption-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--color-accent);
  box-shadow: 0 0 10px rgba(61, 180, 168, 0.9);
  animation: pulseDot 3s ease-in-out infinite;
}
.caption-sep { color: rgba(234, 241, 238, 0.18); }
#captionShade { color: rgba(212, 175, 55, 0.8); }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ===== STAGE: EMPTY ===== */
.stage-scene { position: absolute; inset: 0; }
.stage-empty {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: clamp(22px, 4vw, 44px);
  background:
    radial-gradient(80% 60% at 50% 18%, rgba(61, 180, 168, 0.10), transparent 70%),
    radial-gradient(70% 50% at 50% 100%, rgba(212, 175, 55, 0.06), transparent 70%);
}
.stage-empty.is-hidden { display: none; }
.empty-portrait {
  position: relative; width: clamp(94px, 15vw, 126px); height: clamp(94px, 15vw, 126px);
  margin-bottom: 22px; color: var(--color-gold-light); opacity: 0.8;
}
.empty-portrait svg { width: 100%; height: 100%; }
.empty-scan {
  position: absolute; left: 10%; right: 10%; height: 1px; top: 12%;
  background: linear-gradient(90deg, transparent, rgba(244, 212, 122, 0.85), transparent);
  box-shadow: 0 0 12px rgba(244, 212, 122, 0.55);
  animation: scanPortrait 4.2s var(--ease-out) infinite;
}
@keyframes scanPortrait {
  0% { top: 12%; opacity: 0; }
  12% { opacity: 0.9; }
  70% { opacity: 0.7; }
  100% { top: 86%; opacity: 0; }
}
.empty-eyebrow {
  font-size: 10px; letter-spacing: 3.2px; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 10px;
}
.empty-title {
  font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600; letter-spacing: -0.6px; line-height: 1.1; margin-bottom: 12px;
}
.empty-copy {
  font-size: 13.5px; line-height: 1.65; color: var(--color-text-muted);
  max-width: 320px; margin-bottom: 26px;
}
.empty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 16px; }
.sample-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 11.5px; letter-spacing: 0.2px; color: rgba(234, 241, 238, 0.55);
  border-bottom: 1px solid transparent; transition: color 0.3s, border-color 0.3s;
}
.sample-link span { color: var(--color-gold); transition: transform 0.3s; }
.sample-link:hover { color: var(--color-text); border-color: rgba(212, 175, 55, 0.4); }
.sample-link:hover span { transform: translateX(3px); }
.empty-drop {
  font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(234, 241, 238, 0.26); margin-top: 14px;
}
.stage-empty.is-dragover {
  background:
    radial-gradient(80% 60% at 50% 18%, rgba(61, 180, 168, 0.2), transparent 70%),
    radial-gradient(70% 50% at 50% 100%, rgba(212, 175, 55, 0.12), transparent 70%);
}
.stage-empty.is-dragover .empty-portrait { color: #fff8d8; opacity: 1; }

/* ===== STAGE: PHOTO ===== */
.stage-photo { position: absolute; inset: 0; z-index: 2; background: #040b0c; touch-action: pan-y; }
.stage-photo[hidden] { display: none; }
.stage-photo canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: #040b0c;
}
.stage-photo .after-canvas {
  clip-path: inset(0 0 0 50%);
  transition: clip-path 1.1s var(--ease-out);
}
.stage-photo.is-dragging .after-canvas { transition: none; }
.stage-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 45%, transparent 55%, rgba(2, 8, 9, 0.45) 100%),
    linear-gradient(180deg, rgba(2, 8, 9, 0.28), transparent 18%, transparent 82%, rgba(2, 8, 9, 0.4));
}
.stage-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.05;
  background-image: var(--noise); background-size: 180px 180px; mix-blend-mode: overlay;
}
.stage-labels {
  position: absolute; top: 18px; left: 0; right: 0; z-index: 4;
  display: flex; justify-content: space-between; padding: 0 20px;
  pointer-events: none;
}
.stage-labels span {
  font-size: 9px; letter-spacing: 2.6px; text-transform: uppercase;
  color: rgba(234, 241, 238, 0.7);
  padding: 6px 11px; border-radius: 100px;
  background: rgba(3, 10, 11, 0.5); border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.stage-labels span:last-child { color: #160f04; background: rgba(244, 212, 122, 0.88); border-color: transparent; }

.split {
  position: absolute; top: 0; bottom: 0; left: 50%; z-index: 5; width: 0;
  transition: left 1.1s var(--ease-out);
}
.stage-photo.is-dragging .split { transition: none; }
.split-line {
  position: absolute; top: 0; bottom: 0; left: -1px; width: 2px;
  background: linear-gradient(180deg, rgba(244,212,122,0.1), rgba(244,212,122,0.9) 18%, rgba(255,255,255,0.95) 50%, rgba(244,212,122,0.9) 82%, rgba(244,212,122,0.1));
  box-shadow: 0 0 18px rgba(244, 212, 122, 0.55);
}
.split-handle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(155deg, rgba(255,255,255,0.16), rgba(8, 20, 20, 0.86));
  border: 1px solid rgba(244, 212, 122, 0.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 24px rgba(244, 212, 122, 0.18);
  color: #fdf3c4; cursor: ew-resize; touch-action: none;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.split-handle svg { width: 22px; height: 22px; }
.split-handle:hover { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 12px 36px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.3), 0 0 30px rgba(244,212,122,0.3); }
.split-handle:active { transform: translate(-50%, -50%) scale(0.96); }

.reveal-flare {
  position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 248, 216, 0.55), rgba(212, 175, 55, 0.22) 30%, transparent 62%);
}
.stage-photo.is-revealing .reveal-flare { animation: flare 1.7s var(--ease-out) forwards; }
@keyframes flare {
  0% { opacity: 0; transform: scale(0.4); }
  38% { opacity: 0.9; }
  100% { opacity: 0; transform: scale(1.7); }
}
.set-badge {
  position: absolute; left: 50%; bottom: 24px; z-index: 7;
  transform: translate(-50%, 12px);
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: 100px;
  font-size: 9px; letter-spacing: 2.8px; text-transform: uppercase;
  color: #160f04; background: linear-gradient(135deg, #fdf0b8, #d4af37);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 24px rgba(244, 212, 122, 0.26);
  opacity: 0; pointer-events: none;
}
.set-badge i {
  width: 5px; height: 5px; border-radius: 50%; background: #160f04;
}
.stage-photo.is-revealing .set-badge {
  animation: badgeIn 0.7s var(--ease-out) 0.55s forwards;
}
@keyframes badgeIn {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ===== STAGE: PROCESSING ===== */
.stage-processing {
  position: absolute; inset: 0; z-index: 8;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 30px;
  background:
    radial-gradient(70% 50% at 50% 30%, rgba(61, 180, 168, 0.14), transparent 70%),
    rgba(3, 10, 11, 0.9);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  animation: fadeIn 0.35s ease both;
}
.stage-processing[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.process-core { position: relative; width: 108px; height: 108px; display: grid; place-items: center; margin-bottom: 28px; }
.process-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(180, 226, 216, 0.1); stroke-width: 2; }
.ring-fill {
  fill: none; stroke: #f4d47a; stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  filter: drop-shadow(0 0 6px rgba(244, 212, 122, 0.55));
  transition: stroke-dashoffset 0.6s var(--ease-out);
}
.process-core::after {
  content: ''; position: absolute; inset: 14px; border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.22);
  animation: spinSlow 12s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.process-glyph {
  font-family: var(--font-display); font-size: 24px; font-weight: 700;
  letter-spacing: 1px; color: var(--color-gold-light);
}
.process-steps {
  display: grid; gap: 11px; text-align: left; margin-bottom: 20px;
  counter-reset: step;
}
.process-steps li {
  display: flex; align-items: center; gap: 11px;
  font-size: 12px; letter-spacing: 0.4px; color: rgba(234, 241, 238, 0.3);
  transition: color 0.35s, transform 0.35s;
}
.process-steps .p-dot {
  width: 5px; height: 5px; border-radius: 50%; background: currentColor;
  opacity: 0.5; transition: all 0.35s;
}
.process-steps li.is-active { color: var(--color-text); transform: translateX(3px); }
.process-steps li.is-active .p-dot {
  background: var(--color-gold-light); opacity: 1;
  box-shadow: 0 0 10px rgba(244, 212, 122, 0.9);
}
.process-steps li.is-done { color: rgba(234, 241, 238, 0.55); }
.process-steps li.is-done .p-dot { background: var(--color-accent); opacity: 1; }
.process-note { font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--color-text-dim); }

/* ===== STAGE: NOTE ===== */
.stage-note {
  position: absolute; inset: 0; z-index: 9;
  display: grid; place-items: center; padding: 26px;
  background: rgba(3, 10, 11, 0.82);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
}
.stage-note[hidden] { display: none; }
.note-card {
  width: min(100%, 380px); text-align: center;
  padding: 30px 26px; border-radius: 22px;
  background: linear-gradient(158deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02) 55%, rgba(212,175,55,0.04));
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.08);
}
.note-icon {
  display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 18px;
  border-radius: 50%; border: 1px solid rgba(212, 175, 55, 0.4);
  font-family: var(--font-display); font-size: 20px; color: var(--color-gold-light);
  background: rgba(212, 175, 55, 0.08);
}
.note-card h3 {
  font-family: var(--font-display); font-size: 24px; font-weight: 600;
  line-height: 1.2; margin-bottom: 10px;
}
.note-card p { font-size: 13px; line-height: 1.65; color: var(--color-text-muted); margin-bottom: 20px; }
.note-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.note-actions .trail-btn { min-height: 44px; padding: 10px 16px; font-size: 10.5px; letter-spacing: 1.2px; }

/* ===== CONTROL PANEL ===== */
.trail-panel {
  position: relative;
  margin-top: 18px;
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: 28px;
  background:
    linear-gradient(158deg, rgba(255,255,255,0.062), rgba(255,255,255,0.016) 48%, rgba(61,180,168,0.035)),
    rgba(6, 18, 19, 0.72);
  border: 1px solid var(--color-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 24px 70px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-bottom: 18px; margin-bottom: 20px;
  border-bottom: 1px solid rgba(180, 226, 216, 0.08);
}
.panel-eyebrow {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--color-text-dim);
}
.engine-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 100px;
  font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(180, 226, 216, 0.12);
  transition: color 0.3s, border-color 0.3s;
}
.engine-chip i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--color-text-dim);
  transition: background 0.3s, box-shadow 0.3s;
}
.engine-chip.is-loading i { background: var(--color-gold-light); animation: pulseDot 1.2s ease-in-out infinite; }
.engine-chip.is-ready { color: rgba(155, 243, 230, 0.85); border-color: rgba(61, 180, 168, 0.3); }
.engine-chip.is-ready i { background: var(--color-accent); box-shadow: 0 0 8px rgba(61, 180, 168, 0.9); }
.engine-chip.is-error { color: rgba(255, 160, 170, 0.9); border-color: rgba(232, 67, 94, 0.35); }
.engine-chip.is-error i { background: var(--color-fruit); box-shadow: 0 0 8px rgba(232, 67, 94, 0.8); }
.engine-chip.is-compat { color: rgba(244, 212, 122, 0.85); border-color: rgba(212, 175, 55, 0.3); }

.panel-block { margin-bottom: 22px; }
.panel-label-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 12px;
}
.panel-label {
  font-size: 10px; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--color-text-muted);
}
.panel-value {
  font-family: var(--font-elegant); font-size: 16px; color: var(--color-gold-light);
  letter-spacing: 0.3px;
}
.palette {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(142px, 1fr)); gap: 8px;
}
.shade-chip {
  display: flex; align-items: center; gap: 10px; min-height: 52px;
  padding: 8px 11px; border-radius: 14px; text-align: left;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(180, 226, 216, 0.1);
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.shade-chip:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(212, 175, 55, 0.32); transform: translateY(-1px); }
.shade-chip.is-active {
  background: linear-gradient(135deg, rgba(212,175,55,0.13), rgba(61,180,168,0.05));
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.16), 0 8px 24px rgba(0, 0, 0, 0.28);
}
.shade-orb {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background:
    radial-gradient(circle at 32% 26%, rgba(255,255,255,0.55), transparent 34%),
    linear-gradient(148deg, var(--orb-2, #2b2f31), var(--orb, #0a0b0d) 62%);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.22), inset 0 -2px 4px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.4);
}
.shade-chip.is-active .shade-orb { box-shadow: inset 0 1px 2px rgba(255,255,255,0.3), inset 0 -2px 4px rgba(0,0,0,0.5), 0 0 0 2px rgba(212,175,55,0.28); }
.shade-chip-text { display: grid; gap: 1px; min-width: 0; }
.shade-chip-text strong {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2px; color: var(--color-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shade-chip-text small {
  font-size: 9px; letter-spacing: 0.7px; text-transform: uppercase;
  color: var(--color-text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.depth-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 34px; background: transparent; cursor: pointer;
}
.depth-range::-webkit-slider-runnable-track {
  height: 3px; border-radius: 10px;
  background: linear-gradient(90deg, rgba(212,175,55,0.75), rgba(244,212,122,0.9), rgba(61,180,168,0.55));
}
.depth-range::-moz-range-track {
  height: 3px; border-radius: 10px;
  background: linear-gradient(90deg, rgba(212,175,55,0.75), rgba(244,212,122,0.9), rgba(61,180,168,0.55));
}
.depth-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; margin-top: -9.5px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fffbe6, #f4d47a 42%, #b08a22 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(212, 175, 55, 0.12);
}
.depth-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fffbe6, #f4d47a 42%, #b08a22 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(212, 175, 55, 0.12);
}
.depth-scale {
  display: flex; justify-content: space-between; margin-top: 2px;
  font-size: 8.5px; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(234, 241, 238, 0.27);
}
.panel-help { font-size: 11px; line-height: 1.6; color: var(--color-text-dim); margin-top: 10px; }

.panel-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
.panel-actions .trail-btn { flex: 1 1 150px; }
.panel-fine {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.4px; color: rgba(234, 241, 238, 0.32);
}
.fine-dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--color-accent);
  box-shadow: 0 0 8px rgba(61, 180, 168, 0.8); flex-shrink: 0;
}
.engine-warning {
  margin-top: 12px; padding: 10px 13px; border-radius: 10px;
  font-size: 10.5px; line-height: 1.55; color: rgba(244, 212, 122, 0.85);
  background: rgba(212, 175, 55, 0.06); border: 1px solid rgba(212, 175, 55, 0.18);
}
.engine-warning[hidden] { display: none; }

/* ===== SHARED SECTION ===== */
.trail-section { position: relative; padding: clamp(72px, 10vw, 130px) 0; }
.section-head { max-width: 700px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .trail-eyebrow { justify-content: center; }
.section-title {
  font-family: var(--font-display); font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 600; line-height: 1.08; letter-spacing: -1px; margin-bottom: 18px;
}
.gradient-text {
  font-style: italic; font-weight: 500;
  background: var(--gradient-title); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-desc { font-size: 15px; line-height: 1.7; color: var(--color-text-muted); max-width: 600px; }
.section-head--center .section-desc { margin-left: auto; margin-right: auto; }

/* ===== SHADES ===== */
.shades-section {
  background:
    radial-gradient(900px 500px at 12% 0%, rgba(61,180,168,0.07), transparent 62%),
    linear-gradient(180deg, transparent, rgba(7, 24, 26, 0.55) 40%, transparent);
  border-top: 1px solid rgba(180, 226, 216, 0.06);
}
.shade-cards {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}
.shade-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 22px 20px 20px; border-radius: 24px;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, 0.09), transparent 62%),
    linear-gradient(158deg, rgba(255,255,255,0.06), rgba(255,255,255,0.012) 55%, rgba(0,0,0,0.2));
  border: 1px solid rgba(180, 226, 216, 0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 18px 50px rgba(0,0,0,0.3);
  transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
.shade-card::before {
  content: ''; position: absolute; top: 0; left: 20px; right: 20px; height: 90px;
  background: linear-gradient(180deg, var(--shade-2), transparent);
  opacity: 0.2; filter: blur(24px); pointer-events: none;
}
.shade-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), 0 28px 70px rgba(0,0,0,0.44), 0 0 40px rgba(255, 255, 255, 0.06);
}
.shade-sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, rgba(255,255,255,0.07), transparent 34%, transparent 70%, rgba(255,255,255,0.025));
  mix-blend-mode: screen; opacity: 0.7;
}
.shade-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 48px; }
.shade-index { font-size: 10px; letter-spacing: 2px; color: var(--color-text-dim); }
.shade-tag {
  font-size: 8px; letter-spacing: 1.6px; text-transform: uppercase;
  color: rgba(244, 212, 122, 0.82); padding: 4px 8px; border-radius: 100px;
  background: rgba(212, 175, 55, 0.08); border: 1px solid rgba(212, 175, 55, 0.18);
  white-space: nowrap;
}
.shade-card h3 {
  font-family: var(--font-display); font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 600; line-height: 1.15; margin-bottom: 10px;
}
.shade-card p { font-size: 12.5px; line-height: 1.6; color: var(--color-text-muted); margin-bottom: 18px; }
.shade-note {
  font-size: 9px; letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--color-text-dim); margin-top: auto; padding-top: 16px;
  border-top: 1px solid rgba(180, 226, 216, 0.08); margin-bottom: 14px;
}
.shade-try {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px;
  font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--color-gold-light); text-align: left;
  transition: color 0.3s, gap 0.3s;
}
.shade-try span { transition: transform 0.3s; }
.shade-try:hover { color: #fff8d8; }
.shade-try:hover span { transform: translateX(3px); }

/* ===== GUIDE ===== */
.guide-section {
  background:
    radial-gradient(900px 600px at 88% 20%, rgba(212,175,55,0.06), transparent 62%),
    linear-gradient(180deg, transparent, rgba(20, 11, 21, 0.55) 50%, transparent);
  border-top: 1px solid rgba(180, 226, 216, 0.06);
}
.guide-layout { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: clamp(32px, 5vw, 70px); align-items: start; }
.guide-head { position: sticky; top: 120px; }
.guide-link {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 24px;
  font-size: 10.5px; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--color-gold-light); text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.28); padding-bottom: 4px;
  transition: border-color 0.3s, gap 0.3s;
}
.guide-link:hover { border-color: var(--color-gold); gap: 13px; }
.guide-cards { display: grid; gap: 14px; }
.guide-card {
  position: relative; padding: 26px 26px 24px; border-radius: 22px;
  background: linear-gradient(158deg, rgba(255,255,255,0.055), rgba(255,255,255,0.012) 55%, rgba(61,180,168,0.028));
  border: 1px solid rgba(180, 226, 216, 0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 16px 44px rgba(0,0,0,0.26);
  transition: border-color 0.4s, transform 0.5s var(--ease-out);
}
.guide-card:hover { border-color: rgba(212, 175, 55, 0.3); transform: translateX(4px); }
.guide-number {
  position: absolute; top: 24px; right: 26px;
  font-family: var(--font-display); font-size: 30px; font-weight: 600;
  color: rgba(255, 255, 255, 0.07); line-height: 1;
}
.guide-card h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  margin-bottom: 6px; padding-right: 40px;
}
.guide-card > p { font-size: 12.5px; line-height: 1.6; color: var(--color-text-muted); margin-bottom: 14px; }
.guide-answer {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 13px 7px 8px; border-radius: 100px; margin-bottom: 12px;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--color-gold-light);
  background: rgba(212, 175, 55, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.2);
}
.guide-orb {
  width: 20px; height: 20px; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255,255,255,0.55), transparent 34%),
    linear-gradient(148deg, var(--orb-2, #2b2f31), var(--orb, #0a0b0d) 62%);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.2), inset 0 -2px 4px rgba(0,0,0,0.5);
}
.guide-why {
  font-size: 11.5px !important; line-height: 1.6; color: var(--color-text-dim) !important;
  margin-bottom: 0 !important;
  padding-top: 12px; border-top: 1px solid rgba(180, 226, 216, 0.07);
}

/* ===== HOW ===== */
.how-section {
  border-top: 1px solid rgba(180, 226, 216, 0.06);
  background: linear-gradient(180deg, transparent, rgba(8, 26, 28, 0.42), transparent);
}
.how-rail {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
}
.how-step { position: relative; padding-top: 26px; }
.how-index {
  font-family: var(--font-display); font-size: 14px; color: var(--color-gold);
  letter-spacing: 1px;
}
.how-rule {
  display: block; height: 1px; margin: 16px 0 20px;
  background: linear-gradient(90deg, rgba(212,175,55,0.5), rgba(180,226,216,0.08));
}
.how-step h3 {
  font-family: var(--font-display); font-size: clamp(21px, 2.1vw, 27px);
  font-weight: 600; line-height: 1.2; margin-bottom: 10px;
}
.how-step p { font-size: 12.5px; line-height: 1.7; color: var(--color-text-muted); max-width: 320px; }
.how-fine {
  max-width: 760px; margin: clamp(36px, 5vw, 54px) auto 0; text-align: center;
  font-size: 11px; line-height: 1.75; color: var(--color-text-dim);
  padding-top: 22px; border-top: 1px solid rgba(180, 226, 216, 0.07);
}

/* ===== CTA ===== */
.trail-cta { overflow: hidden; padding-bottom: clamp(90px, 12vw, 160px); }
.trail-cta-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 420px at 50% 42%, rgba(61,180,168,0.12), transparent 66%),
    radial-gradient(560px 360px at 50% 62%, rgba(212,175,55,0.10), transparent 68%);
}
.trail-cta-bg span {
  position: absolute; left: 50%; top: 50%; width: min(560px, 80vw); height: min(560px, 80vw);
  transform: translate(-50%, -50%); border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.12);
  box-shadow: 0 0 120px rgba(212, 175, 55, 0.06) inset;
}
.cta-inner { position: relative; text-align: center; }
.cta-inner .trail-eyebrow { justify-content: center; }
.cta-inner h2 {
  font-family: var(--font-display); font-size: clamp(38px, 5.6vw, 74px);
  font-weight: 600; line-height: 1.04; letter-spacing: -1.2px; margin-bottom: 18px;
}
.cta-inner p { font-size: 15px; color: var(--color-text-muted); margin-bottom: 30px; }

/* ===== FOOTER ===== */
.footer {
  background:
    radial-gradient(900px 500px at 14% 0%, rgba(61, 180, 168, 0.07), transparent 60%),
    linear-gradient(180deg, #07181a 0%, #140b15 46%, #0a1a19 100%);
  border-top: 1px solid var(--color-border);
  padding: 80px 0 calc(30px + env(safe-area-inset-bottom));
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr 2fr 1.2fr;
  gap: clamp(40px, 5vw, 60px); margin-bottom: 60px;
}
.footer-brand img { height: 45px; width: auto; margin-bottom: 20px; }
.footer-brand p {
  font-size: 14px; color: var(--color-text-muted); line-height: 1.7;
  margin-bottom: 24px; max-width: 320px;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 42px; height: 42px; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted); transition: all 0.3s;
}
.social-links a:hover {
  background: var(--color-accent); color: var(--color-bg);
  border-color: var(--color-accent); transform: translateY(-3px);
}
.social-links svg { width: 18px; height: 18px; }
.footer-links-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-col h4 {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 20px; color: var(--color-text);
}
.footer-col a {
  display: block; font-size: 14px; color: var(--color-text-muted);
  text-decoration: none; padding: 6px 0; transition: color 0.3s;
}
.footer-col a:hover { color: var(--color-accent); }
.footer-newsletter h4 {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 12px;
}
.footer-newsletter p { font-size: 14px; color: var(--color-text-muted); margin-bottom: 20px; }
.newsletter-form {
  display: flex; gap: 8px; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: 100px; padding: 4px;
}
.newsletter-form input {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  padding: 12px 20px; color: var(--color-text); font-size: 14px; font-family: var(--font-body);
}
.newsletter-form input::placeholder { color: var(--color-text-dim); }
.newsletter-form button {
  padding: 10px 22px; background: var(--gradient-accent); color: var(--color-bg);
  border: none; border-radius: 100px; font-size: 13px; font-weight: 600;
  cursor: pointer; letter-spacing: 1px; transition: all 0.3s;
}
.newsletter-form button:hover { transform: scale(1.05); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 30px; border-top: 1px solid var(--color-border);
}
.footer-bottom p {
  font-size: 13px; color: var(--color-text-dim);
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
}
.footer-fruit { display: inline-flex; align-items: center; gap: 3px; margin: 0 2px; }
.footer-fruit svg { width: 15px; height: 15px; display: block; }
.footer-legal { display: flex; gap: 30px; }
.footer-legal a { font-size: 13px; color: var(--color-text-dim); text-decoration: none; transition: color 0.3s; }
.footer-legal a:hover { color: var(--color-accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 11.5px; letter-spacing: 1px; }
  .nav-actions { gap: 14px; }
  .btn-trail { padding: 10px 16px; letter-spacing: 1.3px; }
  .btn-cta { padding: 10px 18px; font-size: 12px; }
  .hero-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 34px; }
  .trail-intro { position: static; }
  .shade-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shade-card:nth-child(4), .shade-card:nth-child(5) { grid-column: span 1; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-head { position: static; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: block; }
  .nav-actions { gap: 14px; }
  .btn-trail { min-height: 44px; padding: 11px 18px; }
  .nav-links.mobile-open {
    display: flex; position: fixed;
    top: calc(84px + env(safe-area-inset-top)); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px max(clamp(20px, 4vw, 40px), env(safe-area-inset-left))
             calc(16px + env(safe-area-inset-bottom));
    background: rgba(5, 18, 18, 0.97);
    backdrop-filter: blur(24px) saturate(130%);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
    max-height: calc(100dvh - 84px - env(safe-area-inset-top));
    overflow-y: auto; animation: navDrop 0.3s var(--ease-out) both;
  }
  .nav-links.mobile-open a {
    display: flex; align-items: center; min-height: 52px; padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
  }
  .nav-links.mobile-open a::after { display: none; }
  body.nav-open { overflow: hidden; }

  .hero-grid { grid-template-columns: 1fr; }
  .trail-intro { order: 1; max-width: 620px; }
  .studio-column { order: 2; }
  .trail-title { font-size: clamp(42px, 9vw, 64px); }
  .trail-lede { max-width: 560px; }
  .mirror { max-width: 620px; margin: 0 auto; }
  .trail-panel { max-width: 620px; margin-left: auto; margin-right: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-newsletter { grid-column: 1 / -1; }
  .how-rail { grid-template-columns: 1fr; gap: 0; }
  .how-step { padding: 22px 0; border-bottom: 1px solid rgba(180,226,216,0.07); }
  .how-rule { margin: 12px 0 14px; }
  .how-step p { max-width: 520px; }
}

@media (max-width: 640px) {
  .trail-hero { padding-top: calc(104px + env(safe-area-inset-top)); }
  .nav-logo img { height: 48px; }
  .btn-cta { display: none; }
  .btn-trail { padding: 10px 16px; font-size: 11px; letter-spacing: 1.2px; }
  .trail-title { letter-spacing: -1px; }
  .trail-metrics { gap: 18px; }
  .trail-metrics strong { font-size: 26px; }
  .trail-metrics span { font-size: 8.5px; letter-spacing: 1.4px; }
  .trail-checks li { font-size: 13px; }
  .mirror { border-radius: 30px; padding: 10px; }
  .mirror-frame { border-radius: 22px; }
  .frame-corners { inset: 17px; }
  .mirror-caption { font-size: 9px; letter-spacing: 1.5px; padding: 12px 12px 2px; }
  .empty-actions { flex-direction: column; width: 100%; max-width: 260px; }
  .empty-actions .trail-btn { width: 100%; }
  .empty-drop { display: none; }
  .stage-labels { top: 12px; padding: 0 12px; }
  .stage-labels span { font-size: 8px; letter-spacing: 2px; padding: 5px 9px; }
  .split-handle { width: 52px; height: 52px; }
  .set-badge { bottom: 16px; font-size: 8px; }
  .palette { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shade-chip { min-height: 54px; padding: 8px 10px; }
  .shade-chip-text strong { font-size: 10.5px; }
  .shade-chip-text small { font-size: 8.5px; }
  .panel-actions { flex-direction: column; }
  .panel-actions .trail-btn { flex-basis: auto; width: 100%; }
  .shade-cards { grid-template-columns: 1fr; }
  .shade-card { padding: 22px; }
  .shade-card-top { margin-bottom: 34px; }
  .guide-card { padding: 22px; }
  .guide-card:hover { transform: none; }
  .footer { padding-top: 60px; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .footer-links-group { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-bottom p { justify-content: center; }
  .footer-legal { gap: 20px; flex-wrap: wrap; justify-content: center; }
  .note-actions { flex-direction: column; }
  .note-actions .trail-btn { width: 100%; }
}

@media (max-width: 400px) {
  .nav-actions { gap: 10px; }
  .btn-trail { padding: 9px 13px; }
  .palette { grid-template-columns: 1fr; }
  .trail-metrics { gap: 14px; }
  .empty-title { font-size: 26px; }
  .empty-copy { font-size: 12.5px; }
  .trail-title { font-size: 40px; }
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal],
  .reveal-armed [data-reveal] { opacity: 1 !important; transform: none !important; }
  .stage-photo .after-canvas { transition: none; }
  .empty-scan, .mirror::before, .process-core::after, .caption-dot, .veil-line::after { animation: none !important; }
  .comb-cursor { display: none; }
  .trail-veil { display: none !important; }
}
