/* ============================================================================
   Barkın Durmuş Construction — scroll-driven cinematic build
   ========================================================================== */

:root {
  /* Surfaces */
  --bg-charcoal: #17181c;
  --bg-deep:     #0c0c0e;
  --bg-black:    #000000;

  /* Type */
  --white:  #f6f7f9;
  --muted:  rgba(246, 247, 249, 0.60);
  --faint:  rgba(246, 247, 249, 0.40);

  /* Industrial accents */
  --silver:       #c7ccd2;
  --silver-line:  rgba(199, 204, 210, 0.16);
  --accent:       #ffb800;   /* construction yellow */
  --accent-soft:  #ffc83d;
  --accent-deep:  #e0a100;

  /* Glass */
  --glass-bg:     rgba(17, 18, 22, 0.42);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);

  --ease:   cubic-bezier(0.22, 0.61, 0.36, 1);
  --font:   'Inter', 'Helvetica Neue', 'Roboto', system-ui, -apple-system, sans-serif;

  --gutter: 7vw;
}

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

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

body {
  font-family: var(--font);
  color: var(--white);
  background:
    radial-gradient(130% 120% at 72% -10%, #1e1f24 0%, #101012 42%, #050506 72%, #000 100%);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #14140f; }

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

/* ============================================================================
   Cinematic stage: WebGL canvas + hidden scrub video + dark overlays
   ========================================================================== */
#stage, #stage2 { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: url('../assets/poster.webp') center/cover no-repeat; }
#stage2 { background-image: url('../assets/building-complete.webp'); }

#stage2 {
  opacity: 0;
  visibility: hidden;
}

#gl, #gl2 { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* stage2 vignette/grain mirrors stage1 */
.vignette2 {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.grain2 {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  pointer-events: none; opacity: 0.4;
}

/* Video decodes for the texture but is never shown directly */
.is-offscreen {
  position: fixed;
  top: 0; left: 0;
  width: 2px; height: 2px;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

/* WebGL fallback: show the video element itself, cover-fit */
.is-fallback {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; opacity: 1;
}

/* Deep dark gradient that grounds the media in the brand palette:
   left darkening for hero legibility + top/bottom falloff + vignette */
#vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4,4,6,0.86) 0%, rgba(4,4,6,0.45) 30%, rgba(4,4,6,0) 58%),
    linear-gradient(180deg, rgba(4,4,6,0.70) 0%, rgba(4,4,6,0) 16%, rgba(4,4,6,0) 70%, rgba(4,4,6,0.92) 100%),
    radial-gradient(125% 95% at 52% 48%, rgba(0,0,0,0) 52%, rgba(0,0,0,0.55) 100%);
}

/* Subtle film grain for a premium, tactile finish */
#grain {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── 3D section background canvas ── */
#bg-gl {
  position: fixed; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  display: block; pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

/* ============================================================================
   Preloader
   ========================================================================== */
#preloader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.1rem;
  background: radial-gradient(120% 120% at 50% 40%, #141417 0%, #060607 70%, #000 100%);
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}
#preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__mark { opacity: 0.9; animation: floaty 3s ease-in-out infinite; }
.preloader__bar {
  width: 140px; height: 2px; border-radius: 2px;
  background: rgba(255,255,255,0.12); overflow: hidden;
}
.preloader__bar span {
  display: block; height: 100%; width: 40%;
  background: linear-gradient(90deg, var(--silver), var(--accent));
  animation: loadSlide 1.3s var(--ease) infinite;
}
.preloader__text {
  font-size: 0.7rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--faint);
}
@keyframes loadSlide { 0% { transform: translateX(-120%); } 100% { transform: translateX(360%); } }
@keyframes floaty { 0%,100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }

/* ============================================================================
   Top navigation
   ========================================================================== */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem var(--gutter);
  background: linear-gradient(180deg,
    rgba(4,4,7,0.82) 0%,
    rgba(4,4,7,0.35) 55%,
    transparent 100%);
  transition: padding 0.45s var(--ease), background 0.45s var(--ease),
              backdrop-filter 0.45s var(--ease), box-shadow 0.45s var(--ease),
              border-color 0.45s var(--ease);
}
#topbar.is-scrolled {
  /* 3D scroll sırasında sadece padding küçülsün + hafif blur — arka plan gradient kalır */
  padding-top: 0.85rem; padding-bottom: 0.85rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Logo */
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand__mark {
  flex: none;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.7));
  transition: filter 0.3s var(--ease);
}
.brand:hover .brand__mark { filter: drop-shadow(0 2px 14px rgba(255,184,0,0.35)); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  color: #ffffff; font-weight: 700; font-size: 1rem; letter-spacing: 0.14em;
  transition: color 0.3s var(--ease);
}
.brand:hover .brand__name { color: rgba(255,255,255,0.92); }
.brand__tag {
  color: rgba(255,255,255,0.50); font-weight: 500; font-size: 0.55rem;
  letter-spacing: 0.36em; margin-top: 0.34rem;
  text-transform: uppercase;
}

/* Nav separator before CTA */
.nav {
  display: flex; align-items: center; gap: 0.1rem;
  position: relative;
}
.nav::before {
  content: '';
  position: absolute; left: -1.5rem; top: 50%; transform: translateY(-50%);
  width: 1px; height: 20px;
  background: rgba(255,255,255,0.12);
  pointer-events: none;
}

.nav__link {
  appearance: none; background: none; border: 0; cursor: pointer;
  font-family: var(--font); color: rgba(246,247,249,0.62);
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.05em;
  padding: 0.5rem 0.9rem; border-radius: 8px;
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
  text-decoration: none;
}
.nav__link:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav__link::after {
  content: ''; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 4px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(255,184,0,0.45);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover::after { transform: scaleX(0.6); opacity: 0.7; }
.nav__link.is-active { color: var(--white); }
.nav__link.is-active::after {
  transform: scaleX(1);
  box-shadow: 0 0 14px rgba(255,184,0,0.5);
  opacity: 1;
}

/* CTA button — premium pill */
.nav__cta {
  margin-left: 0.9rem;
  text-decoration: none; cursor: pointer;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.58rem 1.25rem; border-radius: 999px;
  border: 1px solid rgba(255,184,0,0.45);
  background: rgba(255,184,0,0.05);
  position: relative; overflow: hidden;
  transition: all 0.3s var(--ease);
}
.nav__cta::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: var(--accent);
  transform: translateY(100%);
  transition: transform 0.35s var(--ease);
}
.nav__cta span { position: relative; z-index: 1; }
.nav__cta:hover {
  color: #15130c;
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(255,184,0,0.3), 0 0 0 1px rgba(255,184,0,0.2);
}
.nav__cta:hover::before { transform: translateY(0); }

/* ============================================================================
   Hero (center-left)
   ========================================================================== */
#hero {
  position: fixed; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: flex-start;
  padding: 0 var(--gutter);
  pointer-events: none;
  will-change: opacity;
}
.hero__inner { max-width: 640px; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1.4rem;
}
.hero__eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}

.hero__title {
  font-weight: 800; letter-spacing: -0.035em; line-height: 0.98;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  text-shadow: 0 8px 40px rgba(0,0,0,0.55);
}
.hero__title .line { display: block; }
.hero__title .line--accent {
  background: linear-gradient(100deg, #ffffff 0%, var(--accent-soft) 60%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__title .line--label {
  font-size: clamp(1rem, 2.2vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(246,247,249,0.38);
  -webkit-text-fill-color: rgba(246,247,249,0.38);
  background: none;
  margin-top: 0.2rem;
  text-transform: uppercase;
}

.hero__sub {
  margin-top: 1.5rem; max-width: 430px;
  font-size: clamp(0.95rem, 1.5vw, 1.12rem); font-weight: 300; line-height: 1.65;
  color: var(--muted);
}

.hero__actions { margin-top: 2.2rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ============================================================================
   Buttons
   ========================================================================== */
.btn {
  pointer-events: auto; cursor: pointer;
  font-family: var(--font); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.01em;
  padding: 0.92rem 1.6rem; border-radius: 999px;
  border: 1px solid transparent; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn--primary {
  background: var(--accent); color: #15130c;
  box-shadow: 0 10px 30px rgba(255,184,0,0.22);
}
.btn--primary:hover { background: var(--accent-soft); transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255,184,0,0.32); }
.btn--ghost {
  background: rgba(255,255,255,0.04); color: var(--white);
  border-color: var(--silver-line);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ============================================================================
   Panel hint callout
   ========================================================================== */
/* ── Panel close button ── */
.panel-close {
  position: absolute; top: 0.45rem; right: 0.45rem; z-index: 12;
  width: 24px; height: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
#state-panel.is-open .panel-close, #state-panel-2.is-open .panel-close {
  opacity: 1; pointer-events: auto;
}
.panel-close:hover {
  background: rgba(255,70,70,0.18);
  border-color: rgba(255,70,70,0.3);
  color: #ff6b6b;
}

#panel-hint {
  position: fixed;
  left: calc(1.4vw + 62px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 26;
  display: flex;
  align-items: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
#panel-hint.is-visible {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}
.panel-hint__arrow {
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 9px solid rgba(255,184,0,0.7);
  flex-shrink: 0;
  animation: hintArrowPulse 1.6s ease-in-out infinite;
}
.panel-hint__bubble {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(12,12,14,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,184,0,0.25);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,184,0,0.08);
  white-space: nowrap;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
#panel-hint:hover .panel-hint__bubble {
  border-color: rgba(255,184,0,0.6);
  box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 0 18px rgba(255,184,0,0.18);
  transform: translateX(3px);
}
.panel-hint__icon { display: flex; align-items: center; flex-shrink: 0; }
.panel-hint__text {
  font-size: 0.73rem;
  line-height: 1.45;
  color: rgba(246,247,249,0.85);
  font-family: var(--font);
}
.panel-hint__text strong {
  color: var(--accent);
  font-weight: 700;
  display: block;
}
.panel-hint__text span {
  color: rgba(246,247,249,0.55);
  font-size: 0.68rem;
}
@keyframes hintArrowPulse {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  50%       { transform: translateX(-5px); opacity: 1; }
}

/* ============================================================================
   Scroll indicator (bottom-center)
   ========================================================================== */
#scroll-indicator {
  position: fixed; left: 50%; bottom: 2.2rem; transform: translateX(-50%); z-index: 20;
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
  pointer-events: none; transition: opacity 0.6s var(--ease);
}
.mouse {
  width: 24px; height: 38px; border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,0.5); position: relative;
}
.mouse__wheel {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 7px; border-radius: 2px; background: var(--accent);
  animation: wheel 1.8s var(--ease) infinite;
}
.chev {
  width: 9px; height: 9px; border-right: 1.5px solid rgba(255,255,255,0.45);
  border-bottom: 1.5px solid rgba(255,255,255,0.45); transform: rotate(45deg);
  animation: chev 1.8s var(--ease) infinite;
}
.scroll-indicator__label {
  font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--faint);
}
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 12px); } 100% { opacity: 0; } }
@keyframes chev { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ============================================================================
   Glassmorphism state panel (3-stage scroll narrative)
   ========================================================================== */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

#state-panel, #state-panel-2 {
  position: fixed; left: 1.4vw; top: 50%;
  width: 52px; border-radius: 14px; padding: 0;
  z-index: 25; overflow: hidden;
  opacity: 0; visibility: hidden;
  transform: translateY(-50%);
  cursor: pointer;
  will-change: opacity, transform, width;
  transition: width .42s cubic-bezier(.16,1,.3,1),
              border-radius .42s var(--ease),
              box-shadow .42s var(--ease);
}
#state-panel.is-open, #state-panel-2.is-open {
  width: min(290px, 24vw);
  border-radius: 20px;
  cursor: default;
}

/* ── Mode toggle ── */
.panel-mode {
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.panel-mode--companion {
  position: absolute; inset: 0; padding: 1.1rem 1.2rem;
  display: flex; align-items: center;
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
}
#state-panel.is-companion, #state-panel-2.is-companion {
  width: min(220px, 18vw);
  border-radius: 16px;
  cursor: default;
  box-shadow: 0 12px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
}

/* ── State panel 2 — mirrors panel 1 styles, positioned right side ── */
#state-panel-2, #state-panel-2-2 {
  position: fixed; right: 1.4vw; top: 50%;
  width: 52px; border-radius: 14px; padding: 0;
  z-index: 25; overflow: hidden;
  opacity: 0; visibility: hidden;
  transform: translateY(-50%);
  cursor: pointer;
  will-change: opacity, transform, width;
  transition: width .42s cubic-bezier(.16,1,.3,1),
              border-radius .42s var(--ease),
              box-shadow .42s var(--ease);
}
#state-panel-2.is-open, #state-panel-2-2.is-open {
  width: min(290px, 24vw);
  border-radius: 20px;
  cursor: default;
}
#state-panel-2.is-companion, #state-panel-2-2.is-companion {
  width: min(220px, 18vw);
  border-radius: 16px;
  cursor: default;
  box-shadow: 0 12px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
}

/* Panel 2 hint */
#panel-hint-2 {
  position: fixed;
  left: calc(1.4vw + 62px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 26;
  display: flex;
  align-items: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
#panel-hint-2.is-visible {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}
#panel-hint-2 .panel-hint__bubble {
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
#panel-hint-2:hover .panel-hint__bubble {
  border-color: rgba(255,184,0,0.6);
  box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 0 18px rgba(255,184,0,0.18);
  transform: translateX(3px);
}
#state-panel.is-companion .panel-mode--building, #state-panel-2.is-companion .panel-mode--building {
  opacity: 0; pointer-events: none; transform: translateY(-10px);
}
#state-panel.is-companion .panel-mode--companion, #state-panel-2.is-companion .panel-mode--companion {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}

/* ── Tab bar ──────────────────────────────────────────────────── */
.state-tabs {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0.55rem 0.35rem;
  border-bottom: none;
  transition: padding .3s ease;
}
#state-panel.is-open .state-tabs, #state-panel-2.is-open .state-tabs {
  flex-direction: row;
  gap: 2px;
  padding: 0.55rem 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.state-tab {
  flex: none; width: 100%; position: relative;
  appearance: none; background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 0.45rem 0.3rem;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  font-family: var(--font);
}
#state-panel.is-open .state-tab, #state-panel-2.is-open .state-tab {
  flex: 1; width: auto;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 0.55rem 0.4rem 0.5rem;
}
.state-tab:hover {
  background: rgba(255,184,0,0.04);
  border-color: rgba(255,184,0,0.12);
}
.state-tab.is-active {
  background: rgba(255,184,0,0.06);
  border-color: rgba(255,184,0,0.18);
}
.state-tab__num {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--faint);
  transition: color .4s var(--ease);
}
.state-tab.is-active .state-tab__num {
  color: var(--accent);
}
.state-tab__label {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  transition: color .4s var(--ease);
  display: none;
}
#state-panel.is-open .state-tab__label, #state-panel-2.is-open .state-tab__label { display: block; }
.state-tab.is-active .state-tab__label {
  color: var(--white);
}
.state-tab__bar {
  position: absolute; bottom: -1px; left: 20%; right: 20%;
  height: 2px; border-radius: 1px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.state-tab__fill {
  display: block; width: 0%; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  border-radius: 1px;
  transition: width .15s ease-out;
  box-shadow: 0 0 10px rgba(255,184,0,0.3);
}

/* ── Building mode ── */
.state__media {
  position: relative; width: 100%; height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  transition: height .38s cubic-bezier(.16,1,.3,1),
              opacity .25s ease;
}
#state-panel.is-open .state__media, #state-panel-2.is-open .state__media {
  height: 140px;
  opacity: 1;
  transition: height .42s cubic-bezier(.16,1,.3,1) .08s,
              opacity .3s ease .2s;
}
.state__img-wrap {
  position: absolute; inset: 0;
}
.state__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.55))
          drop-shadow(0 0 22px rgba(255,184,0,0.16));
  transition: opacity .7s var(--ease);
}
#state-img-complete { opacity: 0; }

.state__media-glow {
  position: absolute; inset: -20%; z-index: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(255,184,0,0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Body ── */
.state__body {
  position: relative;
  height: 0;
  overflow: hidden;
  padding: 0 1.1rem;
  opacity: 0;
  transition: height .42s cubic-bezier(.16,1,.3,1),
              opacity .28s ease,
              padding .3s ease;
}
#state-panel.is-open .state__body, #state-panel-2.is-open .state__body {
  height: 210px;
  padding: 0.9rem 1.1rem;
  opacity: 1;
  transition: height .42s cubic-bezier(.16,1,.3,1) .1s,
              opacity .32s ease .22s,
              padding .3s ease;
}
.state__layer {
  position: absolute;
  left: 1.1rem; right: 1.1rem; top: 0.7rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.state__layer.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.state__num {
  display: inline-flex; align-items: baseline; gap: 0.15rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.state__num-total {
  font-size: 0.62rem; font-weight: 500;
  color: var(--faint);
}
.state__title {
  font-size: 1rem; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6rem;
  color: var(--white);
}
.state__text {
  font-size: 0.71rem; font-weight: 300; line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.state__specs {
  list-style: none; margin: 0.9rem 0 0;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.state__specs li {
  font-size: 0.72rem; color: var(--silver);
  padding-left: 1rem; position: relative;
  opacity: 0;
  transform: translateX(-4px);
}
.state__layer.is-visible .state__specs li {
  animation: spec-fade-in .5s var(--ease) forwards;
}
.state__specs li:nth-child(1) { animation-delay: 0s; }
.state__specs li:nth-child(2) { animation-delay: .1s; }
.state__specs li:nth-child(3) { animation-delay: .2s; }
@keyframes spec-fade-in {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.state__specs li::before {
  content: ''; position: absolute; left: 0; top: 0.38em;
  width: 5px; height: 5px; background: var(--accent); transform: rotate(45deg);
  border-radius: 1px;
}

/* ── Progress track ── */
.state__progress-track {
  width: 100%; height: 2px;
  background: rgba(255,255,255,0.04);
}
.state__progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft, #ffd966));
  transition: width .12s linear;
  box-shadow: 0 0 12px rgba(255,184,0,0.25);
}

/* ── Companion mode ── */
.panel-companion {
  display: flex; align-items: center; gap: .8rem;
  width: 100%;
}
.companion__icon {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,184,0,.12);
  border: 1px solid rgba(255,184,0,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  transition: background .4s var(--ease), transform .5s var(--ease);
}
.panel-companion:hover .companion__icon {
  background: rgba(255,184,0,.2);
  transform: rotate(-8deg) scale(1.05);
}
.companion__body {
  flex: 1; min-width: 0;
}
.companion__label {
  font-size: .58rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: .18rem;
}
.companion__desc {
  font-size: .82rem; font-weight: 400; line-height: 1.4;
  color: var(--silver); margin: 0;
  transition: opacity .35s var(--ease);
}

/* Caption progress bar — thin line at panel bottom */
.companion__caption-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: rgba(255,255,255,.05); border-radius: 0 0 20px 20px;
  overflow: hidden;
}
.companion__caption-fill {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 8px rgba(255,184,0,.3);
}

/* ============================================================================
   Section dot indicators
   ========================================================================== */
#dots {
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; flex-direction: column; gap: 1rem; align-items: center;
}
.dot {
  appearance: none; border: 0; background: none; cursor: pointer; padding: 6px;
  position: relative; display: flex; align-items: center;
}
.dot span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.28); transition: all 0.35s var(--ease);
}
.dot:hover span { background: rgba(255,255,255,0.6); }
.dot.is-active span { background: var(--accent); box-shadow: 0 0 12px var(--accent); transform: scale(1.4); }
.dot::after {
  content: attr(data-label);
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint);
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
}
.dot:hover::after { opacity: 1; }

/* ============================================================================
   Outro / CTA
   ========================================================================== */
#outro {
  position: fixed; inset: 0; z-index: 20;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 1.2rem; padding: 0 var(--gutter);
  opacity: 0; visibility: hidden; pointer-events: none;
  will-change: opacity, transform;
}
.outro__eyebrow { font-size: 0.7rem; letter-spacing: 0.3em; color: var(--silver); }
.outro__title { font-size: clamp(2.4rem, 6.5vw, 5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.outro__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: center; margin-top: 0.6rem; }
.outro__foot { margin-top: 1.4rem; font-size: 0.74rem; color: var(--faint); letter-spacing: 0.04em; }

/* ============================================================================
   Edge progress bar (maps to video playback progress)
   ========================================================================== */
#progress-bar {
  position: fixed; top: 0; right: 0; bottom: 0; width: 3px; z-index: 50;
  background: rgba(255,255,255,0.07);
}
#progress-bar-fill {
  display: block; width: 100%; height: 100%; transform-origin: top; transform: scaleY(0);
  background: linear-gradient(180deg, var(--silver) 0%, var(--accent) 100%);
  box-shadow: 0 0 14px rgba(255,184,0,0.4);
}

/* ============================================================================
   Scroll track (provides scroll distance for the slow, heavy scrub)
   ========================================================================== */
#scroll-track  { position: relative; width: 1px; height: 150vh; z-index: 0; pointer-events: none; }
#scroll-track-2 { position: relative; width: 1px; height: 150vh; z-index: 0; pointer-events: none; }

/* ============================================================================
   Responsive
   ========================================================================== */

/* ── Tablet (900px altı) ── */
@media (max-width: 900px) {
  :root { --gutter: 5vw; }
  #state-panel   { width: 48px; left: 2vw; }
  #state-panel-2 { width: 48px; right: 2vw; }
  #state-panel.is-open   { width: min(270px, 44vw); }
  #state-panel-2.is-open { width: min(270px, 44vw); }
  #state-panel.is-companion, #state-panel-2.is-companion { width: min(220px, 30vw); }
  .nav__link { padding: 0.4rem 0.6rem; font-size: 0.74rem; }
}

/* ── Hamburger menü eşiği (768px) ── */
@media (max-width: 768px) {
  :root { --gutter: 5vw; }
  .nav__link   { display: none; }
  .nav::before { display: none; }
  .nav__hamburger { display: flex; }
}

/* ── Mobil (680px altı) ── */
@media (max-width: 680px) {
  :root { --gutter: 4.5vw; }

  /* ── Topbar ── */
  #topbar      { padding: 0.82rem 4.5vw; }
  .brand__mark { width: 24px; height: 24px; }
  .brand__name { font-size: 0.82rem; }
  .brand__tag  { font-size: 0.46rem; letter-spacing: 0.28em; }
  .nav__cta    { margin-left: 0.4rem; padding: 0.46rem 0.85rem; font-size: 0.66rem; white-space: nowrap; }
  .nav__hamburger { display: flex; }

  /* ── Hero: full-screen, içerik topbar + bottom-nav arasında ortalı ── */
  #hero {
    align-items: center;
    justify-content: flex-start;
    /* topbar (~56px) ve bottom-nav (~60px + safe-area) için iç boşluk */
    padding: 4.5rem 4.5vw calc(5rem + env(safe-area-inset-bottom, 0px));
  }
  .hero__inner   { max-width: 100%; }
  .hero__eyebrow { font-size: 0.56rem; letter-spacing: 0.18em; margin-bottom: 0.9rem; }
  .hero__title   { font-size: clamp(1.9rem, 8.5vw, 3rem); }
  .hero__sub {
    display: block;
    font-size: 0.84rem;
    margin-top: 1rem;
    max-width: 100%;
    line-height: 1.6;
  }
  .hero__actions          { margin-top: 1.4rem; gap: 0.6rem; flex-wrap: wrap; }
  .hero__actions .btn     { padding: 0.7rem 1.1rem; font-size: 0.77rem; }
  .hero__actions .btn--ghost { display: inline-flex; }

  /* ── State panel: kompakt alt kart (bottom-nav'ın ÜSTÜNDE, z-index 65 > 60) ──
     Mobilde panel; büyük görsel + uzun gövde yerine masaüstündeki "hint"
     baloncuğu gibi sade ve kompakt bir bilgi kartına dönüşür: ince yatay sekme
     şeridi + başlık + kısa açıklama. Görsel ve teknik liste gizlenir, böylece
     ekranın çok küçük bir kısmını kaplar (~165px). */
  #state-panel, #state-panel-2 {
    left: 3.5vw; right: 3.5vw;
    bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px));
    top: auto;
    width: auto;
    transform: none;
    border-radius: 16px;
    max-height: none;
    overflow: hidden;
    z-index: 65;                   /* bottom-nav (60) ve progress-bar (50) üstünde */
    box-shadow: 0 16px 44px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.07);
  }
  #state-panel.is-open, #state-panel-2.is-open { width: auto; border-radius: 16px; z-index: 65; }
  #state-panel.is-companion, #state-panel-2.is-companion { width: auto; z-index: 65; }

  /* Sekmeler: kapalıyken bile her zaman yatay ince şerit */
  .state-tabs,
  #state-panel.is-open .state-tabs, #state-panel-2.is-open .state-tabs {
    flex-direction: row; gap: 4px;
    padding: 0.4rem 0.45rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .state-tab,
  #state-panel.is-open .state-tab, #state-panel-2.is-open .state-tab {
    flex: 1; width: auto;
    padding: 0.34rem 0.25rem 0.42rem;
    border-radius: 9px 9px 0 0;
  }
  .state-tab__num   { font-size: 0.5rem; }
  .state-tab__label,
  #state-panel.is-open .state-tab__label, #state-panel-2.is-open .state-tab__label {
    display: block; font-size: 0.5rem;
  }

  /* Görseli ve teknik listeyi mobilde gizle → kompakt, hint benzeri kart */
  .panel-mode--building .state__media,
  #state-panel.is-open .state__media, #state-panel-2.is-open .state__media {
    display: none; height: 0;
  }
  .panel-mode--building .state__specs { display: none; }

  /* Gövde: yalnızca numara + başlık + kısa açıklama */
  .panel-mode--building .state__body { min-height: 0; }
  #state-panel.is-open .state__body,
  #state-panel-2.is-open .state__body { height: 128px; padding: 0.7rem 0.95rem 0.85rem; }
  .panel-mode--building .state__layer { left: 0.95rem; right: 0.95rem; top: 0.7rem; }
  .panel-mode--building .state__num   { font-size: 0.62rem; margin-bottom: 0.3rem; }
  .panel-mode--building .state__title { font-size: 0.98rem; margin-bottom: 0.42rem; }
  .panel-mode--building .state__text  { font-size: 0.74rem; line-height: 1.5; }
  .panel-mode--building .state__progress-track { display: block; }

  /* Companion mode */
  .panel-mode--companion { position: absolute; inset: 0; padding: 0.8rem 0.9rem; }
  .companion__icon  { width: 32px; height: 32px; }
  .companion__label { font-size: 0.48rem; }
  .companion__desc  { font-size: 0.74rem; }

  /* ── Panel hint: mobilde gizle ── */
  #panel-hint, #panel-hint-2 { display: none !important; }

  /* ── Navigation dots: bottom-nav navigasyonu üstlendiği için gizle ── */
  #dots { display: none !important; }

  /* ── Scroll indicator: bottom-nav üstünde ── */
  #scroll-indicator { bottom: calc(5.2rem + env(safe-area-inset-bottom, 0px)); }

  /* ── Progress bar: sol kenara taşı (sağda floating-cta var) ── */
  #progress-bar { width: 2px; right: auto; left: 0; }

  /* ── Outro ── */
  #outro {
    padding: 4.5rem 4.5vw calc(5rem + env(safe-area-inset-bottom, 0px));
    gap: 0.8rem;
  }
  .outro__title   { font-size: clamp(1.75rem, 7.5vw, 2.8rem); }
  .outro__actions { flex-direction: column; align-items: center; gap: 0.65rem; }
  .outro__actions .btn { width: 100%; max-width: 280px; justify-content: center; }
}

/* ── Dar telefonlar: topbar CTA'sını gizle ──────────────────────────────────
   "Proje Başlat" pill'i + marka + hamburger dar ekranlarda (≤480px) sığmıyor ve
   hamburger ekrandan taşıyordu. CTA mobil menüde, alt navigasyonda ve floating
   CTA'da zaten mevcut; burada gizleyince marka + hamburger rahatça sığar. */
@media (max-width: 480px) {
  .nav__cta { display: none; }
}

/* ── Küçük telefonlar (≤420px) ── */
@media (max-width: 420px) {
  .hero__title   { font-size: clamp(1.65rem, 9.5vw, 2.4rem); }
  .hero__eyebrow { font-size: 0.5rem; }
  .hero__sub     { font-size: 0.8rem; }
  .nav__cta      { padding: 0.42rem 0.75rem; font-size: 0.62rem; }
  .brand__tag    { font-size: 0.42rem; letter-spacing: 0.22em; }
  .hero__actions .btn { padding: 0.65rem 1rem; font-size: 0.74rem; }
}

/* ── Kısa ekranlar (landscape telefon) ── */
@media (max-height: 520px) and (orientation: landscape) {
  #hero {
    align-items: flex-start;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .hero__title { font-size: clamp(1.4rem, 4.5vw, 2rem); }
  .hero__sub   { font-size: 0.76rem; margin-top: 0.5rem; }
  .hero__actions .btn { padding: 0.58rem 1rem; font-size: 0.74rem; }
  #state-panel, #state-panel-2 {
    bottom: 2.5rem;
    max-height: 75vh;
    z-index: 65;
  }
  #scroll-indicator { display: none; }
}

/* ============================================================================
   is-content state — hide 3D-only overlays when in content sections
   ========================================================================== */
body.is-content #dots,
body.is-content #scroll-indicator,
body.is-content #progress-bar {
  opacity: 0 !important;
  transition: opacity 0.7s ease;
}
body.is-content #scroll-indicator { visibility: hidden !important; pointer-events: none !important; }
body.is-content #dots         { pointer-events: none !important; }

/* ── Topbar solid black in content sections ─────────────────────────────── */
body.is-content #topbar {
  background: rgba(5,5,8,1) !important;
  backdrop-filter: blur(24px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%) !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  box-shadow: 0 2px 24px rgba(0,0,0,0.55) !important;
}

/* Form success message */
.form-success {
  display: none; align-items: center; gap: 0.9rem;
  padding: 1.2rem 1.4rem;
  background: rgba(255,184,0,0.08);
  border: 1px solid rgba(255,184,0,0.28);
  border-radius: 10px;
  color: var(--accent);
}
.form-success p { font-size: 0.88rem; line-height: 1.55; }

/* ============================================================================
   Mobile hamburger menu
   ========================================================================== */
.nav__hamburger {
  display: none;
  appearance: none; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; width: 38px; height: 38px; padding: 4px;
  margin-left: 0.5rem; border-radius: 9px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav__hamburger:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.2); }
.nav__hamburger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), width 0.3s var(--ease);
  transform-origin: center;
}
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav overlay */
#mobile-nav {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4,4,6,0.97);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  display: flex; flex-direction: column;
  justify-content: flex-start; align-items: flex-start;
  /* Scroll instead of clipping when the links don't fit (landscape / short phones).
     Inner uses margin:auto to stay centred when there IS room. */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
#mobile-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

/* Top-right close button. position:fixed (the overlay's backdrop-filter makes it
   the containing block) keeps it pinned while the link list scrolls. */
.mobile-nav__close {
  position: fixed;
  top: calc(0.95rem + env(safe-area-inset-top, 0px));
  right: calc(0.95rem + env(safe-area-inset-right, 0px));
  z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  appearance: none; cursor: pointer;
  color: var(--white);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  transition: background .3s var(--ease), border-color .3s var(--ease),
              color .3s var(--ease), transform .45s var(--ease);
}
.mobile-nav__close:hover,
.mobile-nav__close:focus-visible {
  background: rgba(255,184,0,0.14);
  border-color: rgba(255,184,0,0.45);
  color: var(--accent);
  transform: rotate(90deg);
  outline: none;
}

.mobile-nav__inner {
  display: flex; flex-direction: column;
  width: 100%;
  margin: auto 0;            /* vertical-centre when there's room, scroll (no top clip) when not */
  padding: calc(5rem + env(safe-area-inset-top, 0px)) 8vw calc(4rem + env(safe-area-inset-bottom, 0px));
  gap: 0;
}
.mobile-nav__links { display: flex; flex-direction: column; }

.mobile-nav__link {
  display: block; width: 100%;
  font-size: clamp(1.8rem, 7.5vw, 3rem); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.2;
  color: rgba(255,255,255,0.32);
  text-decoration: none; background: none; border: 0; cursor: pointer;
  text-align: left; font-family: var(--font);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  opacity: 0; transform: translateX(-28px);
  transition: color 0.3s var(--ease), opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.mobile-nav__link.is-visible { opacity: 1; transform: translateX(0); }
.mobile-nav__link:hover, .mobile-nav__link:focus-visible { color: var(--accent); outline: none; }
.mobile-nav__link:last-child { border-bottom: 0; }

.mobile-nav__footer {
  margin-top: 2.8rem;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.mobile-nav__footer a {
  font-size: 0.86rem; color: var(--muted); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: color 0.3s var(--ease);
}
.mobile-nav__footer a:hover { color: var(--white); }
.mobile-nav__cta.btn { margin-top: 1.2rem; align-self: flex-start; }

/* Show the hamburger ≤768px. This MUST live AFTER the base `.nav__hamburger
   { display:none }` above: both have equal specificity, so source order decides
   — which is why it can't be folded into the earlier Responsive @media block. */
@media (max-width: 768px) {
  .nav__hamburger { display: flex; }
}

/* ============================================================================
   Floating CTA (WhatsApp + Call speed-dial)
   ========================================================================== */
.floating-cta {
  position: fixed; right: 1.4rem; bottom: 1.8rem; z-index: 80;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.55rem;
  pointer-events: none; /* children opt in */
}
.floating-cta__trigger,
.floating-cta__menu { pointer-events: auto; }

.floating-cta__trigger {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: #14130c;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(255,184,0,0.38);
  position: relative; z-index: 2;
  transition: transform 0.4s var(--ease), background 0.3s, box-shadow 0.3s;
}
.floating-cta__trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 38px rgba(255,184,0,0.55);
}
.floating-cta__trigger.is-open {
  transform: rotate(135deg);
  background: var(--accent-soft);
}

.floating-cta__menu {
  display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-end;
  opacity: 0; visibility: hidden;
  transform: translateY(12px) scale(0.95);
  transition: opacity 0.3s var(--ease), visibility 0.3s, transform 0.3s var(--ease);
}
.floating-cta__menu.is-open {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}
.floating-cta__item {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.58rem 1.1rem; border-radius: 999px;
  font-family: var(--font); font-size: 0.82rem; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.floating-cta__item:hover { transform: translateX(-3px); }
.floating-cta__item--whatsapp {
  background: rgba(37,211,102,0.16); color: #4cdf80;
  border-color: rgba(37,211,102,0.28);
}
.floating-cta__item--whatsapp:hover { box-shadow: 0 6px 22px rgba(37,211,102,0.25); }
.floating-cta__item--call {
  background: rgba(255,184,0,0.12); color: var(--accent);
  border-color: rgba(255,184,0,0.25);
}
.floating-cta__item--call:hover { box-shadow: 0 6px 22px rgba(255,184,0,0.28); }

@media (max-width: 680px) {
  /* bottom-nav yüksekliği (~60px) + güvenli boşluk */
  .floating-cta { bottom: calc(4.8rem + env(safe-area-inset-bottom, 0px)); right: 1rem; }
  .floating-cta__trigger { width: 44px; height: 44px; }
  .floating-cta__item { font-size: 0.78rem; padding: 0.5rem 0.95rem; }
}

/* ============================================================================
   Cookie / KVKK consent banner
   ========================================================================== */
.cookie-banner {
  position: fixed; bottom: -160px; left: 50%;
  transform: translateX(-50%);
  z-index: 300; width: min(580px, calc(100vw - 2.4rem));
  border-radius: 16px; padding: 1.2rem 1.4rem;
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  opacity: 0;
  transition: bottom 0.55s var(--ease), opacity 0.55s var(--ease);
}
.cookie-banner.is-visible { bottom: 1.4rem; opacity: 1; }

.cookie-banner__body {
  display: flex; align-items: flex-start; gap: 0.75rem;
  flex: 1; min-width: 0;
  font-size: 0.82rem; color: var(--muted); line-height: 1.6;
}
.cookie-banner__body i  { color: var(--accent); flex: none; margin-top: 1px; }
.cookie-banner__body a  { color: var(--accent); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 0.6rem; flex-shrink: 0; }

.cookie-btn {
  appearance: none; border-radius: 999px; cursor: pointer;
  font-family: var(--font); font-size: 0.78rem; font-weight: 600;
  padding: 0.48rem 1.1rem;
  transition: all 0.3s var(--ease);
}
.cookie-btn--reject {
  background: none; border: 1px solid var(--silver-line); color: var(--muted);
}
.cookie-btn--reject:hover { border-color: rgba(255,255,255,0.3); color: var(--white); }
.cookie-btn--accept {
  background: var(--accent); border: 1px solid var(--accent); color: #14130c;
}
.cookie-btn--accept:hover { background: var(--accent-soft); }

/* Stack + lift above the bottom-nav for the whole range the bottom-nav is shown
   (≤680px), not just ≤600px — otherwise it overlaps the bar on 601–680px phones. */
@media (max-width: 680px) {
  .cookie-banner { flex-direction: column; bottom: -200px; }
  /* bottom-nav üstünde göster */
  .cookie-banner.is-visible { bottom: calc(4.8rem + env(safe-area-inset-bottom, 0px) + 0.5rem); }
}

/* ============================================================================
   Bottom navigation bar (mobile only)
   ========================================================================== */
#bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: rgba(6,6,10,0.96);
  backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0.45rem 0 max(0.45rem, env(safe-area-inset-bottom, 0px));
  flex-direction: row; justify-content: space-around; align-items: center;
}
/* Bottom-nav is a phone-only bar. It must share the SAME breakpoint (≤680px) as
   every layout offset that compensates for it — hero/reel/state-panel/floating-cta
   padding and JS `isMobile` (ui.js) are all 680px. A separate 768px rule used to
   show the bar on 681–768px tablets where none of those offsets applied, so it
   overlapped the floating-CTA and reel controls. Tablets get the hamburger menu. */
@media (max-width: 680px) {
  #bottom-nav { display: flex; }
  /* safe-area uyumlu content padding */
  #content { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
.bottom-nav__item {
  appearance: none; background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 0.18rem;
  padding: 0.28rem 0.7rem; border-radius: 10px;
  color: rgba(255,255,255,0.38);
  text-decoration: none; font-family: var(--font);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
  min-width: 48px;
}
.bottom-nav__item span {
  font-size: 0.56rem; font-weight: 600; letter-spacing: 0.04em;
}
.bottom-nav__item:hover,
.bottom-nav__item.is-active { color: var(--accent); }
.bottom-nav__item.is-active { background: rgba(255,184,0,0.08); }

/* ============================================================================
   Print stylesheet
   ========================================================================== */
@media print {
  #stage, #bg-gl, #state-panel, #state-panel-2, #topbar, #preloader, #scroll-indicator, #dots, #progress-bar, #scroll-track, .floating-cta, .cookie-banner, #mobile-nav, #bottom-nav, .reel-down, .reel-counter, .reel-pagination, .p-nav, .testimonials-nav, #cursor-ring, #cursor-dot, #project-reel, #partners, #showcase { display: none !important; }

  body { background: #fff !important; color: #111 !important; font-size: 11pt; }
  #content { position: static !important; z-index: auto !important; padding-bottom: 0 !important; }
  .section-inner { max-width: 100% !important; padding: 1.2cm 1.8cm !important; }
  .section-title, h1, h2, h3 { color: #111 !important; -webkit-text-fill-color: #111 !important; }
  .section-eyebrow { color: #c8860a !important; }
  .stat-num { color: #c8860a !important; }
  .svc-card, .process-step, .tcard { border: 1px solid #ddd !important; background: #fafafa !important; color: #111 !important; }
  .svc-title, .step-title, .tcard__name { color: #111 !important; }
  .svc-desc, .step-desc, .tcard__quote { color: #444 !important; }
  a { color: #c8860a !important; }
  .contact-form { border: 1px solid #ddd !important; background: #fff !important; }
  .form-input, .form-select, .form-textarea { border: 1px solid #ccc !important; background: #f8f8f8 !important; color: #111 !important; }
}

/* ============================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .mouse__wheel, .chev, .preloader__bar span, .preloader__mark { animation: none; }
  * { scroll-behavior: auto !important; }
}
