@import "tailwindcss";
@import "lenis/dist/lenis.css";

/* ========== Local Fonts ========== */

/* Inter — latin-ext */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/inter-latin-ext-300-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* Inter — latin */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/inter-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* Cormorant Garamond — latin-ext */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/cormorant-garamond-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/cormorant-garamond-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/cormorant-garamond-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("/fonts/cormorant-garamond-latin-ext-500-italic.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/cormorant-garamond-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* Cormorant Garamond — latin */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ============================================================
 * Obvious Way — premium design system
 * Palette: deep midnight navy + antique gold + cream
 * Typography: Cormorant Garamond (display) + Inter (body)
 * ============================================================ */

@theme inline {
  --font-display: "Cormorant Garamond", ui-serif, Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;

  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);
  --radius-3xl: calc(var(--radius) + 12px);

  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-border: var(--border);
  --color-ring: var(--ring);

  --color-navy: var(--navy);
  --color-navy-deep: var(--navy-deep);
  --color-navy-soft: var(--navy-soft);
  --color-gold: var(--gold);
  --color-gold-soft: var(--gold-soft);
  --color-gold-bright: var(--gold-bright);
  --color-cream: var(--cream);
  --color-ink: var(--ink);
}

:root {
  --radius: 0.75rem;

  /* Brand */
  --navy-deep: oklch(0.22 0.05 240);
  --navy: oklch(0.32 0.06 235);
  --navy-soft: oklch(0.42 0.07 232);
  --gold: oklch(0.72 0.13 78);
  --gold-bright: oklch(0.82 0.13 82);
  --gold-soft: oklch(0.9 0.08 85);
  --cream: oklch(0.97 0.015 82);
  --ink: oklch(0.18 0.03 240);

  /* Semantic */
  --background: var(--navy-deep);
  --foreground: oklch(0.97 0.015 82);
  --card: oklch(0.28 0.055 238);
  --card-foreground: oklch(0.97 0.015 82);
  --primary: var(--gold);
  --primary-foreground: oklch(0.18 0.03 240);
  --secondary: oklch(0.35 0.06 235);
  --secondary-foreground: oklch(0.97 0.015 82);
  --muted: oklch(0.3 0.05 236);
  --muted-foreground: oklch(0.75 0.02 80);
  --accent: var(--gold);
  --accent-foreground: oklch(0.18 0.03 240);
  --border: oklch(0.72 0.13 78 / 0.15);
  --input: oklch(1 0 0 / 0.08);
  --ring: var(--gold);

  /* Gradients & shadows */
  --gradient-gold: linear-gradient(135deg, oklch(0.72 0.13 78), oklch(0.85 0.14 85));
  --gradient-glass: linear-gradient(135deg, oklch(1 0 0 / 0.08), oklch(1 0 0 / 0.02));
  --gradient-text-gold: linear-gradient(120deg, #E8C88A 0%, #C9963A 45%, #F5E5B8 85%);

  --shadow-elegant: 0 30px 80px -30px oklch(0 0 0 / 0.55),
                    0 8px 24px -12px oklch(0 0 0 / 0.35);
  --shadow-gold: 0 20px 60px -20px oklch(0.72 0.13 78 / 0.45);
  --shadow-glow: 0 0 40px oklch(0.72 0.13 78 / 0.35);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

@layer base {
  * { border-color: var(--color-border); }

  html {
    scroll-behavior: smooth;
    background: var(--color-background);
  }

  body {
    background: var(--color-background);
    color: var(--color-foreground);
    font-family: var(--font-sans);
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.005em;
  }

  h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.02em;
  }

  ::selection {
    background: var(--gold);
    color: var(--navy-deep);
  }

  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--navy-deep); }
  ::-webkit-scrollbar-thumb {
    background: oklch(0.72 0.13 78 / 0.25);
    border-radius: 999px;
  }
  ::-webkit-scrollbar-thumb:hover { background: oklch(0.72 0.13 78 / 0.5); }

  [x-cloak] { display: none !important; }
}

/* ========== Premium utilities ========== */

@utility text-gradient-gold {
  background: var(--gradient-text-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@utility glass {
  background: var(--gradient-glass);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid oklch(1 0 0 / 0.08);
}

@utility glass-strong {
  background: linear-gradient(135deg, oklch(1 0 0 / 0.12), oklch(1 0 0 / 0.04));
  backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid oklch(1 0 0 / 0.12);
}

@utility gold-border {
  position: relative;
  &::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, oklch(0.72 0.13 78 / 0.6), oklch(0.72 0.13 78 / 0.05), oklch(0.85 0.14 85 / 0.5));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
  }
}

@utility noise {
  position: relative;
  &::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.9'/></svg>");
  }
}

@utility shimmer {
  position: relative;
  overflow: hidden;
  &::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, oklch(1 0 0 / 0.25) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.9s var(--ease-out-expo);
  }
  &:hover::after { transform: translateX(100%); }
}

@utility btn-primary-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--navy-deep);
  background: var(--gradient-gold);
  box-shadow: var(--shadow-gold), inset 0 1px 0 oklch(1 0 0 / 0.4);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
  will-change: transform;

  &:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 30px 80px -20px oklch(0.72 0.13 78 / 0.6), inset 0 1px 0 oklch(1 0 0 / 0.5);
  }
  &:active { transform: translateY(0) scale(0.98); }
}

@utility btn-ghost-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--cream);
  background: transparent;
  border: 1px solid oklch(0.72 0.13 78 / 0.4);
  transition: all 0.4s var(--ease-out-expo);

  &:hover {
    border-color: oklch(0.72 0.13 78 / 1);
    background: oklch(0.72 0.13 78 / 0.08);
    color: var(--gold-soft);
    transform: translateY(-1px);
  }
}

@utility section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);

  &::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
  }
}

@utility display-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--cream);

  & em {
    font-style: italic;
    font-weight: 400;
    background: var(--gradient-text-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

@utility floaty {
  animation: floaty 8s ease-in-out infinite;
}
@utility floaty-slow {
  animation: floaty 14s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-18px) translateX(6px); }
}

@utility animated-underline {
  position: relative;
  &::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out-expo);
  }
  &:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

/* ========== Reveal animation ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition: opacity 0.9s var(--ease-out-expo),
              transform 0.9s var(--ease-out-expo),
              filter 0.9s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Stagger children */
.stagger-group .stagger-item {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo),
              filter 0.8s var(--ease-out-expo);
}
.stagger-group.visible .stagger-item {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.stagger-group.visible .stagger-item:nth-child(1) { transition-delay: 0.05s; }
.stagger-group.visible .stagger-item:nth-child(2) { transition-delay: 0.13s; }
.stagger-group.visible .stagger-item:nth-child(3) { transition-delay: 0.21s; }
.stagger-group.visible .stagger-item:nth-child(4) { transition-delay: 0.29s; }
.stagger-group.visible .stagger-item:nth-child(5) { transition-delay: 0.37s; }
.stagger-group.visible .stagger-item:nth-child(6) { transition-delay: 0.45s; }
.stagger-group.visible .stagger-item:nth-child(7) { transition-delay: 0.53s; }
.stagger-group.visible .stagger-item:nth-child(8) { transition-delay: 0.61s; }
.stagger-group.visible .stagger-item:nth-child(9) { transition-delay: 0.69s; }

/* ========== Hover lift ========== */
.hover-lift {
  transition: transform 0.4s var(--ease-out-expo);
}
.hover-lift:hover {
  transform: translateY(-6px);
}

/* ========== Scroll progress bar ========== */
#scroll-progress {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.1s linear;
}

/* ========== Hero title animation ========== */
.hero-line {
  display: block;
  overflow: hidden;
}
.hero-line > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1.05s var(--ease-out-expo),
              opacity 1.05s var(--ease-out-expo);
}
.hero-line.animate > span {
  transform: translateY(0);
  opacity: 1;
}
.hero-line:nth-child(1) > span { transition-delay: 0.15s; }
.hero-line:nth-child(2) > span { transition-delay: 0.27s; }
.hero-line:nth-child(3) > span { transition-delay: 0.39s; }
.hero-line:nth-child(4) > span { transition-delay: 0.55s; }
.hero-line:nth-child(4) > em {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  filter: blur(12px);
  transition: transform 1.2s var(--ease-out-expo),
              opacity 1.2s var(--ease-out-expo),
              filter 1.2s var(--ease-out-expo);
  transition-delay: 0.55s;
}
.hero-line.animate:nth-child(4) > em {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
}

/* Hero fade-up elements */
.hero-fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}
.hero-fade.animate {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Counter animation ========== */
.counter-value {
  font-variant-numeric: tabular-nums;
}

/* ========== Scroll indicator bounce ========== */
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.2; }
}
.scroll-dot {
  animation: scroll-bounce 1.8s ease-in-out infinite;
}

/* ========== Custom Cursor ========== */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid oklch(0.72 0.13 78 / 0.5);
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transition: width 0.35s var(--ease-out-expo),
              height 0.35s var(--ease-out-expo),
              border-color 0.35s,
              background 0.35s,
              margin 0.35s var(--ease-out-expo);
}
#custom-cursor.cursor-hover {
  width: 60px;
  height: 60px;
  border-color: oklch(0.72 0.13 78 / 0.8);
  background: oklch(0.72 0.13 78 / 0.08);
  margin-left: -10px;
  margin-top: -10px;
}
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  z-index: 10000;
  will-change: transform;
}
@media (hover: hover) {
  * { cursor: none !important; }
}
@media (hover: none) {
  * { cursor: auto !important; }
  #custom-cursor, #cursor-dot { display: none; }
}

/* ========== Navbar ========== */
#navbar {
  transition: transform 0.5s var(--ease-out-expo);
}
#nav-inner {
  transition: background 0.4s var(--ease-out-expo),
              backdrop-filter 0.4s var(--ease-out-expo),
              border-color 0.4s var(--ease-out-expo),
              box-shadow 0.4s var(--ease-out-expo);
}
.navbar-scrolled {
  background: linear-gradient(135deg, oklch(1 0 0 / 0.12), oklch(1 0 0 / 0.04)) !important;
  backdrop-filter: blur(28px) saturate(160%) !important;
  border: 1px solid oklch(1 0 0 / 0.12) !important;
  box-shadow: var(--shadow-elegant) !important;
}

/* Active section indicator */
.nav-active span::after {
  transform: scaleX(1) !important;
  transform-origin: left !important;
  background: var(--gold) !important;
}
.nav-active {
  color: var(--gold) !important;
}

/* ========== Back to Top Button ========== */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid oklch(0.72 0.13 78 / 0.4);
  background: linear-gradient(135deg, oklch(1 0 0 / 0.1), oklch(1 0 0 / 0.04));
  backdrop-filter: blur(20px) saturate(140%);
  color: var(--gold);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out-expo),
              transform 0.5s var(--ease-out-expo),
              border-color 0.3s,
              background 0.3s,
              box-shadow 0.3s;
}
#back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#back-to-top:hover {
  border-color: var(--gold);
  background: oklch(0.72 0.13 78 / 0.15);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -10px oklch(0.72 0.13 78 / 0.5);
}

/* ========== 3D Tilt Cards + Spotlight ========== */
.tilt-card {
  transition: transform 0.4s var(--ease-out-expo);
  will-change: transform;
  transform-style: preserve-3d;
}
.tilt-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  background: radial-gradient(500px circle at var(--x, 50%) var(--y, 50%), oklch(0.72 0.13 78 / 0.18), transparent 40%);
}
.tilt-card:hover::after {
  opacity: 1;
}

/* ========== Portrait Tilt ========== */
#portrait-card {
  transition: transform 0.4s var(--ease-out-expo);
  will-change: transform;
}

/* ========== Mobile menu ========== */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s var(--ease-out-expo),
              opacity 0.3s var(--ease-out-expo);
}
.mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}

/* ========== Article content (rich text rendered in the white reader modal) ========== */
.article-content { line-height: 1.75; }
.article-content > * + * { margin-top: 1.1em; }
.article-content h1 { font-family: var(--font-display); font-size: 1.7em; font-weight: 600; letter-spacing: 0; color: var(--navy-deep); }
.article-content h2 { font-family: var(--font-display); font-size: 1.4em; font-weight: 600; letter-spacing: 0; color: var(--navy-deep); }
.article-content h3 { font-family: var(--font-display); font-size: 1.2em; font-weight: 600; letter-spacing: 0; color: var(--navy-deep); }
.article-content a { color: var(--gold, #C9963A); text-decoration: underline; text-underline-offset: 2px; }
.article-content strong { color: var(--navy-deep); font-weight: 600; }
.article-content blockquote { border-left: 2px solid var(--gold, #C9963A); padding-left: 1em; font-style: italic; opacity: 0.85; }
.article-content ul, .article-content ol { padding-left: 1.4em; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content pre { white-space: pre-wrap; background: rgba(0, 0, 0, 0.06); border-radius: 0.5rem; padding: 1em; font-size: 0.9em; }
