/* file: public/assets/css/hero-menu.css */
/* Thin display (Inter loaded in base layout). Safe before next `npm run build:css`. */

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

.font-hero {
  font-family: Inter, system-ui, sans-serif;
}

/* --------------------------------------------------------------------------
 * Custom cursor — round ring (fine pointer only; JS adds .custom-cursor--on).
 * -------------------------------------------------------------------------- */
#custom-cursor {
  z-index: 10001;
}

.custom-cursor {
  width: 28px;
  height: 28px;
  opacity: 0;
  visibility: hidden;
}

.custom-cursor.custom-cursor--on {
  opacity: 1;
  visibility: visible;
}

.custom-cursor__ring,
.custom-cursor__dot,
.custom-cursor__xp {
  display: none !important;
}

.custom-cursor__circle {
  position: absolute;
  inset: 0;
  display: block;
  box-sizing: border-box;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 4px 22px rgba(0, 0, 0, 0.35),
    inset 0 0 14px rgba(255, 255, 255, 0.06);
  transition:
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.2s ease,
    background 0.2s ease;
  will-change: transform;
}

.custom-cursor.is-hover .custom-cursor__circle {
  transform: scale(1.2);
  border-color: rgba(125, 211, 252, 0.95);
  background: rgba(56, 189, 248, 0.1);
}

.custom-cursor__label {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  text-shadow:
    0 0 8px rgba(0, 0, 0, 0.85),
    0 1px 2px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
}

.custom-cursor.is-label .custom-cursor__label {
  opacity: 1;
}

html.xp-cursor-active *,
html.xp-cursor-active *::before,
html.xp-cursor-active *::after {
  cursor: none !important;
}

html.xp-cursor-active input[type='text'],
html.xp-cursor-active input[type='email'],
html.xp-cursor-active input[type='search'],
html.xp-cursor-active input[type='url'],
html.xp-cursor-active input[type='tel'],
html.xp-cursor-active input[type='password'],
html.xp-cursor-active input[type='number'],
html.xp-cursor-active textarea,
html.xp-cursor-active [contenteditable='true'] {
  cursor: text !important;
}

html.xp-cursor-active [data-home-touch-root] {
  cursor: none !important;
}

@media (pointer: coarse) {
  html.xp-cursor-active [data-home-touch-root] {
    cursor: auto !important;
  }
}

/* Home entry diamond (Three.js canvas, grain altında, touch-glow üstünde) */
.home-diamond-wrap {
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.home-diamond-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* prefers-reduced-motion veya WebGL yüklenemedi: koyu statik hero odak */
.home-diamond-wrap--static-fallback .home-diamond-canvas {
  opacity: 0;
  visibility: hidden;
}

.home-diamond-wrap--static-fallback::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 38% 52% at 50% 46%, rgba(72, 92, 118, 0.14) 0%, transparent 62%),
    radial-gradient(ellipse 55% 40% at 50% 52%, rgba(20, 28, 42, 0.35) 0%, transparent 70%);
  opacity: 0.95;
}

/* Intro bitince canvas gizlenir; leaving aşamasında parçalanma WebGL’de görünsün */
body.home-intro-done [data-home-diamond-wrap] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/*
 * Header is a direct child of <body> (before #site-root) so fixed chrome is never
 * trapped under main/hero stacking. Explicit z-index ladder vs overlays:
 * grain 40, transition 90, cursor 100, header 108, preloader 120, discover overlay 130.
 */
#site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 108;
  box-sizing: border-box;
}

/* Dil anahtarı + Keşfet: default gap (home overrides below for tight pair). */
#site-header .home-header-actions {
  gap: 1.25rem;
}

@media (min-width: 768px) {
  #site-header .home-header-actions {
    gap: 2rem;
  }
}

/* Home: EN|TR pill sits just left of Keşfet (same flex row, small gap — no translate nudge). */
body[data-page='home'] #site-header .home-header-actions {
  gap: 0.5rem;
}

@media (min-width: 640px) {
  body[data-page='home'] #site-header .home-header-actions {
    gap: 0.65rem;
  }
}

@media (min-width: 768px) {
  body[data-page='home'] #site-header .home-header-actions {
    gap: 0.75rem;
  }
}

.home-hero-locale__shell {
  position: relative;
  isolation: isolate;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(168deg, #101014 0%, #0a0a0c 48%, #070708 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.65) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -10px 24px rgba(0, 0, 0, 0.45),
    0 4px 24px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(56, 189, 248, 0.06),
    0 0 32px rgba(56, 189, 248, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.home-hero-locale__shell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.65);
}

.home-hero-locale__divider {
  position: relative;
  z-index: 1;
  width: 1px;
  align-self: stretch;
  margin: 0.35rem 0;
  flex-shrink: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 18%,
    rgba(255, 255, 255, 0.16) 45%,
    rgba(56, 189, 248, 0.35) 50%,
    rgba(255, 255, 255, 0.12) 55%,
    rgba(255, 255, 255, 0.06) 82%,
    transparent 100%
  );
}

.home-hero-locale__divider::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 3px;
  height: 42%;
  max-height: 1.1rem;
  border-radius: 9999px;
  background: linear-gradient(180deg, rgba(232, 244, 255, 0) 0%, rgba(220, 240, 255, 0.95) 50%, rgba(232, 244, 255, 0) 100%);
  box-shadow:
    0 0 10px rgba(125, 211, 252, 0.55),
    0 0 18px rgba(56, 189, 248, 0.35);
  pointer-events: none;
}

.home-hero-locale__btn {
  position: relative;
  z-index: 1;
  min-width: 2.75rem;
  border: 0;
  padding: 0.5rem 0.85rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.625rem;
  font-weight: 200;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  background: transparent;
  cursor: pointer;
  transition:
    color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.2s ease,
    text-shadow 0.2s ease;
}

@media (min-width: 768px) {
  .home-hero-locale__btn {
    min-width: 3rem;
    padding: 0.55rem 1rem;
    font-size: 0.6875rem;
  }
}

.home-hero-locale__shell .home-hero-locale__btn:first-of-type {
  border-radius: 9999px 0 0 9999px;
  padding-inline-start: 0.95rem;
}

.home-hero-locale__shell .home-hero-locale__btn:last-of-type {
  border-radius: 0 9999px 9999px 0;
  padding-inline-end: 0.95rem;
}

.home-hero-locale__btn:hover {
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.05);
}

.home-hero-locale__btn:focus {
  outline: none;
}

.home-hero-locale__btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.45);
}

.home-hero-locale__btn--active {
  font-weight: 300;
  color: #fff;
  background: linear-gradient(
    185deg,
    rgba(55, 68, 88, 0.55) 0%,
    rgba(32, 42, 58, 0.72) 42%,
    rgba(22, 30, 48, 0.88) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -6px 16px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(56, 189, 248, 0.12);
  text-shadow:
    0 0 20px rgba(125, 211, 252, 0.35),
    0 1px 0 rgba(0, 0, 0, 0.4);
}

.home-hero-locale__btn--active:hover {
  color: #fff;
  background: linear-gradient(
    185deg,
    rgba(62, 76, 96, 0.58) 0%,
    rgba(36, 46, 64, 0.78) 45%,
    rgba(26, 34, 52, 0.92) 100%
  );
}

/* Lock viewport scroll on both roots (body-only overflow can still jitter html scroller). */
html.discover-scroll-lock {
  overflow: hidden;
  overscroll-behavior: none;
}

body.discover-menu-open {
  overflow: hidden;
}

/* Blend mode + semi-transparent overlay fade can read as a vertical nudge; normalize while open. */
body.discover-menu-open #site-header {
  mix-blend-mode: normal;
}

/* When already scrolled, pin body so the viewport cannot drift (standard modal lock). */
body.discover-menu-open.discover-menu-open--scroll-pinned {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  top: calc(-1 * var(--discover-lock-y, 0px));
}

#discover-overlay.discover-overlay {
  z-index: 130;
}

#discover-overlay.discover-overlay.is-open {
  background:
    radial-gradient(ellipse 120% 80% at 50% 20%, rgba(56, 189, 248, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 90% 60% at 80% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
    #0a0a0b;
}

body.discover-menu-open [data-home-diamond-wrap] {
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.35s ease,
    visibility 0s linear 0.35s;
}

/* Opaque layer: nothing from the page shows through (no blur / no ghosted hero text). */
.discover-overlay__backdrop {
  background: #0a0a0b;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.discover-overlay__grain {
  opacity: 0.055;
}

#discover-overlay.discover-overlay.is-open .discover-overlay__grain {
  opacity: 0.078;
}

.discover-overlay__vignette {
  opacity: 0;
  transition: opacity 0.5s ease;
}

#discover-overlay.discover-overlay.is-open .discover-overlay__vignette {
  opacity: 1;
  background: radial-gradient(ellipse 85% 75% at 50% 45%, transparent 0%, rgba(0, 0, 0, 0.55) 72%, rgba(0, 0, 0, 0.88) 100%);
}

/* Mouse-reactive aurora + mesh parallax (--discover-* set in menu.js) */
#discover-overlay {
  --discover-mx: 50%;
  --discover-my: 50%;
  --discover-tx: 0px;
  --discover-ty: 0px;
}

.discover-overlay__cursor-glow {
  opacity: 0;
  transition: opacity 0.45s ease;
  background:
    radial-gradient(
      ellipse 130% 100% at var(--discover-mx) var(--discover-my),
      rgba(56, 189, 248, 0.14) 0%,
      transparent 52%
    ),
    radial-gradient(
      ellipse 95% 80% at calc(var(--discover-mx) + 5%) calc(var(--discover-my) - 4%),
      rgba(139, 92, 246, 0.11) 0%,
      transparent 48%
    ),
    radial-gradient(
      ellipse 70% 60% at calc(var(--discover-mx) - 6%) calc(var(--discover-my) + 7%),
      rgba(255, 255, 255, 0.045) 0%,
      transparent 45%
    );
}

#discover-overlay.discover-overlay.is-open .discover-overlay__cursor-glow {
  opacity: 1;
}

/* Subtle grid + spotlight that follows cursor (parallax via --discover-tx/y) */
.discover-overlay__cursor-mesh {
  opacity: 0;
  transition: opacity 0.45s ease;
  background-image:
    radial-gradient(
      ellipse 85% 70% at var(--discover-mx) var(--discover-my),
      rgba(56, 189, 248, 0.07) 0%,
      transparent 55%
    ),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size:
    100% 100%,
    56px 56px,
    56px 56px;
  background-position:
    0 0,
    var(--discover-tx) var(--discover-ty),
    var(--discover-tx) var(--discover-ty);
  mask-image: radial-gradient(ellipse 75% 65% at var(--discover-mx) var(--discover-my), black 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(
    ellipse 75% 65% at var(--discover-mx) var(--discover-my),
    black 0%,
    transparent 72%
  );
}

#discover-overlay.discover-overlay.is-open .discover-overlay__cursor-mesh {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .discover-overlay__cursor-glow {
    background: radial-gradient(
      ellipse 100% 85% at 50% 42%,
      rgba(56, 189, 248, 0.09) 0%,
      transparent 58%
    );
  }

  .discover-overlay__cursor-mesh {
    opacity: 0 !important;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

.discover-overlay__links {
  position: relative;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

/* No pill shell: links float on the overlay; only the row layout remains */
.discover-overlay__dock {
  width: 100%;
  max-width: none;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  pointer-events: auto;
}

.discover-overlay__dock-track {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

@media (min-width: 640px) {
  .discover-overlay__dock {
    width: fit-content;
    max-width: none;
  }

  .discover-overlay__dock-track {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
  }
}

.discover-overlay__sep {
  pointer-events: none;
  flex-shrink: 0;
  align-self: center;
  display: block;
  width: 2.75rem;
  height: 1px;
  margin: 0.35rem auto;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1px;
}

@media (min-width: 640px) {
  .discover-overlay__sep {
    width: 1px;
    height: 1.125rem;
    margin: 0 0.2rem;
    align-self: center;
    background: rgba(255, 255, 255, 0.12);
  }
}

@media (min-width: 900px) {
  .discover-overlay__sep {
    height: 1.5rem;
    margin: 0 0.5rem;
  }
}

.discover-overlay__link {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 300;
  font-size: clamp(0.8125rem, 2.4vw, 1.125rem);
  line-height: 1.15;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
  min-height: 3rem;
  padding: 0.85rem 1.5rem;
  border-radius: 0;
  border: none;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  isolation: isolate;
  transition:
    color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    letter-spacing 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    text-shadow 0.45s ease;
  -webkit-tap-highlight-color: transparent;
}

.discover-overlay__link::before {
  content: '';
  position: absolute;
  inset: 0.15em 0.1em;
  z-index: -1;
  border-radius: 0.25rem;
  background: radial-gradient(
    ellipse 125% 200% at 50% 115%,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.05) 42%,
    transparent 70%
  );
  opacity: 0;
  transform: translate3d(0, 0.35em, 0) scale(0.92);
  filter: blur(14px);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.discover-overlay__link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  width: calc(100% - 1.5rem);
  height: 1px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2) 28%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.2) 72%,
    transparent
  );
  opacity: 0.95;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.12), 0 0 6px rgba(255, 255, 255, 0.08);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

@media (min-width: 640px) {
  .discover-overlay__link {
    min-height: 3.25rem;
    padding: 0.95rem 1.85rem;
    font-size: clamp(0.875rem, 2vw, 1.1875rem);
    letter-spacing: 0.3em;
  }

  .discover-overlay__link::after {
    bottom: 0.3rem;
  }
}

.discover-overlay__link:hover,
.discover-overlay__link:focus-visible {
  color: #fff;
  letter-spacing: 0.38em;
  transform: translate3d(0, -3px, 0) scale(1.04);
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.35),
    0 0 40px rgba(255, 255, 255, 0.12);
  outline: none;
}

.discover-overlay__link:hover::before,
.discover-overlay__link:focus-visible::before {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.discover-overlay__link:hover::after,
.discover-overlay__link:focus-visible::after {
  transform: translateX(-50%) scaleX(1);
}

.discover-overlay__link:focus-visible {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.discover-overlay__link:active {
  color: #fff;
  transform: translate3d(0, -1px, 0) scale(1.02);
  transition-duration: 0.12s;
}

@media (max-width: 380px) {
  .discover-overlay__link {
    white-space: normal;
    max-width: 92vw;
    letter-spacing: 0.2em;
    font-size: 0.8125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .discover-overlay__link {
    transition: color 0.2s ease;
  }

  .discover-overlay__link::before {
    display: none;
  }

  .discover-overlay__link::after {
    transition: none;
    transform: translateX(-50%) scaleX(0);
    box-shadow: none;
  }

  .discover-overlay__link:hover,
  .discover-overlay__link:focus-visible {
    letter-spacing: 0.28em;
    transform: none;
    text-shadow: none;
  }

  .discover-overlay__link:hover::after,
  .discover-overlay__link:focus-visible::after {
    transform: translateX(-50%) scaleX(0);
  }

  .discover-overlay__link:active {
    transform: none;
  }

  .discover-overlay__vignette {
    transition: none;
  }
}

#site-root {
  isolation: isolate;
}

#main {
  position: relative;
  z-index: 0;
}

/* Home intro gate — loaded with base layout (see public/assets/js/modules/home-intro.js) */
section.hero-resn.home-intro-hero {
  min-height: 100vh;
  min-height: 100svh;
}

/* One-shot ambient light drift: 5 steps / 25s, starts after preloader (home-ambient-lights.js) */
.hero__ambient-lights {
  opacity: 0;
}

.hero__ambient-lights.hero__ambient-lights--playing {
  animation: hero-ambient-shell 25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero__ambient-lights.hero__ambient-lights--done {
  visibility: hidden;
  pointer-events: none;
}

@keyframes hero-ambient-shell {
  0% {
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  86% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.hero__ambient-lights__streak {
  position: absolute;
  width: 130%;
  height: 42%;
  left: -15%;
  will-change: transform, opacity;
  border-radius: 50%;
  filter: blur(32px);
  mix-blend-mode: soft-light;
  opacity: 0;
  pointer-events: none;
}

.hero__ambient-lights__streak--a {
  top: 28%;
  background: linear-gradient(
    112deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 36%,
    rgba(255, 255, 255, 0.09) 50%,
    rgba(255, 255, 255, 0.04) 64%,
    transparent 100%
  );
}

.hero__ambient-lights__streak--b {
  top: 48%;
  height: 38%;
  background: linear-gradient(
    124deg,
    transparent 0%,
    rgba(248, 250, 252, 0.025) 40%,
    rgba(224, 242, 254, 0.055) 52%,
    rgba(255, 255, 255, 0.04) 66%,
    transparent 100%
  );
}

.hero__ambient-lights__streak--c {
  top: 12%;
  height: 36%;
  width: 115%;
  left: -8%;
  background: linear-gradient(
    96deg,
    transparent 0%,
    rgba(255, 255, 255, 0.02) 42%,
    rgba(255, 255, 255, 0.065) 51%,
    rgba(255, 255, 255, 0.03) 60%,
    transparent 100%
  );
}

.hero__ambient-lights--playing .hero__ambient-lights__streak--a {
  animation: hero-ambient-streak-a 25s cubic-bezier(0.45, 0.05, 0.25, 1) forwards;
}

.hero__ambient-lights--playing .hero__ambient-lights__streak--b {
  animation: hero-ambient-streak-b 25s cubic-bezier(0.45, 0.05, 0.25, 1) forwards;
}

.hero__ambient-lights--playing .hero__ambient-lights__streak--c {
  animation: hero-ambient-streak-c 25s cubic-bezier(0.45, 0.05, 0.25, 1) forwards;
}

/* Keyframe “holds” at ~0%,20%,40%,60%,80% → visible shift every ~5s; fade by 100% */
@keyframes hero-ambient-streak-a {
  0% {
    transform: translate3d(-32%, 4%, 0) rotate(-15deg) scaleY(1);
    opacity: 0;
  }
  3% {
    opacity: 0.07;
  }
  18% {
    transform: translate3d(-6%, -5%, 0) rotate(-12deg) scaleY(1.06);
    opacity: 0.09;
  }
  20% {
    transform: translate3d(-3%, -3%, 0) rotate(-12deg) scaleY(1.06);
    opacity: 0.085;
  }
  38% {
    transform: translate3d(26%, 10%, 0) rotate(-9deg) scaleY(1);
    opacity: 0.07;
  }
  40% {
    transform: translate3d(29%, 8%, 0) rotate(-9deg);
    opacity: 0.075;
  }
  58% {
    transform: translate3d(6%, -14%, 0) rotate(-17deg) scaleY(1.04);
    opacity: 0.065;
  }
  60% {
    transform: translate3d(3%, -12%, 0) rotate(-17deg);
    opacity: 0.07;
  }
  78% {
    transform: translate3d(-22%, 2%, 0) rotate(-13deg);
    opacity: 0.055;
  }
  80% {
    transform: translate3d(-19%, 4%, 0) rotate(-13deg);
    opacity: 0.05;
  }
  94% {
    opacity: 0.02;
  }
  100% {
    transform: translate3d(12%, -6%, 0) rotate(-11deg);
    opacity: 0;
  }
}

@keyframes hero-ambient-streak-b {
  0% {
    transform: translate3d(28%, -8%, 0) rotate(11deg) scaleY(1.08);
    opacity: 0;
  }
  4% {
    opacity: 0.055;
  }
  18% {
    transform: translate3d(4%, 6%, 0) rotate(9deg) scaleY(1);
    opacity: 0.075;
  }
  20% {
    transform: translate3d(1%, 8%, 0) rotate(9deg);
    opacity: 0.07;
  }
  38% {
    transform: translate3d(-24%, -4%, 0) rotate(14deg);
    opacity: 0.065;
  }
  40% {
    transform: translate3d(-27%, -2%, 0) rotate(14deg);
    opacity: 0.07;
  }
  58% {
    transform: translate3d(-8%, 18%, 0) rotate(8deg) scaleY(1.05);
    opacity: 0.06;
  }
  60% {
    transform: translate3d(-5%, 16%, 0) rotate(8deg);
    opacity: 0.065;
  }
  78% {
    transform: translate3d(18%, -2%, 0) rotate(12deg);
    opacity: 0.055;
  }
  80% {
    transform: translate3d(21%, 0%, 0) rotate(12deg);
    opacity: 0.048;
  }
  94% {
    opacity: 0.018;
  }
  100% {
    transform: translate3d(-10%, 10%, 0) rotate(10deg);
    opacity: 0;
  }
}

@keyframes hero-ambient-streak-c {
  0% {
    transform: translate3d(10%, 22%, 0) rotate(-8deg) scaleX(1.1);
    opacity: 0;
  }
  5% {
    opacity: 0.05;
  }
  18% {
    transform: translate3d(-18%, 8%, 0) rotate(-11deg) scaleX(1);
    opacity: 0.065;
  }
  20% {
    transform: translate3d(-21%, 10%, 0) rotate(-11deg);
    opacity: 0.06;
  }
  38% {
    transform: translate3d(8%, -6%, 0) rotate(-6deg);
    opacity: 0.055;
  }
  40% {
    transform: translate3d(11%, -8%, 0) rotate(-6deg);
    opacity: 0.058;
  }
  58% {
    transform: translate3d(32%, 14%, 0) rotate(-13deg);
    opacity: 0.05;
  }
  60% {
    transform: translate3d(35%, 12%, 0) rotate(-13deg);
    opacity: 0.052;
  }
  78% {
    transform: translate3d(-6%, -4%, 0) rotate(-9deg);
    opacity: 0.045;
  }
  80% {
    transform: translate3d(-3%, -2%, 0) rotate(-9deg);
    opacity: 0.04;
  }
  94% {
    opacity: 0.015;
  }
  100% {
    transform: translate3d(16%, 8%, 0) rotate(-7deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__ambient-lights {
    display: none !important;
  }
}

.home-intro-hit:not(:disabled) {
  cursor: pointer;
}

.home-intro-hit:disabled {
  pointer-events: none;
}

html.home-intro-pending,
body.home-intro-pending {
  overflow: hidden;
  height: 100%;
}

body.home-intro-pending .home-below-hero {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 1.5rem, 0);
}

body.home-intro-pending #site-root > footer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.home-intro-pending #site-header {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.home-intro-pending .hero-intro-line {
  opacity: 0;
  visibility: hidden;
  animation: none;
}

/* First gate: cue visible (title lines stay hidden until click) */
body.home-intro-pending:not(.home-intro-leaving) .home-intro-cue {
  opacity: 1;
  visibility: visible;
  animation: home-intro-cue-enter 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

body.home-intro-pending:not(.home-intro-leaving) .home-intro-cue__dot {
  animation: home-intro-cue-dot 2.2s ease-in-out infinite;
}

@keyframes home-intro-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes home-intro-canvas-idle {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.032);
  }
}

body.home-intro-pending .hero-intro-canvas {
  animation: home-intro-canvas-idle 16s ease-in-out infinite;
  transform-origin: 50% 45%;
}

@keyframes home-intro-exit-canvas {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  40% {
    transform: scale(1.15);
    filter: brightness(1.1) saturate(1.06);
  }
  100% {
    transform: scale(1);
    filter: brightness(1) saturate(1);
  }
}

body.home-intro-leaving #site-header {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 1.05s cubic-bezier(0.22, 1, 0.32, 1) 0.08s,
    visibility 0s linear 0.08s;
}

body.home-intro-leaving .hero-intro-line {
  visibility: visible;
}

body.home-intro-leaving .hero-intro-line--1 {
  animation: home-intro-fade-in 1s cubic-bezier(0.22, 1, 0.32, 1) 0.14s both;
}

body.home-intro-leaving .hero-intro-line--2 {
  animation: home-intro-fade-in 1s cubic-bezier(0.22, 1, 0.32, 1) 0.28s both;
}

body.home-intro-leaving .hero-intro-line--3 {
  animation: home-intro-fade-in 1s cubic-bezier(0.22, 1, 0.32, 1) 0.42s both;
}

body.home-intro-leaving .hero-intro-canvas {
  animation: home-intro-exit-canvas 1.05s cubic-bezier(0.22, 1, 0.32, 1) forwards;
}

body.home-intro-leaving .home-intro-cue {
  animation: none;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 0, 0.1px) scale(0.6);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

body.home-intro-leaving .home-below-hero {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.32, 1) 0.45s,
    visibility 0s linear 0.45s;
}

body.home-intro-leaving #site-root > footer {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 1.05s cubic-bezier(0.22, 1, 0.32, 1) 0.55s,
    visibility 0s linear 0.55s;
}

.home-intro-cue {
  opacity: 0;
  visibility: hidden;
  position: relative;
  z-index: 2;
  /* Own compositor layer so WebGL canvas does not paint over the cue text */
  transform: translate3d(0, 0, 0.1px);
}

.home-intro-cue__label {
  margin: 0;
  flex-shrink: 0;
  width: max-content;
  max-width: none;
  text-align: center;
  font-size: clamp(0.5rem, 1.85vw, 0.6875rem);
  font-weight: 200;
  line-height: 1.2;
  letter-spacing: clamp(0.1em, 0.55vw, 0.32em);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.45);
  white-space: nowrap !important;
  overflow: visible;
}

@media (min-width: 768px) {
  .home-intro-cue__label {
    color: rgba(255, 255, 255, 0.38);
  }
}

.home-intro-cue__dot {
  display: block;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

@keyframes home-intro-cue-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0.1px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0.1px);
  }
}

@keyframes home-intro-cue-dot {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.2);
  }
}

/* After intro: only hide hit layer — overflow returns to normal by removing .home-intro-pending */

[data-home-below-hero] {
  scroll-margin-top: 6.5rem;
}

@media (min-width: 768px) {
  [data-home-below-hero] {
    scroll-margin-top: 7rem;
  }
}

html.home-intro-done,
body.home-intro-done {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  min-height: 100%;
}

html.home-intro-done .home-intro-hit,
body.home-intro-done .home-intro-hit {
  display: none;
}

body.home-intro-done #site-header {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.home-intro-done .hero-intro-title-wrap {
  opacity: 1;
  filter: none;
  transform: none;
  animation: none;
}

body.home-intro-done .hero-intro-line {
  opacity: 1;
  visibility: visible;
  filter: none;
  transform: none;
  animation: none;
}

body.home-intro-done .hero-intro-canvas {
  animation: none !important;
  transform: none;
  filter: none;
}

body.home-intro-done .home-intro-cue {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  body.home-intro-pending:not(.home-intro-leaving) .home-intro-cue {
    animation: none;
    opacity: 1;
  }

  body.home-intro-pending:not(.home-intro-leaving) .home-intro-cue__dot {
    animation: none;
    opacity: 0.55;
  }

  body.home-intro-pending .hero-intro-canvas {
    animation: none;
  }

  body.home-intro-leaving .hero-intro-line--1,
  body.home-intro-leaving .hero-intro-line--2,
  body.home-intro-leaving .hero-intro-line--3 {
    animation: none;
    opacity: 1;
    visibility: visible;
    filter: none;
    transform: none;
  }
}

/* Menu trigger: label + hamburger (works without JIT for bar thickness) */
.menu-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.375rem;
}

.menu-bars span {
  display: block;
  height: 2px;
  width: 1.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
}

.menu-bars--sm span {
  width: 1.25rem;
}

.font-hero.font-extralight {
  font-weight: 200;
}

.menu-trigger-label {
  font-size: 0.65rem;
  font-weight: 200;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.menu-trigger-with-label:hover .menu-trigger-label {
  color: rgba(255, 255, 255, 0.95);
}

/* Match #menu-open (Keşfet) label treatment in overlay chrome */
#discover-overlay #menu-close .menu-trigger-label {
  color: rgba(255, 255, 255, 0.8);
}

#discover-overlay #menu-close:hover .menu-trigger-label {
  color: rgba(255, 255, 255, 0.95);
}

/* Primary overlay links: thin weight + responsive size (independent of Tailwind purge) */
.menu-overlay__primary-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.75rem;
}

@media (min-width: 640px) {
  .menu-overlay__primary-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: clamp(2.25rem, 7vw, 5.5rem);
  }
}

.menu-overlay__secondary {
  margin-top: 3.25rem;
  text-align: center;
}

@media (min-width: 768px) {
  .menu-overlay__secondary {
    margin-top: 4.5rem;
  }
}

.menu-overlay__secondary-link {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  transition: color 0.2s ease;
}

.menu-overlay__secondary-link:hover {
  color: rgba(255, 255, 255, 0.55);
}

.menu-overlay__locale {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}

.menu-overlay__locale button {
  cursor: pointer;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  transition: color 0.2s ease;
}

.menu-overlay__locale button:hover {
  color: rgba(255, 255, 255, 0.5);
}

.menu-overlay__locale-sep {
  color: rgba(255, 255, 255, 0.15);
}

.menu-overlay__vignette {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    transparent 42%,
    transparent 58%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.menu-overlay__grain {
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

/* Full-screen nav overlay — open motion (reference: centered thin links + grain) */
.menu-overlay__content {
  opacity: 0;
  transform: scale(0.985);
  filter: blur(8px);
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-overlay.is-open .menu-overlay__content {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.menu-link--primary {
  font-weight: 100;
  font-size: clamp(2.75rem, 7.5vw, 5.25rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate3d(0, 0.85rem, 0);
  transition: color 0.3s ease;
}

.menu-link--primary:hover {
  color: #fff;
}

@keyframes menu-primary-in {
  from {
    opacity: 0;
    transform: translate3d(0, 0.85rem, 0);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

.menu-overlay.is-open .menu-link--primary {
  animation: menu-primary-in 0.78s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.menu-overlay.is-open .menu-link--primary:nth-child(1) {
  animation-delay: 0.08s;
}

.menu-overlay.is-open .menu-link--primary:nth-child(2) {
  animation-delay: 0.16s;
}

.menu-overlay.is-open .menu-link--primary:nth-child(3) {
  animation-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  .menu-overlay__content {
    transition: none;
    filter: none;
    transform: none;
  }

  .menu-overlay.is-open .menu-overlay__content {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .menu-overlay.is-open .menu-link--primary {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
}

/* Preloader splash — full viewport, centered stack (in this file so it works without rebuilding main.css) */
#preloader.preloader {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  padding: 1.5rem;
  background-color: #0a0a0b;
}

.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.preloader__logo {
  display: flex;
  justify-content: center;
  width: 100%;
}

.preloader__logo img {
  display: block;
  max-width: min(4.5rem, 22vw);
}

.preloader__hint {
  max-width: 22rem;
  text-wrap: balance;
}

/* Soft white light behind the progress track */
.preloader__bar-wrap {
  position: relative;
  flex-shrink: 0;
}

.preloader__bar {
  position: relative;
  z-index: 1;
}

.preloader__bar-fill {
  will-change: transform;
}

.preloader__bar-glow {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2.25rem;
  margin-top: -1.125rem;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 85% 55% at 50% 50%,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.06) 42%,
    transparent 72%
  );
  filter: blur(14px);
  opacity: 0.55;
  transform-origin: 50% 50%;
  animation: preloader-bar-glow 3.2s ease-in-out infinite;
}

@keyframes preloader-bar-glow {
  0%,
  100% {
    opacity: 0.32;
    transform: scaleX(0.92);
  }
  50% {
    opacity: 0.58;
    transform: scaleX(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .preloader__bar-glow {
    animation: none;
    opacity: 0.48;
    transform: none;
  }
}

/* Finished preloader drops behind page chrome */
#preloader.preloader.is-done {
  z-index: 100;
}
