
  :root {
    --red: #D42B1F;
    --red-deep: #9E1B12;
    --red-light: #F5E8E7;
    --blue: #1A3A8F;
    --blue-mid: #2B5BC2;
    --orange: #F5A318;
    --orange-deep: #C07A08;
    --green: #2E9B3A;
    --green-deep: #1A6024;
    --purple: #7B2D8B;
    --gold: #C9A84C;
    --gold-light: #EDD98A;

    --bg: #FDFAF5;
    --bg2: #F5F0E8;
    --bg3: #EDE6D6;
    --surface: rgba(255,255,255,0.85);
    --surface2: rgba(255,255,255,0.6);
    --text-primary: #1A120A;
    --text-secondary: #5A4A3A;
    --text-muted: #8A7A6A;
    --border: rgba(212, 43, 31, 0.12);
    --border-strong: rgba(212, 43, 31, 0.28);
    --nav-bg: rgba(253, 250, 245, 0.88);
    --shadow: 0 8px 48px rgba(26,18,10,0.12);
    --shadow-card: 0 2px 24px rgba(26,18,10,0.08);
    --glow-red: radial-gradient(ellipse at center, rgba(212,43,31,0.18) 0%, transparent 70%);
    --glow-orange: radial-gradient(ellipse at center, rgba(245,163,24,0.18) 0%, transparent 70%);
    --accent-shadow: rgba(212, 43, 31, 0.35);
    --accent-shadow-strong: rgba(212, 43, 31, 0.45);
    --accent-shadow-deep: rgba(212, 43, 31, 0.5);
    --accent-border-soft: rgba(212, 43, 31, 0.22);
    --accent-glow-nav: rgba(212, 43, 31, 0.25);
    --theme-slider-accent: rgba(212, 43, 31, 0.18);
  }
  [data-theme="dark"] {
    --bg: #0F0B08;
    --bg2: #18120C;
    --bg3: #221A12;
    --surface: rgba(30,20,12,0.92);
    --surface2: rgba(30,20,12,0.6);
    --text-primary: #F5EFE6;
    --text-secondary: #C8B89A;
    --text-muted: #8A7A6A;
    --border: rgba(212, 43, 31, 0.18);
    --border-strong: rgba(212, 43, 31, 0.38);
    --nav-bg: rgba(15,11,8,0.92);
    --shadow: 0 8px 48px rgba(0,0,0,0.5);
    --shadow-card: 0 2px 24px rgba(0,0,0,0.3);
    --red-light: #2A1210;
    --glow-red: radial-gradient(ellipse at center, rgba(212,43,31,0.25) 0%, transparent 70%);
    --glow-orange: radial-gradient(ellipse at center, rgba(245,163,24,0.22) 0%, transparent 70%);
    --theme-slider-accent: rgba(212, 43, 31, 0.24);
  }

  /* ── ACCENT PALETTES (with light / dark) ── */
  html[data-palette="coral"] {
    --red: #ce7b72;
    --red-deep: #a85d55;
    --red-light: rgba(206, 123, 114, 0.2);
    --border: rgba(206, 123, 114, 0.14);
    --border-strong: rgba(206, 123, 114, 0.3);
    --glow-red: radial-gradient(ellipse at center, rgba(206,123,114,0.22) 0%, transparent 70%);
    --accent-shadow: rgba(206, 123, 114, 0.35);
    --accent-shadow-strong: rgba(206, 123, 114, 0.45);
    --accent-shadow-deep: rgba(206, 123, 114, 0.5);
    --accent-border-soft: rgba(206, 123, 114, 0.24);
    --accent-glow-nav: rgba(206, 123, 114, 0.28);
    --theme-slider-accent: rgba(206, 123, 114, 0.22);
  }
  html[data-theme="dark"][data-palette="coral"] {
    --red-light: rgba(206, 123, 114, 0.14);
    --border: rgba(206, 123, 114, 0.2);
    --border-strong: rgba(206, 123, 114, 0.38);
  }

  html[data-palette="rose"] {
    --red: #d6a7b6;
    --red-deep: #9d6b7e;
    --red-light: rgba(214, 167, 182, 0.22);
    --border: rgba(157, 107, 126, 0.16);
    --border-strong: rgba(157, 107, 126, 0.32);
    --glow-red: radial-gradient(ellipse at center, rgba(214,167,182,0.25) 0%, transparent 70%);
    --accent-shadow: rgba(157, 107, 126, 0.38);
    --accent-shadow-strong: rgba(157, 107, 126, 0.48);
    --accent-shadow-deep: rgba(157, 107, 126, 0.55);
    --accent-border-soft: rgba(157, 107, 126, 0.28);
    --accent-glow-nav: rgba(214, 167, 182, 0.3);
    --theme-slider-accent: rgba(214, 167, 182, 0.24);
  }
  html[data-theme="dark"][data-palette="rose"] {
    --red-light: rgba(214, 167, 182, 0.12);
    --border: rgba(214, 167, 182, 0.2);
    --border-strong: rgba(214, 167, 182, 0.4);
  }

  html[data-palette="indigo"] {
    --red: #3d4174;
    --red-deep: #282b52;
    --red-light: rgba(61, 65, 116, 0.18);
    --border: rgba(61, 65, 116, 0.14);
    --border-strong: rgba(61, 65, 116, 0.32);
    --glow-red: radial-gradient(ellipse at center, rgba(61,65,116,0.22) 0%, transparent 70%);
    --accent-shadow: rgba(61, 65, 116, 0.35);
    --accent-shadow-strong: rgba(61, 65, 116, 0.48);
    --accent-shadow-deep: rgba(61, 65, 116, 0.55);
    --accent-border-soft: rgba(61, 65, 116, 0.26);
    --accent-glow-nav: rgba(61, 65, 116, 0.35);
    --theme-slider-accent: rgba(61, 65, 116, 0.22);
  }
  html[data-theme="dark"][data-palette="indigo"] {
    --red-light: rgba(120, 130, 200, 0.16);
    --border: rgba(120, 130, 200, 0.22);
    --border-strong: rgba(140, 150, 220, 0.42);
  }

  /* Brand wash: page background driven by brand red; liquid-style primary buttons */
  html[data-palette="brandfill"] {
    --bg: #f2ded9;
    --bg2: #e9cfc8;
    --bg3: #dfc2b9;
    --surface: rgba(255, 252, 250, 0.78);
    --surface2: rgba(255, 250, 247, 0.55);
    --nav-bg: rgba(242, 222, 217, 0.92);
    --border: rgba(212, 43, 31, 0.16);
    --border-strong: rgba(212, 43, 31, 0.32);
    --red: #D42B1F;
    --red-deep: #9E1B12;
    --red-light: rgba(212, 43, 31, 0.16);
    --glow-red: radial-gradient(ellipse at center, rgba(212,43,31,0.2) 0%, transparent 70%);
    --accent-shadow: rgba(212, 43, 31, 0.28);
    --accent-shadow-strong: rgba(212, 43, 31, 0.38);
    --accent-shadow-deep: rgba(212, 43, 31, 0.48);
    --accent-border-soft: rgba(212, 43, 31, 0.28);
    --accent-glow-nav: rgba(212, 43, 31, 0.3);
    --theme-slider-accent: rgba(212, 43, 31, 0.2);
  }
  html[data-theme="dark"][data-palette="brandfill"] {
    --bg: #120807;
    --bg2: #1a0c0a;
    --bg3: #241210;
    --surface: rgba(38, 18, 15, 0.9);
    --surface2: rgba(38, 18, 15, 0.55);
    --nav-bg: rgba(18, 8, 7, 0.94);
    --text-primary: #f8ebe8;
    --text-secondary: #d4b8b0;
    --text-muted: #9a7d76;
    --border: rgba(212, 43, 31, 0.22);
    --border-strong: rgba(212, 43, 31, 0.42);
    --red-light: rgba(212, 43, 31, 0.14);
    --shadow: 0 8px 48px rgba(0,0,0,0.55);
    --shadow-card: 0 2px 24px rgba(0,0,0,0.35);
  }

  /* Brand wash + coral / rose / indigo (same liquid UI, tinted field) */
  html[data-palette="brandfill-coral"] {
    --bg: #f5eae8;
    --bg2: #eddcd8;
    --bg3: #e5cec8;
    --surface: rgba(255, 252, 251, 0.78);
    --surface2: rgba(255, 250, 248, 0.55);
    --nav-bg: rgba(245, 234, 232, 0.92);
    --border: rgba(206, 123, 114, 0.18);
    --border-strong: rgba(206, 123, 114, 0.34);
    --red: #ce7b72;
    --red-deep: #a85d55;
    --red-light: rgba(206, 123, 114, 0.18);
    --glow-red: radial-gradient(ellipse at center, rgba(206,123,114,0.22) 0%, transparent 70%);
    --accent-shadow: rgba(206, 123, 114, 0.3);
    --accent-shadow-strong: rgba(206, 123, 114, 0.4);
    --accent-shadow-deep: rgba(206, 123, 114, 0.5);
    --accent-border-soft: rgba(206, 123, 114, 0.28);
    --accent-glow-nav: rgba(206, 123, 114, 0.32);
    --theme-slider-accent: rgba(206, 123, 114, 0.22);
  }
  html[data-theme="dark"][data-palette="brandfill-coral"] {
    --bg: #140f0e;
    --bg2: #1c1514;
    --bg3: #261c1a;
    --surface: rgba(42, 28, 26, 0.9);
    --surface2: rgba(42, 28, 26, 0.55);
    --nav-bg: rgba(20, 15, 14, 0.94);
    --text-primary: #f8edeb;
    --text-secondary: #d4bbb5;
    --text-muted: #9a8580;
    --border: rgba(206, 123, 114, 0.22);
    --border-strong: rgba(206, 123, 114, 0.42);
    --red-light: rgba(206, 123, 114, 0.14);
    --shadow: 0 8px 48px rgba(0,0,0,0.55);
    --shadow-card: 0 2px 24px rgba(0,0,0,0.35);
  }

  html[data-palette="brandfill-rose"] {
    --bg: #f7eef3;
    --bg2: #eee3ea;
    --bg3: #e5d6e0;
    --surface: rgba(255, 252, 254, 0.8);
    --surface2: rgba(255, 248, 252, 0.55);
    --nav-bg: rgba(247, 238, 243, 0.92);
    --border: rgba(157, 107, 126, 0.16);
    --border-strong: rgba(157, 107, 126, 0.32);
    --red: #d6a7b6;
    --red-deep: #9d6b7e;
    --red-light: rgba(214, 167, 182, 0.22);
    --glow-red: radial-gradient(ellipse at center, rgba(214,167,182,0.24) 0%, transparent 70%);
    --accent-shadow: rgba(157, 107, 126, 0.36);
    --accent-shadow-strong: rgba(157, 107, 126, 0.46);
    --accent-shadow-deep: rgba(157, 107, 126, 0.54);
    --accent-border-soft: rgba(157, 107, 126, 0.28);
    --accent-glow-nav: rgba(214, 167, 182, 0.32);
    --theme-slider-accent: rgba(214, 167, 182, 0.26);
  }
  html[data-theme="dark"][data-palette="brandfill-rose"] {
    --bg: #120d10;
    --bg2: #1a1317;
    --bg3: #241a20;
    --surface: rgba(40, 28, 34, 0.9);
    --surface2: rgba(40, 28, 34, 0.55);
    --nav-bg: rgba(18, 13, 16, 0.94);
    --text-primary: #f8eef3;
    --text-secondary: #d4c0cb;
    --text-muted: #9a8794;
    --border: rgba(214, 167, 182, 0.2);
    --border-strong: rgba(214, 167, 182, 0.4);
    --red-light: rgba(214, 167, 182, 0.12);
    --shadow: 0 8px 48px rgba(0,0,0,0.55);
    --shadow-card: 0 2px 24px rgba(0,0,0,0.35);
  }

  html[data-palette="brandfill-indigo"] {
    --bg: #e8eaf3;
    --bg2: #dcdfef;
    --bg3: #cfd3e8;
    --surface: rgba(252, 252, 255, 0.82);
    --surface2: rgba(248, 249, 255, 0.58);
    --nav-bg: rgba(232, 234, 243, 0.92);
    --border: rgba(61, 65, 116, 0.14);
    --border-strong: rgba(61, 65, 116, 0.32);
    --red: #3d4174;
    --red-deep: #282b52;
    --red-light: rgba(61, 65, 116, 0.14);
    --glow-red: radial-gradient(ellipse at center, rgba(61,65,116,0.2) 0%, transparent 70%);
    --accent-shadow: rgba(61, 65, 116, 0.32);
    --accent-shadow-strong: rgba(61, 65, 116, 0.44);
    --accent-shadow-deep: rgba(61, 65, 116, 0.52);
    --accent-border-soft: rgba(61, 65, 116, 0.26);
    --accent-glow-nav: rgba(61, 65, 116, 0.35);
    --theme-slider-accent: rgba(61, 65, 116, 0.22);
  }
  html[data-theme="dark"][data-palette="brandfill-indigo"] {
    --bg: #0a0b12;
    --bg2: #0f1018;
    --bg3: #141622;
    --surface: rgba(28, 30, 48, 0.92);
    --surface2: rgba(28, 30, 48, 0.55);
    --nav-bg: rgba(10, 11, 18, 0.94);
    --text-primary: #eceef8;
    --text-secondary: #b8bdd4;
    --text-muted: #7a8099;
    --border: rgba(120, 130, 200, 0.22);
    --border-strong: rgba(140, 150, 220, 0.42);
    --red-light: rgba(120, 130, 200, 0.14);
    --shadow: 0 8px 48px rgba(0,0,0,0.55);
    --shadow-card: 0 2px 24px rgba(0,0,0,0.35);
  }

  html[data-palette="sage"] {
    --red: #5a7f6a;
    --red-deep: #3d5a4c;
    --red-light: rgba(90, 127, 106, 0.2);
    --border: rgba(90, 127, 106, 0.14);
    --border-strong: rgba(90, 127, 106, 0.32);
    --glow-red: radial-gradient(ellipse at center, rgba(90,127,106,0.22) 0%, transparent 70%);
    --accent-shadow: rgba(90, 127, 106, 0.35);
    --accent-shadow-strong: rgba(90, 127, 106, 0.45);
    --accent-shadow-deep: rgba(90, 127, 106, 0.52);
    --accent-border-soft: rgba(90, 127, 106, 0.24);
    --accent-glow-nav: rgba(90, 127, 106, 0.28);
    --theme-slider-accent: rgba(90, 127, 106, 0.22);
  }
  html[data-theme="dark"][data-palette="sage"] {
    --red-light: rgba(90, 127, 106, 0.14);
    --border: rgba(90, 127, 106, 0.2);
    --border-strong: rgba(90, 127, 106, 0.4);
  }

  html[data-palette="lagoon"] {
    --red: #0d8a9a;
    --red-deep: #066570;
    --red-light: rgba(13, 138, 154, 0.18);
    --border: rgba(13, 138, 154, 0.14);
    --border-strong: rgba(13, 138, 154, 0.32);
    --glow-red: radial-gradient(ellipse at center, rgba(13,138,154,0.22) 0%, transparent 70%);
    --accent-shadow: rgba(13, 138, 154, 0.35);
    --accent-shadow-strong: rgba(13, 138, 154, 0.48);
    --accent-shadow-deep: rgba(13, 138, 154, 0.55);
    --accent-border-soft: rgba(13, 138, 154, 0.26);
    --accent-glow-nav: rgba(13, 138, 154, 0.32);
    --theme-slider-accent: rgba(13, 138, 154, 0.22);
  }
  html[data-theme="dark"][data-palette="lagoon"] {
    --red-light: rgba(80, 200, 210, 0.14);
    --border: rgba(80, 200, 210, 0.2);
    --border-strong: rgba(100, 210, 220, 0.42);
  }

  html[data-palette="plum"] {
    --red: #8b4a8f;
    --red-deep: #5e2f61;
    --red-light: rgba(139, 74, 143, 0.2);
    --border: rgba(139, 74, 143, 0.14);
    --border-strong: rgba(139, 74, 143, 0.32);
    --glow-red: radial-gradient(ellipse at center, rgba(139,74,143,0.22) 0%, transparent 70%);
    --accent-shadow: rgba(139, 74, 143, 0.36);
    --accent-shadow-strong: rgba(139, 74, 143, 0.46);
    --accent-shadow-deep: rgba(139, 74, 143, 0.54);
    --accent-border-soft: rgba(139, 74, 143, 0.26);
    --accent-glow-nav: rgba(139, 74, 143, 0.32);
    --theme-slider-accent: rgba(139, 74, 143, 0.24);
  }
  html[data-theme="dark"][data-palette="plum"] {
    --red-light: rgba(200, 140, 205, 0.14);
    --border: rgba(200, 140, 205, 0.2);
    --border-strong: rgba(210, 150, 215, 0.42);
  }

  html[data-palette="copper"] {
    --red: #b56b3c;
    --red-deep: #8a4f28;
    --red-light: rgba(181, 107, 60, 0.2);
    --border: rgba(181, 107, 60, 0.14);
    --border-strong: rgba(181, 107, 60, 0.32);
    --glow-red: radial-gradient(ellipse at center, rgba(181,107,60,0.22) 0%, transparent 70%);
    --accent-shadow: rgba(181, 107, 60, 0.35);
    --accent-shadow-strong: rgba(181, 107, 60, 0.45);
    --accent-shadow-deep: rgba(181, 107, 60, 0.52);
    --accent-border-soft: rgba(181, 107, 60, 0.26);
    --accent-glow-nav: rgba(181, 107, 60, 0.3);
    --theme-slider-accent: rgba(181, 107, 60, 0.22);
  }
  html[data-theme="dark"][data-palette="copper"] {
    --red-light: rgba(220, 160, 120, 0.14);
    --border: rgba(220, 160, 120, 0.2);
    --border-strong: rgba(230, 170, 130, 0.42);
  }

  html[data-palette="forest"] {
    --red: #2a6b4d;
    --red-deep: #1a4a35;
    --red-light: rgba(42, 107, 77, 0.2);
    --border: rgba(42, 107, 77, 0.14);
    --border-strong: rgba(42, 107, 77, 0.32);
    --glow-red: radial-gradient(ellipse at center, rgba(42,107,77,0.22) 0%, transparent 70%);
    --accent-shadow: rgba(42, 107, 77, 0.35);
    --accent-shadow-strong: rgba(42, 107, 77, 0.48);
    --accent-shadow-deep: rgba(42, 107, 77, 0.55);
    --accent-border-soft: rgba(42, 107, 77, 0.26);
    --accent-glow-nav: rgba(42, 107, 77, 0.3);
    --theme-slider-accent: rgba(42, 107, 77, 0.22);
  }
  html[data-theme="dark"][data-palette="forest"] {
    --red-light: rgba(100, 180, 140, 0.14);
    --border: rgba(100, 180, 140, 0.2);
    --border-strong: rgba(120, 195, 155, 0.42);
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background 1s ease, color 1s ease;
  }

  /* ── SCROLLBAR ── */
  ::-webkit-scrollbar { width: 5px; }
  ::-webkit-scrollbar-track { background: var(--bg2); }
  ::-webkit-scrollbar-thumb { background: var(--red); border-radius: 10px; }

  /* ── NAVBAR ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--border);
    transition: background 0.4s ease, border-color 0.4s ease, padding 0.3s ease, box-shadow 0.3s ease;
    padding: 0 0;
  }
  nav.scrolled {
    box-shadow: 0 4px 32px rgba(0,0,0,0.12);
    padding: 0;
  }

  /* ── NAV BAR LAYOUT VARIANTS ── */
  html[data-nav="aurora"] nav {
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  html[data-nav="aurora"] nav::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    z-index: 1;
    background: linear-gradient(90deg, var(--red), var(--orange), var(--blue), var(--purple), var(--red));
    background-size: 220% 100%;
    animation: navAuroraShift 9s linear infinite;
  }
  @keyframes navAuroraShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
  }
  html[data-nav="aurora"] .nav-inner {
    position: relative;
    z-index: 2;
    margin: 4px 20px 0;
    border-radius: 0 0 22px 22px;
    border: 1px solid var(--border);
    border-top: none;
    background: var(--nav-bg);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
  }
  html[data-nav="aurora"] nav.scrolled .nav-inner {
    box-shadow: 0 20px 56px rgba(0,0,0,0.14);
  }
  html[data-nav="aurora"] .nav-links a {
    border-radius: 12px;
  }

  html[data-nav="minimal"] nav {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--border-strong);
    box-shadow: none;
  }
  html[data-nav="minimal"] nav.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: none;
  }
  html[data-nav="minimal"] .nav-links a {
    border-radius: 0;
    padding: 10px 11px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  html[data-nav="minimal"] .nav-links a::after {
    display: none;
  }
  html[data-nav="minimal"] .nav-links a:hover {
    background: transparent;
    color: var(--red);
    border-left: 3px solid var(--red);
    padding-left: 8px;
  }

  html[data-nav="dock"] nav {
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding-top: 14px;
    padding-bottom: 10px;
    box-shadow: none;
  }
  html[data-nav="dock"] nav.scrolled {
    box-shadow: none;
  }
  html[data-nav="dock"] .nav-inner {
    max-width: 1040px;
    padding: 11px 26px;
    border-radius: 999px;
    background: var(--nav-bg);
    backdrop-filter: blur(26px) saturate(180%);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    border: 1px solid var(--border-strong);
    box-shadow:
      0 10px 44px rgba(0,0,0,0.11),
      0 1px 0 rgba(255,255,255,0.45) inset;
  }
  html[data-theme="dark"][data-nav="dock"] .nav-inner {
    box-shadow:
      0 12px 48px rgba(0,0,0,0.45),
      0 1px 0 rgba(255,255,255,0.06) inset;
  }
  html[data-nav="dock"] nav.scrolled .nav-inner {
    padding: 9px 24px;
  }

  html[data-nav="editorial"] nav {
    border-bottom: none;
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
  html[data-nav="editorial"] nav::after {
    content: '';
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong) 12%, var(--border-strong) 88%, transparent);
    pointer-events: none;
  }
  html[data-nav="editorial"] nav.scrolled {
    box-shadow: 0 1px 0 var(--border);
  }
  html[data-nav="editorial"] nav.scrolled::after {
    opacity: 0;
  }
  html[data-nav="editorial"] .nav-inner {
    padding-bottom: 15px;
  }
  html[data-nav="editorial"] .nav-logo {
    padding-right: 22px;
    margin-right: 10px;
    border-right: 1px solid var(--border-strong);
  }
  html[data-nav="editorial"] .nav-links a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    font-weight: 600;
    border-radius: 0;
    letter-spacing: 0.03em;
    padding: 8px 14px;
  }
  html[data-nav="editorial"] .nav-links a::after {
    bottom: 4px;
    width: calc(100% - 28px);
    height: 1px;
    border-radius: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
  }
  html[data-nav="editorial"] .nav-links a:hover::after {
    transform: translateX(-50%) scaleX(1);
  }

  html[data-nav="glass"] nav {
    background: color-mix(in srgb, var(--nav-bg) 72%, transparent);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border-bottom: 1px solid color-mix(in srgb, var(--border-strong) 55%, transparent);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.35) inset,
      0 8px 40px rgba(0,0,0,0.06);
  }
  html[data-theme="dark"][data-nav="glass"] nav {
    box-shadow:
      0 1px 0 rgba(255,255,255,0.06) inset,
      0 12px 48px rgba(0,0,0,0.35);
  }
  html[data-nav="glass"] nav.scrolled {
    box-shadow:
      0 1px 0 rgba(255,255,255,0.25) inset,
      0 16px 48px rgba(0,0,0,0.1);
  }
  html[data-nav="glass"] .nav-inner {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  html[data-nav="glass"] nav.scrolled .nav-inner {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  html[data-nav="stripe"] nav {
    position: relative;
    border-bottom: none;
    box-shadow: 0 1px 0 var(--border);
  }
  html[data-nav="stripe"] nav::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    z-index: 0;
    background: linear-gradient(180deg, var(--red), var(--orange), var(--blue));
    border-radius: 0 3px 3px 0;
  }
  html[data-nav="stripe"] .nav-inner {
    position: relative;
    z-index: 1;
    padding-left: 48px;
  }

  html[data-nav="nimbus"] nav {
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    padding: 12px 0 10px;
  }
  html[data-nav="nimbus"] nav.scrolled {
    box-shadow: none;
  }
  html[data-nav="nimbus"] .nav-inner {
    margin-left: auto;
    margin-right: auto;
    width: min(1280px, calc(100% - 48px));
    max-width: none;
    padding: 13px 28px;
    border-radius: 18px;
    background: var(--nav-bg);
    backdrop-filter: blur(24px) saturate(170%);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    border: 1px solid var(--border-strong);
    box-shadow:
      0 20px 56px rgba(0,0,0,0.12),
      0 4px 16px rgba(0,0,0,0.06);
  }
  html[data-theme="dark"][data-nav="nimbus"] .nav-inner {
    box-shadow:
      0 24px 64px rgba(0,0,0,0.45),
      0 6px 20px rgba(0,0,0,0.25);
  }
  html[data-nav="nimbus"] nav.scrolled .nav-inner {
    padding: 10px 24px;
    box-shadow:
      0 16px 48px rgba(0,0,0,0.14),
      0 2px 12px rgba(0,0,0,0.08);
  }

  html[data-nav="ribbon"] nav {
    background: var(--nav-bg);
    border-bottom: none;
    box-shadow: none;
  }
  html[data-nav="ribbon"] nav::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    pointer-events: none;
    background: linear-gradient(90deg, var(--red), var(--orange), var(--gold), var(--blue), var(--red));
    background-size: 200% 100%;
    animation: navRibbonFlow 12s linear infinite;
  }
  @keyframes navRibbonFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
  }
  html[data-nav="ribbon"] .nav-inner {
    padding-bottom: 18px;
  }
  html[data-nav="ribbon"] nav.scrolled::after {
    height: 5px;
  }

  html[data-nav="capsule"] nav {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  html[data-nav="capsule"] .nav-links {
    background: var(--surface2);
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    gap: 2px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  }
  html[data-nav="capsule"] .nav-links a {
    border-radius: 999px;
    padding: 8px 14px;
  }
  html[data-nav="capsule"] .nav-links a:hover {
    background: var(--red-light);
  }

  @media (max-width: 768px) {
    html[data-nav="aurora"] .nav-inner {
      margin-left: 12px;
      margin-right: 12px;
    }
    html[data-nav="dock"] nav {
      padding-top: 10px;
    }
    html[data-nav="dock"] .nav-inner {
      border-radius: 20px;
      padding: 10px 16px;
    }
    html[data-nav="editorial"] .nav-logo {
      border-right: none;
      padding-right: 0;
      margin-right: 0;
    }
    html[data-nav="editorial"] nav::after {
      left: 16px;
      right: 16px;
    }
    html[data-nav="stripe"] .nav-inner {
      padding-left: 36px;
    }
    html[data-nav="nimbus"] nav {
      padding-top: 8px;
      padding-bottom: 6px;
    }
    html[data-nav="nimbus"] .nav-inner {
      width: calc(100% - 24px);
      margin-left: auto;
      margin-right: auto;
      border-radius: 14px;
      padding: 11px 18px;
    }
    html[data-nav="capsule"] .nav-links {
      border-radius: 16px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    html[data-nav="aurora"] nav::before {
      animation: none;
      background-position: 50% 50%;
    }
    html[data-nav="ribbon"] nav::after {
      animation: none;
      background-position: 50% 50%;
    }
  }
  .nav-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 40px;
    transition: padding 0.3s ease;
  }
  nav.scrolled .nav-inner { padding: 10px 40px; }

  .nav-logo {
    display: flex; align-items: center; gap: 14px;
    text-decoration: none;
  }
  .nav-logo img {
    width: 46px; height: 46px; object-fit: contain;
    filter: drop-shadow(0 2px 8px var(--accent-glow-nav));
    transition: transform 0.3s ease;
  }
  .nav-logo:hover img { transform: scale(1.06) rotate(-3deg); }
  .nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
  .nav-logo-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px; font-weight: 700;
    color: var(--red);
    letter-spacing: 0.01em;
  }
  .nav-logo-tag {
    font-size: 10px; font-weight: 500; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--text-muted);
    margin-top: 2px;
  }

  .nav-links {
    display: flex; align-items: center; gap: 6px;
    list-style: none;
  }
  .nav-links li { list-style: none; }
  .nav-links a {
    font-size: 13.5px; font-weight: 500; letter-spacing: 0.04em;
    color: var(--text-secondary); text-decoration: none;
    padding: 8px 16px; border-radius: 100px;
    transition: all 0.25s ease;
    position: relative;
  }
  .nav-links a::after {
    content: ''; position: absolute; bottom: 4px; left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 16px; height: 2px; border-radius: 2px;
    background: var(--red);
    transition: transform 0.25s ease;
  }
  .nav-links a:hover { color: var(--red); background: var(--red-light); }
  .nav-links a:hover::after { transform: translateX(-50%) scaleX(1); }

  .nav-actions { display: flex; align-items: center; gap: 12px; }
  .nav-mobile-toggle {
    display: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface2);
    color: var(--text-secondary);
    cursor: pointer;
    align-items: center; justify-content: center;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
  }
  .nav-mobile-toggle span {
    width: 16px; height: 2px;
    border-radius: 4px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }
  nav.mobile-open .nav-mobile-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  nav.mobile-open .nav-mobile-toggle span:nth-child(2) {
    opacity: 0;
  }
  nav.mobile-open .nav-mobile-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  .nav-mobile-tools {
    display: none;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }
  .theme-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-strong);
    background: var(--surface2);
    border-radius: 999px;
    padding: 5px 9px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(26,18,10,0.08);
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    user-select: none;
  }
  .theme-switch:hover {
    border-color: var(--red);
    box-shadow: 0 8px 24px var(--accent-shadow);
    transform: translateY(-1px);
  }
  .theme-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  .theme-slider {
    width: 48px;
    height: 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,255,255,0.34), var(--theme-slider-accent));
    border: 1px solid var(--border);
    position: relative;
    transition: background 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
  }
  .theme-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), background 0.3s ease;
  }
  .theme-switch input:checked + .theme-slider {
    background: linear-gradient(135deg, rgba(26,58,143,0.35), rgba(18,18,18,0.7));
    border-color: rgba(255,255,255,0.18);
  }
  .theme-switch input:checked + .theme-slider::before {
    transform: translateX(22px);
    background: #f3f3f3;
  }
  .theme-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    min-width: 34px;
  }
  .nav-mobile-tools .theme-switch {
    width: 100%;
    justify-content: space-between;
    border-radius: 12px;
    padding: 8px 10px;
  }
  .nav-mobile-tools .theme-label {
    font-size: 12px;
    letter-spacing: 0.08em;
  }
  .theme-wave {
    position: fixed;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%) scale(0);
    transform-origin: center;
    pointer-events: none;
    z-index: 2000;
    opacity: 0.9;
    background: var(--wave-color, #0F0B08);
  }
  .theme-wave.active {
    animation: themeBurst 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  @keyframes themeBurst {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0.95; }
    70% { opacity: 0.88; }
    100% { transform: translate(-50%, -50%) scale(120); opacity: 0; }
  }

  /* ── COLOUR PALETTE PICKER (beside theme) ── */
  .palette-wrap { position: relative; }
  .palette-trigger {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    padding: 0;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .palette-trigger:hover {
    border-color: var(--red);
    box-shadow: 0 4px 16px var(--accent-shadow);
    transform: translateY(-1px);
  }
  .palette-trigger[aria-expanded="true"] {
    border-color: var(--red);
    box-shadow: 0 0 0 2px var(--red-light);
  }
  .palette-trigger-swatch {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red) 0%, var(--orange) 45%, var(--red-deep) 100%);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.35);
  }
  .palette-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 232px;
    max-height: min(78vh, 600px);
    overflow-y: auto;
    padding: 10px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1002;
  }
  .palette-popover[hidden] { display: none !important; }
  .palette-popover-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 4px 8px 8px;
  }
  .palette-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 12px;
    padding: 10px 10px;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: var(--text-primary);
    transition: background 0.2s ease, border-color 0.2s ease;
  }
  .palette-option:hover {
    background: var(--red-light);
    border-color: var(--border);
  }
  .palette-option.is-active {
    border-color: var(--red);
    background: var(--red-light);
  }
  .palette-option-text { display: flex; flex-direction: column; gap: 2px; }
  .palette-option-text strong { font-size: 13px; font-weight: 600; }
  .palette-option-text small { font-size: 11px; font-weight: 500; color: var(--text-muted); }
  .palette-swatch {
    width: 28px; height: 28px;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid var(--border-strong);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
  .palette-swatch--default {
    background: conic-gradient(from 0deg, #D42B1F, #F5A318, #1A3A8F, #D42B1F);
  }
  .palette-swatch--coral { background: linear-gradient(135deg, #ce7b72, #a85d55); }
  .palette-swatch--rose { background: linear-gradient(135deg, #d6a7b6, #9d6b7e); }
  .palette-swatch--indigo { background: linear-gradient(135deg, #3d4174, #282b52); }
  .palette-swatch--brandfill {
    background: linear-gradient(135deg, rgba(255,255,255,0.55), #D42B1F 42%, #9E1B12);
  }
  .palette-swatch--brandfill-coral {
    background: linear-gradient(135deg, rgba(255,255,255,0.55), #ce7b72 42%, #a85d55);
  }
  .palette-swatch--brandfill-rose {
    background: linear-gradient(135deg, rgba(255,255,255,0.55), #d6a7b6 42%, #9d6b7e);
  }
  .palette-swatch--brandfill-indigo {
    background: linear-gradient(135deg, rgba(255,255,255,0.55), #3d4174 42%, #282b52);
  }
  .palette-swatch--sage { background: linear-gradient(135deg, #5a7f6a, #3d5a4c); }
  .palette-swatch--lagoon { background: linear-gradient(135deg, #0d8a9a, #066570); }
  .palette-swatch--plum { background: linear-gradient(135deg, #8b4a8f, #5e2f61); }
  .palette-swatch--copper { background: linear-gradient(135deg, #b56b3c, #8a4f28); }
  .palette-swatch--forest { background: linear-gradient(135deg, #2a6b4d, #1a4a35); }
  .nav-mobile-tools .palette-wrap {
    width: 100%;
    margin-top: 10px;
  }
  .nav-mobile-tools .palette-trigger {
    width: 100%;
    height: auto;
    min-height: 44px;
    border-radius: 12px;
    padding: 10px 12px;
    justify-content: flex-start;
    gap: 12px;
  }
  .nav-mobile-tools .palette-trigger-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
  }
  .nav-mobile-tools .palette-popover {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    min-width: 0;
    width: 100%;
    margin-top: 8px;
  }

  /* Navbar layout picker (beside colour) */
  .nav-style-wrap { position: relative; }
  .nav-style-trigger {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    padding: 0;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-style-trigger:hover {
    border-color: var(--red);
    box-shadow: 0 4px 16px var(--accent-shadow);
    transform: translateY(-1px);
  }
  .nav-style-trigger[aria-expanded="true"] {
    border-color: var(--red);
    box-shadow: 0 0 0 2px var(--red-light);
  }
  .nav-style-trigger-icon {
    width: 18px;
    height: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
  }
  .nav-style-trigger-icon span {
    background: var(--text-secondary);
    border-radius: 2px;
    opacity: 0.88;
  }
  .nav-style-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 248px;
    max-height: min(78vh, 620px);
    overflow-y: auto;
    padding: 10px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1002;
  }
  .nav-style-popover[hidden] { display: none !important; }
  .nav-style-popover-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 4px 8px 8px;
  }
  .nav-style-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 12px;
    padding: 10px 10px;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: var(--text-primary);
    transition: background 0.2s ease, border-color 0.2s ease;
  }
  .nav-style-option:hover {
    background: var(--red-light);
    border-color: var(--border);
  }
  .nav-style-option.is-active {
    border-color: var(--red);
    background: var(--red-light);
  }
  .nav-style-option-text { display: flex; flex-direction: column; gap: 2px; }
  .nav-style-option-text strong { font-size: 13px; font-weight: 600; }
  .nav-style-option-text small { font-size: 11px; font-weight: 500; color: var(--text-muted); line-height: 1.35; }
  .nav-preview {
    width: 36px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    overflow: hidden;
    background: var(--surface2);
    position: relative;
  }
  .nav-preview--default {
    background: linear-gradient(180deg, var(--nav-bg) 70%, var(--border) 70%);
  }
  .nav-preview--aurora {
    background: var(--nav-bg);
  }
  .nav-preview--aurora::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--orange), var(--blue));
  }
  .nav-preview--minimal {
    background: transparent;
    border: none;
    box-shadow: 0 1px 0 var(--border-strong);
  }
  .nav-preview--minimal::after {
    content: '';
    position: absolute;
    left: 4px;
    right: 4px;
    top: 10px;
    height: 2px;
    background: var(--text-muted);
    opacity: 0.35;
    border-radius: 1px;
  }
  .nav-preview--dock {
    border-radius: 999px;
    background: var(--nav-bg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border: 1px solid var(--border);
  }
  .nav-preview--editorial {
    background: var(--bg);
    box-shadow: 0 1px 0 var(--border-strong);
  }
  .nav-preview--editorial::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--red);
    opacity: 0.7;
  }
  .nav-preview--glass {
    background: linear-gradient(165deg, rgba(255,255,255,0.5) 0%, var(--nav-bg) 45%, var(--nav-bg) 100%);
    box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset;
  }
  .nav-preview--stripe {
    background: var(--nav-bg);
  }
  .nav-preview--stripe::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--red), var(--orange));
    border-radius: 0 2px 2px 0;
  }
  .nav-preview--nimbus {
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .nav-preview--nimbus::after {
    content: '';
    position: absolute;
    left: 3px;
    right: 3px;
    top: 4px;
    bottom: 4px;
    border-radius: 6px;
    background: var(--nav-bg);
    border: 1px solid var(--border-strong);
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  }
  .nav-preview--ribbon {
    background: var(--nav-bg);
  }
  .nav-preview--ribbon::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--red), var(--orange), var(--gold));
  }
  .nav-preview--capsule {
    background: var(--bg);
    border: none;
  }
  .nav-preview--capsule::after {
    content: '';
    position: absolute;
    left: 5px;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    height: 12px;
    border-radius: 999px;
    background: var(--surface2);
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }
  .nav-mobile-tools .nav-style-wrap {
    width: 100%;
    margin-top: 10px;
  }
  .nav-mobile-tools .nav-style-trigger {
    width: 100%;
    height: auto;
    min-height: 44px;
    border-radius: 12px;
    padding: 10px 12px;
    justify-content: flex-start;
    gap: 12px;
  }
  .nav-mobile-tools .nav-style-trigger-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
  }
  .nav-mobile-tools .nav-style-popover {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    min-width: 0;
    width: 100%;
    margin-top: 8px;
  }

  .hero-style-wrap { position: relative; }
  .hero-style-trigger {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    padding: 0;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .hero-style-trigger:hover {
    border-color: var(--red);
    box-shadow: 0 4px 16px var(--accent-shadow);
    transform: translateY(-1px);
  }
  .hero-style-trigger[aria-expanded="true"] {
    border-color: var(--red);
    box-shadow: 0 0 0 2px var(--red-light);
  }
  .hero-style-trigger-icon {
    width: 18px;
    height: 18px;
    position: relative;
  }
  .hero-style-trigger-icon::before,
  .hero-style-trigger-icon::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: var(--text-secondary);
    opacity: 0.88;
  }
  .hero-style-trigger-icon::before {
    width: 7px;
    height: 7px;
    left: 0;
    top: 2px;
    box-shadow: 11px 4px 0 -1px var(--text-secondary), 4px 11px 0 -1px var(--text-secondary);
  }
  .hero-style-trigger-icon::after {
    width: 5px;
    height: 5px;
    right: 0;
    bottom: 0;
    opacity: 0.65;
  }
  .hero-style-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 248px;
    max-height: min(78vh, 520px);
    overflow-y: auto;
    padding: 10px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1002;
  }
  .hero-style-popover[hidden] { display: none !important; }
  .hero-style-popover-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 4px 8px 8px;
  }
  .hero-style-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 12px;
    padding: 10px 10px;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: var(--text-primary);
    transition: background 0.2s ease, border-color 0.2s ease;
  }
  .hero-style-option:hover {
    background: var(--red-light);
    border-color: var(--border);
  }
  .hero-style-option.is-active {
    border-color: var(--red);
    background: var(--red-light);
  }
  .hero-style-option-text { display: flex; flex-direction: column; gap: 2px; }
  .hero-style-option-text strong { font-size: 13px; font-weight: 600; }
  .hero-style-option-text small { font-size: 11px; font-weight: 500; color: var(--text-muted); line-height: 1.35; }
  .hero-preview {
    width: 36px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    overflow: hidden;
    background: var(--surface2);
    position: relative;
  }
  .hero-preview--default {
    background: radial-gradient(circle at 30% 40%, color-mix(in srgb, var(--red) 35%, transparent), transparent 55%),
      radial-gradient(circle at 70% 60%, color-mix(in srgb, var(--blue) 28%, transparent), transparent 50%),
      var(--bg);
  }
  .hero-preview--prism {
    background: conic-gradient(from 45deg, var(--red), var(--orange), var(--blue), var(--red));
    opacity: 0.85;
  }
  .hero-preview--beams {
    background: var(--bg);
  }
  .hero-preview--beams::before,
  .hero-preview--beams::after {
    content: '';
    position: absolute;
    top: -20%;
    width: 22%;
    height: 140%;
    left: 25%;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--red) 40%, transparent), transparent);
    transform: rotate(18deg);
    opacity: 0.7;
  }
  .hero-preview--beams::after { left: 55%; transform: rotate(-14deg); opacity: 0.5; }
  .hero-preview--constellation {
    background: var(--bg);
  }
  .hero-preview--constellation::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(1px 1px at 30% 30%, var(--text-secondary), transparent),
      radial-gradient(1px 1px at 70% 40%, var(--red), transparent),
      radial-gradient(1px 1px at 50% 70%, var(--gold), transparent);
  }
  .hero-preview--helix {
    background: repeating-linear-gradient(105deg, transparent 0, transparent 3px, var(--border-strong) 3px, var(--border-strong) 4px);
    opacity: 0.9;
  }
  .hero-preview--tide {
    background: var(--bg);
  }
  .hero-preview--tide::after {
    content: '';
    position: absolute;
    left: -10%;
    bottom: -30%;
    width: 120%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, color-mix(in srgb, var(--red) 45%, transparent), transparent 65%);
  }
  .nav-mobile-tools .hero-style-wrap {
    width: 100%;
    margin-top: 10px;
  }
  .nav-mobile-tools .hero-style-trigger {
    width: 100%;
    height: auto;
    min-height: 44px;
    border-radius: 12px;
    padding: 10px 12px;
    justify-content: flex-start;
    gap: 12px;
  }
  .nav-mobile-tools .hero-style-trigger-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
  }
  .nav-mobile-tools .hero-style-popover {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    min-width: 0;
    width: 100%;
    margin-top: 8px;
  }

  /* Locked choices: hide all non-selected picker options */
  .palette-option:not([data-palette="brandfill-rose"]),
  .nav-style-option:not([data-nav="minimal"]),
  .hero-style-option:not([data-hero="prism"]) {
    display: none !important;
  }

  .btn-cta {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
    color: #fff; border: none; border-radius: 100px;
    padding: 10px 24px; font-size: 13.5px; font-weight: 600;
    letter-spacing: 0.04em; cursor: pointer;
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 20px var(--accent-shadow);
    transition: all 0.3s ease;
    position: relative; overflow: hidden;
  }
  .btn-cta::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0; transition: opacity 0.3s ease;
  }
  .btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--accent-shadow-strong); }
  .btn-cta:hover::before { opacity: 1; }

  /* ── HERO ── */
  .hero {
    min-height: 100vh;
    position: relative; overflow: hidden;
    display: flex; align-items: center;
    padding-top: 80px;
  }

  .hero-canvas {
    position: absolute; inset: 0; z-index: 0;
  }

  .hero-grain {
    position: absolute; inset: 0; z-index: 1;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat; background-size: 200px 200px;
    pointer-events: none;
  }

  .hero-bg-layer {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
  }

  html[data-hero]:not([data-hero="default"]) .hero-canvas {
    display: none;
  }

  html[data-hero="prism"] .hero-bg-prism { display: block; }
  .hero-bg-prism::before {
    content: '';
    position: absolute;
    width: 160vmax;
    height: 160vmax;
    left: 50%;
    top: 50%;
    margin-left: -80vmax;
    margin-top: -80vmax;
    background: conic-gradient(
      from 0deg,
      color-mix(in srgb, var(--red) 50%, transparent),
      color-mix(in srgb, var(--orange) 45%, transparent),
      color-mix(in srgb, var(--gold) 40%, transparent),
      color-mix(in srgb, var(--green) 42%, transparent),
      color-mix(in srgb, var(--blue) 48%, transparent),
      color-mix(in srgb, var(--purple) 42%, transparent),
      color-mix(in srgb, var(--red) 50%, transparent)
    );
    opacity: 0.42;
    filter: blur(72px);
    animation: heroPrismSpin 22s linear infinite;
  }
  @keyframes heroPrismSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  html[data-hero="beams"] .hero-bg-beams { display: block; }
  .hero-beam {
    position: absolute;
    width: min(18vw, 160px);
    height: 140%;
    top: -20%;
    background: linear-gradient(
      185deg,
      transparent 0%,
      color-mix(in srgb, var(--red) 22%, transparent) 38%,
      color-mix(in srgb, var(--blue) 14%, transparent) 52%,
      transparent 100%
    );
    transform-origin: 50% 0%;
    filter: blur(1px);
    opacity: 0.55;
    animation: heroBeamPulse 5.5s ease-in-out infinite;
  }
  .hero-bg-beams .hero-beam:nth-child(1) { left: 4%; transform: rotate(19deg); animation-delay: 0s; }
  .hero-bg-beams .hero-beam:nth-child(2) { left: 22%; transform: rotate(22deg); animation-delay: 0.6s; }
  .hero-bg-beams .hero-beam:nth-child(3) { left: 40%; transform: rotate(17deg); animation-delay: 1.2s; }
  .hero-bg-beams .hero-beam:nth-child(4) { left: 58%; transform: rotate(24deg); animation-delay: 0.3s; }
  .hero-bg-beams .hero-beam:nth-child(5) { left: 74%; transform: rotate(20deg); animation-delay: 0.9s; }
  .hero-bg-beams .hero-beam:nth-child(6) { left: 88%; transform: rotate(16deg); animation-delay: 1.5s; }
  @keyframes heroBeamPulse {
    0%, 100% { opacity: 0.22; filter: blur(2px); }
    50% { opacity: 0.78; filter: blur(0.5px); }
  }

  html[data-hero="constellation"] .hero-bg-constellation { display: block; }
  .hero-bg-constellation {
    background:
      radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,0.85), transparent),
      radial-gradient(1px 1px at 28% 42%, color-mix(in srgb, var(--red) 90%, white), transparent),
      radial-gradient(1px 1px at 44% 22%, rgba(255,255,255,0.7), transparent),
      radial-gradient(1.5px 1.5px at 58% 55%, color-mix(in srgb, var(--gold) 85%, white), transparent),
      radial-gradient(1px 1px at 72% 28%, rgba(255,255,255,0.75), transparent),
      radial-gradient(1px 1px at 86% 48%, color-mix(in srgb, var(--blue) 80%, white), transparent),
      radial-gradient(1px 1px at 18% 62%, rgba(255,255,255,0.6), transparent),
      radial-gradient(1.5px 1.5px at 38% 78%, color-mix(in srgb, var(--green) 75%, white), transparent),
      radial-gradient(1px 1px at 68% 72%, rgba(255,255,255,0.65), transparent),
      radial-gradient(1px 1px at 92% 18%, color-mix(in srgb, var(--purple) 80%, white), transparent),
      radial-gradient(1px 1px at 52% 88%, rgba(255,255,255,0.55), transparent),
      radial-gradient(1px 1px at 8% 88%, color-mix(in srgb, var(--orange) 75%, white), transparent);
    animation: heroStarGlow 5s ease-in-out infinite alternate;
  }
  .hero-bg-constellation::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(90deg, color-mix(in srgb, var(--border-strong) 40%, transparent) 1px, transparent 1px),
      linear-gradient(color-mix(in srgb, var(--border-strong) 28%, transparent) 1px, transparent 1px);
    background-size: 56px 56px;
    animation: heroGridDrift 24s linear infinite;
    opacity: 0.35;
  }
  @keyframes heroStarGlow {
    from { opacity: 0.55; filter: brightness(0.92); }
    to { opacity: 0.95; filter: brightness(1.12); }
  }
  @keyframes heroGridDrift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 56px 56px, 56px 56px; }
  }

  html[data-hero="helix"] .hero-bg-helix { display: block; }
  .hero-bg-helix::before {
    content: '';
    position: absolute;
    inset: -35% -15%;
    background-image: repeating-linear-gradient(
      106deg,
      transparent 0,
      transparent 20px,
      color-mix(in srgb, var(--red) 14%, transparent) 20px,
      color-mix(in srgb, var(--red) 14%, transparent) 22px
    );
    animation: heroHelixUp 18s linear infinite;
    opacity: 0.55;
  }
  .hero-bg-helix::after {
    content: '';
    position: absolute;
    inset: -35% -15%;
    background-image: repeating-linear-gradient(
      -106deg,
      transparent 0,
      transparent 20px,
      color-mix(in srgb, var(--blue) 11%, transparent) 20px,
      color-mix(in srgb, var(--blue) 11%, transparent) 22px
    );
    animation: heroHelixDown 24s linear infinite;
    opacity: 0.5;
  }
  @keyframes heroHelixUp {
    from { transform: translateY(0); }
    to { transform: translateY(-44px); }
  }
  @keyframes heroHelixDown {
    from { transform: translateY(0); }
    to { transform: translateY(44px); }
  }

  html[data-hero="tide"] .hero-bg-tide { display: block; }
  .hero-bg-tide::before {
    content: '';
    position: absolute;
    left: -18%;
    bottom: -32%;
    width: 136%;
    height: 58%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center,
      color-mix(in srgb, var(--red) 18%, transparent) 0%,
      transparent 68%);
    animation: heroTideA 9s ease-in-out infinite;
  }
  .hero-bg-tide::after {
    content: '';
    position: absolute;
    left: -25%;
    bottom: -42%;
    width: 150%;
    height: 62%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center,
      color-mix(in srgb, var(--orange) 14%, transparent) 0%,
      transparent 62%);
    animation: heroTideB 12s ease-in-out infinite;
  }
  @keyframes heroTideA {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-36px) scale(1.04); }
  }
  @keyframes heroTideB {
    0%, 100% { transform: translateY(0) scale(1) translateX(0); }
    50% { transform: translateY(-22px) scale(1.06) translateX(40px); }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-bg-prism::before,
    .hero-bg-constellation,
    .hero-bg-constellation::before,
    .hero-bg-helix::before,
    .hero-bg-helix::after,
    .hero-bg-tide::before,
    .hero-bg-tide::after,
    .hero-beam {
      animation: none !important;
    }
    .hero-bg-prism::before { transform: rotate(35deg); }
    .hero-beam { opacity: 0.45; }
  }

  .hero-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 40px;
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; gap: 80px;
    width: 100%;
  }

  .hero-left { max-width: 620px; }

  .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--red-light); border: 1px solid var(--accent-border-soft);
    border-radius: 100px; padding: 6px 16px 6px 10px;
    margin-bottom: 28px;
    animation: fadeUp 0.8s ease 0.2s both;
  }
  .hero-badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--red);
    animation: pulse 2s ease infinite;
  }
  @keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.6; }
  }
  .hero-badge span {
    font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--red);
  }

  .hero-headline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(52px, 6vw, 84px);
    font-weight: 600; line-height: 1.05;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    animation: fadeUp 0.9s ease 0.35s both;
  }
  .hero-headline em {
    font-style: italic;
    background: linear-gradient(135deg, var(--red) 0%, var(--orange) 50%, var(--red-deep) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradShift 4s ease infinite;
  }
  @keyframes gradShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }

  .hero-sub {
    font-size: 17px; line-height: 1.75; color: var(--text-secondary);
    margin-top: 24px; max-width: 480px; font-weight: 400;
    animation: fadeUp 0.9s ease 0.5s both;
  }

  .hero-actions {
    display: flex; align-items: center; gap: 16px; margin-top: 40px;
    animation: fadeUp 0.9s ease 0.65s both;
    flex-wrap: wrap;
  }

  .btn-primary {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
    color: #fff; border: none; border-radius: 100px;
    padding: 16px 36px; font-size: 15px; font-weight: 600;
    letter-spacing: 0.03em; cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; gap: 10px;
    box-shadow: 0 8px 32px var(--accent-shadow-strong);
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative; overflow: hidden;
  }
  .btn-primary .arrow {
    width: 18px; height: 18px; background: rgba(255,255,255,0.25);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 11px; transition: transform 0.3s ease;
  }
  .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 48px var(--accent-shadow-deep); }
  .btn-primary:hover .arrow { transform: translateX(3px); }

  .btn-secondary {
    background: transparent; border: 1.5px solid var(--border-strong);
    border-radius: 100px; padding: 15px 32px; font-size: 15px;
    font-weight: 500; color: var(--text-primary); cursor: pointer;
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    transition: all 0.3s ease;
  }
  .btn-secondary:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }

  /* Liquid / glass primary buttons for all brand-wash palettes */
  [data-palette^="brandfill"] .btn-primary,
  [data-palette^="brandfill"] .btn-cta {
    color: var(--text-primary);
    background: linear-gradient(125deg,
      rgba(255,255,255,0.42) 0%,
      color-mix(in srgb, var(--red) 42%, transparent) 32%,
      rgba(255,255,255,0.28) 64%,
      color-mix(in srgb, var(--red-deep) 55%, transparent) 100%);
    background-size: 320% 320%;
    animation: liquidBtnShineOnly 5s ease-in-out infinite;
    border: 1.5px solid rgba(255,255,255,0.42);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -2px 12px color-mix(in srgb, var(--red) 25%, transparent);
  }
  [data-palette^="brandfill"] .btn-primary .arrow {
    background: color-mix(in srgb, var(--text-primary) 10%, transparent);
    color: var(--text-primary);
  }
  [data-palette^="brandfill"] .btn-primary:hover,
  [data-palette^="brandfill"] .btn-cta:hover {
    animation-duration: 3.2s;
  }
  @keyframes liquidBtnShineOnly {
    0%, 100% {
      background-position: 0% 50%;
      border-radius: 999px;
    }
    50% {
      background-position: 100% 50%;
      border-radius: 999px;
    }
  }
  [data-theme="dark"][data-palette^="brandfill"] .btn-primary,
  [data-theme="dark"][data-palette^="brandfill"] .btn-cta {
    background: linear-gradient(125deg,
      rgba(255,255,255,0.12) 0%,
      color-mix(in srgb, var(--red) 50%, transparent) 35%,
      rgba(255,255,255,0.08) 65%,
      color-mix(in srgb, var(--red-deep) 45%, transparent) 100%);
    border-color: rgba(255,255,255,0.22);
    box-shadow: 0 10px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.12);
  }
  [data-palette^="brandfill"] .btn-secondary {
    background: rgba(255,255,255,0.14);
    border: 1.5px solid rgba(255,255,255,0.32);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  [data-palette^="brandfill"] .btn-secondary:hover {
    background: rgba(255,255,255,0.24);
    border-color: rgba(255,255,255,0.48);
    color: var(--text-primary);
  }
  [data-theme="dark"][data-palette^="brandfill"] .btn-secondary {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.18);
  }
  [data-theme="dark"][data-palette^="brandfill"] .btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.28);
    color: var(--text-primary);
  }
  @media (prefers-reduced-motion: reduce) {
    [data-palette^="brandfill"] .btn-primary,
    [data-palette^="brandfill"] .btn-cta {
      animation: none;
      border-radius: 999px;
    }
  }

  .hero-stats {
    display: flex; gap: 32px; margin-top: 52px;
    animation: fadeUp 0.9s ease 0.8s both;
  }
  .stat { display: flex; flex-direction: column; gap: 4px; }
  .stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px; font-weight: 700; color: var(--text-primary);
    line-height: 1;
  }
  .stat-num span { color: var(--red); }
  .stat-label { font-size: 12px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
  .stat-divider { width: 1px; background: var(--border-strong); align-self: stretch; }

  /* ── HERO RIGHT (Color Wheel Visual) ── */
  .hero-right {
    position: relative; display: flex; align-items: center; justify-content: center;
    animation: fadeIn 1.2s ease 0.4s both;
  }

  .color-wheel-wrap {
    position: relative;
    width: min(480px, 100%);
    height: min(480px, 100%);
    max-width: 100%;
    aspect-ratio: 1;
  }

  .wheel-canvas {
    width: 100%; height: 100%;
    border-radius: 50%;
    animation: spinSlow 30s linear infinite;
  }

  @keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

  .wheel-center {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 200px; height: 200px; border-radius: 50%;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 4px;
    box-shadow: inset 0 0 32px rgba(0,0,0,0.08);
    z-index: 2;
    transition: background 0.4s ease;
  }

  .wheel-center img { width: 80px; height: 80px; object-fit: contain; }

  .floating-swatches {
    position: absolute; inset: 0; pointer-events: none; z-index: 3;
  }

  .swatch {
    position: absolute; border-radius: 16px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; padding: 12px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    animation: floatBob 3s ease-in-out infinite;
    transition: box-shadow 0.3s ease;
  }
  .swatch:nth-child(1) { top: 2%; left: 5%; animation-delay: 0s; }
  .swatch:nth-child(2) { top: 8%; right: 2%; animation-delay: 0.7s; }
  .swatch:nth-child(3) { bottom: 12%; left: 2%; animation-delay: 1.4s; }
  .swatch:nth-child(4) { bottom: 5%; right: 8%; animation-delay: 2.1s; }
  .swatch:nth-child(5) { top: 42%; right: -2%; animation-delay: 0.35s; }

  @keyframes floatBob {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
  }
  .swatch-dot { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; }
  .swatch-name { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.9); letter-spacing: 0.06em; }
  .swatch-code { font-size: 10px; color: rgba(255,255,255,0.6); font-family: monospace; }

  /* ── TICKER ── */
  .ticker {
    background: var(--red);
    padding: 11px 0; overflow: hidden;
    position: relative; z-index: 3;
  }
  .ticker-track {
    display: flex; gap: 0; white-space: nowrap;
    animation: ticker 35s linear infinite;
  }
  @keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  .ticker-item {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 0 28px; font-size: 12px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.9);
  }
  .ticker-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.5); }

  /* ── ABOUT / INTRO SECTION ── */
  .section {
    padding: 110px 40px;
    max-width: 1280px; margin: 0 auto;
  }
  .section-label {
    font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--red); margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
  }
  .section-label::before {
    content: ''; width: 32px; height: 1.5px; background: var(--red);
  }

  .intro-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center;
  }
  .intro-headline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(38px, 4vw, 60px); font-weight: 600; line-height: 1.1;
    letter-spacing: -0.01em; color: var(--text-primary);
  }
  .intro-body {
    font-size: 16px; line-height: 1.8; color: var(--text-secondary);
    margin-top: 24px;
  }
  .intro-body + .intro-body { margin-top: 16px; }

  .feature-list { margin-top: 36px; display: flex; flex-direction: column; gap: 16px; }
  .feature-item {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 20px; border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface2);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
  }
  .feature-item:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-card);
    transform: translateX(4px);
  }
  .feature-icon {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
  }
  .feature-text h4 {
    font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px;
  }
  .feature-text p { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

  /* ── PRODUCTS SECTION ── */
  .products-section {
    padding: 110px 0;
    background: var(--bg2);
    transition: background 0.4s ease;
  }
  .products-inner { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
  .section-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 56px;
  }

  .product-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  }

  .product-card-wrap {
    animation: productCardFloat 5.5s ease-in-out infinite;
  }
  .product-card-wrap:nth-child(3n + 2) { animation-delay: -1.85s; }
  .product-card-wrap:nth-child(3n + 3) { animation-delay: -3.7s; }
  @keyframes productCardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  @media (prefers-reduced-motion: reduce) {
    .product-card-wrap { animation: none; }
  }

  .product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px; overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    position: relative;
  }
  .product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
  }
  .card-border-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
  }
  .card-border-rect-main {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    pathLength: 100;
    opacity: 0;
  }
  .card-border-rect-main { stroke-dasharray: 40 60; stroke-dashoffset: 0; }
  .product-card:hover .card-border-rect-main {
    animation: cardBorderMain 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
  }
  @keyframes cardBorderMain {
    0% {
      opacity: 1;
      stroke-dashoffset: 0;
    }
    72% {
      opacity: 1;
      stroke-dashoffset: -100;
    }
    73% {
      opacity: 1;
      stroke-dasharray: 100 0;
      stroke-dashoffset: -100;
    }
    100% {
      opacity: 1;
      stroke-dasharray: 100 0;
      stroke-dashoffset: -100;
    }
  }
  .product-card:not(:hover) .card-border-rect-main {
    opacity: 0;
    stroke-dasharray: 40 60;
    stroke-dashoffset: 0;
    animation: none;
  }
  .product-card-visual {
    height: 200px; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
  }
  .product-card-visual canvas { position: absolute; inset: 0; }
  .product-card-icon {
    position: relative; z-index: 1; font-size: 48px;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.2));
  }
  .product-card-body { padding: 24px; }
  .product-card-tag {
    font-size: 10px; font-weight: 700; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--red);
    margin-bottom: 8px; display: block;
  }
  .product-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px; font-weight: 600; color: var(--text-primary);
    margin-bottom: 10px;
  }
  .product-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

  .product-card-footer {
    padding: 0 24px 24px;
    display: flex; align-items: center; justify-content: space-between;
  }
  .learn-more {
    font-size: 13px; font-weight: 600; color: var(--red);
    text-decoration: none; display: flex; align-items: center; gap: 4px;
    transition: gap 0.2s ease;
  }
  .learn-more:hover { gap: 8px; }

  /* ── COLOR PALETTE SHOWCASE ── */
  .palette-section {
    padding: 110px 40px;
    max-width: 1280px; margin: 0 auto;
  }
  .palette-headline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(40px, 4.5vw, 66px); font-weight: 600;
    text-align: center; color: var(--text-primary); margin-bottom: 16px;
    letter-spacing: -0.01em;
  }
  .palette-sub {
    text-align: center; font-size: 16px; color: var(--text-muted);
    max-width: 500px; margin: 0 auto 60px; line-height: 1.7;
  }

  .palette-strip {
    display: flex; gap: 0; border-radius: 24px; overflow: hidden;
    height: 180px; box-shadow: var(--shadow);
  }
  .palette-block {
    flex: 1; display: flex; align-items: flex-end; padding: 16px 12px;
    cursor: pointer; transition: flex 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
  }
  .palette-block:hover { flex: 2.2; }
  .palette-block-name {
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: rgba(255,255,255,0.9);
    opacity: 0; transition: opacity 0.3s ease;
    white-space: nowrap;
  }
  .palette-block:hover .palette-block-name { opacity: 1; }

  /* ── TESTIMONIALS / TRUST ── */
  .trust-section {
    padding: 100px 0;
    background: var(--bg3);
    transition: background 0.4s ease;
  }
  .trust-inner { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
  .trust-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px;
  }
  .trust-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px; padding: 28px;
    transition: all 0.3s ease;
  }
  .trust-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
  .trust-stars { color: var(--orange); font-size: 13px; letter-spacing: 2px; margin-bottom: 14px; }
  .trust-quote {
    font-size: 14px; line-height: 1.7; color: var(--text-secondary);
    margin-bottom: 20px; font-style: italic;
    font-family: 'Cormorant Garamond', serif; font-size: 16px;
  }
  .trust-author { display: flex; align-items: center; gap: 10px; }
  .trust-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #fff;
    flex-shrink: 0;
  }
  .trust-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
  .trust-role { font-size: 11.5px; color: var(--text-muted); }

  /* ── CTA SECTION ── */
  .cta-section {
    padding: 120px 40px; text-align: center; position: relative; overflow: hidden;
  }
  .cta-section::before {
    content: '';
    position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
    width: 600px; height: 600px; border-radius: 50%;
    background: var(--glow-red);
    pointer-events: none;
  }
  .cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
  .cta-headline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(42px, 5vw, 72px); font-weight: 600;
    color: var(--text-primary); line-height: 1.08; letter-spacing: -0.02em;
    margin-bottom: 20px;
  }
  .cta-sub { font-size: 16px; color: var(--text-muted); line-height: 1.7; margin-bottom: 44px; }
  .cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

  /* ── FOOTER ── */
  footer {
    background: var(--bg2); border-top: 1px solid var(--border);
    padding: 60px 40px 32px;
    transition: background 0.4s ease;
  }
  .footer-inner { max-width: 1280px; margin: 0 auto; }
  .footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 48px; }
  .footer-brand h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px; font-weight: 700; color: var(--red); margin-bottom: 12px;
  }
  .footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.7; max-width: 280px; }
  .footer-col h4 {
    font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--text-primary); margin-bottom: 20px;
  }
  .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
  .footer-col ul a {
    font-size: 14px; color: var(--text-muted); text-decoration: none;
    transition: color 0.2s ease;
  }
  .footer-col ul a:hover { color: var(--red); }
  .footer-bottom {
    border-top: 1px solid var(--border); padding-top: 24px;
    display: flex; align-items: center; justify-content: space-between;
  }
  .footer-bottom p { font-size: 13px; color: var(--text-muted); }

  /* ── ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
  }

  .reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }

  /* ── RESPONSIVE ── */
  @media (max-width: 1024px) {
    .hero {
      min-height: 100dvh;
      height: 100dvh;
      max-height: 100dvh;
      overflow: hidden;
    }
    .hero-inner {
      grid-template-columns: 1fr;
      grid-template-rows: 1fr;
      gap: 0;
      height: 100%;
      min-height: 0;
      align-content: center;
    }
    .hero-left,
    .hero-right {
      grid-column: 1;
      grid-row: 1;
    }
    .hero-left {
      position: relative;
      z-index: 2;
      align-self: center;
      max-width: 100%;
    }
    .hero-right {
      z-index: 0;
      justify-content: center;
      align-self: center;
      justify-self: center;
      pointer-events: none;
    }
    .color-wheel-wrap {
      width: min(400px, 88vw);
      height: min(400px, 88vw);
      opacity: 0.5;
    }
    .floating-swatches { display: none; }
    .wheel-center { width: 140px; height: 140px; }
    .wheel-center img { width: 56px; height: 56px; }
    .intro-grid { grid-template-columns: 1fr; gap: 60px; }
    .product-grid { grid-template-columns: 1fr 1fr; }
    .trust-grid { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  }
  @media (max-width: 768px) {
    .nav-inner {
      padding: 12px 20px;
      position: relative;
    }
    .nav-actions {
      display: none;
    }
    .nav-mobile-toggle {
      display: inline-flex;
    }
    .nav-links {
      position: absolute;
      top: calc(100% + 10px);
      left: 20px;
      right: 20px;
      flex-direction: column;
      align-items: stretch;
      gap: 4px;
      padding: 12px;
      border-radius: 16px;
      border: 1px solid var(--border);
      background: var(--nav-bg);
      backdrop-filter: blur(20px) saturate(140%);
      -webkit-backdrop-filter: blur(20px) saturate(140%);
      box-shadow: var(--shadow-card);
      opacity: 0;
      transform: translateY(-12px) scale(0.98);
      pointer-events: none;
      transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
      transform-origin: top center;
    }
    nav.mobile-open .nav-links {
      opacity: 1;
      transform: translateY(0) scale(1);
      pointer-events: auto;
    }
    .nav-links a {
      width: 100%;
      border-radius: 12px;
      padding: 11px 14px;
    }
    .nav-mobile-tools {
      display: block;
    }
    .hero-inner { padding: 0 20px; }
    .hero-headline {
      font-size: clamp(40px, 11vw, 56px);
    }
    .hero-sub {
      font-size: 15px;
      max-width: 100%;
    }
    .hero-actions {
      margin-top: 28px;
    }
    .hero-stats {
      margin-top: 32px;
      gap: 16px;
    }
    .stat-num { font-size: 28px; }
    .color-wheel-wrap {
      width: min(300px, 86vw);
      height: min(300px, 86vw);
      opacity: 0.45;
    }
    .section { padding: 80px 20px; }
    .product-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .palette-section { padding: 80px 20px; }
    .palette-strip { height: 120px; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .cta-section { padding: 80px 20px; }
    footer { padding: 48px 20px 24px; }
    .hero-stats { gap: 20px; flex-wrap: wrap; }
    .stat-divider { display: none; }
    .trust-section, .products-section { padding: 80px 0; }
    .products-inner { padding: 0 16px; }
    .trust-inner { padding: 0 16px; }
    .section-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
    }
    .palette-strip {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      height: auto;
    }
    .palette-block { flex: unset; min-height: 72px; }
    .palette-block:hover { flex: unset; }
  }
