/* Deskspace proje sayfası.
 * Kural: dikey = hangi ürün (bölüm), yatay = hangi versiyon (configurator
 * sürükleme, fotoğraf rayı). Renk ve yazı atlasla aynı. */

@view-transition { navigation: auto; }

* { box-sizing: border-box; }

:root {
  color-scheme: dark;
  --ink: #111310;
  --paper: #eeeae2;
  --muted: #b1b4a9;
  --dim: #6f7566;
  --line: #30352b;
  --accent: #d5f57a;
  --tone: #111310;
  --gutter: 5vw;
  --index-w: 132px;
  --display: "Barlow Condensed", "Instrument Sans", sans-serif;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tone);
  color: var(--paper);
  font-family: "Instrument Sans", system-ui, sans-serif;
  transition: background-color 0.9s ease;
  overflow-x: hidden;
}
button, a { font: inherit; color: inherit; }
button { border: 0; background: transparent; cursor: pointer; padding: 0; }
a { text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--ink); }
[hidden] { display: none !important; }
.viewing body { overflow: hidden; }

.kicker {
  margin: 0; font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim, #b1b4a9);
}

/* ---------- üst çubuk ---------- */

.bar {
  position: fixed; inset: 0 0 auto; z-index: 20; height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 32px;
  background: linear-gradient(var(--tone) 35%, transparent);
  transition: background 0.9s ease;
}
/* same chrome as the homepage (2026-09-25): identity left with its sub-line, "Work" back link right */
.identity { display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; font-size: 16px; font-weight: 500; letter-spacing: -0.02em; }
.identity span { font-size: 11px; font-weight: 400; letter-spacing: 0; color: var(--dim, #b1b4a9); margin-top: 2px; }
/* wordmark (2026-09-26): KOMPOZİT in Climate Crisis (free, Google Fonts, YEAR 1979), small tracked Studio beside it */
.identity { flex-direction: row; align-items: baseline; gap: 10px; }
.identity .wordmark { margin: 0; font: 400 21px/1 "Climate Crisis", sans-serif; font-variation-settings: "YEAR" 1979; letter-spacing: -0.01em; color: var(--paper); }
.identity .studio { margin: 0; font: 500 10px/1 "Instrument Sans", sans-serif; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim, #b1b4a9); }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; border: 1px solid #51554b; border-radius: 999px; padding: 0 18px; transition: color 0.25s, border-color 0.25s; }
.back::before { content: "\2190"; }
.back:hover { color: var(--paper); border-color: var(--paper); }
.bar-note { margin: 0; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }

/* ---------- bölüm dizini ---------- */

.index { position: fixed; left: 30px; top: 50%; z-index: 15; transform: translateY(-50%); }
.index ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.index a {
  display: grid; grid-template-columns: 22px auto; align-items: baseline; gap: 6px;
  font-size: 12px; color: var(--dim); transition: color 0.3s;
}
.index a span { font: 600 13px/1 var(--display); }
.index a:hover { color: var(--paper); }
.index a[aria-current="true"] { color: var(--accent); }

/* ---------- giriş ---------- */

.hero {
  position: relative; min-height: 100svh;
  padding: 120px var(--gutter) 48px calc(var(--gutter) + var(--index-w));
  display: flex; flex-direction: column; justify-content: center; gap: 30px;
  overflow: hidden;
}
.hero h1 { margin: 0; font: 600 clamp(90px, 15vw, 250px)/0.84 var(--display); letter-spacing: -0.02em; }
.hero h1 .logo.has-logo svg { display: block; width: min(78vw, 1100px); height: auto; }
/* kare amblem (Hbeefire): adın önünde, yazı boyunda */
.hero h1 .logo.has-mark svg { display: inline-block; height: 0.82em; width: auto; margin-right: 0.18em; vertical-align: -0.06em; }
.lede { margin: 0; max-width: 34ch; font-size: clamp(20px, 2vw, 28px); line-height: 1.3; letter-spacing: -0.02em; }
/* opening image (2026-09-26): the home card's cover, whole, in its own ratio; the card grows into it */
.hero-media { margin: 12px 0 0; width: min(100%, calc(64svh * var(--ar))); aspect-ratio: var(--ar); background: #0c0d0b; }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: contain; view-transition-name: hero; }
.hero:has(.hero-media) .scroll-cue { display: none; }

.marquee {
  margin: 22px calc(-1 * var(--gutter)) 0 calc(-1 * (var(--gutter) + var(--index-w)));
  overflow: hidden; border-block: 1px solid var(--line); padding: 14px 0;
}
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 0.5em; padding-right: 0.5em;
  font: 600 clamp(44px, 6vw, 96px)/1 var(--display); letter-spacing: -0.01em;
  color: transparent; -webkit-text-stroke: 1px #4a5042;
}
.marquee-track span::after { content: ""; width: 0.14em; height: 0.14em; border-radius: 50%; background: var(--dim, #b1b4a9); }
@keyframes marquee { to { transform: translateX(-50%); } }

.scroll-cue {
  position: absolute; right: var(--gutter); bottom: 44px; margin: 0;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 12px;
}
.scroll-cue::after { content: ""; width: 1px; height: 46px; background: linear-gradient(var(--paper), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- bölüm ---------- */

/* Configurator'lı bölümde ilk satır (başlık + sahne) tam bir ekrana sığar,
   ray bir sonraki kaydırmada gelir. Masa bölümünde sekiz sahne düğmesi
   sütunu uzatıyordu; sabit oran (66vh) ile sahnenin altı ekran dışında
   kalıyordu. */
.chapter {
  position: relative; min-height: 100svh;
  padding: 92px var(--gutter) 72px calc(var(--gutter) + var(--index-w));
  display: grid;
  grid-template-columns: minmax(260px, 23vw) minmax(0, 1fr);
  grid-template-rows: calc(100svh - 164px) auto;
  column-gap: 4vw; row-gap: 40px;
  align-content: start;
}
.chapter:not(.has-cfg) { grid-template-rows: auto; align-content: center; }

.chapter-head { grid-column: 1; grid-row: 1; align-self: center; position: relative; z-index: 1; }
.chapter-no {
  position: absolute; left: -0.04em; bottom: calc(100% - 0.28em); z-index: -1;
  font: 600 clamp(130px, 15vw, 250px)/0.8 var(--display);
  color: transparent; -webkit-text-stroke: 1px #3d4336;
  pointer-events: none; user-select: none;
}
.chapter-title { margin: 12px 0 18px; font: 600 clamp(52px, 5.8vw, 108px)/0.9 var(--display); letter-spacing: -0.02em; }
.chapter-text { margin: 0; max-width: 32ch; font-size: 16px; line-height: 1.55; color: var(--muted); }

/* configurator sahnesi: kutu `container`, plaka onun içine orana göre sığar */
.chapter-stage { grid-column: 2; grid-row: 1; height: 100%; min-width: 0; container-type: size; display: grid; place-items: center; }
.chapter:not(.has-cfg) .chapter-stage { display: none; }

.cfg-stage {
  --ar: 1.2;
  position: relative; overflow: hidden;
  width: min(100cqw, calc(100cqh * var(--ar)));
  aspect-ratio: var(--ar);
  background: #fff; line-height: 0;
  cursor: grab; touch-action: pan-y; user-select: none;
  box-shadow: 0 30px 80px #0006;
}
.cfg-stage.dragging { cursor: grabbing; }
.cfg-stage.loading { cursor: progress; }
.cfg-stage.loading::after {
  content: ""; position: absolute; z-index: 998; left: 50%; top: 50%;
  width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border: 2px solid #0002; border-top-color: #0007; border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cfg-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
/* dinlenme clip-path'i JS'ten inline gelir; bu sınıf yalnız geçişi açar */
.cfg-stage img.wiping { transition: clip-path 0.62s cubic-bezier(0.65, 0, 0.25, 1); }
.cfg-hint, .cfg-count {
  position: absolute; z-index: 999; line-height: 1;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #6b6a66;
}
.cfg-hint, .cfg-count { background: #ffffffd9; padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.cfg-hint { left: 50%; bottom: 14px; transform: translateX(-50%); transition: opacity 0.4s; }
.cfg-stage.touched .cfg-hint { opacity: 0; }
/* koyu render üstünde de okunsun diye zeminli */
.cfg-count { top: 12px; right: 12px; font-variant-numeric: tabular-nums; }

.cfg-controls { margin-top: 22px; }
.cfg-controls:empty { display: none; }
.axis + .axis { margin-top: 14px; }
.axis-label { margin: 0; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.swatches { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.swatch {
  --dot: #888;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px 8px 9px; border: 1px solid #555d4b; border-radius: 999px;
  font-size: 12px; color: var(--muted);
  transition: color 0.25s, border-color 0.25s, opacity 0.25s;
}
.swatch::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--dot); box-shadow: inset 0 0 0 1px #0004; }
.swatch:hover { color: var(--paper); }
.swatch[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.swatch:disabled { opacity: 0.32; cursor: not-allowed; }
/* uzun renk ekseni (axis.dots): yalnız nokta, seçilenin adı başlıkta */
.swatches.dots { gap: 5px; }
.swatches.dots .swatch { width: 28px; height: 28px; padding: 0; justify-content: center; }
.swatches.dots .swatch::before { width: 16px; height: 16px; }
.axis-value { margin-left: 10px; letter-spacing: 0.08em; color: var(--paper); }

/* ---------- fotoğraf rayı ---------- */

.rail-wrap { min-width: 0; }
.chapter.has-cfg .rail-wrap { grid-column: 1 / -1; grid-row: 2; }
/* configurator'sız bölümde ray sahnenin yerini alır ve sağ kenardan taşar:
   devamı olduğu görünür, sürüklemeye davet eder */
.chapter:not(.has-cfg) .rail-wrap { grid-column: 2; grid-row: 1; align-self: center; margin-right: calc(-1 * var(--gutter)); }

.rail {
  display: flex; gap: 14px;
  height: 40vh;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding-inline: 0;
  scrollbar-width: none; cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.chapter:not(.has-cfg) .rail { height: 64vh; padding-right: var(--gutter); }
.rail.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.rail.is-dragging .rail-item { pointer-events: none; }
/* Kare rayın görünen genişliğinden geniş olamaz (2026-09-24): 64vh yükseklikte
   3:2 kare 1440x900'de 32 px, 16:9 kare 192 px ekran dışında kalıyordu, yani
   render hiç bütün görünmüyordu. --railw project-page.js'ten (görünen genişlik).
   Görsel kutuya `contain` ile, hover büyütmesi yok: ikisi de kenar kesiyordu. */
.rail-item {
  flex: 0 0 auto; height: min(100%, calc(var(--railw, 100vw) / var(--ar, 1))); align-self: center;
  aspect-ratio: var(--ar, 1);
  position: relative; overflow: hidden; background: #1b1d19;
  scroll-snap-align: start; cursor: zoom-in;
}
.rail-item img {
  display: block; width: 100%; height: 100%; object-fit: contain;
  -webkit-user-drag: none; user-select: none;
}

.rail-bar { display: flex; align-items: center; gap: 18px; margin-top: 16px; padding-right: var(--gutter); font-size: 12px; color: var(--muted); }
.chapter.has-cfg .rail-bar { padding-right: 0; }
.rail-count { font-variant-numeric: tabular-nums; min-width: 58px; }
.rail-progress { flex: 1; height: 1px; background: var(--line); position: relative; }
.rail-progress i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.rail-prev, .rail-next { font-size: 12px; padding: 8px 14px; border: 1px solid #51554b; border-radius: 999px; transition: color 0.25s, border-color 0.25s; }
.rail-prev:hover, .rail-next:hover { color: var(--accent); border-color: var(--accent); }
.rail-bar.is-short { display: none; }

/* ---------- animasyon bölümü ----------
   Başlık üstte tek satırda, film altında içerik genişliğinin tamamında.
   Dikey film sahnenin tam boyunu alır, yatay film kalan genişliği;
   sahne yüksekliği ekrana göre (başlık ve boşluklar düşülünce). */
.chapter.has-motion {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  row-gap: 34px; align-content: center;
}
.chapter.has-motion .chapter-head {
  grid-column: 1; grid-row: 1; align-self: end;
  display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: 4vw;
  padding-right: calc(clamp(100px, 10vw, 170px) + 24px); /* numaranın yeri */
}
.chapter.has-motion .chapter-head .kicker { flex-basis: 100%; }
.chapter.has-motion .chapter-title { margin-bottom: 0; }
/* başlık bölümün tepesinde; numara üstte kalınca çubuğun altında
   kesiliyordu, satırın sağ ucuna iner */
.chapter.has-motion .chapter-no { left: auto; right: 0; bottom: -0.06em; font-size: clamp(100px, 10vw, 170px); }
.chapter.has-motion .chapter-text { max-width: 46ch; padding-bottom: 0.6em; }
.chapter.has-motion .chapter-stage { display: block; grid-column: 1; grid-row: 2; height: auto; container-type: normal; }

.motion-row {
  --maxh: max(360px, calc(100svh - 300px));
  display: flex; align-items: center; justify-content: center; gap: 18px;
  height: var(--maxh);
}
.motion-item {
  position: relative; margin: 0; overflow: hidden; line-height: 0;
  aspect-ratio: var(--ar); max-height: 100%;
  background: #000; cursor: pointer; box-shadow: 0 30px 80px #0008;
}
.motion-item.is-portrait { height: 100%; flex: 0 0 auto; }
.motion-item.is-landscape { flex: 1 1 0; min-width: 0; max-width: calc(var(--maxh) * var(--ar)); }
.motion-item video { display: block; width: 100%; height: 100%; object-fit: cover; }
.motion-item figcaption {
  position: absolute; left: 14px; bottom: 16px; line-height: 1;
  padding: 7px 12px; border-radius: 999px; background: #000a; color: #d9d7d1;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  transition: opacity 0.3s;
}
/* oynatma çizgisi: filmin neresinde olunduğunu gösterir */
.motion-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0));
}

/* ---------- yayılımlar (spread.js, 2026-09-24 pilot) ----------
   Ray yok: bölüm yukarıdan aşağı okunur. Her kare kendi oranında ve bütün
   (kutunun genişlik ve yüksekliği JS'ten, görsel `contain`); satırlar sola
   yaslı, son satır önceki satırın yüksekliğinde. */

body.spreads { --dim: #858b7c; }
.spread { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.spread-row { display: flex; gap: 14px; }
.frame {
  position: relative; flex: none; display: block; padding: 0; overflow: hidden;
  background: #1b1d19; cursor: zoom-in;
}
.frame img { display: block; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; user-select: none; }
.frame:focus-visible { outline-offset: 3px; }

/* yan açılış: açılış karesi sahnenin yerinde, başlığın yanında */
.chapter.is-side { grid-template-rows: calc(100svh - 164px) auto; align-content: start; }
.chapter.is-side .chapter-stage { display: grid; place-items: center; }
.chapter.is-side .frame.lead { width: min(100cqw, calc(100cqh * var(--ar))); height: auto; aspect-ratio: var(--ar); box-shadow: 0 30px 80px #0006; }
.chapter.has-cfg .spread, .chapter.is-side .spread { grid-column: 1 / -1; grid-row: 2; }

/* bant: başlık üstte tek satır, kareler altında içerik genişliğinde */
.chapter.is-band { min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; row-gap: 34px; align-content: start; }
/* sağda numaranın yeri ayrılır: uzun metin (Trak Adaptors, 1280 px) numaranın altına giriyordu */
.chapter.is-band .chapter-head { grid-column: 1; grid-row: 1; align-self: end; display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: 4vw; padding-right: calc(clamp(100px, 10vw, 170px) + 24px); }
.chapter.is-band .chapter-head .kicker { flex-basis: 100%; }
.chapter.is-band .chapter-title { margin-bottom: 0; }
.chapter.is-band .chapter-no { left: auto; right: 0; bottom: -0.06em; font-size: clamp(100px, 10vw, 170px); }
.chapter.is-band .chapter-text { max-width: 46ch; padding-bottom: 0.6em; }
.chapter.is-band .chapter-stage { display: none; }
.chapter.is-band .spread, .chapter.is-band .range-grid { grid-column: 1; grid-row: 2; }
.chapter.is-band .cfg-controls { flex-basis: 100%; }

/* seri: model kutuları, tek View seçimi hepsini birlikte çevirir */
.range-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 26px 14px; }
.tile { margin: 0; min-width: 0; }
.tile .frame { width: 100%; aspect-ratio: var(--ar); }
.tile .frame img { position: absolute; inset: 0; }
.tile .frame img.incoming { clip-path: inset(0 100% 0 0); }
.tile .frame img.incoming.in { clip-path: inset(0 0 0 0); transition: clip-path 0.62s cubic-bezier(0.65, 0, 0.25, 1); }
.tile figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 10px; font-size: 13px; }
.tile figcaption b { font-weight: 600; letter-spacing: 0.03em; }
.tile figcaption span { color: var(--muted); }
.range-status { margin: 12px 0 0; font-size: 12px; color: var(--dim); }

/* sakin configurator: render'ın üstünde yazı yok, seçimin adı altında;
   sürükleme yalnız sıralı eksende (can-turn) */
.chapter-stage:has(.cfg-stage.calm) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.cfg-stage.calm { width: min(100cqw, calc((100cqh - 44px) * var(--ar))); background: transparent; cursor: zoom-in; }
.cfg-stage.calm.can-turn { cursor: grab; }
.cfg-stage.calm.dragging { cursor: grabbing; }
.cfg-stage.calm img { object-fit: contain; }
.stage-caption { margin: 0; min-height: 1.3em; font-size: 13px; letter-spacing: 0.02em; color: var(--muted); text-align: center; }

/* ---------- ekrana girerken ---------- */

.js .chapter .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .chapter .chapter-title { transition-delay: 0.08s; }
.js .chapter .chapter-text { transition-delay: 0.16s; }
.js .chapter .cfg-controls { transition-delay: 0.24s; }
.js .chapter.in .reveal { opacity: 1; transform: none; }
.js .chapter .chapter-no { opacity: 0; transform: translateY(40%); transition: opacity 1s ease, transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .chapter.in .chapter-no { opacity: 1; transform: none; }
/* açılış yalnız soluklaşma ve hafif kayma: eskiden clip-path üstten ve
   alttan %8 kesiyordu, render açılırken kırpık görünüyordu (2026-09-24) */
.js .chapter .chapter-stage, .js .chapter .rail-wrap, .js .chapter .spread, .js .chapter .range-grid {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s ease 0.1s, transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s;
}
.js .chapter.in .chapter-stage, .js .chapter.in .rail-wrap, .js .chapter.in .spread, .js .chapter.in .range-grid { opacity: 1; transform: none; }

/* ---------- kapanış ---------- */

.outro {
  min-height: 70svh; padding: 80px var(--gutter) 90px calc(var(--gutter) + var(--index-w));
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 26px;
  border-top: 1px solid var(--line);
}
.outro-title { margin: 0; font: 600 clamp(56px, 8vw, 140px)/0.9 var(--display); letter-spacing: -0.02em; }
.primary { background: var(--accent); color: var(--ink); border-radius: 999px; padding: 13px 22px; font-weight: 600; font-size: 14px; }
.primary:hover { background: #e3ffa6; }
/* müşterinin kendi sitesi (2026-09-24): yeni sekmede, geri dönüşün yanında */
.outro-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.client-link {
  border: 1px solid #6f7566; border-radius: 999px; padding: 12px 22px; font-size: 14px; font-weight: 600;
  color: var(--paper); text-decoration: none; transition: color 0.25s, border-color 0.25s;
}
.client-link:hover, .client-link:focus-visible { color: var(--accent); border-color: var(--accent); }
.honest { margin: 0; max-width: 60ch; font-size: 12px; line-height: 1.6; color: var(--dim); }

/* ---------- imleç etiketi ---------- */

.cursor-pill { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; transform: translate3d(-200px, -200px, 0); }
.cursor-pill span {
  display: block; translate: 16px 16px; white-space: nowrap;
  padding: 8px 12px; border-radius: 999px; background: var(--accent); color: var(--ink);
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0; scale: 0.6; transition: opacity 0.2s, scale 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cursor-pill.on span { opacity: 1; scale: 1; }

/* ---------- dar ekran: raylı sayfalar yalnız dağılmasın; yayılım sayfaları
   (pilot) başlık üstte, açılış karesi ve sahne tam genişlikte ---------- */

/* Configurator focus: larger uncropped artwork, compact dark controls. */
.chapter.has-cfg .chapter-no, .chapter.has-cfg .chapter-head > .kicker { display: none; }
.chapter.has-cfg .chapter-title { margin: 0 0 12px; font-size: clamp(32px, 3vw, 48px); line-height: 0.98; }
.chapter.has-cfg .chapter-text { max-width: 32ch; font-size: 14px; line-height: 1.5; }
.chapter-details { color: var(--muted); }
.chapter-details > summary { width: fit-content; padding: 9px 0; font-size: 12px; cursor: pointer; }
.chapter-details > summary:hover { color: var(--paper); }
.chapter-details > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.chapter-details[open] > .chapter-text { margin: 4px 0 14px; }
.chapter.has-cfg .cfg-controls { margin-top: 14px; }
.chapter.has-cfg .axis + .axis { margin-top: 10px; }
.chapter.has-cfg .swatches { gap: 5px; margin-top: 7px; }
.chapter.has-cfg .swatch { min-height: 36px; padding: 7px 10px 7px 8px; }
@media (min-width: 901px) {
  .chapter.has-cfg { grid-template-columns: clamp(170px, 15vw, 210px) minmax(0, 1fr); column-gap: clamp(16px, 2vw, 32px); }
  .chapter.has-cfg .chapter-head { max-height: 100%; overflow-y: auto; padding: 2px; }
}
@media (max-width: 900px) {
  .chapter.has-cfg .swatch { min-height: 44px; }
}

@media (max-width: 900px) {
  :root { --index-w: 0px; }
  .index, .bar-note { display: none; }
  .chapter { display: flex; flex-direction: column; align-items: stretch; gap: 28px; }
  /* masaüstündeki dikey hizalar sütunda yataya dönüp kısa başlığı ortaya itiyordu */
  .chapter .chapter-head, .chapter.is-band .chapter-head, .chapter.has-motion .chapter-head { align-self: stretch; padding-right: 0; }
  /* bant ve film başlığında numara sağ altta metnin üstüne biniyordu: öteki bölümler gibi başlığın üstünde */
  .chapter.is-band .chapter-no, .chapter.has-motion .chapter-no { left: -0.04em; right: auto; bottom: calc(100% - 0.28em); font-size: clamp(130px, 15vw, 250px); }
  .chapter-stage { height: 52vh; }
  /* masaüstünün dikey ortalaması sütunda yataya dönüp ray kabını bütün karelerin
     toplam genişliğine uzatıyordu (dd: sayfa 2902 px, 375 px ekranda) */
  .chapter:not(.has-cfg) .rail-wrap { margin-right: 0; align-self: stretch; }
  .rail, .chapter:not(.has-cfg) .rail { height: 46vh; }
  .motion-row { height: auto; flex-wrap: wrap; }
  .motion-item.is-portrait { height: 70vh; }
  .motion-item.is-landscape { flex-basis: 100%; max-width: none; }
  /* sabit 52vh kutu yatay karenin altında ve üstünde boşluk bırakıyordu */
  body.spreads .chapter { min-height: 0; }
  body.spreads .chapter-stage { height: auto; container-type: normal; }
  body.spreads .chapter.is-side .frame.lead, body.spreads .cfg-stage.calm { width: min(100%, calc(70svh * var(--ar))); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .chapter .reveal, .js .chapter .chapter-no, .js .chapter .chapter-stage, .js .chapter .rail-wrap,
  .js .chapter .spread, .js .chapter .range-grid { opacity: 1; transform: none; clip-path: none; }
}

/* sayfa geçişi (2026-09-25): ana sayfadan yumuşak geçiş */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.4s; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
/* the clicked cover travels to the opening image (the Adobe hero, often another render): it moves, grows and dissolves into it */
::view-transition-group(hero) { animation-duration: 0.6s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
::view-transition-old(hero), ::view-transition-new(hero) { animation-duration: 0.6s; height: 100%; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
