/* ============================================================
   Lusthaven — Main Stylesheet
   Cormorant Garamond display / DM Sans body
   Deep lavender accent, slate neutrals, auto light/dark
   ============================================================ */

/* ── Self-hosted Fonts ───────────────────────────────────── */
/*
 * Cormorant Garamond — display font
 * Weights: 300, 400, 500  |  Styles: normal, italic (300 & 400 only)
 * Subsets: latin, latin-ext
 *
 * DM Sans — body font
 * Weights: 300, 400, 500  |  Styles: normal (400 italic for lang switcher)
 * Subsets: latin, latin-ext
 *
 * Files live at /fonts/cormorant-garamond/ and /fonts/dm-sans/
 * relative to the web root; paths below are relative to this stylesheet.
 */

/* ── Cormorant Garamond ──────────────────────────────────── */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/cormorant-garamond/cormorant-garamond-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: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/cormorant-garamond/cormorant-garamond-latin-300-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: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond/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/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/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;
}

/* latin-ext — loaded only when extended Latin characters are encountered */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/cormorant-garamond/cormorant-garamond-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: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/cormorant-garamond/cormorant-garamond-latin-ext-300-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: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond/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/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/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;
}

/* ── DM Sans ─────────────────────────────────────────────── */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/dm-sans/dm-sans-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: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-sans/dm-sans-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: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-sans/dm-sans-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: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-sans/dm-sans-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;
}

/* latin-ext */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/dm-sans/dm-sans-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: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-sans/dm-sans-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: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-sans/dm-sans-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: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-sans/dm-sans-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;
}

/* ── Custom Properties ───────────────────────────────────── */

:root {
  /* Accent — deep violet-lavender, desaturated enough to feel considered */
  --accent:        #6E62A6;                   /* Deep violet-lavender */
  --accent-light:  #9B8FD4;                   /* Mid lavender — gradients, hover glow */
  --accent-dark:   #5A4F8C; /* ~15% darker than --accent */
  --accent-dim:    rgba(110, 98, 166, 0.10);  /* Haze — backgrounds, tags */

  /* Light mode — warm stone with a breath of lavender */
  --bg:            #F4F3F8;                   /* Stone-lavender white */
  --bg-alt:        #ECEAF3;                   /* Cooler lavender grey */
  --surface:       #FAFAFE;                   /* Near-white, barely tinted */
  --border:        rgba(60, 56, 90, 0.13);    /* Violet-tinted border */
  --text:          #1E1C28;                   /* Deep ink-violet */
  --text-secondary:#504C68;                   /* Muted violet-slate */
  --text-muted:    #938EA8;                   /* Soft lavender-grey */
  --nav-bg:        rgba(244, 243, 248, 0.92); /* Translucent stone-lavender */
  --shadow:        0 2px 24px rgba(40, 36, 70, 0.09);
  --shadow-lg:     0 8px 48px rgba(40, 36, 70, 0.16);

  /* Typography */
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  8rem;
  --space-2xl: 12rem;

  /* Layout */
  --max-w:      1200px;
  --max-w-text: 720px;
  --nav-h:      72px;

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-mid:  300ms ease;
  --t-slow: 600ms ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark mode — rich dark violet-slate, clearly distinct surfaces */
    --bg:            #181620;                   /* Deep ink-violet */
    --bg-alt:        #201E2C;                   /* Step up — slightly lighter */
    --surface:       #252334;                   /* Card surface — readable gap from bg */
    --border:        rgba(180, 170, 220, 0.12); /* Soft lavender border — visible but subtle */
    --text:          #EAE8F4;                   /* Pale lavender-white */
    --text-secondary:#B4B0CC;                   /* Muted lavender */
    --text-muted:    #6A667A;                   /* Dim slate */
    --nav-bg:        rgba(24, 22, 32, 0.94);    /* Translucent dark slate */
    --shadow:        0 2px 24px rgba(0, 0, 0, 0.36);
    --shadow-lg:     0 8px 48px rgba(0, 0, 0, 0.52);

    /* Accent lifts slightly in dark mode for contrast */
    --accent:        #8678C4;
    --accent-light:  #B0A6E0;
    --accent-dim:    rgba(134, 120, 196, 0.14);
    --accent-dark:   #6F63B0; /* ~15% darker than dark-mode accent */
  }
}

/* ── Reset & Base ────────────────────────────────────────── */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  transition: background-color var(--t-slow), color var(--t-slow);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

/* ── Typography Scale ────────────────────────────────────── */

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.01em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
}

.display-sm {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.3;
}

.label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.body-lg {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.75;
}

.body-sm {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ── Layout Utilities ────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-text {
  width: 100%;
  max-width: var(--max-w-text);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ── Navigation ──────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background var(--t-slow), border-color var(--t-slow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
  transition: color var(--t-fast);
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--t-fast);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nav-links a[aria-current="page"] {
  cursor: default;
}

.nav-links a.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: var(--r-sm);
  border-bottom: none;
  letter-spacing: 0.06em;
  transition: background var(--t-fast), transform var(--t-fast);
}

.nav-links a.nav-cta:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

/* Mobile lang row inside nav-links: hidden on desktop, shown when overlay is open */
.nav-links-lang {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--t-mid), opacity var(--t-mid);
}

.nav-links a.nav-cta[aria-current="page"] {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--accent);
  transform: none;
  cursor: default;
}

/* ── Image / Video Placeholders ──────────────────────────── */

.placeholder {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

.placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      var(--border) 20px,
      var(--border) 21px
    );
  opacity: 0.4;
}

.placeholder-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-md);
}

.placeholder-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-xs);
  opacity: 0.3;
}

.placeholder-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.placeholder-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  max-width: 200px;
}

.ph-hero      { aspect-ratio: 16/7; border-radius: 0; }
.ph-square    { aspect-ratio: 1; }
.ph-portrait  { aspect-ratio: 3/4; }
.ph-landscape { aspect-ratio: 16/9; }
.ph-wide      { aspect-ratio: 21/9; }

.ph-video .placeholder-icon::after {
  content: '▶';
  font-size: 2rem;
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  transition: all var(--t-mid);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(110, 98, 166, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid transparent;
  padding: 0.75rem 0;
}

.btn-ghost:hover {
  border-bottom-color: var(--accent);
}

/* ── Cards ───────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-mid), box-shadow var(--t-mid);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-body {
  padding: var(--space-md);
}

/* ── Dividers ────────────────────────────────────────────── */

.divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: var(--space-sm) 0;
}

.divider-center {
  margin: var(--space-sm) auto;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-lg) 0;
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-xl) 0 var(--space-lg);
}

.page-hero {
  padding-top: calc(var(--nav-h) + var(--space-xl));
  padding-bottom: var(--space-lg);
}

/* ── Feature split layout ────────────────────────────────── */

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (max-width: 768px) {
  .feature-split { grid-template-columns: 1fr; }
}

/* ── Accent treatments ───────────────────────────────────── */

.accent { color: var(--accent); }

.accent-bg {
  background: var(--accent-dim);
  border-radius: var(--r-md);
  padding: var(--space-lg) var(--space-md);
}

.tag {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

/* ── Footer ──────────────────────────────────────────────── */

footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--t-fast);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Scroll animations ───────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Utility ─────────────────────────────────────────────── */

.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-xs  { margin-top: var(--space-xs); }
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mb-xs  { margin-bottom: var(--space-xs); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

/* ── Mobile ──────────────────────────────────────────────── */

@media (max-width: 768px) {
  :root {
    --space-xl:  5rem;
    --space-2xl: 7rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    z-index: 99;
    height: fit-content;
    padding-top: 10px;
    padding-bottom: 20px;
  }

  .nav-links.open { display: flex; }

  /* Show mobile language row when overlay is open */
  .nav-links.open .nav-links-lang {
    display: flex;
    align-items: center;
    margin-top: var(--space-xs);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
  }

  .nav-links a {
    font-size: 1.1rem;
    letter-spacing: 0.06em;
  }

  .nav-toggle { display: flex; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }
}

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

/* ── Modal overlay ───────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
}

/* ── Modal card ──────────────────────────────────────────── */

.modal-card {
  width: 360px;
  max-width: 92%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-sm);
  box-shadow: 0 20px 60px rgba(40, 36, 70, 0.25);
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.show .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.modal-card p.modal-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.modal-card input,
.modal-card select {
  width: 100%;
  margin-bottom: var(--space-sm);
  padding: 0.6rem 0.7rem;
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  box-sizing: border-box;
}

.modal-card input:focus,
.modal-card select:focus {
  outline: none;
  border-color: var(--accent);
}

.modal-card button.modal-submit {
  width: 100%;
  padding: 0.7rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--t-fast);
}

.modal-card button.modal-submit:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

.modal-submit:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

.modal-close {
  float: right;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--t-fast);
}

.modal-close:hover {
  color: var(--text);
}

.modal-card small {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.gdpr-row, .newsletter-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: var(--space-xs);
}

.gdpr-row input, .newsletter-row input {
  margin-top: 2px;
  flex-shrink: 0;
  width: auto;
  accent-color: var(--accent);
}

.gdpr-row a, .newsletter-row a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal-card.success {
  animation: modalPop 0.35s ease;
}

@keyframes modalPop {
  0%   { transform: scale(0.95); }
  60%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.hidden {
  display: none;
}


/* ── Language Switcher ───────────────────────────────────── */

.lang-switcher {
  position: relative;
  margin-left: var(--space-sm);
  padding-left: var(--space-sm);
  border-left: 1px solid var(--border);
  /* Sits between nav-links and nav-toggle; flex handles alignment via nav-inner */
  display: flex;
  align-items: center;
}

.lang-trigger {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  transition: color var(--t-mid);
  line-height: 1;
}

.lang-trigger svg {
  width: 9px;
  height: 9px;
  transition: transform var(--t-mid);
  flex-shrink: 0;
}

.lang-trigger:hover,
.lang-trigger[aria-expanded="true"] {
  color: var(--accent);
}

.lang-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  min-width: 188px;
  padding: 5px;
  /* Hidden state */
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity var(--t-mid), transform var(--t-mid);
  z-index: 200;
}

.lang-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: calc(var(--r-md) - 2px);
  text-decoration: none;
  color: var(--text);
  transition: background var(--t-fast);
}

.lang-item:hover {
  background: var(--accent-dim);
}

.lang-item.active {
  background: var(--accent-dim);
}

.lang-native {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  flex: 1;
  line-height: 1.2;
}

.lang-item.active .lang-native {
  font-style: italic;
  color: var(--accent);
}

.lang-code {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.lang-item.active .lang-code {
  color: var(--accent-light);
}

.lang-check {
  width: 12px;
  height: 12px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── Language Switcher — Mobile ──────────────────────────── */

@media (max-width: 768px) {

  /* Hide the desktop trigger from the nav bar */
  .lang-switcher {
    display: none;
  }

  /* Language row appended inside the mobile overlay */
  .lang-switcher-mobile {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: var(--space-xs);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
  }

  .lang-switcher-mobile .lang-item {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: var(--r-sm);
    transition: color var(--t-fast), background var(--t-fast);
    /* Override the desktop lang-item flex layout */
    display: inline-flex;
    align-items: center;
    gap: 0;
  }

  /* Hide the native name and checkmark — code only at mobile scale */
  .lang-switcher-mobile .lang-native,
  .lang-switcher-mobile .lang-check {
    display: none;
  }

  /* The code badge becomes the label */
  .lang-switcher-mobile .lang-code {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: inherit;
  }

  .lang-switcher-mobile .lang-item:hover {
    color: var(--accent);
    background: var(--accent-dim);
  }

  .lang-switcher-mobile .lang-item.active {
    color: var(--accent);
    background: var(--accent-dim);
  }

  /* Separator dots between items */
  .lang-switcher-mobile .lang-sep {
    font-size: 0.5rem;
    color: var(--border);
    user-select: none;
    padding: 0 2px;
  }
}

/* ── ACCESSIBILITY ---------------───────────────────────────── */

/* Skip to content link */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-200%);
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 10000;
  border-radius: var(--r-sm);
  transition: transform 0.2s ease;
}

.skip-link:not(:focus) {
  pointer-events: none;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ── Global Accessible Focus Ring ───────────────────────────── */

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

:focus:not(:focus-visible) {
  outline: none;
}

/* Ensure focus ring is visible even on elements with overflow hidden */
button:focus-visible,
a:focus-visible:not(.skip-link) {
  position: relative;
  z-index: 2;
}

.skip-link:focus-visible {
  position: fixed;
  z-index: 9999;
}

/* ── Component‑specific focus enhancements ───────────────────── */

.lang-item:focus-visible {
  background: var(--accent-dim);
  color: var(--accent);
}

.lang-trigger:focus-visible {
  color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--r-sm);
}

/* Visually hidden but screen-reader accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Reduced Motion Support (Global) ───────────────────────── */

@media (prefers-reduced-motion: reduce) {

  /* Disable smooth scrolling */
  html {
    scroll-behavior: auto !important;
  }

  /* Disable all CSS animations and transitions */
  * {
    animation: none !important;
    transition: none !important;
  }

  /* Hero + reveal animations should appear instantly */
  .hero-eyebrow,
  .hero-headline,
  .hero-sub,
  .hero-actions,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Disable hover transforms on decorative cards */
  .card:hover,
  .tier-card:hover,
  .format-card:hover,
  .playspace-card:hover,
  .pillar:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  /* Disable modal pop animation */
  .modal-card {
    transform: none !important;
    opacity: 1 !important;
  }

  .modal-overlay {
    transition: none !important;
  }

  .modal-card h3:focus {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
  }

}

/* ── Turnstile / captcha notice ─────────────────────────────── */

.captcha-notice {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: var(--space-xs);
  text-align: center;
}

.captcha-notice a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.captcha-notice a:hover {
  color: var(--accent);
}
