/* ============================================================
   Valden Yacht — main.css
   Design tokens (Aegean Noon), reset, base.
   ============================================================ */

/* === SELF-HOSTED FONTS === */
/* Geist Variable - latin + latin-ext (Turkish/German), Inter remains as Cyrillic fallback */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/Geist-Variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0100-02BA, U+02BD-02FF, U+0300-036F, U+1D00-1DBF, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+A720-A7FF, U+FEFF, U+FFFD;
}
/* Inter Variable - Cyrillic fallback for RU/UK until a matching Geist Cyrillic subset is added */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Vazirmatn - Arabic + Persian (FA chars within AR unicode range) */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/vazirmatn-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
/* Fallback face with Geist metrics lock to keep font-swap CLS stable */
@font-face {
  font-family: 'Geist-fallback';
  src: local('Arial');
  size-adjust: 100%;
  ascent-override: 100%;
  descent-override: 22%;
  line-gap-override: 0%;
}
/* Playfair Display Italic — newspaper editorial eyebrows */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500 900;
  font-display: swap;
  src: url('/assets/fonts/playfair-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500 900;
  font-display: swap;
  src: url('/assets/fonts/playfair-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+1EF2-1EFF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500 900;
  font-display: swap;
  src: url('/assets/fonts/playfair-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Cabinet Grotesk — charismatic display headings (Fontshare, self-hosted).
   unicode-range limits to Latin (+Turkish/German) so Cyrillic/Arabic fall back cleanly. */
@font-face {
  font-family: 'Cabinet Grotesk';
  font-weight: 500;
  font-display: swap;
  font-style: normal;
  src: url('/assets/fonts/cabinet-grotesk-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0100-017F, U+02BB-02BC, U+2000-206F, U+2013-2014, U+2122, U+20BA;
}
@font-face {
  font-family: 'Cabinet Grotesk';
  font-weight: 700;
  font-display: swap;
  font-style: normal;
  src: url('/assets/fonts/cabinet-grotesk-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0100-017F, U+02BB-02BC, U+2000-206F, U+2013-2014, U+2122, U+20BA;
}
@font-face {
  font-family: 'Cabinet Grotesk';
  font-weight: 800;
  font-display: swap;
  font-style: normal;
  src: url('/assets/fonts/cabinet-grotesk-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0100-017F, U+02BB-02BC, U+2000-206F, U+2013-2014, U+2122, U+20BA;
}

:root {
  /* Primary palette — unified around brand deep navy */
  --color-primary: #063B52;        /* canonical deep navy */
  --color-secondary: #62D6E8;
  --color-accent: #FFD27A;

  /* Glass */
  --color-glass-tint: rgba(255,255,255,0.18);
  --color-glass-tint-strong: rgba(255,255,255,0.28);
  --color-glass-tint-soft: rgba(255,255,255,0.08);
  --color-glass-border: rgba(255,255,255,0.25);

  /* Depths */
  --color-deep: #063B52;
  --color-surface: #F4FBFD;
  --color-surface-soft: #EAF6FA;

  /* Text — all in deep navy family (no near-black) */
  --color-ink: #063B52;            /* was #0B2230 — user wants no black */
  --color-ink-soft: #1A3245;
  --color-muted: #4A6577;

  /* States */
  --color-success: #2BB673;
  --color-warning: #F5A65B;
  --color-danger: #E54848;

  /* Fonts */
  --font-latin: 'Geist', 'Geist-fallback', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Cabinet Grotesk', 'Geist', 'Geist-fallback', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-arabic: 'Vazirmatn', 'Tajawal', system-ui, sans-serif;
  --font-persian: 'Vazirmatn', system-ui, sans-serif;

  /* Type scale */
  --fs-hero: clamp(2.5rem, 9vw, 5.8rem);
  --lh-hero: 0.95;
  --tracking-hero: -0.03em;

  --fs-h2: clamp(2rem, 5vw, 3.6rem);
  --lh-h2: 1;

  --fs-h3: 1.25rem;
  --lh-h3: 1.3;

  --fs-body: 1rem;
  --lh-body: 1.7;

  --fs-lead: 1.05rem;

  --fs-eyebrow: 0.8rem;
  --tracking-eyebrow: 0.2em;

  /* Layout */
  --container-max: 1200px;
  --container-padding: clamp(16px, 4vw, 32px);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --section-py: clamp(56px, 10vw, 120px);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-card: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-soft: 0 8px 24px rgba(11,34,48,0.08);
  --shadow-card: 0 12px 40px rgba(11,34,48,0.10);
  --shadow-lift: 0 22px 80px rgba(11,34,48,0.16);
  --shadow-glow-primary: 0 0 40px rgba(14,111,135,0.35);

  /* Easings & durations */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --dur-fast: 150ms;
  --dur-medium: 300ms;
  --dur-slow: 600ms;
  --dur-cinema: 1200ms;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-latin);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-ink);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="ar"] body { font-family: var(--font-arabic); }
html[lang="fa"] body { font-family: var(--font-persian); }

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

a { color: var(--color-primary); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--color-deep); }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--color-ink); }
h1 { font-size: var(--fs-hero); line-height: var(--lh-hero); letter-spacing: var(--tracking-hero); font-weight: 800; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; }

p { margin: 0 0 var(--space-4); }

button { font-family: inherit; cursor: pointer; border: 0; background: none; }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   Layout primitives
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: var(--section-py);
}

/* =====================================================
   EYEBROW — Apple-grade keynote headlines
   Matte deep navy, Geist (Google Sans Flex-style), tight tracking, blur-rise entrance.
   ===================================================== */
/* Custom luxe teal — sophisticated mid-tone between deep navy and primary */
:root { --color-teal-luxe: #0E6F87; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-latin);    /* Geist - closest open Google Sans Flex feel */
  font-weight: 800;
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;          /* tight, SF Pro tracking */
  text-transform: none;              /* sentence case */
  color: var(--color-deep);          /* brand deep navy */
  margin-block-end: var(--space-5);
  position: relative;
  padding-block-end: 8px;
  cursor: default;
  /* APPLE KEYNOTE ENTRANCE — blur-clear + rise + scale */
  opacity: 0;
  filter: blur(10px);
  transform: translateY(22px) scale(0.96);
  transform-origin: left center;
  transition:
    opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 900ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
    color 320ms var(--ease-out),
    letter-spacing 320ms var(--ease-out);
  will-change: opacity, filter, transform;
}
.eyebrow.is-revealed {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}
.eyebrow > .eyebrow-mark { display: none; }

/* Animated underline — single luxe teal, draws on hover */
.eyebrow::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--color-teal-luxe);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 520ms cubic-bezier(0.65, 0, 0.35, 1);
  border-radius: 2px;
}
.eyebrow:hover {
  color: var(--color-teal-luxe);     /* matches underline exactly */
  letter-spacing: -0.030em;
}
.eyebrow:hover::after {
  transform: scaleX(1);
}

/* HERO variant — same treatment on dark image, white matte */
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: none;
  color: #fff;
  margin-block-end: var(--space-5);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  position: relative;
  padding-block-end: 6px;
}
.hero-eyebrow > .eyebrow-mark { display: none; }
.hero-eyebrow::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 520ms cubic-bezier(0.65, 0, 0.35, 1);
  border-radius: 2px;
}
.hero-eyebrow:hover { color: var(--color-accent); }
.hero-eyebrow:hover::after { transform: scaleX(1); }

/* Routes section is on dark deep navy — white matte */
.routes header .eyebrow {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.50);
}
.routes header .eyebrow::after { background: var(--color-accent); }
.routes header .eyebrow:hover { color: var(--color-accent); }

@media (prefers-reduced-motion: reduce) {
  .eyebrow, .hero-eyebrow {
    transition: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
  .eyebrow::after, .hero-eyebrow::after { transform: scaleX(1); transition: none; }
}

/* ============================================================
   Glass system
   ============================================================ */
.glass {
  background: var(--color-glass-tint);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--color-glass-border);
  box-shadow: 0 8px 32px rgba(11,34,48,0.10);
  border-radius: var(--radius-card);
}
.glass-soft   { backdrop-filter: blur(6px)  saturate(120%); -webkit-backdrop-filter: blur(6px)  saturate(120%); background: var(--color-glass-tint-soft); }
.glass-medium { backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); background: var(--color-glass-tint); }
.glass-strong { backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); background: var(--color-glass-tint-strong); }

@supports not (backdrop-filter: blur(10px)) {
  .glass, .glass-soft, .glass-medium, .glass-strong {
    background: rgba(255,255,255,0.92);
  }
}
@media (prefers-reduced-transparency) {
  .glass, .glass-soft, .glass-medium, .glass-strong {
    background: rgba(255,255,255,0.95);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
/* Mobile downgrade: lower blur radius to keep 60fps on mid-range GPUs */
@media (max-width: 720px) {
  .glass, .glass-medium {
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
  }
  .glass-strong {
    backdrop-filter: blur(8px) saturate(130%);
    -webkit-backdrop-filter: blur(8px) saturate(130%);
  }
}

/* ============================================================
   Photo frame (cropsuz + blurred bg)
   ============================================================ */
.photo-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--color-deep);
  border-radius: var(--radius-card);
}
.photo-frame .photo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(28px) saturate(130%);
  transform: scale(1.15);
  z-index: 0;
}
.photo-frame .photo-fg {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

/* ============================================================
   Utility
   ============================================================ */
.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;
}


/* === CANONICAL SITE HEADER === */

/* ============================================================
   Valden Yacht — Canonical Site Header (single source of truth)
   Used on every page. BEM naming to avoid collisions.
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  padding-block: 14px;
  background: linear-gradient(180deg, rgba(6,30,45,0.45) 0%, rgba(6,30,45,0) 100%);
  transition: background-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
              padding-block 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
              backdrop-filter 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.site-header__inner {
  max-inline-size: 1320px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}

/* Brand block (2-img opacity swap for light/dark variant) */
.site-header__brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 28px;
  flex-shrink: 0;
  text-decoration: none;
}
.site-header__brand-img {
  display: block;
  height: 38px;
  width: auto;
  transition: opacity 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (max-width: 600px) { .site-header__brand-img { height: 32px; } }
.site-header__brand-img--dark {
  position: absolute;
  top: 50%;
  inset-inline-start: 0;
  transform: translateY(-50%);
  opacity: 0;
}

/* Center nav links */
.site-header__nav {
  display: flex;
  gap: clamp(20px, 2.5vw, 36px);
  margin-inline-start: auto;
  list-style: none;
  margin-block: 0;
  padding-inline: 0;
}
.site-header__nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  padding-block: 6px;
  transition: color 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.site-header__nav-link::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: center;
  transform: scaleX(0);
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.site-header__nav-link:hover { color: #fff; }
.site-header__nav-link:hover::after { transform: scaleX(1); }

/* Language switcher */
.site-header__langs {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.site-header__lang-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  border-radius: 999px;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  font-size: 0;
  transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1), border-color 200ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
.site-header__lang-btn .flag {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* crop SVG to fill the circle */
  display: block;
}
.site-header__lang-btn:hover {
  transform: translateY(-2px) scale(1.08);
  border-color: rgba(255, 255, 255, 0.76);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.site-header__lang-btn.is-active,
.site-header__lang-btn.active {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(255, 210, 122, 0.30);
}

/* Mobile hamburger */
.site-header__menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.site-header__menu-toggle svg { width: 18px; height: 18px; }

/* ==== Scrolled state — solid glass + dark content ==== */
.site-header.is-scrolled {
  background: rgba(244, 251, 253, 0.92);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: 0 6px 28px rgba(11, 34, 48, 0.08);
  padding-block: 10px;
}
.site-header.is-scrolled .site-header__brand-img--light { opacity: 0; }
.site-header.is-scrolled .site-header__brand-img--dark  { opacity: 1; }
.site-header.is-scrolled .site-header__nav-link { color: var(--color-ink); }
.site-header.is-scrolled .site-header__nav-link:hover { color: var(--color-primary); }
.site-header.is-scrolled .site-header__lang-btn {
  background: rgba(6, 59, 82, 0.05);
  border-color: rgba(6, 59, 82, 0.20);
}
.site-header.is-scrolled .site-header__lang-btn:hover {
  border-color: var(--color-primary);
  box-shadow: 0 6px 16px rgba(6, 59, 82, 0.20);
}
.site-header.is-scrolled .site-header__lang-btn.is-active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(6, 59, 82, 0.18);
}
.site-header.is-scrolled .site-header__menu-toggle {
  color: var(--color-ink);
  border-color: rgba(11, 34, 48, 0.2);
}

/* === SUB-PAGE NAV — dark deep-navy glass bar, distinct from page bg === */
.site-header.is-subpage {
  background: rgba(6, 59, 82, 0.92);   /* deep navy translucent */
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header.is-subpage .site-header__brand-img--light { opacity: 1; }
.site-header.is-subpage .site-header__brand-img--dark  { opacity: 0; }
.site-header.is-subpage .site-header__nav-link { color: rgba(255, 255, 255, 0.86); }
.site-header.is-subpage .site-header__nav-link:hover { color: var(--color-accent); }
.site-header.is-subpage .site-header__lang-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}
.site-header.is-subpage .site-header__lang-btn:hover {
  border-color: var(--color-accent);
}
.site-header.is-subpage .site-header__lang-btn.is-active {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(255, 210, 122, 0.30);
}
.site-header.is-subpage .site-header__menu-toggle {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

/* ==== Mobile breakpoint ==== */
@media (max-width: 880px) {
  .site-header {
    padding-block-start: calc(14px + env(safe-area-inset-top, 0px));
  }
  .site-header.is-scrolled,
  .site-header.is-subpage {
    padding-block-start: calc(10px + env(safe-area-inset-top, 0px));
  }
  .site-header__inner {
    padding-inline-start: max(clamp(20px, 4vw, 48px), env(safe-area-inset-left, 0px));
    padding-inline-end: max(clamp(20px, 4vw, 48px), env(safe-area-inset-right, 0px));
  }
  .site-header__nav { display: none; }
  .site-header__menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
  }
  .site-header__langs {
    margin-inline-start: auto;
    gap: 0;
  }
  .site-header__lang-btn { width: 30px; height: 30px; }
}
@media (max-width: 600px) {
  .site-header__langs { display: none; }
  /* Show only langs in hamburger menu */
}

/* ==== Mobile drawer: runtime-built by main.js, desktop untouched ==== */
html.nav-drawer-open,
body.nav-drawer-open {
  overflow: hidden;
}

.site-drawer {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  justify-content: flex-end;
  padding-block-start: max(12px, env(safe-area-inset-top, 0px));
  padding-block-end: max(12px, env(safe-area-inset-bottom, 0px));
  padding-inline-start: max(12px, env(safe-area-inset-left, 0px));
  padding-inline-end: max(12px, env(safe-area-inset-right, 0px));
  background: rgba(6, 59, 82, 0.34);
  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms var(--ease-out);
}

[dir="rtl"] .site-drawer {
  justify-content: flex-start;
}

.site-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.site-drawer__panel {
  inline-size: min(86vw, 390px);
  block-size: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 18px;
  color: #fff;
  background: rgba(6, 59, 82, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  box-shadow: 0 26px 72px rgba(6, 59, 82, 0.34);
  transform: translateX(108%);
  transition: transform 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

[dir="rtl"] .site-drawer__panel {
  transform: translateX(-108%);
}

.site-drawer.is-open .site-drawer__panel {
  transform: translateX(0);
}

.site-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-drawer__brand-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-inline-size: 0;
  block-size: 38px;
}

.site-drawer__brand-link .site-header__brand-img {
  height: 32px;
}

.site-drawer__brand-link .site-header__brand-img--dark {
  opacity: 0;
}

.site-drawer__close,
.site-drawer__social-link,
.site-drawer__lang-btn {
  min-width: 44px;
  min-height: 44px;
}

.site-drawer__close {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.site-drawer__close svg {
  width: 20px;
  height: 20px;
}

.site-drawer__nav {
  display: grid;
  gap: 8px;
  padding-block: 8px;
}

.site-drawer__nav-link {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding-inline: 16px;
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 220ms var(--ease-out), color 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.site-drawer__nav-link:hover,
.site-drawer__nav-link:focus-visible {
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-1px);
}

.site-drawer__langs {
  display: grid;
  grid-template-columns: repeat(7, 44px);
  justify-content: space-between;
  gap: 8px;
  padding-block: 4px;
}

.site-drawer__lang-btn {
  width: 44px;
  height: 44px;
  padding: 4px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.site-drawer__lang-btn .flag {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.site-drawer__lang-btn.is-active,
.site-drawer__lang-btn.active {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(255, 210, 122, 0.28);
}

.site-drawer__social {
  display: flex;
  gap: 10px;
  margin-block-start: auto;
}

.site-drawer__social-link {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.20);
}

.site-drawer__social-link svg {
  width: 20px;
  height: 20px;
}

.site-drawer__social-link.wa { background: #25D366; }
.site-drawer__social-link.tg { background: #229ED9; }
.site-drawer__social-link.ig {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 12%, #fd5949 42%, #d6249f 62%, #285AEB 100%);
}

@media (min-width: 881px) {
  .site-drawer {
    display: none;
  }
}

@media (max-width: 390px) {
  .site-drawer {
    padding-inline: 8px;
  }
  .site-drawer__panel {
    inline-size: min(92vw, 360px);
    padding: 16px;
    border-radius: 22px;
  }
  .site-drawer__langs {
    grid-template-columns: repeat(4, 44px);
    justify-content: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-drawer,
  .site-drawer__panel,
  .site-drawer__nav-link {
    transition: none;
  }
}

/* ==== Body offset for fixed header ==== */
body { padding-block-start: 0; }
.hero-wrap { margin-block-start: 0; padding-block-start: 0; }

/* RTL flips for nav — link order flows naturally, no special rules needed
   since logical properties handle inline directions. */
/* ============================================================
   Valden Yacht — overrides.css (v2, hero/nav stripped)
   Hero & nav now self-contained in sections/hero.html (v2).
   This file only handles polish for OTHER sections.
   ============================================================ */

/* ---------- GALLERY PREVIEW — switch tiles to cover ---------- */
.gallery-preview .photo-frame .photo-fg { object-fit: cover !important; }
.gallery-preview .photo-frame { background: var(--color-deep); }
.gallery-preview .photo-frame .photo-bg { opacity: 0.7; }

/* Gallery page tiles also benefit from cover */
.gallery-page .gallery-item .photo-fg { object-fit: cover !important; }
.gallery-page .gallery-item .photo-bg { opacity: 0.5; }
/* Lightbox keeps contain — that's the "real" view */
.lightbox img { object-fit: contain !important; }

/* ---------- SECTION REVEAL FALLBACK ---------- */
/* If GSAP fails to load, sections still appear (CSS-only fadeIn). */
.section, header.page-nav { opacity: 1 !important; }


/* Native smooth scroll fallback */
html { scroll-behavior: smooth; }

/* ---------- SPACING POLISH ---------- */
.boat-intro .container { gap: var(--space-7); }
.services .service-card { min-height: 240px; display: flex; flex-direction: column; }
.services .service-card p { flex: 1; }
.cta-band .contact-card {
  transition: transform var(--dur-medium) var(--ease-out), box-shadow var(--dur-medium) var(--ease-out);
}
.cta-band .contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

/* ---------- BRAND-MOMENT — bigger logo + glow ---------- */
.brand-moment img { inline-size: 140px !important; margin-block-end: var(--space-5) !important; }
.brand-moment::before { inline-size: 360px !important; block-size: 360px !important; }

/* ---------- ROUTES card hover ---------- */
.routes-page .route-card:hover { border-color: color-mix(in srgb, var(--color-primary) 25%, transparent); }

/* ---------- FILTER chips active state pop ---------- */
.gallery-filters button.is-active {
  box-shadow: 0 6px 18px color-mix(in srgb, var(--color-primary) 35%, transparent);
}

/* ---------- FOOTER tabular number alignment ---------- */
.site-footer .phones .num { font-size: 1.05rem; }

/* ---------- Generic link/button focus visual ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* ---------- MOBILE TOUCH TARGETS — 44px minimum, visual size preserved where needed ---------- */
@media (max-width: 720px), (pointer: coarse) {
  .hero-cta {
    min-height: 44px !important;
    padding-block: max(12px, 0.72rem) !important;
  }

  .hero-slideshow-dots {
    gap: 2px !important;
    padding: 4px 8px !important;
  }

  .hero-dot,
  .hero-dot.is-active {
    position: relative !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .hero-dot::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.44);
    transform: translate(-50%, -50%);
    transition: width 320ms var(--ease-out), background-color 260ms var(--ease-out);
  }

  .hero-dot.is-active::before {
    width: 34px;
    background: #fff;
  }

  .site-footer .ch-link,
  .site-footer .lang-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .site-footer .ch-link svg {
    width: 18px !important;
    height: 18px !important;
  }

  .gallery-filters button,
  .boat-cta a,
  .gallery-cta a {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .gallery-filters button {
    padding-block: 10px !important;
  }

  .floating-contact {
    inset-block-end: max(18px, env(safe-area-inset-bottom, 0px)) !important;
    inset-inline-end: max(18px, env(safe-area-inset-right, 0px)) !important;
    gap: 10px !important;
  }

  [dir="rtl"] .floating-contact {
    inset-inline-start: max(18px, env(safe-area-inset-left, 0px)) !important;
    inset-inline-end: auto !important;
  }

  .floating-contact .fc-toggle {
    order: 0 !important;
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
  }

  .floating-contact .fc-menu {
    order: 2 !important;
    min-inline-size: min(248px, calc(100vw - 36px)) !important;
    max-inline-size: calc(100vw - 36px) !important;
  }

  .floating-contact .fc-item {
    min-height: 48px !important;
    padding-block: 8px !important;
  }

  .floating-contact .fc-notice {
    order: 1 !important;
    max-inline-size: min(248px, calc(100vw - 36px)) !important;
    margin-block-end: 2px !important;
    padding-block: 12px !important;
    padding-inline-start: 14px !important;
    padding-inline-end: 48px !important;
  }

  .floating-contact .fc-notice-close {
    width: 44px !important;
    height: 44px !important;
    inset-block-start: 2px !important;
    inset-inline-end: 2px !important;
    background: transparent !important;
  }

  .floating-contact .fc-notice::after {
    inset-inline-end: 24px !important;
  }

  .eyebrow {
    font-size: clamp(2.05rem, 10vw, 3.1rem) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.03em !important;
    max-inline-size: 100% !important;
    overflow-wrap: anywhere !important;
  }

  .hero-eyebrow {
    font-size: clamp(0.72rem, 3.2vw, 0.88rem) !important;
    letter-spacing: 0.24em !important;
    max-inline-size: 100% !important;
  }

  .hero-eyebrow::before {
    width: 26px !important;
  }

  .specs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .specs-grid .spec {
    padding: 16px !important;
    min-height: 96px !important;
  }

  .specs-grid .spec .label {
    font-size: 0.68rem !important;
    line-height: 1.25 !important;
  }

  .specs-grid .spec .val {
    font-size: clamp(1rem, 4.2vw, 1.18rem) !important;
    line-height: 1.2 !important;
  }

  .deck-floors .floor {
    grid-template-columns: 48px 1fr !important;
    gap: 12px !important;
    padding: 14px !important;
  }

  .boat-cta a {
    margin-inline: 4px !important;
  }
}

@media (max-width: 360px) {
  .eyebrow {
    font-size: clamp(1.86rem, 9.4vw, 2.55rem) !important;
  }

  .specs-grid {
    grid-template-columns: 1fr !important;
  }

  .boat-cta a {
    width: 100% !important;
    margin-inline: 0 !important;
  }

  .floating-contact .fc-toggle {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
  }
}


/* a11y B-tour: footer text-block links underline */
.site-footer p a,
.site-footer .num,
.site-footer .legal a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.42);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.site-footer p a:hover,
.site-footer .num:hover,
.site-footer .legal a:hover {
  text-decoration-color: var(--color-accent);
}


/* =========================================================
   Hero scroll-cue (Lottie chevron+mouse, gold accent)
   ========================================================= */
.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 48px;
  height: 64px;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  animation: heroCueFadeIn 800ms cubic-bezier(0.16,1,0.3,1) 2.2s forwards;
}
.hero-scroll-cue.is-dismissed {
  animation: heroCueFadeOut 480ms ease-out forwards;
}
.hero-scroll-cue__lottie {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.45));
}
@keyframes heroCueFadeIn  { to { opacity: 1; } }
@keyframes heroCueFadeOut { to { opacity: 0; transform: translateX(-50%) translateY(8px); } }
@media (max-width: 720px) {
  .hero-scroll-cue { bottom: 96px; width: 40px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue { display: none; }
}

/* =========================================================
   Contact icon hover micro-animations (CSS keyframes —
   identical visual delight to Lottie at <100 bytes/icon)
   ========================================================= */
.icon-button { position: relative; overflow: hidden; }
.icon-button svg { transition: transform 240ms cubic-bezier(0.34,1.56,0.64,1); transform-origin: center; }

/* WhatsApp: bubble bounces gently */
.icon-button[aria-label^="WhatsApp"]:hover svg { animation: vyIconWaBounce 900ms ease-in-out infinite; }
@keyframes vyIconWaBounce {
  0%, 100% { transform: scale(1) translateY(0); }
  35%      { transform: scale(1.12) translateY(-2px); }
  70%      { transform: scale(1.04) translateY(0); }
}

/* Telegram: paper plane glides right then snaps back */
.icon-button[aria-label^="Telegram"]:hover svg { animation: vyIconTgGlide 1100ms ease-in-out infinite; }
@keyframes vyIconTgGlide {
  0%, 100% { transform: translateX(0) rotate(0); }
  45%      { transform: translateX(5px) rotate(8deg); opacity: 1; }
  55%      { transform: translateX(7px) rotate(8deg); opacity: 0; }
  56%      { transform: translateX(-7px) rotate(0); opacity: 0; }
  75%      { transform: translateX(-3px) rotate(0); opacity: 1; }
}

/* Telephone: handset rings (5deg shake, 2 rings) */
.icon-button[aria-label^="Telefon"]:hover svg { animation: vyIconPhoneRing 800ms ease-in-out infinite; transform-origin: 50% 30%; }
@keyframes vyIconPhoneRing {
  0%, 60%, 100%       { transform: rotate(0); }
  10%, 30%            { transform: rotate(-8deg); }
  20%, 40%            { transform: rotate(8deg); }
  50%                 { transform: rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
  .icon-button svg,
  .icon-button:hover svg { animation: none !important; transition: none !important; }
}

@media (hover: none) {
  /* Mobile: single short burst on tap (touch) instead of loop */
  .icon-button:active svg { animation-iteration-count: 1; animation-duration: 600ms; }
}


/* =========================================================
   PWA install bar — gentle bottom slide-in, brand-styled
   ========================================================= */
.pwa-install-bar {
  position: fixed;
  inset-inline: var(--space-3);
  bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px 14px 12px 18px;
  background: rgba(6, 59, 82, 0.94);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: #fff;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.45),
              0 4px 12px rgba(0, 0, 0, 0.18);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 460ms cubic-bezier(0.16, 1, 0.3, 1),
              opacity 360ms ease-out;
  max-width: 520px;
  margin-inline: auto;
  pointer-events: auto;
}
.pwa-install-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.pwa-install-bar__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.pwa-install-bar__text {
  flex: 1 1 auto;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.pwa-install-bar__cta {
  flex: 0 0 auto;
  padding: 9px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFE7AC 0%, #F2C75E 48%, #D9A441 100%);
  color: #3A2A06;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  border: 0;
  cursor: pointer;
  min-height: 40px;
  box-shadow: 0 4px 14px -3px rgba(217, 164, 65, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(120, 80, 10, 0.25);
  transition: transform 220ms var(--ease-out), box-shadow 220ms;
}
.pwa-install-bar__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -4px rgba(217, 164, 65, 0.70), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.pwa-install-bar__close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
  transition: background 180ms, color 180ms;
}
.pwa-install-bar__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
}
[dir="rtl"] .pwa-install-bar {
  /* layout stays — flex flows naturally with dir attribute */
}
@media (prefers-reduced-motion: reduce) {
  .pwa-install-bar {
    transition: opacity 200ms;
    transform: none;
  }
}
@media (max-width: 480px) {
  .pwa-install-bar { padding: 10px 10px 10px 12px; gap: 10px; }
  .pwa-install-bar__icon { width: 30px; height: 30px; }
  .pwa-install-bar__text { font-size: 0.84rem; line-height: 1.28; }
  .pwa-install-bar__cta { padding: 8px 15px; font-size: 0.82rem; min-height: 38px; }
  .pwa-install-bar__close { width: 30px; height: 30px; font-size: 1.35rem; }
}


/* =========================================================
   SplitType reveal — FOUC guard + char/word/line setup
   ========================================================= */
[data-split] .vy-split-word,
[data-split] .vy-split-char,
[data-split] .vy-split-line {
  display: inline-block;
  will-change: transform, opacity;
}
[data-split] .vy-split-line {
  display: block;
  overflow: hidden;
}
[data-split]:not(.vy-split-ready) {
  /* pre-init: prevent visible flash of unwrapped content if GSAP slow */
  opacity: 0.001;
}
[data-split].vy-split-ready {
  opacity: 1;
}
/* RTL: preserve text direction; SplitType wraps with display:inline-block —
   browsers flip naturally with dir="rtl" on container */
[dir="rtl"] [data-split] .vy-split-word { unicode-bidi: isolate; }

@media (prefers-reduced-motion: reduce) {
  [data-split] .vy-split-word,
  [data-split] .vy-split-char,
  [data-split] .vy-split-line {
    transform: none !important;
    opacity: 1 !important;
    will-change: auto;
  }
}

/* =========================================================
   Vanilla-tilt polish — subtle glare, brand-tuned shadow
   ========================================================= */
[data-tilt-card] {
  transform-style: preserve-3d;
  transition: box-shadow 320ms var(--ease-out);
}
[data-tilt-card]:hover {
  box-shadow: 0 22px 48px -16px rgba(6, 59, 82, 0.32),
              0 6px 18px rgba(6, 59, 82, 0.12);
}
/* vanilla-tilt injects .js-tilt-glare div — soften its blend */
.js-tilt-glare {
  border-radius: inherit;
  overflow: hidden;
}
.js-tilt-glare .js-tilt-glare-inner {
  mix-blend-mode: overlay;
  opacity: 0.55;
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  [data-tilt-card] { transform: none !important; }
  .js-tilt-glare { display: none !important; }
}


/* =========================================================
   Cuberto Mouse Follower — custom cursor (desktop-only)
   Hand-crafted CSS (lib ships SCSS, we use plain).
   ========================================================= */
.mf-cursor {
  position: fixed;
  top: 0; left: 0;
  display: block;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  pointer-events: none;
  z-index: 99999;
  transform: translate3d(-100%, -100%, 0);
  transition: opacity 200ms;
  opacity: 0;
  mix-blend-mode: difference;
}
.mf-cursor.-visible { opacity: 1; }
.mf-cursor.-hidden  { opacity: 0; }
.mf-cursor::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #FFD27A;
  transform: scale(0.20);
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.mf-cursor.-pointer::before { transform: scale(0.55); background: #FFD27A; }
.mf-cursor.-text::before    { transform: scale(2.6); background: rgba(255,210,122,0.85); }
.mf-cursor.-stick::before   { transform: scale(1.6); background: rgba(255,255,255,0.20); }
.mf-cursor-text {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-deep);
  opacity: 0;
  transition: opacity 260ms;
  letter-spacing: -0.01em;
}
.mf-cursor.-text .mf-cursor-text { opacity: 1; }

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .mf-cursor { display: none !important; }
}



/* =========================================================
   Antigravity surface system: VANTA hero + tightened dot fields
   ========================================================= */
.hero-wrap .vy-vanta-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  transition: opacity 600ms var(--ease-out);
}
.hero-wrap.vy-vanta-ready .vy-vanta-layer { opacity: 0.88; }
.hero-wrap.vy-vanta-ready .hero-slideshow { opacity: 0.94; }
.hero-wrap .vy-vanta-layer canvas {
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
}
.brand-moment,
.boat-intro,
.gallery-preview,
.cta-band,
.boat-hero,
.boat-page,
.faq-page,
.routes-page,
.gallery-page,
.legal-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.boat-intro,
.gallery-preview,
.boat-page,
.faq-page,
.routes-page,
.gallery-page,
.legal-page {
  background-color: var(--color-surface);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 210, 122, 0.12), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(6, 59, 82, 0.10), transparent 34%),
    radial-gradient(rgba(6, 59, 82, 0.16) 1px, transparent 1.5px),
    radial-gradient(rgba(255, 210, 122, 0.16) 0.8px, transparent 1.4px) !important;
  background-size: auto, auto, 16px 16px, 16px 16px !important;
  background-position: center, center, 0 0, 8px 8px !important;
}
.cta-band {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 210, 122, 0.16), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(6, 59, 82, 0.12), transparent 35%),
    linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 12%, var(--color-surface)) 0%, var(--color-surface) 68%) !important;
}
.brand-moment::before {
  background-image:
    radial-gradient(rgba(6, 59, 82, 0.28) 1px, transparent 1.55px),
    radial-gradient(rgba(255, 210, 122, 0.24) 0.75px, transparent 1.35px) !important;
  background-size: 15px 15px, 15px 15px !important;
  background-position: 0 0, 7.5px 7.5px !important;
  opacity: 0.92;
}
.brand-moment::after {
  background:
    radial-gradient(circle at 50% 34%, rgba(244,251,253,0.72) 0, rgba(244,251,253,0.38) 26%, transparent 54%),
    linear-gradient(180deg, rgba(244,251,253,0.28), rgba(244,251,253,0.08)) !important;
}
.boat-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 210, 122, 0.28) 1px, transparent 1.55px),
    radial-gradient(rgba(255,255,255,0.18) 0.8px, transparent 1.4px);
  background-size: 18px 18px, 18px 18px;
  background-position: 0 0, 9px 9px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 78%, transparent 100%);
}
.boat-hero::after { z-index: 1; }
.vy-particles-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.58;
  mix-blend-mode: multiply;
}
.brand-moment .vy-particles-layer { z-index: 1; opacity: 0.68; }
.boat-intro .vy-particles-layer { opacity: 0.58; }
.gallery-preview .vy-particles-layer { opacity: 0.66; }
.cta-band .vy-particles-layer { opacity: 0.74; }
.boat-hero .vy-particles-layer { z-index: 1; opacity: 0.48; mix-blend-mode: screen; }
.boat-page .vy-particles-layer,
.faq-page .vy-particles-layer,
.routes-page .vy-particles-layer,
.gallery-page .vy-particles-layer,
.legal-page .vy-particles-layer { opacity: 0.52; }
.brand-moment > .brand-moment-container,
.boat-intro > .container,
.gallery-preview > .container,
.cta-band > .container,
.boat-hero > .container,
.boat-page > .container,
.faq-page > .container,
.routes-page > .container,
.gallery-page > .container,
.legal-page > .container {
  position: relative;
  z-index: 2;
}
.boat-page .specs-grid .spec,
.faq-page .faq-item,
.routes-page .route-card,
.gallery-page .gallery-item,
.legal-page .legal-card,
.cta-band .contact-card {
  background: color-mix(in srgb, var(--color-surface) 86%, rgba(255,255,255,0.88));
  border-color: color-mix(in srgb, var(--color-primary) 16%, rgba(255,255,255,0.45));
  box-shadow: 0 18px 54px -34px rgba(6, 59, 82, 0.38);
}
@media (max-width: 720px), (pointer: coarse) {
  .boat-intro,
  .gallery-preview,
  .boat-page,
  .faq-page,
  .routes-page,
  .gallery-page,
  .legal-page {
    background-size: auto, auto, 18px 18px, 18px 18px;
    background-position: center, center, 0 0, 9px 9px;
  }
  .brand-moment::before {
    background-size: 17px 17px, 17px 17px !important;
    background-position: 0 0, 8.5px 8.5px !important;
  }
}

/* =========================================================
   Legal / privacy page
   ========================================================= */
.legal-page {
  background: var(--color-surface);
  padding-block: var(--section-py);
}
.legal-page .container {
  max-inline-size: 1060px;
  margin-inline: auto;
  padding-inline: var(--container-padding);
}
.legal-hero {
  max-inline-size: 760px;
  margin-inline: auto;
  text-align: center;
  margin-block-end: var(--space-8);
}
.legal-hero h1 {
  color: var(--color-ink);
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin-block-start: var(--space-3);
}
.legal-hero .lead {
  color: var(--color-ink-soft);
  font-size: var(--fs-lead);
  line-height: 1.7;
  margin-block-start: var(--space-4);
}
.legal-hero .updated {
  display: inline-flex;
  gap: var(--space-1);
  margin-block-start: var(--space-4);
  padding: var(--space-2) var(--space-4);
  border: 1px solid color-mix(in srgb, var(--color-primary) 14%, rgba(255,255,255,0.54));
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.66);
  color: var(--color-muted);
  font-size: var(--fs-small);
}
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  min-inline-size: 0;
}
.legal-card {
  box-sizing: border-box;
  min-inline-size: 0;
  padding: var(--space-5);
  border-radius: var(--radius-card);
}
.legal-card h2 {
  color: var(--color-ink);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
}
.legal-card p {
  color: var(--color-ink-soft);
  line-height: 1.72;
  margin: 0;
}
.legal-cta {
  box-sizing: border-box;
  min-inline-size: 0;
  margin-block-start: var(--space-8);
  padding: var(--space-7);
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 210, 122, 0.18), transparent 34%),
    color-mix(in srgb, var(--color-primary) 12%, var(--color-surface));
  border: 1px solid color-mix(in srgb, var(--color-primary) 16%, rgba(255,255,255,0.45));
  text-align: center;
}
.legal-cta h2 {
  color: var(--color-ink);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-block-start: var(--space-3);
}
.legal-cta p {
  color: var(--color-ink-soft);
  max-inline-size: 56ch;
  margin: var(--space-3) auto 0;
  line-height: 1.7;
}
.legal-cta a {
  display: inline-block;
  margin-block-start: var(--space-5);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: background-color var(--dur-medium) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.legal-cta a:hover {
  background: var(--color-deep);
  color: #fff;
  transform: translateY(-1px);
}
@media (max-width: 720px) {
  .legal-page {
    padding-block-start: max(120px, calc(env(safe-area-inset-top, 0px) + 112px));
  }
  .legal-hero {
    text-align: start;
    margin-block-end: 28px;
  }
  .legal-hero h1 {
    max-inline-size: 10.5ch;
    font-size: clamp(2rem, 9vw, 2.45rem);
    overflow-wrap: anywhere;
  }
  .legal-hero .lead {
    max-inline-size: 31ch;
  }
  .legal-grid {
    grid-template-columns: 1fr;
  }
  .legal-card {
    padding: 22px;
    border-radius: 16px;
  }
  .legal-cta {
    padding: 28px 18px;
    border-radius: 16px;
    text-align: start;
  }
  .legal-cta p {
    margin-inline: 0;
  }
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .hero-wrap .vy-vanta-layer { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .vy-particles-layer { display: none !important; }
}

/* =========================================================
   Water displacement (curtains.js) — host image fade-in
   When plane mounts, original <img> stays for fallback;
   canvas overlays it.
   ========================================================= */
[data-water-img] {
  transition: opacity 240ms;
}
[data-water-img].vy-water-ready {
  /* Once canvas takes over visually, hide HTML img to avoid double-render */
  opacity: 0;
}
#vy-curtains-stage {
  /* Container is fixed full-viewport; planes are positioned by curtains.js
     using HTML element bounds */
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  [data-water-img] { opacity: 1 !important; }
  #vy-curtains-stage { display: none !important; }
}


/* =========================================================
   Home button (icon-only in desktop nav) + visually-hidden helper
   ========================================================= */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.site-header__nav-link--home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  padding: 0 !important;
  border-radius: 999px;
  transition: background 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.site-header__nav-link--home:hover {
  background: color-mix(in srgb, var(--color-accent) 22%, transparent);
  transform: translateY(-1px);
}
.site-header__nav-link--home svg { display: block; }
.site-header__nav-link--home::after { display: none !important; }

/* =========================================================
   Guide (rehber) listing page
   ========================================================= */
.guide-page {
  padding-block: clamp(5rem, 12vh, 8rem) clamp(4rem, 10vh, 7rem);
}
.guide-page__head {
  max-width: 760px;
  margin: 0 auto var(--space-7);
  text-align: center;
  display: grid;
  gap: var(--space-3);
  justify-items: center;
}
.guide-page__title {
  font-family: var(--font-display, var(--font-latin), system-ui);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--color-ink);
  margin: 0;
  line-height: 1.05;
}
.guide-page__lede {
  color: rgba(6, 59, 82, 0.78);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 56ch;
  margin: 0;
}
.guide-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-block-end: var(--space-6);
}
.guide-filter {
  padding: 10px 18px;
  min-height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(6, 59, 82, 0.18);
  color: var(--color-deep);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 220ms, border-color 220ms, transform 180ms;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.guide-filter:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(6, 59, 82, 0.32);
  transform: translateY(-1px);
}
.guide-filter.is-active {
  background: var(--color-deep);
  border-color: var(--color-deep);
  color: #fff;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(var(--space-4), 3vw, var(--space-6));
  align-items: stretch;
}
.guide-card {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(6, 59, 82, 0.12);
  border-radius: var(--radius-card, 18px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
}
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px -16px rgba(6, 59, 82, 0.28);
}
.guide-card--featured { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .guide-card--featured { display: grid; grid-template-columns: 1.4fr 1fr; align-items: stretch; }
  .guide-card--featured .guide-card__cover { aspect-ratio: auto; height: 100%; min-height: 360px; }
}
.guide-card__link { display: contents; color: inherit; text-decoration: none; }
.guide-card__cover {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-deep), color-mix(in srgb, var(--color-deep) 70%, #000));
}
.guide-card__cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms var(--ease-out);
}
.guide-card:hover .guide-card__cover img { transform: scale(1.04); }
.guide-card__cover--placeholder {
  background-image:
    radial-gradient(circle at 30% 25%, rgba(255, 210, 122, 0.25), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(14, 111, 135, 0.30), transparent 55%),
    linear-gradient(135deg, var(--color-deep), color-mix(in srgb, var(--color-deep) 60%, #000));
  display: grid;
  place-items: center;
}
.guide-card__placeholder-tag {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.92);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.guide-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: var(--color-accent);
  color: var(--color-deep);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.25);
}
.guide-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: var(--space-4) var(--space-4) var(--space-2);
  font-size: 0.78rem;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}
.guide-card__category {
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-deep);
  letter-spacing: 0.1em;
  font-size: 0.72rem;
}
.guide-card__dot { opacity: 0.5; }
.guide-card__title {
  padding: 0 var(--space-4);
  margin: 0 0 var(--space-2);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--color-ink);
  line-height: 1.28;
}
.guide-card--featured .guide-card__title {
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
}
.guide-card__excerpt {
  padding: 0 var(--space-4) var(--space-5);
  color: rgba(6, 59, 82, 0.74);
  font-size: 0.93rem;
  line-height: 1.55;
  margin: 0;
}
.guide-page__cta {
  margin-block-start: var(--space-8);
  padding: clamp(var(--space-5), 4vw, var(--space-6));
  border-radius: var(--radius-card, 18px);
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-accent) 18%, var(--color-surface)) 0%, var(--color-surface) 75%);
  border: 1px solid rgba(255, 210, 122, 0.34);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.guide-page__cta-text {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 600;
  color: var(--color-ink);
}
@media (max-width: 720px) {
  .guide-page__cta { flex-direction: column; text-align: center; }
}

/* =========================================================
   Article inner page
   ========================================================= */
.article-page { background: var(--color-surface); }
.article-page__hero {
  position: relative;
  min-height: clamp(420px, 60vh, 620px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-block-end: clamp(2rem, 6vh, 4rem);
}
.article-page__hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.article-page__hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.article-page__hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(6, 30, 45, 0.18) 0%,
    rgba(6, 30, 45, 0.45) 60%,
    rgba(6, 30, 45, 0.82) 100%);
  pointer-events: none;
}
.article-page__hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  display: grid;
  gap: var(--space-3);
}
.article-page__breadcrumb {
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.article-page__breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms;
}
.article-page__breadcrumb a:hover { color: var(--color-accent); }
.article-page__category {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0;
}
.article-page__title {
  font-family: var(--font-display, var(--font-latin), system-ui);
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0;
  max-width: 22ch;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}
.article-page__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.85);
}
.article-page__meta .article-page__dot { opacity: 0.55; }
.article-page__body {
  padding-block: clamp(3rem, 8vh, 5rem);
}
.article-page__container { max-width: 760px; margin: 0 auto; padding-inline: var(--container-padding); }
.article-page__lede {
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
  line-height: 1.55;
  color: var(--color-ink);
  margin: 0 0 var(--space-6);
}
.article-page__body h2 {
  font-family: var(--font-display, var(--font-latin), system-ui);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--color-ink);
  margin: var(--space-7) 0 var(--space-3);
  line-height: 1.18;
}
.article-page__body h3 {
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--color-ink);
  margin: var(--space-5) 0 var(--space-2);
}
.article-page__body p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(6, 59, 82, 0.84);
  margin: 0 0 var(--space-3);
}
.article-page__body a {
  color: var(--color-deep);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color 180ms;
}
.article-page__body a:hover { color: var(--color-accent); }
.article-page__cta {
  margin: var(--space-7) 0;
  padding: var(--space-5);
  background: linear-gradient(135deg, var(--color-deep), color-mix(in srgb, var(--color-deep) 70%, #000));
  color: #fff;
  border-radius: var(--radius-card, 18px);
  text-align: center;
}
.article-page__cta h3 { color: #fff; margin: 0 0 var(--space-2); font-size: 1.4rem; }
.article-page__cta p { color: rgba(255, 255, 255, 0.85); margin: 0 0 var(--space-4); }
.article-page__cta-buttons {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3);
}
.article-page__related {
  margin-block-start: var(--space-7);
  padding-block-start: var(--space-5);
  border-block-start: 1px solid rgba(6, 59, 82, 0.12);
}
.article-page__related h3 {
  font-size: 1.1rem;
  color: var(--color-ink);
  margin: 0 0 var(--space-3);
}
.article-page__related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-2);
}
.article-page__related a {
  color: var(--color-deep);
  text-decoration: none;
  font-weight: 600;
  transition: color 180ms;
}
.article-page__related a:hover { color: var(--color-accent); }

/* RTL adjustments */
[dir="rtl"] .article-page__breadcrumb { flex-direction: row-reverse; }
[dir="rtl"] .guide-card__badge { left: auto; right: var(--space-3); }






/* === ANTIGRAVITY NAV v4 — dividers, baseline-locked, SF-style === */
/* SF Pro Display first — Apple devices get native, everyone else Geist */
:root {
  --font-pill: -apple-system, BlinkMacSystemFont, "SF Pro Display",
               "SF Pro Text", "Geist", "Inter", "Segoe UI",
               system-ui, sans-serif;
}

/* Outer header: just positioning, no visual */
.site-header {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding-block: 18px;
  text-align: center;
  transition: padding-block 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.site-header > * { text-align: initial; }
.site-header.is-scrolled { padding-block: 12px; }

/* Pill — always-on, compact, perfectly center-aligned */
.site-header__inner {
  max-inline-size: min(1080px, calc(100% - 32px));
  width: max-content;
  margin-inline: auto;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 22px);
  height: 56px;          /* fixed height = perfect baseline lock */

  background: rgba(10, 28, 44, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow:
    0 22px 60px rgba(5, 14, 24, 0.30),
    0 4px 14px rgba(5, 14, 24, 0.16);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);

  transition:
    background-color 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    height 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    padding 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Scrolled: tighter */
.site-header.is-scrolled .site-header__inner,
.site-header.is-menu-open .site-header__inner {
  background: rgba(10, 28, 44, 0.62);
  box-shadow:
    0 16px 48px rgba(5, 14, 24, 0.40),
    0 3px 10px rgba(5, 14, 24, 0.18);
  height: 50px;
  padding: 0 14px;
}

/* ===== BRAND ===== */
.site-header__brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 32px;
  flex-shrink: 0;
  text-decoration: none;
}
.site-header__brand-img {
  display: block;
  height: 28px;
  width: auto;
  transition: opacity 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (max-width: 480px) { .site-header__brand-img { height: 24px; } }
.site-header__brand-img--light { opacity: 1 !important; }
.site-header__brand-img--dark  { opacity: 0 !important;
  position: absolute; top: 50%; inset-inline-start: 0; transform: translateY(-50%);
}

/* ===== DIVIDER after brand ===== */
.site-header__brand + .site-header__nav,
.site-header__brand + .site-header__nav-link--home {
  padding-inline-start: clamp(14px, 2vw, 20px);
  margin-inline-start: clamp(2px, 0.8vw, 8px);
  border-inline-start: 1px solid rgba(255, 255, 255, 0.18);
}

/* ===== NAV LINKS — SF-style, baseline-locked ===== */
.site-header__nav {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 22px);
  height: 100%;
  padding-block: 0;
  margin-block: 0;
}
.site-header__nav-link {
  display: inline-flex;
  align-items: center;
  height: 32px;                   /* fixed = same baseline across languages */
  line-height: 1;
  padding: 0;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-pill);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.022em;       /* tight, SF-style */
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  transition: color 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.site-header__nav-link::after {
  content: "";
  position: absolute;
  inset-block-end: -3px;
  inset-inline-start: 0;
  width: 100%;
  height: 1.5px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.site-header__nav-link:hover,
.site-header__nav-link:focus-visible { color: #fff; }
.site-header__nav-link:hover::after,
.site-header__nav-link:focus-visible::after { transform: scaleX(1); }
.site-header__nav-link[aria-current="page"] { color: var(--color-accent); }
.site-header__nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* Home button — icon-only, perfect square */
.site-header__nav-link--home {
  width: 32px;
  height: 32px;
  padding: 0 !important;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.88);
  transition: background 220ms, color 220ms, transform 220ms;
}
.site-header__nav-link--home:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-1px);
}
.site-header__nav-link--home::after { display: none !important; }

/* ===== LANG FLAGS — baseline-locked, divider on left ===== */
.site-header__langs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding-inline-start: clamp(10px, 1.6vw, 16px);
  margin-inline-start: clamp(2px, 0.5vw, 6px);
  border-inline-start: 1px solid rgba(255, 255, 255, 0.18);
}
.site-header__lang-btn {
  width: 26px;
  height: 26px;
  padding: 0;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 200ms ease,
              box-shadow 220ms ease;
}
.site-header__lang-btn .flag {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.site-header__lang-btn:hover {
  transform: translateY(-1px) scale(1.10);
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.34);
}
.site-header__lang-btn.is-active,
.site-header__lang-btn.active {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(255, 210, 122, 0.42);
}

/* ===== HAMBURGER ===== */
.site-header__menu-toggle {
  display: none;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
}
.site-header__menu-toggle:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}
.site-header__menu-toggle svg { width: 16px; height: 16px; }

/* ===== RTL adjustments ===== */
[dir="rtl"] .site-header__brand + .site-header__nav,
[dir="rtl"] .site-header__brand + .site-header__nav-link--home,
[dir="rtl"] .site-header__langs {
  /* logical properties already flip; nothing extra needed */
}

/* ===== MOBILE ===== */
@media (max-width: 980px) {
  .site-header__nav,
  .site-header__langs { display: none; }
  .site-header__menu-toggle { display: inline-flex; }
  .site-header__brand + .site-header__menu-toggle {
    padding-inline-start: 0;
    border-inline-start: none;
  }
  .site-header__inner {
    height: 52px;
    padding: 0 12px;
    gap: 14px;
  }
}
@media (max-width: 480px) {
  .site-header { padding-block: 12px; }
  .site-header__inner {
    max-inline-size: calc(100% - 20px);
    height: 48px;
    padding: 0 10px;
  }
}

/* Sub-page: same pill (already always-on, just keep logo light) */
.site-header.is-subpage .site-header__brand-img--light { opacity: 1 !important; }
.site-header.is-subpage .site-header__brand-img--dark  { opacity: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header__inner,
  .site-header__nav-link::after,
  .site-header__lang-btn { transition: none !important; }
}
/* === ANTIGRAVITY NAV v4 END === */


/* === ANTIGRAVITY NAV v5 — MASTER CONTRAST FIX === */
/* Pill is ALWAYS deep navy glass → text must ALWAYS be white.
   Override every legacy .is-scrolled / .is-subpage rule that forced
   ink-dark color on the now-dark pill background. */

/* Bare nav link — always soft white */
.site-header .site-header__nav-link,
.site-header.is-scrolled .site-header__nav-link,
.site-header.is-subpage .site-header__nav-link,
.site-header.is-menu-open .site-header__nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
}
.site-header .site-header__nav-link:hover,
.site-header.is-scrolled .site-header__nav-link:hover,
.site-header.is-subpage .site-header__nav-link:hover,
.site-header.is-menu-open .site-header__nav-link:hover,
.site-header .site-header__nav-link:focus-visible,
.site-header.is-scrolled .site-header__nav-link:focus-visible,
.site-header.is-subpage .site-header__nav-link:focus-visible {
  color: #fff !important;
}
/* Active page — gold (works on dark pill) */
.site-header .site-header__nav-link[aria-current="page"],
.site-header.is-scrolled .site-header__nav-link[aria-current="page"],
.site-header.is-subpage .site-header__nav-link[aria-current="page"] {
  color: var(--color-accent) !important;
}

/* Home icon button — always white (override .is-scrolled which made it dark) */
.site-header .site-header__nav-link--home,
.site-header.is-scrolled .site-header__nav-link--home,
.site-header.is-subpage .site-header__nav-link--home {
  color: rgba(255, 255, 255, 0.92) !important;
  background: transparent;
}
.site-header .site-header__nav-link--home:hover,
.site-header.is-scrolled .site-header__nav-link--home:hover,
.site-header.is-subpage .site-header__nav-link--home:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
}

/* Lang buttons — always white-on-dark (override old is-scrolled dark rule) */
.site-header .site-header__lang-btn,
.site-header.is-scrolled .site-header__lang-btn,
.site-header.is-subpage .site-header__lang-btn,
.site-header.is-menu-open .site-header__lang-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: none;
}
.site-header .site-header__lang-btn:hover,
.site-header.is-scrolled .site-header__lang-btn:hover,
.site-header.is-subpage .site-header__lang-btn:hover {
  border-color: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.34) !important;
}
.site-header .site-header__lang-btn.is-active,
.site-header.is-scrolled .site-header__lang-btn.is-active,
.site-header.is-subpage .site-header__lang-btn.is-active {
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 2px rgba(255, 210, 122, 0.42) !important;
}

/* Hamburger — white always */
.site-header .site-header__menu-toggle,
.site-header.is-scrolled .site-header__menu-toggle,
.site-header.is-subpage .site-header__menu-toggle {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  background: transparent;
}

/* Logo always LIGHT variant (since pill is always dark navy now) */
.site-header .site-header__brand-img--light,
.site-header.is-scrolled .site-header__brand-img--light,
.site-header.is-subpage .site-header__brand-img--light { opacity: 1 !important; }
.site-header .site-header__brand-img--dark,
.site-header.is-scrolled .site-header__brand-img--dark,
.site-header.is-subpage .site-header__brand-img--dark { opacity: 0 !important; }

/* ===============================================================
   2. HAIRLINE DIVIDER AFTER HOME BUTTON
   Visual military separation: [Logo] | [🏠] | [Tekne ... SSS] | [Flags]
   =============================================================== */
.site-header__nav-link--home {
  position: relative;
  margin-inline-end: clamp(10px, 1.4vw, 16px) !important;
}
.site-header__nav-link--home::before {
  content: "";
  position: absolute;
  inset-inline-end: calc(-1 * clamp(10px, 1.4vw, 16px) / 2);
  inset-block: 8px;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

/* === ANTIGRAVITY NAV v5 END === */


/* === ANTIGRAVITY NAV v6 — SYMMETRY === */
/* Kill parent gap, control every spacing manually.
   Each divider gets the SAME padding on both sides. */

.site-header__inner {
  gap: 0 !important;
}

/* === Brand zone — has right padding for divider gap === */
.site-header__brand {
  padding-inline-end: clamp(18px, 2.2vw, 24px);
}

/* === Nav zone — has matching left padding + the divider === */
.site-header__brand + .site-header__nav,
.site-header__brand + .site-header__nav-link--home {
  padding-inline-start: clamp(18px, 2.2vw, 24px) !important;
  margin-inline-start: 0 !important;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.20) !important;
}

/* Nav has internal gap between its children */
.site-header__nav {
  gap: clamp(16px, 1.8vw, 22px) !important;
  padding-inline-end: clamp(14px, 1.8vw, 20px);   /* breathing before langs divider */
}

/* === Home button — clean margin-end, NO ::before divider (nav gap is enough) === */
.site-header__nav-link--home {
  margin-inline-end: clamp(4px, 0.6vw, 8px) !important;
  position: relative;
}
.site-header__nav-link--home::before {
  /* Restore a tiny vertical divider AFTER the home button,
     centered in the gap between home and Tekne */
  content: "" !important;
  position: absolute !important;
  inset-inline-end: calc(-1 * clamp(16px, 1.8vw, 22px) / 2 - clamp(4px, 0.6vw, 8px) / 2) !important;
  inset-block: 9px !important;
  width: 1px !important;
  height: auto !important;
  background: rgba(255, 255, 255, 0.18) !important;
  pointer-events: none !important;
}

/* === Langs zone — symmetric padding around its divider === */
.site-header__nav + .site-header__langs {
  padding-inline-start: clamp(14px, 1.8vw, 20px) !important;
  margin-inline-start: 0 !important;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.20) !important;
}

/* Hamburger — small left padding, no divider (mobile only) */
.site-header__menu-toggle {
  margin-inline-start: clamp(8px, 1vw, 12px) !important;
}

/* === Mobile cleanup === */
@media (max-width: 980px) {
  .site-header__brand { padding-inline-end: 0 !important; }
  .site-header__menu-toggle { margin-inline-start: auto !important; }
}

/* === ANTIGRAVITY NAV v6 END === */


/* === ARTICLE TYPOGRAPHY — premium reading === */
/* Wider rhythm + premium reading typography for /rehber/* articles */
.article-page__lede {
  font-size: clamp(1.15rem, 1.85vw, 1.32rem) !important;
  line-height: 1.55;
  color: var(--color-ink);
  font-weight: 500;
  letter-spacing: -0.012em;
  border-inline-start: 3px solid var(--color-accent);
  padding-inline-start: var(--space-4);
  margin-block: var(--space-5) var(--space-6);
}
.article-page__lede strong { color: var(--color-deep); font-weight: 700; }

.article-page__answer-box {
  margin: var(--space-6) 0;
  padding: var(--space-5);
  border-radius: 14px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--color-accent) 14%, var(--color-surface)) 0%,
    var(--color-surface) 70%);
  border: 1px solid rgba(255, 210, 122, 0.36);
  box-shadow: 0 12px 32px -16px rgba(6, 59, 82, 0.16);
}
.article-page__answer-box p { margin: 0; line-height: 1.65; color: var(--color-ink); }
.article-page__answer-box strong { color: var(--color-deep); font-weight: 700; }

.article-page__body h2 {
  margin-block: var(--space-8) var(--space-3) !important;
  scroll-margin-top: 100px;
}
.article-page__body h2::before {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  margin-block-end: var(--space-3);
  border-radius: 999px;
}
.article-page__body h3 {
  margin-block: var(--space-5) var(--space-2) !important;
  color: var(--color-deep);
}
.article-page__body p {
  font-size: clamp(1.02rem, 1.4vw, 1.08rem);
  line-height: 1.78;
  letter-spacing: -0.003em;
}
.article-page__body ul { margin: var(--space-3) 0 var(--space-5); padding-inline-start: var(--space-5); }
.article-page__body ul li {
  margin-block: var(--space-2);
  line-height: 1.7;
  color: rgba(6, 59, 82, 0.84);
}
.article-page__body ul li strong { color: var(--color-deep); }

/* Inline image figure — premium */
.article-page__inline-image {
  margin: var(--space-7) calc(-1 * clamp(0px, 4vw, 60px));
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(6, 59, 82, 0.28);
}
.article-page__inline-image img {
  width: 100%; height: auto;
  display: block;
}
.article-page__inline-image figcaption {
  padding: var(--space-3) var(--space-4);
  font-size: 0.92rem;
  color: var(--color-muted);
  font-style: italic;
  text-align: center;
  background: color-mix(in srgb, var(--color-surface) 90%, var(--color-deep));
  border-top: 1px solid rgba(6, 59, 82, 0.08);
}
@media (max-width: 720px) {
  .article-page__inline-image {
    margin-inline: 0;
    border-radius: 12px;
  }
}

/* Table — premium comparison */
.article-page__table-wrap {
  overflow-x: auto;
  margin: var(--space-6) calc(-1 * clamp(0px, 3vw, 40px));
  padding: 2px;
}
.article-page__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.96rem;
  background: var(--color-surface);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 36px -18px rgba(6, 59, 82, 0.20);
}
.article-page__table thead th {
  background: linear-gradient(135deg, var(--color-deep), color-mix(in srgb, var(--color-deep) 70%, #000));
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  padding: 14px 12px;
  text-align: left;
  white-space: nowrap;
}
.article-page__table tbody td {
  padding: 14px 12px;
  border-block-start: 1px solid rgba(6, 59, 82, 0.10);
  color: var(--color-ink);
  vertical-align: top;
}
.article-page__table tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--color-accent) 5%, var(--color-surface));
}
.article-page__table tbody td:first-child { font-weight: 700; color: var(--color-deep); }

/* Timeline list (örnek akış) */
.article-page__timeline {
  list-style: none !important;
  padding-inline-start: 0 !important;
  border-inline-start: 2px solid var(--color-accent);
  padding-inline-start: var(--space-5) !important;
  margin-block: var(--space-5);
}
.article-page__timeline li {
  position: relative;
  padding: var(--space-3) 0;
  margin: 0 !important;
}
.article-page__timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: calc(-1 * var(--space-5) - 7px);
  top: 22px;
  width: 12px; height: 12px;
  background: var(--color-accent);
  border: 2px solid var(--color-surface);
  border-radius: 999px;
  box-shadow: 0 0 0 2px var(--color-accent);
}
.article-page__timeline li strong {
  display: inline-block;
  min-width: 70px;
  color: var(--color-deep);
  font-family: var(--font-pill, var(--font-latin), system-ui);
  font-feature-settings: "tnum";
}

/* Article CTA polish */
.article-page__cta {
  background: linear-gradient(135deg, var(--color-deep) 0%, color-mix(in srgb, var(--color-deep) 60%, #000) 100%) !important;
  position: relative;
  overflow: hidden;
}
.article-page__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 210, 122, 0.18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(14, 111, 135, 0.20), transparent 50%);
  pointer-events: none;
}
.article-page__cta > * { position: relative; z-index: 1; }

/* Print friendly */
@media print {
  .site-header, .article-page__cta, .article-page__related, .floating-contact { display: none !important; }
}


/* === ARTICLE FAQ accordion === */
.article-page__faq { margin-block: var(--space-7); }
.article-page__faq-item {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(6, 59, 82, 0.10);
  border-radius: 12px;
  margin-block: var(--space-3);
  padding: var(--space-4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 220ms;
}
.article-page__faq-item[open] {
  box-shadow: 0 8px 24px -12px rgba(6, 59, 82, 0.20);
}
.article-page__faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-deep);
  list-style: none;
  position: relative;
  padding-inline-end: 28px;
}
.article-page__faq-item summary::-webkit-details-marker { display: none; }
.article-page__faq-item summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--color-accent);
  font-weight: 400;
  transition: transform 200ms;
}
.article-page__faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.article-page__faq-item p {
  margin-block-start: var(--space-3);
  padding-block-start: var(--space-3);
  border-block-start: 1px solid rgba(6, 59, 82, 0.10);
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(6, 59, 82, 0.84);
}

/* === ANTIGRAVITY NAV v7 — MASTER CONTRAST FINAL === */
/* Final lock for real-world hero/subpage/scroll/language states: the pill is
   always dark navy glass, so all readable controls stay white or gold. */
.site-header,
.site-header.is-scrolled,
.site-header.is-subpage,
.site-header.is-menu-open {
  color: #fff !important;
}
.site-header .site-header__inner,
.site-header.is-scrolled .site-header__inner,
.site-header.is-subpage .site-header__inner,
.site-header.is-menu-open .site-header__inner {
  background: rgba(10, 28, 44, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 18px 54px rgba(5, 14, 24, 0.42), 0 4px 14px rgba(5, 14, 24, 0.20) !important;
}
.site-header .site-header__nav-link,
.site-header.is-scrolled .site-header__nav-link,
.site-header.is-subpage .site-header__nav-link,
.site-header.is-menu-open .site-header__nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
}
.site-header .site-header__nav-link:hover,
.site-header .site-header__nav-link:focus-visible,
.site-header.is-scrolled .site-header__nav-link:hover,
.site-header.is-scrolled .site-header__nav-link:focus-visible,
.site-header.is-subpage .site-header__nav-link:hover,
.site-header.is-subpage .site-header__nav-link:focus-visible {
  color: #fff !important;
}
.site-header .site-header__nav-link[aria-current="page"],
.site-header.is-scrolled .site-header__nav-link[aria-current="page"],
.site-header.is-subpage .site-header__nav-link[aria-current="page"] {
  color: var(--color-accent) !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
}
.site-header__brand + .site-header__nav,
.site-header__nav + .site-header__langs {
  border-color: rgba(255, 255, 255, 0.24) !important;
}
.site-header__nav-link--home::before {
  border-color: rgba(255, 255, 255, 0.24) !important;
  background-color: rgba(255, 255, 255, 0.24) !important;
}
.site-header .site-header__brand-img--light,
.site-header.is-scrolled .site-header__brand-img--light,
.site-header.is-subpage .site-header__brand-img--light { opacity: 1 !important; }
.site-header .site-header__brand-img--dark,
.site-header.is-scrolled .site-header__brand-img--dark,
.site-header.is-subpage .site-header__brand-img--dark { opacity: 0 !important; }
.site-header .site-header__lang-btn,
.site-header.is-scrolled .site-header__lang-btn,
.site-header.is-subpage .site-header__lang-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.30) !important;
}
.site-header .site-header__lang-btn.is-active,
.site-header.is-scrolled .site-header__lang-btn.is-active,
.site-header.is-subpage .site-header__lang-btn.is-active {
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 2px rgba(255, 210, 122, 0.48) !important;
}
/* === ANTIGRAVITY NAV v7 END === */

/* === CODEX V2 ARTICLE MOBILE FINAL === */
.article-page__table-wrap {
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.article-page__table { min-width: 640px; }
[dir="rtl"] .article-page__table thead th,
[dir="rtl"] .article-page__table tbody td { text-align: right; }
@media (max-width: 720px) {
  .article-page__hero {
    min-height: clamp(360px, 58vh, 520px);
    padding-block-end: clamp(1.6rem, 6vh, 2.6rem);
  }
  .article-page__hero-media img { object-position: center center; }
  .article-page__title {
    max-width: 100%;
    font-size: clamp(1.72rem, 8vw, 2.55rem);
    line-height: 1.08;
  }
  .article-page__meta { gap: 6px; font-size: 0.82rem; }
  .article-page__body { padding-block: 2.3rem 3.4rem; }
  .article-page__lede {
    font-size: 1.06rem !important;
    padding-inline-start: var(--space-3);
    margin-block: var(--space-4) var(--space-5);
  }
  .article-page__body h2 { margin-block-start: var(--space-6) !important; }
  .article-page__body p { font-size: 1rem; line-height: 1.72; }
  .article-page__table-wrap {
    margin-inline: calc(-1 * var(--container-padding));
    padding-inline: var(--container-padding);
  }
  .article-page__timeline {
    padding-inline-start: var(--space-4) !important;
    border-inline-start-width: 2px;
  }
  .article-page__timeline li { padding-block: var(--space-2); }
  .article-page__timeline li::before {
    inset-inline-start: calc(-1 * var(--space-4) - 6px);
    top: 18px;
    width: 10px;
    height: 10px;
  }
  .article-page__timeline li strong {
    display: block;
    min-width: 0;
    margin-block-end: 2px;
  }
  .article-page__faq-item { padding: 0; overflow: hidden; }
  .article-page__faq-item summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 13px 44px 13px 16px;
  }
  [dir="rtl"] .article-page__faq-item summary { padding: 13px 16px 13px 44px; }
  .article-page__faq-item p { padding-inline: 16px; padding-block-end: 16px; }
  .article-page__cta { padding: var(--space-4); border-radius: 14px; }
  .article-page__cta-buttons { flex-direction: column; align-items: stretch; }
  .article-page__cta-buttons .btn { width: 100%; justify-content: center; min-height: 46px; }
  .guide-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-block-end: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .guide-filter { flex: 0 0 auto; min-height: 44px; }
  .guide-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 360px) {
  .article-page__title { font-size: 1.58rem; }
  .article-page__breadcrumb { font-size: 0.78rem; }
}
/* === CODEX V2 ARTICLE MOBILE FINAL END === */

/* === CODEX MOBILE INNER PAGE TITLES — white contrast fix === */
/* Mobile inner pages sit on dark/glass hero surfaces; lock only the top titles
   to white so they remain readable without changing desktop hierarchy. */
@media (max-width: 720px), (pointer: coarse) {
  .boat-hero h1,
  .routes-page .intro h1,
  .faq-page .intro h1,
  .gallery-page .intro h1,
  .legal-page .legal-hero h1,
  .guide-page__title,
  .article-page__title {
    color: #fff !important;
    text-shadow: 0 2px 18px rgba(5, 14, 24, 0.42);
  }
}
/* === CODEX MOBILE INNER PAGE TITLES END === */

/* === CODEX ARTICLE CTA CONTRAST FIX === */
/* Article body h3 color rules are intentionally strong, but CTA cards are dark;
   keep CTA headings/readable copy white on mobile and desktop. */
.article-page__cta h3,
.article-page__body .article-page__cta h3 {
  color: #fff !important;
  text-shadow: 0 1px 10px rgba(5, 14, 24, 0.34);
}
.article-page__cta p,
.article-page__body .article-page__cta p {
  color: rgba(255, 255, 255, 0.88) !important;
}
/* === CODEX ARTICLE CTA CONTRAST FIX END === */


/* === CODEX V3 PAGE HERO + MOBILE UX FIXES === */
.page-hero {
  padding-block: clamp(82px, 13vh, 138px) clamp(58px, 9vh, 94px);
  background: var(--color-surface);
  color: var(--color-deep);
  position: relative;
  overflow: clip;
  margin: 0;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(6, 59, 82, 0.065) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 10% -28% 10%;
  height: 46%;
  background: radial-gradient(ellipse at center, rgba(255, 210, 122, 0.18), transparent 62%);
  pointer-events: none;
}
.page-hero .container {
  max-inline-size: 790px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
  text-align: center;
  position: relative;
  z-index: 1;
}
.page-hero__eyebrow {
  display: inline-block;
  color: var(--color-accent);
  font-size: 0.82rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-block-end: 18px;
}
.page-hero__title,
.page-hero h1.page-hero__title {
  color: var(--color-deep) !important;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-shadow: none !important;
  margin: 0;
}
.page-hero__lead {
  max-inline-size: 52ch;
  margin: 22px auto 0;
  color: var(--color-ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.58;
}
.page-hero__brand {
  display: flex;
  justify-content: center;
  margin-block-start: 32px;
  opacity: 0.64;
}
.page-hero__brand img { width: 62px; height: 62px; object-fit: contain; }
.routes-page, .gallery-page, .faq-page, .guide-page, .legal-page { padding-block-start: var(--section-py) !important; }
body.has-pwa-install-bar .floating-contact { inset-block-end: calc(104px + env(safe-area-inset-bottom, 0px)) !important; }
/* While the install bar is up, calm the toggle so its pulse ring never bleeds into the bar */
body.has-pwa-install-bar .floating-contact .fc-toggle { animation: none !important; }
body.has-pwa-install-bar .floating-contact .fc-toggle::before,
body.has-pwa-install-bar .floating-contact .fc-toggle::after { animation: none !important; opacity: 0 !important; }
.pwa-install-bar { z-index: 8990; }
.pwa-install-bar__close { display: inline-grid; place-items: center; }
@media (max-width: 720px) {
  html, body { overflow-x: clip; }
  .page-hero { padding-block: calc(88px + env(safe-area-inset-top, 0px)) 48px; }
  .page-hero .container { text-align: center; }
  .page-hero__title, .page-hero h1.page-hero__title { font-size: clamp(1.72rem, 7.2vw, 2.42rem); line-height: 1.16; }
  .page-hero__lead { font-size: 1rem; margin-block-start: 16px; }
  .page-hero__brand { margin-block-start: 24px; }
  body.has-pwa-install-bar .floating-contact { inset-block-end: calc(98px + env(safe-area-inset-bottom, 0px)) !important; }
  .pwa-install-bar { inset-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px)); max-width: none; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) { .pwa-install-bar, .floating-contact { transition: none !important; } }
/* === CODEX V3 PAGE HERO + MOBILE UX FIXES END === */

/* === CODEX V4 PERFORMANCE PATH START === */
.section,
.brand-moment,
.boat-intro,
.gallery-preview,
.social-proof,
.team-section,
.boat-page,
.faq-page,
.routes-page,
.gallery-page,
.guide-page,
.legal-page,
.review-card,
.route-card,
.service-card,
.gallery-item,
.photo-link,
.page-hero {
  contain: layout style paint;
}

.hero-wrap {
  contain: layout style;
}

.site-header,
.site-drawer,
.floating-contact,
.pwa-install-bar {
  contain: layout style;
}

@media (prefers-reduced-transparency) {
  .glass,
  .site-header,
  .site-drawer__panel,
  .floating-contact .fc-menu,
  .floating-contact .fc-notice,
  .pwa-install-bar,
  .review-card,
  .route-card,
  .service-card {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

@media (max-width: 720px) {
  .floating-contact .fc-menu,
  .floating-contact .fc-notice,
  .pwa-install-bar {
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
  }
}
/* === CODEX V4 PERFORMANCE PATH END === */

/* === Clash Display — charismatic display headings (2026-05-29) === */
h1, h2,
.hero-title, .eyebrow, .hero-eyebrow,
.title, .page-hero__title, .page-hero__eyebrow {
  font-family: var(--font-display);
}
/* RTL: Clash has no Arabic glyphs — keep the Arabic display font for ar/fa headings */
html[lang="ar"] :is(h1, h2, .hero-title, .eyebrow, .hero-eyebrow, .title, .page-hero__title, .page-hero__eyebrow),
html[lang="fa"] :is(h1, h2, .hero-title, .eyebrow, .hero-eyebrow, .title, .page-hero__title, .page-hero__eyebrow) {
  font-family: var(--font-arabic);
}

/* === Inline brand wordmark — replaces the word "Valden" inside headings (2026-05-29) === */
.brand-wordmark-inline {
  display: inline-block;
  height: 0.82em;
  width: auto;
  vertical-align: -0.16em;
  margin-inline: 0.06em;
  /* keep crisp on all DPRs */
  image-rendering: -webkit-optimize-contrast;
}
/* Eyebrows are small + uppercase: give the wordmark a touch more presence */
.eyebrow .brand-wordmark-inline,
.jr-eyebrow .brand-wordmark-inline,
.hero-eyebrow .brand-wordmark-inline,
.page-hero__eyebrow .brand-wordmark-inline {
  height: 1.05em;
  vertical-align: -0.22em;
}
/* RTL: the Latin wordmark stays LTR so letterforms read correctly */
html[dir="rtl"] .brand-wordmark-inline {
  direction: ltr;
}
@media (prefers-reduced-motion: no-preference) {
  .brand-wordmark-inline { transition: filter .3s ease; }
}
