/* ═══════════════════════════════════════════
   Imperial Medya — Premium Hero Section
   ═══════════════════════════════════════════ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --color-bg: #060d1a;
  --color-primary: #00d4ff;
  --color-primary-dim: rgba(0, 212, 255, 0.15);
  --color-accent: #7c3aed;
  --color-accent-2: #2563eb;
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.65);
  --color-glass: rgba(255, 255, 255, 0.06);
  --color-glass-border: rgba(255, 255, 255, 0.1);
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Spacing scale */
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;

  /* Fluid typography */
  --title-size: clamp(2.5rem, 6.5vw + 0.25rem, 4.25rem);
  --subtitle-size: clamp(0.95rem, 1.1vw + 0.5rem, 1.15rem);
  --content-max: 52rem;
  --contact-max: 60rem;
  --side-pad: clamp(1rem, 4vw, 3rem);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ═══ HERO CONTAINER ═══ */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  padding:
    env(safe-area-inset-top, 0)
    env(safe-area-inset-right, 0)
    env(safe-area-inset-bottom, 0)
    env(safe-area-inset-left, 0);
  user-select: none;
  -webkit-user-select: none;
}

/* ═══ SLIDES ═══ */

.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.4s var(--ease-in-out), visibility 1.4s;
}

.hero__slide--active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__media--kenburns {
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  transform: scale(1);
  transition: transform 8s linear;
}

.hero__slide--active .hero__media--kenburns {
  transform: scale(1.1);
}

/* ═══ OVERLAYS ═══ */

.hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 90% 80% at 50% 42%, rgba(6, 13, 26, 0.55) 0%, rgba(6, 13, 26, 0.88) 72%),
    linear-gradient(180deg, rgba(6, 13, 26, 0.5) 0%, transparent 32%, transparent 62%, rgba(6, 13, 26, 0.78) 100%);
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 15%, transparent 70%);
  pointer-events: none;
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
  box-shadow: 0 0 6px var(--color-primary);
}

@keyframes particleFloat {
  0%   { opacity: 0; transform: translateY(100vh) scale(0); }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* ═══ HEADER ═══ */

.hero__header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-md) var(--side-pad);
  animation: fadeDown 1s var(--ease-out-expo) 0.2s both;
}

.hero__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hero__logo-img {
  height: clamp(36px, 5vw, 52px);
  width: auto;
  display: block;
  object-fit: contain;
  mix-blend-mode: lighten;
}

.hero__header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hero__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.hero__menu-btn:hover,
.hero__menu-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero__menu-btn:active {
  transform: scale(0.96);
}

.hero__menu-btn-lines {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 22px;
}

.hero__menu-btn-lines span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out-expo), opacity 0.25s;
  transform-origin: center;
  font-size: 0;
  line-height: 0;
}

.hero__menu-btn[aria-expanded="true"] .hero__menu-btn-lines span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hero__menu-btn[aria-expanded="true"] .hero__menu-btn-lines span:nth-child(2) {
  opacity: 0;
}

.hero__menu-btn[aria-expanded="true"] .hero__menu-btn-lines span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ═══ MAIN CONTENT ═══ */

.hero__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  align-self: center;
  width: 100%;
  min-height: 0;
  max-width: calc(var(--content-max) + var(--side-pad) * 2);
  padding: 0 var(--side-pad) clamp(5.5rem, 12vh, 7rem);
  margin: 0 auto;
}

.hero__copy {
  width: 100%;
  transition: opacity 0.45s var(--ease-out-expo), transform 0.45s var(--ease-out-expo);
}

.hero__copy.is-changing {
  opacity: 0;
  transform: translateY(12px);
}

.hero__title {
  font-family: var(--font-body);
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
  width: 100%;
}

.hero__title-overline {
  display: block;
  font-size: clamp(0.68rem, 1.2vw + 0.2rem, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: clamp(0.85rem, 2vw, 1.35rem);
}

.hero__title-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
}

.hero__title-main-line {
  display: block;
  font-size: var(--title-size);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.98);
}

.hero__title-main-line--accent {
  letter-spacing: 0.12em;
  background: linear-gradient(120deg, #b8f0ff 0%, var(--color-primary) 50%, #6eb8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--subtitle-size);
  font-weight: 300;
  line-height: 1.75;
  color: var(--color-text-muted);
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

/* ═══ BUTTONS ═══ */

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 1.5vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9rem clamp(1.25rem, 3vw, 2rem);
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  min-height: 48px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-2) 50%, var(--color-primary) 100%);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.35);
}

.btn--primary:hover {
  background-position: 100% 100%;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.5);
}

.btn--primary svg {
  transition: transform 0.3s;
  flex-shrink: 0;
}

.btn--primary:hover svg {
  transform: translateX(4px);
}

.btn--ghost {
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  color: var(--color-text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}

/* ═══ CONTACT STRIP ═══ */

.hero__contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.75rem, 2vw, 1rem);
  padding: clamp(1rem, 2.5vw, 1.35rem);
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  border-radius: clamp(12px, 2vw, 16px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  width: 100%;
  max-width: var(--contact-max);
  margin: 0 auto;
  user-select: text;
  -webkit-user-select: text;
}

.hero__contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  min-width: 0;
  padding: clamp(0.65rem, 1.5vw, 0.85rem);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.hero__contact-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
  width: 100%;
}

.hero__contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 5vw, 40px);
  height: clamp(36px, 5vw, 40px);
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.08);
  color: var(--color-primary);
  flex-shrink: 0;
}

.hero__contact-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.2rem;
}

.hero__contact-item a,
.hero__contact-item span:last-child {
  font-size: clamp(0.78rem, 1.4vw, 0.875rem);
  font-weight: 400;
  color: var(--color-text);
  transition: color 0.3s;
  line-height: 1.5;
  word-break: break-word;
}

.hero__contact-item a:hover {
  color: var(--color-primary);
}

.hero__contact-item--wide span:last-child {
  font-size: clamp(0.72rem, 1.2vw, 0.8rem);
  color: rgba(255, 255, 255, 0.85);
}

.hero__contact-divider {
  display: none;
}

/* ═══ SLIDE PREVIEW (sağ alt) ═══ */

.hero__preview--inline {
  width: 100%;
}

/* Desktop: önizlemeyi sağ alta sabitle */
@media (min-width: 768px) {
  .hero__preview--inline {
    position: fixed;
    right: clamp(1rem, 2.5vw, 2.5rem);
    bottom: clamp(1.25rem, 3vh, 2.5rem);
    z-index: 20;
    width: auto;
    margin: 0;
    animation: fadeUp 1s var(--ease-out-expo) 0.9s both;
  }
}

.hero__preview-card {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
  font-family: var(--font-body);
  text-align: right;
  transition: transform 0.45s var(--ease-out-expo);
}

.hero__preview-card:hover {
  transform: translateY(-4px);
}

.hero__preview-card:hover .hero__preview-img {
  transform: scale(1.04);
}

.hero__preview-card:hover .hero__preview-overlay {
  opacity: 1;
}

.hero__preview-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.hero__preview-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.hero__preview-caption {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  transition: opacity 0.35s ease;
}

.hero__preview-caption.is-changing {
  opacity: 0.3;
}

.hero__preview-media {
  display: block;
  width: clamp(220px, 24vw, 340px);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(6, 13, 26, 0.65);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  position: relative;
}

.hero__preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-out-expo), opacity 0.4s ease;
}

.hero__preview-img.is-changing {
  opacity: 0.35;
}

.hero__preview-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 13, 26, 0.35);
  opacity: 0;
  transition: opacity 0.35s;
  z-index: 1;
}

.hero__preview-overlay svg {
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero__preview-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 2;
}

.hero__preview-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
  transition: width 0.1s linear;
}

/* ═══ SOCIAL SIDEBAR (sol) ═══ */

.hero__social {
  position: absolute;
  left: clamp(0.75rem, 2vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  animation: fadeRight 1s var(--ease-out-expo) 1s both;
}

.hero__social-label {
  writing-mode: vertical-rl;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.hero__social-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero__social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-glass-border);
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero__social-links a:hover {
  color: var(--color-primary);
  border-color: rgba(0, 212, 255, 0.4);
  background: var(--color-primary-dim);
  transform: scale(1.1);
}

/* ═══ WHATSAPP FAB ═══ */

.hero__whatsapp {
  position: fixed;
  bottom: calc(clamp(1rem, 3vh, 2rem) + env(safe-area-inset-bottom, 0));
  left: calc(clamp(1rem, 3vw, 2rem) + env(safe-area-inset-left, 0));
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(50px, 8vw, 60px);
  height: clamp(50px, 8vw, 60px);
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeUp 1s var(--ease-out-expo) 1.2s both;
}

.hero__whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55);
}

.hero__whatsapp-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: whatsappRing 2s ease-out infinite;
}

@keyframes whatsappRing {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ═══ ENTRANCE ANIMATIONS ═══ */

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__content [data-animate]:nth-child(1) { transition-delay: 0.15s; }
.hero__content [data-animate]:nth-child(2) { transition-delay: 0.3s; }
.hero__content [data-animate]:nth-child(3) { transition-delay: 0.45s; }
.hero__content [data-animate]:nth-child(4) { transition-delay: 0.6s; }

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeRight {
  from { opacity: 0; transform: translateY(-50%) translateX(-20px); }
  to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Device Breakpoints
   xs: 0–374 | sm: 375–639 | md: 640–767
   lg: 768–1023 | xl: 1024–1279 | 2xl: 1280+
   ═══════════════════════════════════════════ */

/* ── TABLET & DESKTOP ── */

@media (min-width: 768px) {
  .hero__preview--inline .hero__preview-card {
    align-items: flex-end;
  }

  .hero__preview--inline .hero__preview-meta {
    align-items: flex-end;
    text-align: right;
  }
}

@media (min-width: 1024px) {
  .hero__contact {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    padding: 1.25rem 1rem;
  }
}

@media (min-width: 1280px) {
  :root {
    --title-size: 4.75rem;
    --content-max: 56rem;
    --contact-max: 64rem;
  }

  .hero__content {
    padding-bottom: 6rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero__preview-media {
    width: clamp(180px, 28vw, 260px);
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  .hero__preview-media {
    width: 100%;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }
}

/* ── MOBİL (767px ve altı) ── */

@media (max-width: 767px) {
  :root {
    --title-size: clamp(2.35rem, 10.5vw + 0.35rem, 3.15rem);
    --subtitle-size: 0.95rem;
    --side-pad: 1.15rem;
    --mobile-dock-actions: 3.2rem;
    --mobile-dock-social: 1.85rem;
    --mobile-dock-gap: 0.4rem;
    --mobile-bar-h: calc(var(--mobile-dock-actions) + var(--mobile-dock-social) + var(--mobile-dock-gap) + 0.75rem);
  }

  .hero {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
  }

  .hero__gradient {
    background:
      radial-gradient(ellipse 120% 75% at 50% 28%, rgba(6, 13, 26, 0.35) 0%, rgba(6, 13, 26, 0.78) 68%),
      linear-gradient(180deg, rgba(6, 13, 26, 0.45) 0%, rgba(6, 13, 26, 0.88) 100%);
  }

  .hero__header {
    padding: 0.75rem var(--side-pad);
    flex-shrink: 0;
  }

  .hero__logo-img {
    height: 38px;
  }

  .hero__content {
    justify-content: center;
    min-height: 0;
    overflow: hidden;
    padding: 0.15rem var(--side-pad) calc(var(--mobile-bar-h) + 0.65rem);
    gap: 0;
  }

  .hero__copy {
    width: 100%;
  }

  .hero__title {
    margin-bottom: 1rem;
  }

  .hero__title-overline {
    letter-spacing: 0.18em;
    font-size: clamp(0.72rem, 2.8vw, 0.85rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.7rem;
  }

  .hero__title-main {
    gap: 0;
  }

  .hero__title-main-line {
    letter-spacing: 0.02em;
    line-height: 1.08;
    font-weight: 700;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
  }

  .hero__title-main-line--accent {
    letter-spacing: 0.03em;
    font-weight: 700;
    background: linear-gradient(120deg, #e8fbff 0%, #5ee0ff 45%, #3b9eff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 12px rgba(0, 212, 255, 0.25));
  }

  .hero__subtitle {
    font-size: var(--subtitle-size);
    font-weight: 400;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 1rem;
    max-width: 100%;
    padding: 0;
  }

  /* Teklif + WhatsApp — sabit alt dock */
  .hero__actions {
    position: fixed;
    left: var(--side-pad);
    right: var(--side-pad);
    bottom: calc(0.6rem + env(safe-area-inset-bottom, 0));
    z-index: 30;
    flex-direction: row;
    width: auto;
    gap: 0.5rem;
    margin: 0;
  }

  .hero__actions .btn {
    min-height: var(--mobile-dock-actions);
    letter-spacing: 0.05em;
  }

  .hero__actions .btn--primary {
    flex: 1.55;
    padding: 0.85rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow:
      0 8px 28px rgba(124, 58, 237, 0.42),
      0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  }

  .hero__actions .btn--ghost {
    flex: 1;
    padding: 0.75rem 0.5rem;
    font-size: 0.68rem;
    border-color: rgba(37, 211, 102, 0.4);
    color: rgba(255, 255, 255, 0.92);
  }

  .hero__actions .btn svg {
    width: 17px;
    height: 17px;
  }

  /* İletişim — kompakt 2x2 grid */
  .hero__contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    padding: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero__contact-item {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 0.55rem;
    padding: 0.55rem 0.6rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero__contact-body {
    align-items: flex-start;
    text-align: left;
    flex: 1;
    min-width: 0;
  }

  .hero__contact-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .hero__contact-icon svg {
    width: 14px;
    height: 14px;
  }

  .hero__contact-label {
    font-size: 0.52rem;
    margin-bottom: 0.08rem;
    letter-spacing: 0.12em;
  }

  .hero__contact-item a,
  .hero__contact-item span:last-child {
    font-size: 0.68rem;
    line-height: 1.3;
  }

  .hero__contact-item--wide span:last-child {
    font-size: 0.62rem;
    line-height: 1.35;
  }

  .hero__contact-item--wide {
    grid-column: 1 / -1;
    align-items: flex-start;
  }

  /* Mobilde sonraki slayt önizlemesi yok */
  .hero__preview--inline {
    display: none !important;
  }

  /* Sosyal — çerçevesiz, dock üstünde */
  .hero__social {
    position: fixed;
    left: var(--side-pad);
    right: var(--side-pad);
    bottom: calc(0.6rem + var(--mobile-dock-actions) + var(--mobile-dock-gap) + env(safe-area-inset-bottom, 0));
    top: auto;
    transform: none;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    margin: 0;
    z-index: 28;
    animation: none;
    border: none;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }

  .hero__social-label {
    display: none;
  }

  .hero__social-links {
    flex-direction: row;
    gap: 0.15rem;
    justify-content: center;
    width: 100%;
  }

  .hero__social-links a {
    width: var(--mobile-dock-social);
    height: var(--mobile-dock-social);
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.42);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero__social-links a:hover,
  .hero__social-links a:focus-visible {
    color: var(--color-primary);
    background: transparent;
    transform: none;
  }

  .hero__social-links a svg {
    width: 14px;
    height: 14px;
  }

  /* FAB gizle — WhatsApp dock'ta */
  .hero__whatsapp {
    display: none;
  }
}

/* ── KÜÇÜK MOBİL (374px ve altı) ── */

@media (max-width: 374px) {
  :root {
    --title-size: 2.15rem;
    --side-pad: 1rem;
    --mobile-dock-actions: 2.7rem;
    --mobile-dock-social: 1.7rem;
    --mobile-dock-gap: 0.35rem;
  }

  .hero__logo-img {
    height: 32px;
  }

  .hero__actions .btn--primary {
    flex: 1.65;
    font-size: 0.72rem;
    padding: 0.8rem 0.65rem;
  }

  .hero__actions .btn--ghost {
    font-size: 0;
    padding: 0.75rem;
    gap: 0;
  }

  .hero__actions .btn--ghost svg {
    width: 20px;
    height: 20px;
  }

  .hero__social-links {
    gap: 0.05rem;
  }

  .hero__social-links a svg {
    width: 13px;
    height: 13px;
  }
}

/* ── GENİŞ MOBİL / KÜÇÜK TABLET (480–639px) ── */

@media (min-width: 480px) and (max-width: 767px) {
  :root {
    --title-size: clamp(2.5rem, 8vw, 3.25rem);
    --subtitle-size: 1rem;
  }

  .hero__contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .hero__contact-item--wide {
    grid-column: 1 / -1;
  }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 900px) {
  :root {
    --title-size: clamp(1.4rem, 4.5vh, 1.85rem);
    --subtitle-size: 0.78rem;
    --mobile-bar-h: 4.25rem;
  }

  .hero {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .hero__content {
    padding-top: 0.2rem;
    padding-bottom: calc(var(--mobile-bar-h) + 0.35rem);
  }

  .hero__title {
    margin-bottom: 0.5rem;
  }

  .hero__subtitle {
    margin-bottom: 0.55rem;
    line-height: 1.4;
  }

  .hero__actions {
    margin-bottom: 0.55rem;
  }

  .hero__contact {
    display: none;
  }

  .hero__preview-media {
    width: 4.5rem;
  }

  .hero__social {
    bottom: calc(0.5rem + var(--mobile-dock-actions) + var(--mobile-dock-gap) + env(safe-area-inset-bottom, 0));
  }

  .hero__actions {
    bottom: calc(0.5rem + env(safe-area-inset-bottom, 0));
  }
}

/* Touch devices — larger tap targets */
@media (hover: none) and (pointer: coarse) {
  .hero__preview-card {
    min-height: 44px;
  }
}

/* ═══ TEKLİF MODAL ═══ */

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding:
    max(1rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out-expo), visibility 0.35s;
}

.quote-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.quote-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 22, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.quote-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 28rem;
  max-height: min(92dvh, 640px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, rgba(14, 24, 42, 0.98) 0%, rgba(8, 14, 28, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 212, 255, 0.06) inset;
  overflow: hidden;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.45s var(--ease-out-expo);
}

.quote-modal.is-open .quote-modal__dialog {
  transform: translateY(0) scale(1);
}

.quote-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.25s;
}

.quote-modal__close:hover {
  color: #fff;
  border-color: rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.1);
}

.quote-modal__header {
  padding: 1.5rem 1.5rem 0;
  flex-shrink: 0;
}

.quote-modal__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.quote-modal__eyebrow-mark {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary) 0%, rgba(0, 212, 255, 0.15) 100%);
}

.quote-modal__eyebrow-mark::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.55);
}

.quote-modal__title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.97);
}

.quote-modal__subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.quote-modal__progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.quote-modal__progress-bar {
  display: block;
  height: 100%;
  width: 33.33%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  border-radius: 3px;
  transition: width 0.4s var(--ease-out-expo);
}

.quote-modal__steps {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin-bottom: 0.25rem;
}

.quote-modal__step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
  transition: color 0.3s;
}

.quote-modal__step span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
  transition: all 0.3s;
}

.quote-modal__step.is-active {
  color: rgba(255, 255, 255, 0.85);
}

.quote-modal__step.is-active span {
  border-color: rgba(0, 212, 255, 0.5);
  background: rgba(0, 212, 255, 0.15);
  color: var(--color-primary);
}

.quote-modal__step.is-done {
  color: rgba(255, 255, 255, 0.55);
}

.quote-modal__step.is-done span {
  border-color: rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.08);
  color: var(--color-primary);
}

.quote-form {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.quote-form__panel {
  display: none;
  animation: quoteFadeIn 0.35s var(--ease-out-expo);
}

.quote-form__panel.is-active {
  display: block;
}

@keyframes quoteFadeIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.quote-form__label {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.85rem;
}

.quote-form__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.quote-option {
  cursor: pointer;
}

.quote-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quote-option__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.3s var(--ease-out-expo), background 0.3s var(--ease-out-expo), box-shadow 0.3s;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.quote-option__card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent-2));
  opacity: 0;
  transition: opacity 0.3s;
}

.quote-option__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.12);
  color: var(--color-primary);
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.quote-option__icon svg {
  width: 19px;
  height: 19px;
  display: block;
}

.quote-option__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.quote-option__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: 0.01em;
}

.quote-option__desc {
  font-size: 0.67rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.4;
}

.quote-option input:checked + .quote-option__card {
  border-color: rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.08) inset;
}

.quote-option input:checked + .quote-option__card::before {
  opacity: 1;
}

.quote-option input:checked + .quote-option__card .quote-option__icon {
  background: rgba(0, 212, 255, 0.14);
  border-color: rgba(0, 212, 255, 0.28);
  color: #7ee8ff;
}

@media (hover: hover) {
  .quote-option__card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
  }

  .quote-option input:checked + .quote-option__card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.08);
  }
}

.quote-form__fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quote-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.35rem;
}

.quote-field input,
.quote-field textarea,
.quote-field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.quote-field textarea {
  resize: vertical;
  min-height: 96px;
}

.quote-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2rem;
}

.quote-field select option {
  background: #0e1828;
  color: #fff;
}

.quote-field input:focus,
.quote-field textarea:focus,
.quote-field select:focus {
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.quote-field input.is-invalid,
.quote-field textarea.is-invalid {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.quote-form__note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.quote-form__note svg {
  flex-shrink: 0;
  color: rgba(0, 212, 255, 0.7);
}

.quote-modal__footer {
  display: flex;
  gap: 0.6rem;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.8rem 1.25rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  min-height: 46px;
}

.quote-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
}

.quote-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.quote-btn--primary {
  flex: 1;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-2) 50%, var(--color-primary) 100%);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.35);
}

.quote-btn--primary:hover {
  background-position: 100% 100%;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.45);
}

.quote-btn--whatsapp {
  background: linear-gradient(135deg, #1ebe57 0%, #25d366 100%);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
}

.quote-btn--whatsapp:hover {
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

.quote-btn--whatsapp svg {
  flex-shrink: 0;
}

@media (max-width: 400px) {
  .quote-modal__step {
    font-size: 0;
  }

  .quote-modal__step span {
    font-size: 0.65rem;
  }

  .quote-form__options {
    grid-template-columns: 1fr;
  }
}

/* ═══ SITE NAV ═══ */

.site-nav {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s;
}

.site-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 18, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-nav__panel {
  position: relative;
  width: min(100%, 28rem);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding:
    max(1.5rem, env(safe-area-inset-top))
    max(1.75rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    1.75rem;
  background: #070e1a;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateX(28px);
  transition: transform 0.5s var(--ease-out-expo);
}

.site-nav.is-open .site-nav__panel {
  transform: translateX(0);
}

.site-nav__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.75rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav__brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-nav__brand-label {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.site-nav__brand-sub {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.site-nav__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
  flex-shrink: 0;
}

.site-nav__close:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.site-nav__links {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.site-nav__link {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  align-items: baseline;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  padding: 1.15rem 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
  color: inherit;
  font-family: var(--font-body);
  cursor: pointer;
  transition: opacity 0.3s;
}

.site-nav__link:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.site-nav__link-index {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.28);
  padding-top: 0.35rem;
  transition: color 0.3s;
}

.site-nav__link-text {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.site-nav__link-title {
  font-size: clamp(1.55rem, 4.8vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.94);
  transition: color 0.3s, letter-spacing 0.35s var(--ease-out-expo);
}

.site-nav__link-desc {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.38);
  transition: color 0.3s;
}

.site-nav__link:hover .site-nav__link-index,
.site-nav__link:focus-visible .site-nav__link-index {
  color: var(--color-primary);
}

.site-nav__link:hover .site-nav__link-title,
.site-nav__link:focus-visible .site-nav__link-title {
  color: #fff;
  letter-spacing: 0.01em;
}

.site-nav__link:hover .site-nav__link-desc,
.site-nav__link:focus-visible .site-nav__link-desc {
  color: rgba(255, 255, 255, 0.55);
}

.site-nav__footer {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 1.75rem;
  margin-top: auto;
}

.site-nav__footer a {
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.42);
  transition: color 0.25s;
}

.site-nav__footer a:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* Nav breakpoints */
@media (max-width: 479px) {
  .site-nav__panel {
    width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .site-nav__top {
    margin-bottom: 1.75rem;
  }

  .site-nav__link {
    padding: 0.95rem 0;
  }

  .site-nav__link-title {
    font-size: 1.4rem;
  }

  .site-nav__link-desc {
    font-size: 0.72rem;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .site-nav__panel {
    width: min(100%, 24rem);
  }

  .site-nav__link-title {
    font-size: 1.65rem;
  }
}

@media (min-width: 768px) {
  .site-nav__panel {
    width: min(100%, 28rem);
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .site-nav__top {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }

  .site-nav__link {
    padding: 0.65rem 0;
  }

  .site-nav__link-title {
    font-size: 1.2rem;
  }

  .site-nav__link-desc {
    display: none;
  }
}

/* ═══ REFS PAGE ═══ */

.page-refs {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.page-refs html,
html:has(.page-refs) {
  height: auto;
  overflow: auto;
}

html:has(body.page-refs),
body.page-refs {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.refs-hero {
  position: relative;
  min-height: min(72vh, 38rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.refs-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  z-index: 0;
}

.refs-hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 13, 26, 0.45) 0%, rgba(6, 13, 26, 0.55) 38%, rgba(6, 13, 26, 0.92) 100%),
    radial-gradient(ellipse 80% 70% at 50% 20%, rgba(6, 13, 26, 0.2) 0%, rgba(6, 13, 26, 0.75) 70%);
  pointer-events: none;
}

.refs-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 10%, transparent 75%);
  pointer-events: none;
}

.refs-hero__header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: transparent;
}

.refs-hero__content {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6.5rem var(--side-pad) 3.5rem;
}

.refs-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.refs-hero__eyebrow-mark {
  position: relative;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
}

.refs-hero__eyebrow-mark::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.refs-hero__title {
  margin-bottom: 1rem;
}

.refs-hero__title-line {
  display: block;
  font-size: clamp(2.4rem, 8vw, 4.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.08;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.4);
}

.refs-hero__title-line--accent {
  background: linear-gradient(120deg, #e8fbff 0%, #5ee0ff 45%, #3b9eff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.refs-hero__subtitle {
  max-width: 28rem;
  font-size: clamp(0.92rem, 2vw, 1.1rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.refs-main {
  position: relative;
  z-index: 2;
  margin-top: -2.5rem;
  padding: 0 var(--side-pad) 4rem;
}

.refs-main__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.refs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.refs-card {
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 18, 32, 0.85);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
}

.refs-card:hover {
  border-color: rgba(0, 212, 255, 0.32);
  transform: translateY(-4px);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.4);
}

.refs-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a1220;
}

.refs-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.75s var(--ease-out-expo);
}

.refs-card:hover .refs-card__media img {
  transform: scale(1.04);
}

.refs-card__meta {
  display: grid;
  gap: 0.22rem;
  padding: 0.95rem 1.05rem 1.1rem;
}

.refs-card__cat {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 212, 255, 0.78);
}

.refs-card__name {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
}

.refs-card__url {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.4);
}

.refs-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem 1.35rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 212, 255, 0.05));
}

.refs-cta__eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.45rem;
}

.refs-cta__title {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
}

.refs-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.refs-cta__actions .btn {
  min-height: 48px;
}

/* Refs breakpoints: xs <480 | sm 480–639 | md 640–1023 | lg 1024–1279 | xl 1280+ */
@media (max-width: 479px) {
  .refs-hero {
    min-height: 56vh;
  }

  .refs-hero__content {
    padding: 5.25rem var(--side-pad) 2.5rem;
  }

  .refs-hero__title-line {
    font-size: clamp(1.95rem, 9.5vw, 2.45rem);
    letter-spacing: 0.03em;
  }

  .refs-main {
    margin-top: -1.75rem;
    padding-bottom: 3rem;
  }

  .refs-card {
    border-radius: 14px;
  }

  .refs-cta {
    margin-top: 1.75rem;
    padding: 1.25rem 1.1rem;
  }

  .refs-cta__actions {
    width: 100%;
  }

  .refs-cta__actions .btn {
    flex: 1 1 auto;
  }
}

@media (min-width: 480px) and (max-width: 639px) {
  .refs-grid {
    grid-template-columns: 1fr;
    gap: 1.05rem;
  }

  .refs-hero {
    min-height: min(64vh, 32rem);
  }
}

@media (min-width: 640px) and (max-width: 1099px) {
  .refs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
  }

  .refs-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.6rem 1.5rem;
  }

  .refs-hero {
    min-height: min(68vh, 36rem);
  }
}

@media (min-width: 1024px) {
  .refs-hero {
    min-height: min(72vh, 40rem);
  }

  .refs-hero__content {
    padding-top: 7rem;
    padding-bottom: 4rem;
  }

  .refs-main {
    margin-top: -3rem;
    padding-bottom: 5rem;
  }
}

@media (min-width: 1100px) {
  .refs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }
}

@media (min-width: 1280px) {
  .refs-main__inner {
    max-width: 76rem;
  }

  .refs-card__name {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero__menu-btn {
    width: 48px;
    height: 48px;
  }

  .hero__menu-btn-lines {
    width: 20px;
    gap: 5.5px;
  }

  .hero__menu-btn[aria-expanded="true"] .hero__menu-btn-lines span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .hero__menu-btn[aria-expanded="true"] .hero__menu-btn-lines span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }
}

/* ═══ REDUCED MOTION ═══ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .hero__media--kenburns {
    transform: none !important;
  }
}
