/* enesayvaz.com
   Fikir: Kat kat. Kariyer, Xcode'un 3B görünüm hiyerarşisi gibi bir kule.
   Her kat bir ekip, her katman bir ekran; en üst kat boş ve sıradaki ekibi bekliyor.
   Sol sütun okumak için kâğıt, sağ sütun kulenin durduğu gece sahnesi. */

:root {
  --paper: #EEF1F6;
  --paper-2: #E2E7EF;
  --ink: #0F1733;
  --ink-2: #434C66;
  --ink-3: #6B748C;
  --line: #C8CFDB;
  --select: #2F5CFF;
  --select-ink: #FFFFFF;

  --night: #0F1733;
  --night-2: #1A2656;
  --night-ink: #E9EDF7;
  --night-dim: #8E98B8;
  --night-line: rgba(233, 237, 247, .13);
  --grid: rgba(150, 172, 235, .17);
  --lamp: #FFB938;
  --lamp-soft: rgba(255, 185, 56, .2);

  --ok: #128258;
  --diff: #D92F78;

  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --phone-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Instrument Sans", sans-serif;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --bar-h: 64px;
  --band-h: calc(100svh - var(--bar-h));
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121830;
    --paper-2: #1A2140;
    --ink: #E7EBF5;
    --ink-2: #A9B2C9;
    --ink-3: #7C86A0;
    --line: #2A3354;
    --select: #7391FF;
    --select-ink: #0B1024;
    --night: #080D20;
    --night-2: #121B42;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121830;
  --paper-2: #1A2140;
  --ink: #E7EBF5;
  --ink-2: #A9B2C9;
  --ink-3: #7C86A0;
  --line: #2A3354;
  --select: #7391FF;
  --select-ink: #0B1024;
  --night: #080D20;
  --night-2: #121B42;
  color-scheme: dark;
}

/* ---------- Temel ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--bar-h); }
html.i18n-pending body { visibility: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, pre, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img, svg, canvas { display: block; }
code { font-family: var(--mono); }
::selection { background: var(--select); color: var(--select-ink); }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 60;
  background: var(--select); color: var(--select-ink);
  padding: 8px 14px; border-radius: 8px; text-decoration: none;
  transform: translateY(-180%);
}
.skip:focus { transform: none; }

/* ---------- Üst çubuk ---------- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--bar-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  margin-right: auto;
  font: 800 24px/1 var(--display);
  letter-spacing: .01em;
  text-decoration: none;
}
.mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 26px; font-size: 15.5px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.controls { display: flex; gap: 6px; }
.ctl {
  height: 36px; min-width: 36px; padding: 0 10px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: transparent; cursor: pointer;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.ctl:hover { border-color: var(--ink-3); }
.ctl svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ctl .i-moon { display: none; }
:root[data-theme="dark"] .ctl .i-sun { display: none; }
:root[data-theme="dark"] .ctl .i-moon { display: block; }

/* ---------- Hikâye: kâğıt sütun + gece sahnesi ---------- */

.story {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  grid-template-areas: "text stage";
}
.story-text {
  grid-area: text;
  min-width: 0;
  padding: 0 clamp(32px, 5vw, 88px) 0 max(var(--gutter), calc((100vw - 1560px) / 2));
}
.stage {
  grid-area: stage;
  position: relative;
  background: var(--night);
  color: var(--night-ink);
}
.stage-inner {
  position: sticky; top: var(--bar-h);
  height: var(--band-h);
  overflow: hidden;
  background: radial-gradient(90% 70% at 58% 38%, var(--night-2), var(--night) 72%);
}

/* ---------- Kule (sahne) ---------- */

.scene {
  position: absolute; inset: 0 0 56px 0;
  perspective: 2400px;
  perspective-origin: 54% 30%;
  touch-action: pan-y;
  cursor: grab;
  -webkit-user-select: none; user-select: none;
}
.is-dragging .scene { cursor: grabbing; }

.tower {
  --lw: clamp(150px, min(15vw, 26svh), 236px);
  --lh: calc(var(--lw) * 2.168);
  --gap-base: calc(var(--lw) * .35);
  --gapk: 1;
  --gap: calc(var(--gap-base) * var(--gapk));
  --rx: 56deg;
  --rz: -38deg;
  --sx: 0px;
  --ox: calc(var(--lw) * 1.28);
  --oy: calc(var(--lw) * -.66);
  --oz: 190px;
  --oc: -14deg;
  --os: 1.02;
  --gi: 0;

  position: absolute; left: 54%; top: 67%;
  width: 0; height: 0;
  transform-style: preserve-3d;
  transform: translate3d(var(--sx), 0, 0) rotateX(var(--rx)) rotateZ(var(--rz));
  transition: transform .9s cubic-bezier(.2, .75, .15, 1);
}
.tower.has-out { --sx: calc(var(--lw) * -.5); }

.layer {
  --a: 0deg; --b: 0deg; --x: 0px; --y: 0px; --c: 0deg; --s: 1;
  --z: calc(var(--i) * var(--gap) + var(--drop, 0px));
  position: absolute; left: 0; top: 0;
  width: var(--lw); height: var(--lh);
  margin: calc(var(--lh) / -2) 0 0 calc(var(--lw) / -2);
  container-type: inline-size;
  transform: rotateZ(var(--a)) rotateX(var(--b)) translate3d(var(--x), var(--y), var(--z)) rotateY(var(--c)) scale(var(--s));
  transition: transform .9s cubic-bezier(.2, .75, .15, 1), opacity .35s ease;
  cursor: pointer;
}
.layer.is-out {
  --a: calc(var(--rz) * -1);
  --b: calc(var(--rx) * -1);
  --x: var(--ox); --y: var(--oy); --z: var(--oz);
  --c: var(--oc); --s: var(--os);
  cursor: default;
}

/* Kat kat iniş: JS katları sırayla yerine bırakır. */
.js .tower:not(.is-built) .layer { transition: transform .75s cubic-bezier(.3, 1.32, .5, 1), opacity .3s ease; }
.js:not(.built) .layer:not(.is-placed) { opacity: 0; --drop: calc(var(--lw) * 2.4); }

.layer-face {
  position: absolute; inset: 0;
  border-radius: 12.5cqw;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1.5px var(--tone);
  transition: box-shadow .4s ease;
}
.layer-face::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--night);
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.has-out .layer:not(.is-out) .layer-face::after { opacity: .58; }
.layer:not(.is-out):hover .layer-face { box-shadow: 0 0 0 2.5px var(--tone), 0 0 0 6px color-mix(in srgb, var(--tone) 30%, transparent); }
.layer.is-out .layer-face {
  box-shadow: 0 0 0 2px var(--select), 0 3cqw 14cqw -2cqw rgba(0, 0, 0, .7);
}

.layer-tag {
  position: absolute; left: 1cqw; top: 100%;
  margin-top: 4cqw;
  font: 500 6.4cqw/1 var(--mono);
  color: var(--tone);
  white-space: nowrap;
  transition: color .4s, opacity .4s;
}
.has-out .layer:not(.is-out) .layer-tag { opacity: .45; }
.layer.is-out .layer-tag { color: #9DB4FF; }

/* Boş kat: kesik çizgi, lamba rengi */
.layer-next .layer-face {
  background: rgba(255, 185, 56, .045);
  box-shadow: none;
  outline: 1.5px dashed var(--tone);
  outline-offset: -1px;
}
.layer-next.is-lit .layer-face { animation: lamp 2.8s ease-in-out infinite; }
@keyframes lamp {
  0%, 100% { background-color: rgba(255, 185, 56, .045); }
  50% { background-color: rgba(255, 185, 56, .14); }
}

.ghost {
  position: absolute; left: 0; top: 0;
  width: var(--lw); height: var(--lh);
  margin: calc(var(--lh) / -2) 0 0 calc(var(--lw) / -2);
  border-radius: calc(var(--lw) * .125);
  border: 1.5px dashed var(--select);
  transform: translateZ(calc(var(--gi) * var(--gap)));
  opacity: 0;
  transition: opacity .4s ease, transform .5s ease;
  pointer-events: none;
}
.has-out .ghost { opacity: .85; }

.ground {
  position: absolute; left: 0; top: 0;
  width: calc(var(--lw) * 3.4); height: calc(var(--lw) * 3.4);
  margin: calc(var(--lw) * -1.7) 0 0 calc(var(--lw) * -1.7);
  transform: translateZ(calc(var(--gap) * -.5));
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: calc(var(--lw) / 5) calc(var(--lw) / 5);
  background-position: center;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent);
          mask-image: radial-gradient(closest-side, #000 35%, transparent);
  pointer-events: none;
}

.is-dragging .tower,
.is-dragging .layer { transition: none !important; }
.is-tuning .layer,
.is-tuning .ghost,
.is-tuning .ground { transition: transform .12s linear !important; }

.drag-hint {
  position: absolute; left: 54%; bottom: 76px;
  transform: translateX(-50%);
  font-size: 13px; color: var(--night-dim);
  pointer-events: none;
  transition: opacity .5s;
}
.has-dragged .drag-hint,
.stage.is-deep .drag-hint { opacity: 0; }

/* ---------- Asansör paneli ---------- */

.lift {
  position: absolute; left: clamp(14px, 2vw, 28px); top: calc(50% - 28px);
  transform: translateY(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 14px 9px 12px;
  border-radius: 28px;
  background: rgba(233, 237, 247, .04);
  border: 1px solid var(--night-line);
}
.lift button {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(233, 237, 247, .22);
  background: rgba(8, 13, 32, .35);
  color: var(--night-dim);
  font: 600 16px/1 var(--font);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: color .3s, border-color .3s, box-shadow .3s, background-color .3s;
}
.lift button:hover { color: var(--night-ink); border-color: rgba(233, 237, 247, .5); }
.lift button.is-lit {
  color: var(--lamp);
  border-color: var(--lamp);
  background: rgba(255, 185, 56, .1);
  box-shadow: 0 0 0 3px rgba(255, 185, 56, .14), 0 0 18px rgba(255, 185, 56, .38);
}
.lift-dir { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-bottom: 4px; }
.lift-dir i { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; transition: border-color .25s; }
.lift-dir .up { border-bottom: 8px solid rgba(233, 237, 247, .18); }
.lift-dir .down { border-top: 8px solid rgba(233, 237, 247, .18); }
.lift[data-dir="up"] .up { border-bottom-color: var(--lamp); }
.lift[data-dir="down"] .down { border-top-color: var(--lamp); }

/* ---------- Atlama çubuğu (Xcode jump bar) ---------- */

.jumpbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 56px;
  display: flex; align-items: center; gap: 22px;
  padding: 0 22px 0 26px;
  border-top: 1px solid var(--night-line);
  background: rgba(8, 13, 32, .5);
  font-size: 13.5px; color: var(--night-dim);
}
.crumbs {
  margin-right: auto; min-width: 0;
  font: 500 12.5px/1 var(--mono);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.crumbs i { font-style: normal; margin: 0 .55em; opacity: .55; }
.crumb { color: var(--night-ink); }
.gap-ctl { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.gap-ctl input {
  -webkit-appearance: none; appearance: none;
  width: 132px; height: 22px; margin: 0;
  background: transparent; cursor: pointer;
}
.gap-ctl input::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: rgba(233, 237, 247, .22); }
.gap-ctl input::-moz-range-track { height: 3px; border-radius: 3px; background: rgba(233, 237, 247, .22); }
.gap-ctl input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; margin-top: -6.5px;
  border-radius: 50%; background: var(--lamp); border: 0;
  box-shadow: 0 0 0 4px rgba(255, 185, 56, .18);
}
.gap-ctl input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--lamp); border: 0; }
.gap-ctl input:focus-visible { outline-offset: 4px; }
.reset {
  height: 32px; padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--night-line);
  background: transparent; color: var(--night-ink);
  font-size: 13px; cursor: pointer;
  white-space: nowrap;
}
.reset:hover { border-color: rgba(233, 237, 247, .4); }

/* ---------- Hero ---------- */

.hero {
  min-height: var(--band-h);
  display: flex; flex-direction: column; justify-content: center;
  padding: 56px 0 72px;
}
.status {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 15.5px; color: var(--ink-2);
}
.lamp {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 0 4px var(--lamp-soft), 0 0 16px rgba(255, 185, 56, .55);
}
h1 {
  margin: 26px 0 0 -.035em;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(96px, 12.6vw, 220px);
  line-height: .83;
  letter-spacing: -.005em;
}
h1 span { display: block; }
.role {
  margin-top: 22px;
  font: 700 clamp(26px, 2.5vw, 38px)/1 var(--display);
  letter-spacing: .015em;
  color: var(--ink-2);
}
.lede {
  margin-top: 22px;
  max-width: 31em;
  font-size: clamp(18px, 1.35vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-note { margin-top: 26px; font-size: 15px; color: var(--ink-3); max-width: 30em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: 12px;
  font-size: 16px; font-weight: 600; text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-solid { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn-solid:hover { background: var(--select); border-color: var(--select); color: var(--select-ink); }
.btn-line { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }

/* ---------- Katlar (deneyim) ---------- */

.chapter {
  min-height: var(--band-h);
  padding: 14vh 0;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 42rem;
}
.ch-head { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 22px; align-items: start; }
.ch-no {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  font: 600 21px/1 var(--font);
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  transition: color .35s, border-color .35s, background-color .35s, box-shadow .35s;
}
.chapter.is-current .ch-no {
  color: var(--ink);
  border-color: var(--lamp);
  background: rgba(255, 185, 56, .14);
  box-shadow: 0 0 0 5px rgba(255, 185, 56, .16);
}
h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(46px, 4.4vw, 74px);
  line-height: .9;
  letter-spacing: -.003em;
}
.where { margin-top: 10px; font-size: 18px; color: var(--ink-2); }
.when { margin-top: 4px; font-size: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.points { margin-top: 28px; }
.chapter .points, .chapter .tech, .chapter .earlier, .ground-note { margin-left: 80px; }
.points li {
  position: relative;
  padding-left: 22px;
  margin-top: 12px;
  max-width: 36em;
}
.points li::before {
  content: "";
  position: absolute; left: 0; top: .78em;
  width: 10px; height: 1.5px;
  background: var(--ink-3);
}
.tech { margin-top: 22px; font-size: 15px; color: var(--ink-3); max-width: 38em; }

.earlier { margin-top: 26px; }
.earlier li {
  display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 16.5px; color: var(--ink-2);
}
.earlier li:last-child { border-bottom: 1px solid var(--line); }
.e-when { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.earlier b { color: var(--ink); font-weight: 650; }
.ground-note { margin-top: 26px; font-size: 15px; color: var(--ink-3); }

/* ---------- Telefon ekranları (katlarda ve vitrinde ortak) ---------- */

.screen {
  position: absolute; inset: 0;
  font-family: var(--phone-font);
  font-size: 4.15cqw;
  line-height: 1.3;
  letter-spacing: -.005em;
  overflow: hidden;
  -webkit-user-select: none; user-select: none;
}

.sb {
  position: absolute; z-index: 3; top: 0; left: 0; right: 0;
  height: 3.7em; padding: .35em 2.1em 0 2.6em;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 1.05em;
}
.sb-icons {
  width: 4.8em; height: .95em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 13'%3E%3Crect x='0' y='8' width='3' height='4' rx='1'/%3E%3Crect x='5' y='6' width='3' height='6' rx='1'/%3E%3Crect x='10' y='3' width='3' height='9' rx='1'/%3E%3Crect x='15' y='0' width='3' height='12' rx='1'/%3E%3Cpath d='M29.5 3.4a10.4 10.4 0 0 1 14 0l-1.6 1.7a8 8 0 0 0-10.8 0z M32.3 6.3a6.3 6.3 0 0 1 8.4 0l-1.6 1.7a4 4 0 0 0-5.2 0z M36.5 12.2l-2.2-2.3a3.1 3.1 0 0 1 4.4 0z'/%3E%3Crect x='48.6' y='1' width='16' height='10.4' rx='3' fill='none' stroke='black' stroke-width='1.2'/%3E%3Crect x='50.5' y='2.9' width='11.6' height='6.6' rx='1.6'/%3E%3Crect x='65.8' y='4.6' width='1.6' height='3.4' rx='.8'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 13'%3E%3Crect x='0' y='8' width='3' height='4' rx='1'/%3E%3Crect x='5' y='6' width='3' height='6' rx='1'/%3E%3Crect x='10' y='3' width='3' height='9' rx='1'/%3E%3Crect x='15' y='0' width='3' height='12' rx='1'/%3E%3Cpath d='M29.5 3.4a10.4 10.4 0 0 1 14 0l-1.6 1.7a8 8 0 0 0-10.8 0z M32.3 6.3a6.3 6.3 0 0 1 8.4 0l-1.6 1.7a4 4 0 0 0-5.2 0z M36.5 12.2l-2.2-2.3a3.1 3.1 0 0 1 4.4 0z'/%3E%3Crect x='48.6' y='1' width='16' height='10.4' rx='3' fill='none' stroke='black' stroke-width='1.2'/%3E%3Crect x='50.5' y='2.9' width='11.6' height='6.6' rx='1.6'/%3E%3Crect x='65.8' y='4.6' width='1.6' height='3.4' rx='.8'/%3E%3C/svg%3E") no-repeat center / contain;
}
.home-ind {
  position: absolute; z-index: 4; bottom: .65em; left: 50%;
  width: 35%; height: .36em; transform: translateX(-50%);
  border-radius: 9em; background: currentColor; opacity: .85;
}

.screen .app {
  position: absolute; inset: 0;
  padding: 4.3em 1.3em 2.6em;
  display: flex; flex-direction: column; gap: .85em;
}
.navbar { display: flex; align-items: center; gap: .5em; font-size: 1.25em; }
.navbar .back { font-size: 1.5em; line-height: .8; color: var(--app); font-weight: 400; margin-top: -.1em; }
.cap { font-size: .74em; margin-bottom: -.45em; opacity: .65; }
.cta {
  margin-top: auto;
  display: block; text-align: center;
  background: var(--app); color: #fff;
  border-radius: 1em; padding: .95em;
  font-weight: 600;
}
.screen .rows { background: #fff; border-radius: 1.1em; padding: 0 1em; }
.screen .rows li { display: flex; justify-content: space-between; align-items: center; gap: .6em; padding: .8em 0; border-bottom: 1px solid rgba(0, 0, 0, .07); font-size: .95em; }
.screen .rows li:last-child { border-bottom: 0; }
.screen .rows small { display: block; font-size: .78em; opacity: .6; }
.screen .rows b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Zemin: kuş sesi tanıma */
.s-bird { --app: #2F8F4E; background: #EFF4EE; color: #13201A; }
.wave { width: 100%; height: 5em; flex: none; padding: .7em .6em; background: #10241A; border-radius: 1em; fill: #7BD99A; }
.guess { background: #fff; border-radius: 1.1em; padding: .9em 1.05em 1em; }
.guess .lbl { font-size: .78em; color: #6E7A72; }
.sp { font-size: 1.65em; font-weight: 700; letter-spacing: -.012em; margin-top: .05em; }
.latin { font-style: italic; font-size: .85em; color: #5E6B63; }
.meter { display: flex; align-items: center; gap: .6em; margin-top: .65em; }
.track { flex: 1; height: .5em; border-radius: 9em; background: #E1EAE3; overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 9em; background: var(--app); }
.meter b { font-size: .85em; color: var(--app); }

/* 1. kat: çekiliş dApp'i */
.s-dapp { --app: #7B4DFF; background: #F3F0FB; color: #1A1530; }
.wallet {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; border-radius: .9em; padding: .65em .85em;
  font-size: .8em;
}
.wallet code { font-size: .92em; color: #4B4566; }
.wallet span { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--app); }
.wallet span::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: #2FBF71; }
.ticket {
  position: relative;
  padding: 1.1em 1.25em 1.2em;
  border-radius: 1.2em;
  color: #fff;
  background: linear-gradient(135deg, #7B4DFF, #B04DD8);
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; top: 50%;
  width: 1.3em; height: 1.3em; border-radius: 50%;
  background: #F3F0FB; transform: translateY(-50%);
}
.ticket::before { left: -.65em; }
.ticket::after { right: -.65em; }
.ticket .lbl { font-size: .8em; opacity: .8; }
.tno { font-size: 2.7em; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tdraw { font-size: .82em; opacity: .85; margin-top: .2em; }

/* 2. kat: anket */
.s-survey { --app: #B9541A; background: #F8F5F1; color: #1C1611; }
.json {
  font: .64em/1.6 var(--mono);
  background: #1D2029; color: #8E97AB;
  border-radius: .9em; padding: .8em .9em;
  white-space: pre; overflow: hidden;
}
.json .ln { display: inline-block; width: calc(100% + .9em); margin: 0 -.45em; padding: 0 .45em; border-radius: .3em; transition: color .3s, background-color .3s; }
.q {
  background: #fff; border-radius: 1em; padding: .8em 1em;
  opacity: 0; transform: translateY(.9em);
  transition: opacity .4s, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.q > p { font-weight: 600; font-size: .9em; margin-bottom: .45em; }
.s-survey.is-built .q { opacity: 1; transform: none; }
.s-survey.is-built .ln { color: #fff; background: rgba(255, 255, 255, .07); }
.s-survey.is-built .q1, .s-survey.is-built .k1 { transition-delay: .25s; }
.s-survey.is-built .q2, .s-survey.is-built .k2 { transition-delay: .85s; }
.s-survey.is-built .q3, .s-survey.is-built .k3 { transition-delay: 1.45s; }
.stars { color: var(--app); letter-spacing: .12em; font-size: 1.2em; line-height: 1; }
.stars .off { color: #DDD5CC; }
.chips { display: flex; flex-wrap: wrap; gap: .35em; }
.chips span { font-size: .78em; padding: .42em .75em; border-radius: 99em; border: 1px solid #E3DAD1; }
.chips .on { background: var(--app); border-color: var(--app); color: #fff; }
.ta { font-size: .84em; color: #6B5F56; border: 1px solid #EAE2DA; border-radius: .7em; padding: .55em .7em; min-height: 3.3em; }

/* 3. kat: transfer */
.s-transfer { --app: #0C7A70; background: #F2F4F3; color: #121918; }
.steps { display: flex; gap: .4em; font-size: .78em; }
.steps li { flex: 1; padding-top: .55em; border-top: .28em solid #D5DCDA; color: #87908E; }
.steps .done { border-color: var(--app); color: #121918; }
.steps .on { border-color: var(--app); color: var(--app); font-weight: 600; }
.field { background: #fff; border-radius: 1em; padding: .85em 1em; }
.field .lbl { font-size: .78em; color: #7B8583; }
.field p + p { margin-top: .12em; }
.field .mono { font-family: var(--mono); font-size: .78em; color: #5C6664; }
.amount { box-shadow: inset 0 0 0 2px var(--app); }
.amt { font-size: 2.2em; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.caret { display: inline-block; width: .08em; height: .85em; margin-left: .05em; background: var(--app); vertical-align: -.08em; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cov { display: flex; align-items: center; gap: .7em; font-size: .85em; color: #3C4644; margin-top: .2em; }
.cov svg { width: 2.6em; height: 2.6em; }
.cov-arc { stroke: var(--app); transition: stroke-dashoffset 1s cubic-bezier(.2, .7, .2, 1); }
.s-transfer:not(.is-in) .cov-arc { stroke-dashoffset: 94.25; }

/* 4. kat: hesaplar */
.s-accounts { --app: #3640C2; background: #EFF0F6; color: #14162B; }
.hello { font-size: 1.55em; font-weight: 700; letter-spacing: -.015em; }
.balance {
  position: relative;
  background: var(--app); color: #fff;
  border-radius: 1.2em; padding: 1.05em 1.2em 1.35em;
}
.balance .lbl { opacity: .75; font-size: .9em; }
.balance .big { font-size: 1.85em; font-weight: 700; letter-spacing: -.015em; margin-top: .1em; font-variant-numeric: tabular-nums; }
.snap {
  position: absolute; inset: -.4em;
  border: 1.5px dashed var(--diff); border-radius: 1.5em;
  opacity: 0; transition: opacity .3s, border-color .3s;
}
.s-accounts.is-wait .snap { opacity: 1; }
.s-accounts.is-ok .snap { opacity: 1; border-style: solid; border-color: var(--ok); }
.snap-chip {
  position: absolute; right: .7em; bottom: -1.15em;
  display: flex; align-items: center; gap: .55em;
  font: 500 .68em/1 var(--mono);
  background: #fff; color: #14162B;
  padding: .6em .75em; border-radius: .6em;
  box-shadow: 0 .4em 1.2em rgba(20, 22, 43, .16);
  opacity: 0; transform: translateY(.4em);
  transition: opacity .3s, transform .3s;
}
.s-accounts.is-wait .snap-chip, .s-accounts.is-ok .snap-chip { opacity: 1; transform: none; }
.snap-chip .st { color: var(--diff); font-weight: 600; }
.s-accounts.is-ok .snap-chip .st { color: var(--ok); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4em; margin-top: 1em; text-align: center; font-size: .78em; }
.quick b { font-weight: 500; }
.quick i { display: block; width: 3.5em; height: 3.5em; margin: 0 auto .45em; border-radius: 1.05em; background: #fff; position: relative; }
.quick i::after { content: ""; position: absolute; inset: 1.1em; background: var(--app); }
.quick span:nth-child(1) i::after { clip-path: polygon(0 40%, 60% 40%, 60% 10%, 100% 50%, 60% 90%, 60% 60%, 0 60%); }
.quick span:nth-child(2) i::after { border-radius: 50%; }
.quick span:nth-child(3) i::after { inset: 1.25em .95em; border-radius: .2em; }
.quick span:nth-child(4) i::after { border-radius: .15em; background: repeating-conic-gradient(var(--app) 0 25%, transparent 0 50%) 0 0 / 50% 50%; }
.sec { font-weight: 700; font-size: 1.08em; margin-top: .3em; }
.tabbar {
  position: absolute; z-index: 2; bottom: 0; left: 0; right: 0;
  height: 5.6em; padding-top: .75em;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .94);
  border-top: 1px solid #E3E4EC;
  text-align: center; font-size: .7em; color: #8B8EA3;
}
.tabbar span::before { content: ""; display: block; width: 2.1em; height: 2.1em; margin: 0 auto .35em; border-radius: .6em; background: currentColor; opacity: .32; }
.tabbar .on { color: var(--app); font-weight: 600; }
.tabbar .on::before { opacity: 1; }

/* 5. kat: boş */
.s-next {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .3em; text-align: center;
  color: var(--lamp);
}
.sk { position: absolute; left: 9%; right: 9%; height: 1.7em; border: 1px dashed rgba(255, 185, 56, .42); border-radius: .55em; }
.sk1 { top: 9%; right: 52%; }
.sk2 { top: 15.5%; }
.sk3 { top: 22%; height: 4.6em; }
.sk4 { bottom: 19%; }
.sk5 { bottom: 8%; height: 2.8em; border-radius: 1em; }
.next-plus { font: 800 5.4em/.8 var(--display); }
.next-txt { font: 800 2.3em/1 var(--display); color: #FFE2A6; letter-spacing: .01em; }
.next-sub { font-size: 1em; color: rgba(255, 226, 166, .72); }

/* Gezi planı */
.s-trip { --app: #0A69B0; background: #F1F6FA; color: #0F1B26; }
.map { width: 100%; height: 8.6em; border-radius: 1em; flex: none; }
.map .route { stroke: var(--app); }
.map .pin { fill: var(--app); stroke: #fff; stroke-width: 2.5; }
.map text { fill: #fff; font: 700 9px/1 var(--phone-font); }
.prefs { display: flex; flex-wrap: wrap; gap: .35em; }
.prefs span { font-size: .76em; padding: .4em .7em; border-radius: 99em; background: #DDE9F3; color: #0B4C7E; }
.gen { display: flex; align-items: center; gap: .5em; font-weight: 600; font-size: .88em; color: var(--app); }
.spark { width: .9em; height: .9em; border-radius: 50%; border: .16em solid currentColor; border-right-color: transparent; animation: spin .9s linear infinite; }
.s-trip.is-done .spark { animation: none; border-color: currentColor; background: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }
.plan { flex: 1; min-height: 0; background: #fff; border-radius: 1em; padding: .85em 1em; font-size: .84em; line-height: 1.42; overflow: hidden; }
.plan p { margin-top: .3em; }
.plan .day { font-weight: 700; margin-top: .65em; }
.plan .day:first-child { margin-top: 0; }
.plan .tw-caret { display: inline-block; width: .5em; height: 1em; vertical-align: -.15em; background: var(--app); opacity: .6; margin-left: .1em; }

/* Kat Kat */
.s-game { background: #101A36; color: #fff; cursor: pointer; touch-action: manipulation; }
.s-game.playing { touch-action: none; }
.s-game:focus-visible { outline: 3px solid var(--lamp); outline-offset: -3px; border-radius: 0; }
.kk-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.kk-hud { position: absolute; top: 4.4em; left: 0; right: 0; text-align: center; pointer-events: none; }
.kk-score { font: 800 4em/1 var(--display); font-variant-numeric: tabular-nums; }
.kk-best { font-size: .85em; opacity: .7; margin-top: .25em; }
.kk-toast { position: absolute; top: 10.6em; left: 0; right: 0; text-align: center; font-weight: 700; color: #FFD98A; opacity: 0; pointer-events: none; }
.kk-toast.show { animation: toast .95s ease-out; }
@keyframes toast { 0% { opacity: 0; transform: translateY(.4em); } 20% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-.8em); } }
.kk-start {
  position: absolute; left: 50%; top: 42%;
  transform: translate(-50%, -50%);
  max-width: 86%;
  padding: .85em 1.3em; border-radius: 99em;
  background: var(--lamp); color: #1A1406;
  font-weight: 700; text-align: center;
  pointer-events: none;
  box-shadow: 0 .5em 1.5em rgba(0, 0, 0, .35);
}
.s-game.playing .kk-start { display: none; }

/* ---------- Telefon çerçevesi (vitrin) ---------- */

.device {
  --device-h: min(600px, 74svh);
  position: relative;
  height: var(--device-h);
  aspect-ratio: 393 / 852;
  padding: calc(var(--device-h) * .013);
  border-radius: calc(var(--device-h) * .078);
  background: #16181D;
  box-shadow:
    inset 0 0 0 1.5px #4A4E57,
    inset 0 0 0 3px #16181D,
    0 40px 70px -30px rgba(0, 0, 0, .7);
}
.island {
  position: absolute; z-index: 6;
  top: calc(var(--device-h) * .027);
  left: 50%; transform: translateX(-50%);
  width: 31%; height: calc(var(--device-h) * .042);
  border-radius: 999px; background: #000;
  pointer-events: none;
}
.screens {
  position: relative; height: 100%;
  border-radius: calc(var(--device-h) * .066);
  overflow: hidden;
  background: #000;
  container-type: inline-size;
}

/* ---------- Projeler ---------- */

.work { padding-top: clamp(104px, 16vh, 180px); }
.work-head, .work-grid, .proj-wide, .specs, .contact-in, .foot {
  max-width: var(--wrap);
  margin-left: auto; margin-right: auto;
  padding-left: var(--gutter); padding-right: var(--gutter);
}
.work-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 20px 64px; align-items: end;
}
h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(68px, 8.4vw, 140px);
  line-height: .84;
  letter-spacing: -.004em;
}
.work-lede { font-size: 19px; color: var(--ink-2); max-width: 32em; }

.work-grid {
  --stage-h: calc(min(600px, 74svh) + 140px);
  position: relative;
  isolation: isolate;
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(40px, 7vw, 112px);
}
.work-grid::before {
  content: "";
  position: absolute; z-index: -1;
  top: 0; left: 50%;
  width: 100vw; height: var(--stage-h);
  transform: translateX(-50%);
  background: radial-gradient(70% 90% at 50% 20%, var(--night-2), var(--night) 75%);
}
.proj {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(24px, 2.6vw, 40px);
  align-content: start;
}
.proj > * { grid-column: 1 / -1; }
.proj > .proj-stage {
  grid-column: 1; grid-row: 1;
  height: var(--stage-h);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 16px;
}
.proj > .proj-head {
  grid-column: 2; grid-row: 1;
  align-self: end;
  padding-bottom: 76px;
  color: var(--night-ink);
}
.proj-head h3 { margin-top: 10px; font-size: clamp(36px, 3vw, 54px); }
.proj-head .when { margin-top: 0; color: var(--night-dim); }
.proj-head .where { color: var(--night-dim); font-size: 16.5px; }
.shelf-tag { font: 500 12.5px/1 var(--mono); color: var(--night-dim); }
.proj .points { max-width: 34em; margin-top: 40px; }
.proj .games-intro { margin-top: 40px; }
.games-intro { margin-top: 22px; color: var(--ink-2); max-width: 34em; }
.games { margin-top: 22px; display: grid; gap: 14px; }
.games dt { font: 800 26px/1.1 var(--display); letter-spacing: .01em; }
.games dd { color: var(--ink-2); max-width: 34em; }
.games-tech { margin-top: 22px; color: var(--ink-2); max-width: 34em; }

.proj-wide { padding-top: clamp(104px, 15vh, 170px); }
.desk-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 20px 64px; align-items: end;
  margin-bottom: 40px;
}
.desk-head h3 { margin-top: 8px; font-size: clamp(56px, 6vw, 96px); }
.desk-lede { font-size: 19px; color: var(--ink-2); max-width: 34em; }

.window {
  --w-bg: #141A2E; --w-panel: #1A2138; --w-line: #2A3350; --w-ink: #D8DEE9; --w-dim: #8790A4;
  background: var(--w-bg); color: var(--w-ink);
  border-radius: 14px; overflow: hidden;
  font: 13px/1.45 var(--mono);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 40px 80px -36px rgba(15, 23, 51, .55);
}
.win-bar {
  display: flex; align-items: center; gap: 18px;
  padding: 10px 14px;
  background: #1D2440; border-bottom: 1px solid var(--w-line);
}
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.lights i:nth-child(2) { background: #FEBC2E; }
.lights i:nth-child(3) { background: #28C840; }
.win-title { font: 600 14px/1 var(--font); }
.win-tabs { display: flex; gap: 4px; margin-left: 8px; overflow: hidden; }
.win-tabs span { padding: 4px 9px; border-radius: 6px; color: var(--w-dim); white-space: nowrap; }
.win-tabs .on { background: #2A3352; color: var(--w-ink); }
.win-body { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); min-height: 330px; }
.traffic-wrap { overflow-x: auto; }
.traffic { width: 100%; border-collapse: collapse; }
.traffic th { text-align: left; font-weight: 500; color: var(--w-dim); padding: 9px 12px; border-bottom: 1px solid var(--w-line); }
.traffic td { padding: 8px 12px; border-bottom: 1px solid rgba(42, 51, 80, .6); white-space: nowrap; }
.traffic tr.paused td { background: rgba(115, 145, 255, .14); }
.traffic tr.paused td:first-child { box-shadow: inset 3px 0 0 #7391FF; }
.traffic tr.fresh td { animation: row-in .6s ease-out; }
@keyframes row-in { from { background: rgba(115, 145, 255, .22); } }
.plat { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 11px; }
.plat.ios { background: #2A3552; color: #A3BBFF; }
.plat.android { background: #213D2D; color: #8FE0AA; }
.plat.web { background: #42321E; color: #F2C17E; }
.m-GET { color: #8FE0AA; } .m-POST { color: #F2C17E; } .m-PUT { color: #A3BBFF; }
.s-2xx { color: #8FE0AA; } .s-3xx { color: var(--w-dim); } .s-4xx { color: #FF8F8F; } .s-wait { color: #A3BBFF; }
.tag-mock { margin-left: 7px; padding: 0 5px; border: 1px solid #6B5BD6; color: #B9AEFF; border-radius: 4px; font-size: 11px; }
.inspector { border-left: 1px solid var(--w-line); background: var(--w-panel); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.insp-h { color: var(--w-dim); }
.insp-h b { color: var(--w-ink); font-weight: 500; }
.inspector pre { color: var(--w-ink); font: inherit; white-space: pre-wrap; }
.inspector .k { color: #A3BBFF; } .inspector .str { color: #F2C17E; } .inspector .num { color: #8FE0AA; }
.inspector .edit { outline: 1px dashed #7391FF; outline-offset: 2px; border-radius: 2px; }
.compare { color: var(--w-dim); }
.insp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.insp-actions span { padding: 6px 11px; border-radius: 7px; background: #7391FF; color: #0B1024; font-weight: 600; }
.insp-actions .ghost-btn { background: transparent; color: var(--w-ink); box-shadow: inset 0 0 0 1px var(--w-line); }

.desk-notes { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 56px; }
.desk-notes li { position: relative; padding-left: 22px; color: var(--ink-2); max-width: 32em; }
.desk-notes li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1.5px; background: var(--ink-3); }
.proj-wide .tech { margin-top: 26px; }

/* ---------- Yetkinlikler ---------- */

.specs { padding-top: clamp(104px, 15vh, 170px); }
.spec { margin-top: 40px; border-bottom: 1px solid var(--line); }
.spec > div {
  display: grid; grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr);
  gap: 8px 40px; padding: 18px 0;
  border-top: 1px solid var(--line);
}
.spec dt { font: 800 24px/1.15 var(--display); letter-spacing: .01em; }
.spec dd { color: var(--ink-2); max-width: 46em; }

/* ---------- İletişim (gece) ---------- */

.contact {
  margin-top: clamp(112px, 18vh, 200px);
  background: radial-gradient(80% 120% at 85% 30%, var(--night-2), var(--night) 70%);
  color: var(--night-ink);
}
.contact-in {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px 64px; align-items: center;
  padding-top: clamp(96px, 16vh, 170px); padding-bottom: clamp(88px, 14vh, 150px);
}
.contact h2 { font-size: clamp(64px, 8vw, 132px); max-width: 9ch; }
.contact-lede { margin-top: 28px; font-size: 19px; color: var(--night-dim); max-width: 32em; }
.contact-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 40px; }
.mail-big {
  font-size: clamp(24px, 3vw, 40px); font-weight: 600; letter-spacing: -.015em;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em;
  text-decoration-color: var(--lamp);
  overflow-wrap: anywhere;
}
.mail-big:hover { color: var(--lamp); }
.btn-ghost { background: transparent; border: 1px solid var(--night-line); color: var(--night-ink); }
.btn-ghost:hover { border-color: rgba(233, 237, 247, .45); }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px 30px; margin-top: 36px; font-size: 18px; }
.contact-links a { text-underline-offset: 5px; text-decoration-color: rgba(233, 237, 247, .35); }
.contact-links a:hover { color: var(--lamp); text-decoration-color: currentColor; }
.contact :focus-visible { outline-color: var(--lamp); }

/* Küçük kule: e-postaya gelince boş kat yerine oturur. */
.mini { position: relative; height: 420px; perspective: 1500px; perspective-origin: 50% 20%; }
.mini-tower {
  position: absolute; left: 50%; top: 70%;
  width: 0; height: 0;
  transform-style: preserve-3d;
  transform: rotateX(56deg) rotateZ(-38deg);
}
.mini-tower i {
  position: absolute; left: 0; top: 0;
  width: 112px; height: 243px;
  margin: -121.5px 0 0 -56px;
  border-radius: 14px;
  border: 1.5px solid var(--tone);
  background: color-mix(in srgb, var(--tone) 18%, transparent);
  transform: translateZ(calc(var(--i) * 30px));
  transition: transform .8s cubic-bezier(.3, 1.3, .5, 1), background-color .4s;
}
.mini-tower .mini-next {
  display: grid; place-items: center;
  border-style: dashed;
  background: rgba(255, 185, 56, .06);
  transform: translateZ(250px);
}
.mini-next b { font: 800 72px/1 var(--display); color: var(--lamp); transform: rotate(38deg); }
.contact:has(.mail-big:hover, .mail-big:focus-visible, .btn-copy:hover, .btn-copy:focus-visible) .mini-next {
  transform: translateZ(150px);
  background: rgba(255, 185, 56, .2);
}

.foot {
  padding-top: 26px; padding-bottom: 36px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: 14px; color: var(--ink-3);
}

/* ---------- Mobil: kule üstte yapışık bir şerit, metin altında akar ---------- */

@media (max-width: 959px) {
  :root { --bar-h: 58px; --band-h: 42svh; }
  html { scroll-padding-top: var(--bar-h); }

  .story { display: flex; flex-direction: column; }
  .stage {
    position: sticky; top: var(--bar-h); z-index: 5;
    height: var(--band-h);
    border-bottom: 1px solid var(--night-line);
  }
  .stage-inner { position: absolute; inset: 0; height: auto; }
  .scene { inset: 0; perspective: 1500px; }
  .tower {
    --lw: min(23vw, 12.4svh);
    --gap-base: calc(var(--lw) * .3);
    --ox: calc(var(--lw) * 1.38);
    --oy: calc(var(--lw) * -.58);
    --oz: 110px;
    --oc: -10deg;
    --os: .96;
    left: 57%; top: 69%;
  }
  .tower.has-out { --sx: calc(var(--lw) * -.42); }
  .layer-tag { display: none; }
  .jumpbar, .drag-hint { display: none; }
  .lift { left: 10px; top: 50%; gap: 6px; padding: 9px 6px 8px; border-radius: 22px; }
  .lift button { width: 30px; height: 30px; font-size: 13px; }
  .lift-dir { gap: 3px; padding-bottom: 2px; }
  .lift-dir i { border-left-width: 5px; border-right-width: 5px; }
  .lift-dir .up { border-bottom-width: 6px; }
  .lift-dir .down { border-top-width: 6px; }

  .story-text { padding: 0 var(--gutter); }
  .hero { min-height: 0; padding: 36px 0 28px; }
  h1 { font-size: clamp(76px, 22vw, 132px); line-height: .86; margin-top: 18px; }
  .chapter {
    min-height: 0; max-width: none;
    padding: 56px 0 36px;
    scroll-margin-top: calc(var(--bar-h) + var(--band-h));
  }
  #deneyim { scroll-margin-top: calc(var(--bar-h) + var(--band-h)); }
  .ch-head { grid-template-columns: 46px minmax(0, 1fr); gap: 16px; }
  .ch-no { width: 46px; height: 46px; font-size: 18px; }
  .chapter .points, .chapter .tech, .chapter .earlier, .ground-note { margin-left: 0; }
  .ground-note { padding-bottom: 32px; }

  .work-head, .desk-head { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; margin-top: 36px; }
  .work-grid::before { display: none; }
  .proj { display: block; }
  .proj + .proj { margin-top: 72px; }
  .proj > .proj-head { padding: 32px 0 0; color: var(--ink); }
  .proj-head .when, .proj-head .where { color: var(--ink-3); }
  .proj-head .where { color: var(--ink-2); }
  .proj .points, .proj .games-intro { margin-top: 24px; }
  .proj > .proj-stage {
    height: auto;
    margin: 0 calc(-1 * var(--gutter));
    padding: 36px var(--gutter) 44px;
    align-items: center;
    background: radial-gradient(70% 90% at 50% 20%, var(--night-2), var(--night) 75%);
  }
  .device { --device-h: min(560px, 128vw); }
  .desk-notes { grid-template-columns: 1fr; }
  .contact-in { grid-template-columns: 1fr; }
  .mini { height: 300px; order: -1; margin-bottom: -40px; }
  .mini-tower { transform: rotateX(56deg) rotateZ(-38deg) scale(.8); }
}
@media (max-width: 760px) {
  .nav a:not(.nav-contact) { display: none; }
  .win-body { grid-template-columns: 1fr; }
  .inspector { border-left: 0; border-top: 1px solid var(--w-line); }
  .spec > div { grid-template-columns: 1fr; gap: 4px; }
  .earlier li { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 520px) {
  body { font-size: 16.5px; }
  .wordmark { font-size: 21px; }
  .mark { width: 26px; height: 26px; }
  .topbar { gap: 14px; }
  .nav { gap: 14px; }
  .c-time, .win-tabs { display: none; }
  .window { font-size: 12px; }
  .traffic { table-layout: fixed; }
  .traffic td, .traffic th { padding: 7px 8px; overflow: hidden; text-overflow: ellipsis; }
  .traffic th:nth-child(1) { width: 27%; }
  .traffic th:nth-child(2) { width: 17%; }
  .traffic th:nth-child(4) { width: 25%; }
  .tag-mock { display: none; }
  h3 { font-size: 44px; }
}

/* ---------- Hareket azaltma ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}

/* ---------- Yazdırma: sayfa sade bir CV'ye dönüşür ---------- */

@media print {
  @page { margin: 16mm; }
  :root { --band-h: auto; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  .topbar, .stage, .proj-stage, .window, .skip, .actions, .hero-note, .btn-copy, .contact-links, .foot, .status, .mini, .ground-note { display: none !important; }
  .story { display: block; }
  .story-text { padding: 0; }
  .hero, .chapter { min-height: 0; padding: 0 0 12pt; display: block; max-width: none; }
  .work, .proj-wide, .specs, .contact-in { padding: 14pt 0 0; max-width: none; }
  .work-grid { display: block; margin: 0; padding: 0; }
  .work-grid::before { display: none; }
  .contact { background: none; color: #000; margin: 0; }
  .contact-lede { color: #000; }
  .ch-head { grid-template-columns: 1fr; }
  .ch-no { display: none; }
  .chapter .points, .chapter .tech, .chapter .earlier { margin-left: 0; }
  h1 { font-size: 34pt; }
  h1 span { display: inline; }
  h2 { font-size: 20pt; margin-bottom: 6pt; }
  h3 { font-size: 15pt; }
  .contact h2 { font-size: 16pt; max-width: none; }
  .mail-big { font-size: 12pt; color: #000; }
  .chapter, .proj, .spec > div { break-inside: avoid; }
  a { color: #000; }
}
