:root {
  --bg: #0B0B0D;
  --ink: #D6D2CF;
  --muted: #7A8A94;   /* koyu zeminde 5.2:1 — küçük mono numaralar WCAG AA'yı geçer (eski #60707A 3.8:1) */
  --accent: #FF5A00;
  --border: rgba(214, 210, 207, 0.15);
  --border-strong: rgba(214, 210, 207, 0.12);
  --overlay: rgba(11, 11, 13, 0.62);
  /* Arka plan sahnesinin paleti (assets/js/scene/scene.js okur). Değiştirince window'a 'civeron:theme' gönderin. */
  --scene-bg: #0B0B0D;          /* gökyüzü ve sis */
  --scene-horizon: #17161a;     /* ufuk bandı, cam yansıması */
  --scene-line: #D6D2CF;        /* çizgiler: taşıyıcı sistem, pafta */
  --scene-face: #55545a;        /* beton (albedo): güneş ve gölgeyle aydınlanır */
  --scene-accent: #FF5A00;      /* yeni dökülen eleman, vurgular, donatı */
  --scene-accent-hot: #FF8A3D;  /* tarama, yük akışı, işaret ışığı (derin turuncu: parıltıda sarı-beyaza kaçmasın) */
}

* { box-sizing: border-box; }

html { color-scheme: dark; }                       /* yerel kontroller, scrollbar, form widget'ları koyu */
::selection { background: rgba(255, 90, 0, 0.35); color: var(--ink-bright, #ebe8e5); }
html { caret-color: var(--accent); scrollbar-color: rgba(214, 210, 207, 0.3) transparent; scrollbar-width: thin; -webkit-tap-highlight-color: transparent; }   /* basış karşılığı: press.js + .is-lit, iOS'un gri kutusu değil */
/* Klavye odağı: kendi halkası olmayan her etkileşimli öğe için markalı halka (asla kaldırılmaz) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--bg);
  height: 100%;
}

/* body is shell-owned, here and nowhere else, so the overlap gate stays at 0. */
body {
  font-family: Manrope, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
}

/* ---------- opening loader ---------- */

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #d6d2cf;
}

.loading-screen__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.loading-screen__logo {
  display: block;
  width: 42px;
  height: auto;
}

.loading-screen__progress {
  position: relative;
  width: min(420px, 72vw);
  height: 3px;
  overflow: hidden;
  background: rgba(11, 11, 13, 0.2);
  transition: opacity 120ms linear;
}

.loading-screen__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: #f15a24;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 80ms linear;
  will-change: transform;
}

.loading-screen__wipe {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #000;
  clip-path: circle(0 at 50% 50%);
  transition: clip-path 650ms cubic-bezier(0.65, 0, 0.35, 1);   /* loader.js wipeDuration ile aynı */
  will-change: clip-path;
}

.loading-screen--wiping .loading-screen__wipe {
  clip-path: circle(150vmax at 50% 50%);
}

.loading-screen--black {
  background: #000;
}

.loading-screen--black .loading-screen__progress {
  opacity: 0;
}

  html.motion-reduced .loading-screen__bar, html.motion-reduced .loading-screen__wipe, html.motion-reduced .loading-screen__progress {
    transition: none;
  }

a { color: var(--accent); text-decoration: none; }
a.is-lit { color: var(--ink); }
@media (hover: hover) { a:hover { color: var(--ink); } }
button { font-family: inherit; }

@keyframes civBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(4px); opacity: 1; }
}

.root {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
}

/* ---------- header ---------- */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: calc(72px + env(safe-area-inset-top, 0px));
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: env(safe-area-inset-top, 0px) 6vw 0;   /* çentik / Dynamic Island altında kalmaz; alan site rengiyle dolar */
  background: var(--bg);
  background-color: #000000;
}

.header__brand { display: flex; align-items: center; gap: 20px; }

/* Dil seçici: marka yazısının yanında, ince bir çizgiyle ayrılmış iki kısa etiket. Seçili dil parlak, diğeri sessiz.
   Dar telefonda başlıkta yer yok: seçici menüde (sidebar__top) durur. */
.lang { display: flex; align-items: center; gap: 2px; }
.header .lang { margin-left: 22px; padding-left: 22px; border-left: 1px solid rgba(214, 210, 207, 0.22); height: 18px; }
.lang__opt {
  min-width: 36px; min-height: 44px; padding: 0 6px; margin: -13px 0;
  background: none; border: 0; cursor: pointer;
  font: 600 11px/1 Manrope, sans-serif; letter-spacing: 0.14em;
  color: rgba(235, 232, 229, 0.62);
  transition: color 160ms ease;
}
.lang__opt.is-lit { color: var(--ink-bright, #ebe8e5); }
@media (hover: hover) { .lang__opt:hover { color: var(--ink-bright, #ebe8e5); } }
.lang__opt[aria-pressed="true"] { color: var(--ink-bright, #ebe8e5); cursor: default; }
.lang__opt[aria-pressed="true"]::after { content: ""; display: block; height: 1px; margin: 5px auto -6px; width: 12px; background: var(--accent); }
.lang__opt:focus-visible { outline: 2px solid var(--accent); outline-offset: -8px; }
.lang__sep { width: 1px; height: 10px; background: rgba(214, 210, 207, 0.25); }
.lang--sidebar { margin-left: auto; margin-right: 14px; }
@media (max-width: 599px) { .header .lang { display: none; } }

.icon-btn,
.wordmark-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.icon-btn img,
.wordmark-btn img { display: block; height: 15px; width: auto; }
/* 44×44 dokunma alanı: görsel 15px kalır, alan görünmez padding ile büyür */
.icon-btn { padding: 15px 14px; margin: -15px -14px; min-width: 44px; min-height: 44px; justify-content: center; }
.wordmark-btn { padding: 15px 10px; margin: -15px -10px; min-height: 44px; }

/* ---------- sidebar ----------
   Modal görev: karartma + sağ kenarı ışıklı yarı saydam koyu materyal (blur 24). Açılış ease-out (gelen yüzey yavaşlar),
   kapanış aynı eğrinin aynası (0.8,0,0.8,0.3). İçerik açılışta kademeli (80 + 40·i ms), kapanışta panelle birlikte gider.
   Sürükleyerek kapatma: sidebar.js — 1:1 takip, lastik kenar, hızla karar, kritik sönümlü yay (is-dragging: geçiş kapalı). */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 960;   /* çerez bandının (950) üstünde: menü altbilgisi bantla örtülmesin */
  background: rgba(11, 11, 13, 0.55);
  opacity: 0;
  pointer-events: none;
  /* Kapalıyken yalnız saydam değil, gizli: iOS Safari üst ve alt kenardaki sabit öğenin rengiyle çentik ve araç çubuğu
     şeridini boyar; görünmez ama ekranı kaplayan bu katman başlığın siyahını örtüyor, şerit yükleme ekranının açık
     grisinde kalıyordu. */
  visibility: hidden;
  transition: opacity 320ms ease, visibility 0s linear 320ms;
}
.sidebar-backdrop.is-open { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity 320ms ease; }
.sidebar-backdrop.is-dragging { visibility: visible; transition: none; }

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 961;
  width: min(380px, 86vw);
  background: rgba(11, 11, 13, 0.82);
  border-right: 1px solid rgba(214, 210, 207, 0.14);
  box-shadow: inset -1px 0 0 rgba(214, 210, 207, 0.04), 30px 0 90px -40px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: calc(26px + env(safe-area-inset-top, 0px)) 36px calc(32px + env(safe-area-inset-bottom, 0px)) max(40px, env(safe-area-inset-left, 0px));
  transform: translate3d(-100%, 0, 0);
  transition: transform 280ms cubic-bezier(0.8, 0, 0.8, 0.3);   /* kapanış: açılışın aynası */
  will-change: transform;
  touch-action: pan-y;
}
.sidebar.is-open { backdrop-filter: blur(24px) saturate(1.2); -webkit-backdrop-filter: blur(24px) saturate(1.2); transform: translate3d(0, 0, 0); transition: transform 360ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.sidebar.is-dragging { transition: none; }

.sidebar__top { display: flex; align-items: center; justify-content: space-between; }
.sidebar__mark { display: block; height: 18px; width: auto; }

.sidebar__close {
  position: relative; width: 44px; height: 44px; margin-right: -14px;
  background: none; border: 0; padding: 0; cursor: pointer; flex: none;
  transition: transform 100ms ease-out;
}
.sidebar__close span {
  position: absolute; top: 50%; left: 50%; width: 16px; height: 1px; background: var(--ink);
  transition: background-color 160ms ease, transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sidebar__close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.sidebar__close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
.sidebar__close.is-lit span { background: var(--accent); }
@media (hover: hover) { .sidebar__close:hover span { background: var(--accent); } }
.sidebar__close.is-lit span:first-child { transform: translate(-50%, -50%) rotate(45deg) scaleX(1.15); }
@media (hover: hover) { .sidebar__close:hover span:first-child { transform: translate(-50%, -50%) rotate(45deg) scaleX(1.15); } }
.sidebar__close.is-lit span:last-child { transform: translate(-50%, -50%) rotate(-45deg) scaleX(1.15); }
@media (hover: hover) { .sidebar__close:hover span:last-child { transform: translate(-50%, -50%) rotate(-45deg) scaleX(1.15); } }
.sidebar__close:active { transform: scale(0.9); }

.sidebar__nav { flex: 1 1 auto; min-height: 0; margin-top: 40px; overflow-y: auto; display: flex; flex-direction: column; margin-right: -8px; padding-right: 8px; }

/* Satır: sol turuncu sekme (merkezden büyür) · mono numara · ad · ok. Geçerli slayt aria-current ile işaretli. */
.sidebar__link {
  position: relative;
  display: grid; grid-template-columns: 30px 1fr auto; align-items: baseline; column-gap: 8px;
  background: none; border: 0; border-top: 1px solid var(--border);
  padding: 15px 4px 15px 14px; min-height: 48px;
  cursor: pointer; color: var(--ink); text-align: left;
  font: 600 13px/1 Manrope, sans-serif; letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 160ms ease, background-color 160ms ease, transform 100ms ease-out;
}
.sidebar__nav .sidebar__link:last-child { border-bottom: 1px solid var(--border); }
.sidebar__link::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 2px; height: 14px; transform: translateY(-50%) scaleY(0);
  background: var(--accent); transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sidebar__link-num { font: 600 12px/1 Manrope, sans-serif; letter-spacing: 0.06em; color: var(--muted); font-variant-numeric: tabular-nums; transition: color 160ms ease; }
.sidebar__link-t { min-width: 0; }
.sidebar__link-arrow { font-weight: 600; color: var(--accent); opacity: 0; transform: translateX(-4px); transition: opacity 160ms ease, transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.sidebar__link:focus-visible, .sidebar__link.is-lit { color: var(--ink-bright, #ebe8e5); background: rgba(214, 210, 207, 0.04); outline: none; }
@media (hover: hover) { .sidebar__link:hover { color: var(--ink-bright, #ebe8e5); background: rgba(214, 210, 207, 0.04); outline: none; } }
.sidebar__link:focus-visible::before, .sidebar__link.is-lit::before { transform: translateY(-50%) scaleY(1); }
@media (hover: hover) { .sidebar__link:hover::before { transform: translateY(-50%) scaleY(1); } }
.sidebar__link:focus-visible .sidebar__link-num, .sidebar__link.is-lit .sidebar__link-num { color: var(--accent); }
@media (hover: hover) { .sidebar__link:hover .sidebar__link-num { color: var(--accent); } }
.sidebar__link:focus-visible .sidebar__link-arrow, .sidebar__link.is-lit .sidebar__link-arrow { opacity: 1; transform: none; }
@media (hover: hover) { .sidebar__link:hover .sidebar__link-arrow { opacity: 1; transform: none; } }
.sidebar__link:active { transform: scale(0.985); }
.sidebar__link[aria-current="page"] { color: var(--ink-bright, #ebe8e5); }
.sidebar__link[aria-current="page"]::before { height: 18px; transform: translateY(-50%) scaleY(1); }
/* Kısa ekran (telefonda Safari çubuklarıyla ~714 pt): dokuz bölüm kaydırmadan sığsın; 09 gizli kalıyordu. Dokunma alanı 44 pt'nin altına inmez. */
@media (max-height: 760px) {
  .sidebar { padding-top: calc(18px + env(safe-area-inset-top, 0px)); }
  .sidebar__nav { margin-top: 22px; }
  .sidebar__link { padding-top: 12px; padding-bottom: 12px; min-height: 44px; }
}
.sidebar__link[aria-current="page"] .sidebar__link-num { color: var(--accent); }
.sidebar__link .brand-case { text-transform: none; }

.sidebar__foot { margin-top: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
/* Yayındaki ürün: hero'daki canlı satırla aynı işaret (nokta + mono) */
.sidebar__live {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 0; margin: -10px 0;
  background: none; border: 0; cursor: pointer; color: var(--ink);
  font: 600 11px/1 Manrope, sans-serif; letter-spacing: 0.04em; text-transform: uppercase;
  transition: color 160ms ease;
}
.sidebar__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.2); }
.sidebar__live.is-lit { color: var(--ink-bright, #ebe8e5); }
@media (hover: hover) { .sidebar__live:hover { color: var(--ink-bright, #ebe8e5); } }
.sidebar__live .brand-case { text-transform: none; }
.sidebar__cta {
  min-height: 44px; background: var(--accent); border: 0; padding: 14px 26px; cursor: pointer; color: var(--bg);
  font: 600 12px/1 Manrope, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
  transition: background-color 160ms ease, transform 100ms ease-out;
}
.sidebar__cta.is-lit { background: #ff6d1f; }
@media (hover: hover) { .sidebar__cta:hover { background: #ff6d1f; } }
.sidebar__cta:active { transform: scale(0.97); }

/* Açılış koreografisi: panel 0 ms → satırlar 120 + 40·i → alt 480. Kapanışta yalnızca panel kayar. */
@keyframes sb-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.sidebar.is-open :is(.sidebar__top, .sidebar__link, .sidebar__foot) { animation: sb-in 420ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.sidebar.is-open .sidebar__top { animation-delay: 40ms; }
.sidebar.is-open .sidebar__link { animation-delay: calc(120ms + var(--i, 0) * 40ms); }
.sidebar.is-open .sidebar__foot { animation-delay: 500ms; }
.sidebar__nav > :nth-child(1) { --i: 0; } .sidebar__nav > :nth-child(2) { --i: 1; } .sidebar__nav > :nth-child(3) { --i: 2; }
.sidebar__nav > :nth-child(4) { --i: 3; } .sidebar__nav > :nth-child(5) { --i: 4; } .sidebar__nav > :nth-child(6) { --i: 5; }
.sidebar__nav > :nth-child(7) { --i: 6; } .sidebar__nav > :nth-child(8) { --i: 7; } .sidebar__nav > :nth-child(9) { --i: 8; }
.sidebar.is-dragging :is(.sidebar__top, .sidebar__link, .sidebar__foot) { animation: none; }

  html.motion-reduced .sidebar { transform: none; opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 0s linear 200ms; }
  html.motion-reduced .sidebar.is-open { opacity: 1; visibility: visible; transition: opacity 200ms ease; }
  html.motion-reduced .sidebar-backdrop { transition: opacity 200ms ease, visibility 0s linear 200ms; }
  html.motion-reduced .sidebar-backdrop.is-open { transition: opacity 200ms ease; }
  html.motion-reduced .sidebar.is-open :is(.sidebar__top, .sidebar__link, .sidebar__foot) { animation: none; }
  html.motion-reduced .sidebar__link::before, html.motion-reduced .sidebar__link-arrow, html.motion-reduced .sidebar__close span { transition: none; }
@media (prefers-reduced-transparency: reduce) {
  .sidebar { background: rgba(11, 11, 13, 0.98); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- ayakta kalma: statik kademe ----------
   html[data-media="static"]: sahne yok (WebGL2 yok, sahne yüklenemedi ya da betikler gelmedi).
   Her slaydın arkasında sahnenin o slayttaki karesi — kompozisyon aynı kalır. Betikler çalışıyorsa
   (html.has-still) sabit katmanda o anki slaydın karesi de durur: telefonda arka planın kendisi budur. */
html[data-media="static"]:not(.has-still) .scene-layer { display: none; }
html[data-media="static"] .slide__bg { background-color: var(--bg); background-position: center; background-size: cover; background-repeat: no-repeat; }
/* Durağan kare sahne kadar parlak; metin okunabilirliği için üstüne hafif karartma */
html[data-media="static"] .slide__bg::after { content: ""; position: absolute; inset: 0; background: rgba(11, 11, 13, 0.34); }
html[data-media="static"] .slide:nth-child(1) .slide__bg { background-image: url("../img/posters/s01.webp?v=6"); }
html[data-media="static"] .slide:nth-child(2) .slide__bg { background-image: url("../img/posters/s02.webp?v=6"); }
html[data-media="static"] .slide:nth-child(3) .slide__bg { background-image: url("../img/posters/s03.webp?v=6"); }
html[data-media="static"] .slide:nth-child(4) .slide__bg { background-image: url("../img/posters/s04.webp?v=6"); }
html[data-media="static"] .slide:nth-child(5) .slide__bg { background-image: url("../img/posters/s05.webp?v=6"); }
html[data-media="static"] .slide:nth-child(6) .slide__bg { background-image: url("../img/posters/s06.webp?v=6"); }
html[data-media="static"] .slide:nth-child(7) .slide__bg { background-image: url("../img/posters/s07.webp?v=6"); }
html[data-media="static"] .slide:nth-child(8) .slide__bg { background-image: url("../img/posters/s08.webp?v=6"); }
html[data-media="static"] .slide:nth-child(9) .slide__bg { background-image: url("../img/posters/s09.webp?v=6"); }
/* Betikler hiç gelmediyse (satır içi sigorta açtı): deste JS'siz de gezilebilir — şerit doğal kaydırmaya döner */
html[data-media-reason="script-failed"] .viewport, html[data-media-reason="script-missing"] .viewport { overflow-y: auto; -webkit-overflow-scrolling: touch; }
html[data-media-reason="script-failed"] .slide, html[data-media-reason="script-missing"] .slide { min-height: 100dvh; }

/* Yükleme ekranı durum satırı (çevrimdışı / hafif sürüm / sahne gelmedi) */
.loading-screen__status { margin: 18px 0 0; font: 500 11px/1.4 Manrope, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(214, 210, 207, 0.6); text-align: center; }
.loading-screen__status[hidden] { display: none; }

/* ---------- legacy tarayıcı modu (satır içi özellik testi başarısız: container queries / dvh / ResizeObserver yok) ----------
   Deste motoru çalışmaz; sayfa düz belge akışına döner: başlık, metin, görseller, bağlantılar. Sahne ve süsleme yok. */
html.is-legacy, html.is-legacy body { overflow: auto; height: auto; }
html.is-legacy .loading-screen, html.is-legacy .scene-layer, html.is-legacy .dots, html.is-legacy .scroll-progress,
html.is-legacy .sidebar, html.is-legacy .sidebar-backdrop, html.is-legacy .slide__bg, html.is-legacy .overlay,
html.is-legacy .icon-btn, html.is-legacy .statusbar__hint { display: none !important; }
html.is-legacy .root { position: static; height: auto; overflow: visible; }
html.is-legacy .header { position: static; height: auto; padding: 16px 5vw; }
html.is-legacy .viewport, html.is-legacy .slide__scroll { position: static; height: auto; overflow: visible; }
html.is-legacy .track { transform: none !important; transition: none !important; }
html.is-legacy .slide { height: auto; min-height: 0; overflow: visible; border-top: 1px solid rgba(214, 210, 207, 0.16); }
html.is-legacy .slide__canvas { width: auto; height: auto; container-type: normal; }
html.is-legacy .edge-frame { display: block; height: auto; padding: 32px 5vw; font-size: 16px; }
html.is-legacy .edge-frame > * { display: block; margin: 0 0 24px; max-width: 720px; }
html.is-legacy .card { background: none; border: 0; padding: 0; }
html.is-legacy .eyebrow { font-size: 12px; margin-bottom: 12px; }
html.is-legacy .edge-title { font-size: 30px; line-height: 1.1; margin: 0 0 12px; }
html.is-legacy .edge-lead, html.is-legacy p, html.is-legacy li, html.is-legacy dd { font-size: 16px; line-height: 1.5; }
html.is-legacy .facts dt { font-size: 28px; }
html.is-legacy .btn { display: inline-block; padding: 12px 18px; font-size: 12px; margin: 0 8px 8px 0; }
html.is-legacy .team__list img { width: 40px; height: 40px; border-radius: 50%; }
html.is-legacy [aria-hidden="true"] .edge-frame { display: block; }
html.is-legacy .consent { position: static; }
html.is-legacy .demo { display: none !important; }
html.is-legacy .steps__btn > span { max-height: none !important; opacity: 1 !important; }

/* ---------- scene background ----------
   Gerçek zamanlı bina (WebGL2): tuval sabit katmanda, deste içeriğinin altında. Tuval hazır olunca
   görünür (açılışta yükleme ekranının altında ilk kare çizilir, geçiş dikişsiz). */

.scene-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: var(--bg);
  overflow: hidden;
  pointer-events: none;
}
.scene-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Durağan kare (main.js): canlı sahne çizemediğinde — GPU bağlamı düştü ve geri geliyor, ya da sahne
   bıraktı ve devrediyor — tuvalin altında o anki slaydın karesi; iki katman arasında yumuşak geçiş.
   Kullanılmadığında visibility: hidden — iOS Safari kenar rengini kenardaki sabit katmandan alır ve
   görünmez ama var olan bir katman bunu bozar. Yeni kare eskisinin üstünde belirir, eskisi sonra gider. */
.scene-still { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0s linear 0.35s; }
.scene-still > i { position: absolute; inset: 0; z-index: 0; background: var(--bg) center / cover no-repeat; opacity: 0; visibility: hidden; transition: opacity 0s linear 0.6s, visibility 0s linear 0.6s; }
.scene-still > i.is-front { z-index: 1; opacity: 1; visibility: visible; transition: opacity 0.6s ease; }
html[data-media="static"] .scene-still, html[data-scene-still] .scene-still { opacity: 1; visibility: visible; transition: opacity 0.35s ease; }
html[data-scene-still="handover"] .scene-still { transition: none; }
html[data-scene-still="trouble"] .scene-canvas { visibility: hidden; }
html[data-scene-still="handover"] .scene-canvas { opacity: 0 !important; transition: opacity 0.5s ease; }

/* Yığın düzeni (telefon, alçak ekran) durağan modda: arka plan sabit katmandaki dikey kare — canlı
   sahnedeki gibi kaydırırken yerinde durur. Betikler hiç gelmediyse slayt kareleri kalır: dikey ekranda
   ortada %140 genişlikte yatay bir şerit, üst-alt kenarlar arka plan rengine erir. */
@media (max-width: 1023px), (max-height: 580px) {
  html.has-still[data-media="static"] .slide:nth-child(n) .slide__bg { background: transparent; }   /* kare kurallarından güçlü */
  html.has-still[data-media="static"] .slide__bg::after { content: none; }
}
@media (orientation: portrait) and (max-width: 1023px) {
  html[data-media="static"]:not(.has-still) .slide__bg {
    background-size: 140vw auto; background-position: center 45%;
  }
}

/* ---------- slide track ---------- */
/* .viewport clips a fixed window onto the deck; .track is the single element
   whose transform carries the whole continuous scroll position — either
   tracking the wheel/touch 1:1 (manual scroll) or animated by a keyboard/dot
   commit (the discrete push). Slides stack in normal flow inside it. */

.viewport { position: fixed; inset: 0; z-index: 10; overflow: hidden; }

.track { will-change: transform; }

.slide {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  backface-visibility: hidden;
}

.slide__bg { position: absolute; inset: 0; background: transparent; }







/* ---------- dots ---------- */

.dots {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dot {
  position: relative;
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  background: rgba(214, 210, 207, 0.4);
  transition: height 240ms ease, background 240ms ease;
}
/* Görsel 6px kalır; tıklama/dokunma alanı 44px genişlik, dikeyde komşuya kadar */
.dot::before { content: ""; position: absolute; left: -19px; right: -19px; top: -5px; bottom: -5px; }
.dot.is-lit { background: rgba(214, 210, 207, 0.7); }
@media (hover: hover) { .dot:hover { background: rgba(214, 210, 207, 0.7); } }
.dot:focus-visible { outline-offset: 6px; }
@media (pointer: coarse) {
  .dots { gap: 18px; }
  .dot::before { top: -9px; bottom: -9px; }
}
.dot--active { height: 18px; background: var(--accent); }

.scroll-progress {
  position: fixed;
  top: 50%;
  right: 38px;
  width: 1px;
  height: 132px;
  z-index: 40;
  transform: translateY(-50%);
  background: rgba(214, 210, 207, 0.18);
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(var(--progress-scale, 0));   /* yükseklik değil ölçek: 2.5 s geçişte her karede layout yapılmasın */
  transform-origin: top center;
  background: var(--accent);
  will-change: transform;
  transition: var(--progress-transition, transform 180ms ease);   /* ok/nokta geçişinde main.js şeritle eşitler */
}

/* ---------- status bar ---------- */

.statusbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: calc(56px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 6vw env(safe-area-inset-bottom, 0px);   /* Android hareket çubuğu / iPhone ana gösterge */
  pointer-events: none;
}
.statusbar__meta {
  position: fixed;
  top: 24px;
  right: 6vw;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.statusbar__counter {
  font-family: Manrope, sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(235, 232, 229, 0.55);
  font-variant-numeric: tabular-nums;
}
.statusbar__context {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.statusbar__hint {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: opacity 400ms ease;
  opacity: 0;
}
.hint-group { display: flex; align-items: center; gap: 8px; }
.hint-sep { color: var(--muted); opacity: 0.45; }
.hint-bounce {
  display: block;
  font-size: 12px;
  line-height: 1;
  color: var(--accent);
  animation: civBounce 1.4s ease-in-out infinite;
}
.hint-key {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 16px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 10px;
  line-height: 1;
  color: var(--ink);
}
.statusbar__hint.is-hidden { visibility: hidden; transition: opacity 400ms ease, visibility 0s 400ms; }
.statusbar__hint.is-hidden .hint-bounce { animation-play-state: paused; }
  html.motion-reduced .hint-bounce { animation: none; }

/* Shell-only adjustments on small screens. Slide layout lives in slides.css. */
@media (max-width: 1023px), (max-height: 580px) {
  .slide { height: auto; min-height: 100dvh; }
  .sidebar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(11, 11, 13, 0.96); }   /* mobilde 24 px blur pahalı */
  .header { padding-left: 7vw; padding-right: 7vw; }
  .dots { right: -7px; gap: 0; }
  /* The rail keeps its 6px visual marks, but every destination is a real
     44px control instead of relying on a narrow pseudo hit strip. */
  .dot,
  .dot--active { width: 44px; height: 44px; background: transparent; }
  .dot::before {
    left: 19px;
    right: 19px;
    top: 19px;
    bottom: 19px;
    background: rgba(214, 210, 207, 0.4);
    transition: inset 240ms ease, background-color 240ms ease;
  }
  .dot.is-lit::before { background: rgba(214, 210, 207, 0.7); }
  @media (hover: hover) { .dot:hover::before { background: rgba(214, 210, 207, 0.7); } }
  .dot--active::before { top: 13px; bottom: 13px; background: var(--accent); }
  .scroll-progress { right: max(8px, env(safe-area-inset-right, 0px)); height: 104px; }
  /* iOS Safari, çentik ve alt araç çubuğu şeridini kenardaki sabit öğenin rengiyle boyar. Telefonda durum çubuğunun
     içeriği ya üstte (sayaç) ya gizli (ipucu); kutusu alt kenarda 12 px'lik koyu bir şerit olur ki araç çubuğunun
     çevresi sitenin rengini alsın. Saydamken Safari yükleme ekranının açık grisinde kalıyordu. */
  .statusbar { height: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 0; background: var(--bg); }
  /* Restore the marker to the header zone, but stack its two pieces so the
     counter and slide title read as one compact right-aligned block. */
  .statusbar__meta {
    top: 16px;
    right: 7vw;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    padding: 0;
    background: #000000;
  }
  .statusbar__counter,
  .statusbar__context { font-size: 11px; }
  .statusbar__context { max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .statusbar__hint { display: none; }
  /* Nokta rayı masaüstü deste aracı: telefonda "neredeyim" üst çubukta, "nereye" menüde */
  .dots { display: none; }
}

/* ---------- slide separator ---------- */

.slide::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  z-index: 30;
  background: var(--border);
  pointer-events: none;
}

.slide:last-child::after { content: none; }

/* Marka yazımı: 'e-PYS' büyük harf dönüşümlü bağlamlarda da küçük e ile kalır */
.brand-case { text-transform: none; }

/* ---------- CAD imleci (cursor.js) ----------
   Artı işareti + seçim kutusu; tıklanabilir öğede kutu turuncu yakalama işaretine döner, yazı alanında
   sistemin metin imleci geri gelir. Aks okuması (C/4) imlecin sağ altında, sessiz. Yalnız hassas işaretçide. */
html.has-cad-cursor, html.has-cad-cursor * { cursor: none !important; }
html.has-cad-cursor :is(input:not([type="checkbox"]):not([type="radio"]), textarea, [contenteditable="true"]) { cursor: text !important; }
.cad-cursor {
  position: fixed; left: 0; top: 0; z-index: 3000;
  width: 0; height: 0;
  pointer-events: none;
  color: #ebe8e5;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.85));
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 160ms ease;
  will-change: transform;
}
.cad-cursor__h, .cad-cursor__v { position: absolute; transition: opacity 160ms ease; }
.cad-cursor__h { left: -18px; top: 0; width: 36px; height: 1px; background: linear-gradient(90deg, currentColor 0 12px, transparent 12px 24px, currentColor 24px); }
.cad-cursor__v { left: 0; top: -18px; width: 1px; height: 36px; background: linear-gradient(180deg, currentColor 0 12px, transparent 12px 24px, currentColor 24px); }
.cad-cursor__box {
  position: absolute; left: -5px; top: -5px; width: 10px; height: 10px;
  border: 1px solid currentColor; box-sizing: border-box;
  transition: transform 180ms cubic-bezier(0.2, 0.7, 0.2, 1), border-color 140ms ease, background-color 140ms ease;
}
.cad-cursor__ref {
  position: absolute; left: 14px; top: 12px;
  font: 600 10px/1 Manrope, sans-serif; letter-spacing: 0.08em; font-variant-numeric: tabular-nums;
  color: rgba(235, 232, 229, 0.5); white-space: nowrap;
  transition: opacity 140ms ease;
}
.cad-cursor.is-snap .cad-cursor__box { transform: scale(1.5); border-color: var(--accent, #ff5a00); background: rgba(255, 90, 0, 0.14); }
.cad-cursor.is-snap :is(.cad-cursor__h, .cad-cursor__v) { opacity: 0.45; }
.cad-cursor.is-snap .cad-cursor__ref { opacity: 0; }
.cad-cursor.is-down .cad-cursor__box { transform: scale(0.7); }
.cad-cursor.is-snap.is-down .cad-cursor__box { transform: scale(1.15); }
.cad-cursor.is-out, .cad-cursor.is-text { opacity: 0; }
  html.motion-reduced .cad-cursor, html.motion-reduced .cad-cursor__box, html.motion-reduced .cad-cursor__h, html.motion-reduced .cad-cursor__v, html.motion-reduced .cad-cursor__ref { transition: none; }

/* ---------- hareket tercihi (motion.js) ---------- */
html.motion-reduced .when-full, html:not(.motion-reduced) .when-reduced { display: none; }
.sidebar__motion {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 0; margin: -10px 0;
  background: none; border: 0; cursor: pointer; color: var(--muted);
  font: 600 11px/1 Manrope, sans-serif; letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 160ms ease;
}
.sidebar__motion b { font-weight: 600; color: var(--ink-bright, #ebe8e5); }
.sidebar__motion b::before { content: ""; display: inline-block; width: 22px; height: 12px; margin: 0 8px -2px 0; border-radius: 6px;
  background: radial-gradient(circle at 6px 6px, #0b0b0d 3.5px, transparent 4px), var(--accent); }
html.motion-reduced .sidebar__motion b::before { background: radial-gradient(circle at 6px 6px, #ebe8e5 3.5px, transparent 4px), rgba(214, 210, 207, 0.25); }
html:not(.motion-reduced) .sidebar__motion b::before { background: radial-gradient(circle at 16px 6px, #0b0b0d 3.5px, transparent 4px), var(--accent); }
.sidebar__motion:focus-visible, .sidebar__motion.is-lit { color: var(--ink-bright, #ebe8e5); }
@media (hover: hover) { .sidebar__motion:hover { color: var(--ink-bright, #ebe8e5); } }

.motion-note {
  position: fixed; z-index: 55; top: calc(84px + env(safe-area-inset-top, 0px)); right: 6vw;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 14px;
  width: min(380px, calc(100vw - 32px)); padding: 14px 14px 14px 18px;
  border: 1px solid rgba(214, 210, 207, 0.2); background: rgba(11, 11, 13, 0.96);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
  opacity: 0; transition: opacity 240ms ease;
}
.motion-note.is-open { opacity: 1; }
.motion-note[hidden] { display: none; }   /* sınıftaki display: grid, hidden özniteliğini eziyordu: görünmez kutu dokunma ve tıklamaları yutuyordu */
.motion-note p { grid-column: 1; margin: 0; font-size: 13px; line-height: 1.5; color: rgba(235, 232, 229, 0.78); }
.motion-note__on {
  grid-column: 1; justify-self: start; min-height: 36px; padding: 0 14px; border: 1px solid var(--accent); background: none; cursor: pointer;
  font: 600 11px/1 Manrope, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
  transition: background-color 160ms ease, color 160ms ease;
}
.motion-note__on:focus-visible, .motion-note__on.is-lit { background: var(--accent); color: #0b0b0d; outline: none; }
@media (hover: hover) { .motion-note__on:hover { background: var(--accent); color: #0b0b0d; outline: none; } }
.motion-note__close { grid-column: 2; grid-row: 1 / 3; align-self: start; position: relative; width: 36px; height: 36px; margin: -6px -6px 0 0; border: 0; background: none; cursor: pointer; }
.motion-note__close span { position: absolute; left: 50%; top: 50%; width: 13px; height: 1px; background: rgba(235, 232, 229, 0.7); }
.motion-note__close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.motion-note__close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
.motion-note__close:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
@media (max-width: 1023px), (max-height: 580px) {
  .motion-note { top: calc(76px + env(safe-area-inset-top, 0px)); right: 16px; }
}
