/* ==========================================================================
   burakmalgaz.com.tr — Scroll Story
   Saf CSS · framework yok

   01. Tokenlar              10. Arayüz
   02. Temel                 11. Sunucu
   03. Yükleme kapısı        12. Cephanelik
   04. Sabit arayüz          13. Eserler (şimdilik pasif)
   05. Sahne iskeleti        14. Zaman çizgisi
   06. Tipografi             15. Final
   07. Prolog                16. Animasyonlar
   08. Ara perde             17. Küçük ekranlar
   09. Kıvılcım              18. Hareket azaltma
   ========================================================================== */

/* 01. TOKENLAR ------------------------------------------------------------ */
:root {
  --ink: #05060a;
  --ink-2: #07090f;
  --text: #e8ecf5;

  --cyan: #38e1ff;
  --violet: #a78bfa;
  --amber: #ffb86b;
  --mint: #7cf7c5;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --container: 72rem;
  --gutter: 24px;
  --stage-h: 100vh;
}

@supports (height: 100svh) {
  :root {
    --stage-h: 100svh;
  }
}

/* 02. TEMEL --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-width: none;
  overflow-anchor: none;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* clip yeni scroll container olusturmaz; sticky sahneler normal sayfa scroll'unu izler. */
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

::selection {
  background: var(--cyan);
  color: var(--ink);
}

:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 03. YÜKLEME KAPISI ------------------------------------------------------ */
html.js main,
html.js .chrome-fade {
  opacity: 0;
}

html.js.is-ready main,
html.js.is-ready .chrome-fade {
  opacity: 1;
  transition: opacity 1.1s var(--ease);
}

/* 04. SABİT ARAYÜZ -------------------------------------------------------- */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.progress__bar {
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--amber));
}

.brand {
  position: fixed;
  top: 24px;
  left: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.85);
}

.brand__domain {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.35);
}

.pulse {
  --pulse: var(--cyan);
  position: relative;
  display: inline-flex;
  flex: none;
  width: 10px;
  height: 10px;
}

.pulse::before,
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--pulse);
}

.pulse::before {
  opacity: 0.6;
  animation: ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse--mint {
  --pulse: var(--mint);
  width: 8px;
  height: 8px;
}

.rail {
  position: fixed;
  top: 50%;
  right: 16px;
  z-index: 50;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  transform: translateY(-50%);
}

.rail__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 3px 0;
  outline: none;
}

.rail__text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.65);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.rail__tick {
  display: block;
  width: 14px;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  transition: width 0.5s var(--ease), background-color 0.5s, box-shadow 0.5s;
}

.rail__item:hover .rail__text,
.rail__item:focus-visible .rail__text {
  opacity: 0.5;
  transform: none;
}

.rail__item:hover .rail__tick {
  background: rgba(255, 255, 255, 0.6);
}

.rail__item.is-active .rail__text {
  opacity: 1;
  transform: none;
}

.rail__item.is-active .rail__tick {
  width: 34px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.badge {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 50;
  pointer-events: none;
}

.badge__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.3);
}

.badge__label {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.025em;
  color: rgba(255, 255, 255, 0.7);
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: radial-gradient(130% 90% at 50% 50%, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 60;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Fixed, viewporttan buyuk noise katmanini her karede tasimak pahali. */
}

/* 05. SAHNE İSKELETİ ------------------------------------------------------ */
main {
  position: relative;
  z-index: 10;
}

.scene {
  position: relative;
  height: var(--scene-h, 300vh);
}

@supports (height: 100svh) {
  .scene {
    /* Sticky sahne ile ayni sabit birim; URL cubugu acilip kapaninca sicrama olmaz. */
    height: var(--scene-sh, 300svh);
  }
}

.stage {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--stage-h);
  overflow: hidden;
}

.wrap {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* 06. TİPOGRAFİ ----------------------------------------------------------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.kicker--cyan {
  color: rgba(56, 225, 255, 0.75);
}

.kicker--violet {
  color: rgba(167, 139, 250, 0.85);
}

.kicker--amber {
  color: rgba(255, 184, 107, 0.85);
}

.h2 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
}

.h3 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

.dim {
  color: rgba(255, 255, 255, 0.4);
}

.lead {
  max-width: 28rem;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
}

.lead--sm {
  max-width: 24rem;
  margin-top: 0;
  color: rgba(255, 255, 255, 0.45);
}

.lead--center {
  margin: 12px auto 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
}

.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.text-glow {
  text-shadow: 0 0 36px rgba(56, 225, 255, 0.35), 0 0 90px rgba(167, 139, 250, 0.2);
}

/* 07. PROLOG -------------------------------------------------------------- */
.prolog__inner {
  position: relative;
  width: 100%;
  padding: 0 var(--gutter);
}

.prolog__kicker {
  margin: 0 auto 40px;
  padding-left: 0.42em;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.intro-fade {
  display: inline-block;
  animation: introFade 1.6s 0.35s var(--ease) both;
}

.prolog__name {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 9.2vw, 9rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
  perspective: 800px;
}

.char {
  display: inline-block;
}

.char--space {
  width: 0.3em;
}

.prolog__line {
  max-width: 48rem;
  margin: 28px auto 0;
  transform: scaleX(0);
}

.prolog__role {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 48rem;
  margin: 28px auto 0;
  text-align: center;
}

.prolog__title {
  padding-left: 0.5em;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.5em;
  color: rgba(255, 255, 255, 0.8);
}

.prolog__lead {
  max-width: 32rem;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
}

.scroll-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.scroll-hint__label {
  padding-left: 0.35em;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.35);
}

.scroll-hint__track {
  position: relative;
  width: 1px;
  height: 56px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.scroll-hint__dot {
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, transparent, var(--cyan));
  animation: drop 1.8s cubic-bezier(0.6, 0, 0.3, 1) infinite;
}

/* 08. ARA PERDE ----------------------------------------------------------- */
.interlude__inner {
  position: relative;
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}

.interlude__text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4.4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.28;
}

.word {
  display: inline-block;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.12s linear;
}

.word.is-lit {
  color: #fff;
}

.interlude__note {
  margin-top: 32px;
  padding-left: 0.35em;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--tone, var(--cyan));
}

.interlude__line {
  max-width: 20rem;
  height: 1px;
  margin: 32px auto 0;
  opacity: 0.5;
  transform: scaleX(0);
  background: linear-gradient(90deg, transparent, var(--tone, var(--cyan)), transparent);
}

/* 09. KIVILCIM ------------------------------------------------------------ */
.kivilcim__grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 36px;
}

.beats {
  display: grid;
  order: 2;
}

.beat {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(22px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
}

.beat.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s;
}

.terminal {
  order: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(7, 9, 16, 0.82);
  box-shadow: 0 30px 120px -30px rgba(56, 225, 255, 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.tdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tdot--r {
  background: #ff5f57;
}

.tdot--y {
  background: #febc2e;
}

.tdot--g {
  background: #28c840;
}

.terminal__title {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
}

.terminal__body {
  height: 320px;
  padding: 18px 20px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.8;
}

.t-line {
  min-height: 1.8em;
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(255, 255, 255, 0.75);
}

.t-cmd {
  color: var(--cyan);
}

.t-dim {
  color: rgba(255, 255, 255, 0.45);
}

.has-caret::after {
  content: "▌";
  margin-left: 1px;
  color: var(--cyan);
  animation: blink 1s steps(1) infinite;
}

/* 10. ARAYÜZ -------------------------------------------------------------- */
.arayuz__grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 36px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.step {
  --on: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0.25;
}

.step__line {
  flex: none;
  width: calc(14px + var(--on) * 26px);
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  transition: background-color 0.4s, box-shadow 0.4s;
}

.step.is-on .step__line {
  background: var(--violet);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.6);
}

.step__title {
  font-family: var(--font-display);
  font-size: 14px;
  color: #fff;
}

.step__desc {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
}

.device {
  position: relative;
  transform-origin: center;
}

.browser {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(7, 9, 15, 0.86);
  box-shadow: 0 40px 110px -40px rgba(167, 139, 250, 0.3);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  clip-path: inset(0 100% 0 0);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bdot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.browser__url {
  flex: 1;
  min-width: 0;
  margin-left: 12px;
  padding: 4px 12px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.35);
}

.browser__view {
  position: relative;
  width: 100%;
  height: 270px;
}

.wf {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1%);
  height: calc(var(--h) * 1%);
  overflow: hidden;
  border: 1px dashed rgba(167, 139, 250, 0.5);
  border-radius: 6px;
}

.wf__label {
  position: absolute;
  top: 6px;
  left: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: rgba(167, 139, 250, 0.75);
}

.wf__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  opacity: 0;
}

.wf__content--row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.sk {
  display: block;
  flex: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.15);
}

.sk-row {
  display: flex;
  gap: 8px;
}

.sk--logo {
  width: 64px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.sk--link {
  width: 32px;
  background: rgba(255, 255, 255, 0.25);
}

.sk--title {
  width: 75%;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.sk--subtitle {
  width: 50%;
  height: 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.55);
}

.sk--strong {
  background: rgba(255, 255, 255, 0.45);
}

.sk--faint {
  background: rgba(255, 255, 255, 0.12);
}

.sk--btn {
  width: 96px;
  height: 20px;
  margin-top: 6px;
  background: rgba(56, 225, 255, 0.8);
}

.sk--w66 {
  width: 66%;
}

.sk--w80 {
  width: 80%;
}

.sk--w83 {
  width: 83%;
}

.sk--mt {
  margin-top: 6px;
}

.scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 96px;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(56, 225, 255, 0.18), transparent);
}

.device__caption {
  margin-top: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.3);
  opacity: 0;
}

/* 11. SUNUCU -------------------------------------------------------------- */
.sunucu__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.pipeline {
  position: relative;
  width: 100%;
  height: clamp(230px, 36vh, 400px);
}

.pipeline__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pipeline__ghost {
  fill: none;
  stroke: rgba(255, 255, 255, 0.09);
  stroke-width: 1.5;
  stroke-dasharray: 6 8;
}

.pipeline__path {
  fill: none;
  stroke: url(#pipeGrad);
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(56, 225, 255, 0.5));
}

.node {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  z-index: 2;
  width: 0;
  height: 0;
  opacity: 0;
}

.node__box {
  position: absolute;
  top: -22px;
  left: -22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(10, 12, 20, 0.8);
  transition: border-color 0.5s, background-color 0.5s, box-shadow 0.5s, transform 0.5s var(--ease);
}

.node__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: background-color 0.5s;
}

.node__meta {
  position: absolute;
  top: 32px;
  left: 0;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}

.node__label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: rgba(255, 255, 255, 0.9);
}

.node__sub {
  display: none;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.35);
}

.node.is-reached .node__box {
  border-color: rgba(56, 225, 255, 0.6);
  background: rgba(9, 30, 40, 0.88);
}

.node.is-reached .node__dot {
  background: var(--cyan);
}

.node.is-active .node__box {
  transform: scale(1.18);
  box-shadow: 0 0 32px rgba(56, 225, 255, 0.55);
}

.node.is-returned .node__box {
  border-color: rgba(124, 247, 197, 0.6);
  background: rgba(10, 36, 30, 0.88);
}

.node.is-returned .node__dot {
  background: var(--mint);
}

.node.is-returned.is-active .node__box {
  box-shadow: 0 0 32px rgba(124, 247, 197, 0.55);
}

.packet {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 0;
  height: 0;
  opacity: 0;
  will-change: transform;
}

.packet__dot {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px 6px rgba(56, 225, 255, 0.45);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.packet__label {
  position: absolute;
  bottom: 30px;
  left: 0;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: var(--cyan);
}

.packet.is-back .packet__dot {
  background: var(--mint);
  box-shadow: 0 0 18px 6px rgba(124, 247, 197, 0.45);
}

.packet.is-back .packet__label {
  color: var(--mint);
}

.logs {
  max-width: 42rem;
  margin: 36px auto 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
}

.log {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0;
}

.log--ok {
  color: var(--mint);
}

/* 12. CEPHANELİK ---------------------------------------------------------- */
.cephane__wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 var(--gutter);
}

.cephane__head {
  margin-bottom: 20px;
  text-align: center;
}

.cephane__head .h2 {
  margin-top: 12px;
}

.orbit {
  position: relative;
  width: min(86vw, 520px, 60vh);
  aspect-ratio: 1 / 1;
}

@supports (width: 1svh) {
  .orbit {
    width: min(86vw, 520px, 60svh);
  }
}

.orbit__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.orbit__ring--0 {
  width: 42%;
  height: 42%;
  border-color: rgba(255, 255, 255, 0.14);
}

.orbit__ring--1 {
  width: 66%;
  height: 66%;
  border-color: rgba(255, 255, 255, 0.11);
}

.orbit__ring--2 {
  width: 90%;
  height: 90%;
  border-color: rgba(255, 255, 255, 0.08);
}

.orbit__core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(7, 9, 16, 0.85);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 40px rgba(56, 225, 255, 0.3), inset 0 0 30px rgba(167, 139, 250, 0.18);
}

.orbit__year {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.orbit__label {
  max-width: 86%;
  margin-top: 7px;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.5);
}

.orbit__label.is-tech {
  color: var(--cyan);
}

.orbit__chips {
  position: absolute;
  inset: 0;
}

.chip {
  --tone: var(--cyan);
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 4px 10px;
  border: 1px solid color-mix(in srgb, var(--tone) 35%, transparent);
  border-radius: 99px;
  background: rgba(5, 6, 10, 0.72);
  box-shadow: 0 0 18px color-mix(in srgb, var(--tone) 12%, transparent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: var(--tone);
  transform: translate(-50%, -50%);
  opacity: 0;
  will-change: transform, opacity;
  transition: box-shadow 0.5s, background-color 0.5s;
}

/* Yeni yörüngeye girmiş teknoloji kısa süre parlar */
.chip.is-new {
  background: color-mix(in srgb, var(--tone) 22%, rgba(5, 6, 10, 0.8));
  box-shadow: 0 0 28px color-mix(in srgb, var(--tone) 60%, transparent);
}

.chip[data-ring="1"] {
  --tone: var(--violet);
}

.chip[data-ring="2"] {
  --tone: var(--amber);
}

.orbit__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.legend {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--cyan);
  opacity: 0;
}

.legend[data-ring="1"] {
  color: var(--violet);
}

.legend[data-ring="2"] {
  color: var(--amber);
}

/* 13. ESERLER (şimdilik pasif — js/config.js) ----------------------------- */
.eserler__wrap {
  position: relative;
  width: 100%;
}

.eserler__head {
  margin-bottom: 32px;
  padding: 0 var(--gutter);
  pointer-events: none;
}

.eserler__head .h2 {
  margin-top: 12px;
}

.track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: max-content;
  padding: 0 var(--gutter);
  will-change: transform;
}

.work {
  --tone: var(--cyan);
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  justify-content: space-between;
  width: 78vw;
  min-height: min(62vh, 480px);
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(10, 12, 20, 0.85);
  box-shadow: 0 40px 120px -50px var(--tone);
}

.work__glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 224px;
  height: 224px;
  border-radius: 50%;
  background: var(--tone);
  opacity: 0.14;
  filter: blur(64px);
  pointer-events: none;
}

.work__body,
.work__foot {
  position: relative;
}

.work__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.work__no {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: color-mix(in srgb, var(--tone) 20%, transparent);
}

.work__kind {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-align: right;
  text-transform: uppercase;
  color: var(--tone);
}

.work__title {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: #fff;
}

.work__desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
}

.work__foot {
  margin-top: 32px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.55);
}

.work__rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.work__metric {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--tone);
}

.work-end {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70vw;
  text-align: center;
}

.work-end__title {
  font-family: var(--font-display);
  font-size: 24px;
  color: rgba(255, 255, 255, 0.8);
}

.work-end__sub {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.3);
}

.track-progress {
  max-width: 20rem;
  height: 1px;
  margin: 32px var(--gutter) 0;
  background: rgba(255, 255, 255, 0.1);
}

.track-progress__bar {
  height: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--cyan);
}

/* 14. ZAMAN ÇİZGİSİ ------------------------------------------------------- */
.zaman__grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 36px;
}

.years {
  position: relative;
  height: 120px;
  margin-top: 32px;
}

.year {
  position: absolute;
  inset: 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 8rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0;
  transition: color 0.5s;
}

.year.is-active {
  color: #fff;
}

/* Uzun yıl aralıkları da sol kolonda taşmadan okunur. */
.year--range {
  font-size: clamp(2rem, 5.6vw, 4.5rem);
  letter-spacing: -0.04em;
}

.ticks {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.tick {
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  transition: width 0.5s var(--ease), background-color 0.5s, box-shadow 0.5s;
}

.tick.is-past {
  background: var(--violet);
}

.tick.is-active {
  width: 40px;
  box-shadow: 0 0 12px var(--violet);
}

.moments {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.moments__line {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
}

.moments__fill {
  width: 1px;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top center;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
}

.moment {
  position: absolute;
  top: 50%;
  left: 32px;
  right: 0;
  transform: translateY(-50%);
  opacity: 0;
}

.moment__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.moment__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}

.moment__year {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(56, 225, 255, 0.75);
}

.moment__title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: #fff;
}

.moment__text {
  max-width: 28rem;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
}

/* 15. FİNAL --------------------------------------------------------------- */
.final__particles {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.final__field {
  position: relative;
  width: 70vmin;
  height: 70vmin;
}

.spark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--tone);
  opacity: 0;
  will-change: transform, opacity;
}

.final__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 225, 255, 0.35), transparent 70%);
  opacity: 0;
  transform: scale(0.07);
}

.final__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 var(--gutter);
}

.final__copy {
  text-align: center;
}

.final__title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6.5vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.final .lead--center {
  max-width: 32rem;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.5);
}

.email-link {
  position: relative;
  display: inline-block;
  margin-top: 48px;
  padding-bottom: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.1vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.025em;
  color: rgba(255, 255, 255, 0.82);
  opacity: 0;
  transition: color 0.3s;
}

.email-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  transform: scaleX(0.3);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), rgba(56, 225, 255, 0.08));
  transition: transform 0.45s var(--ease);
}

.email-link:hover {
  color: var(--cyan);
}

.email-link:hover::after,
.email-link:focus-visible::after {
  transform: scaleX(1);
}

.final__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  opacity: 0;
}

.final__foot .hairline {
  width: 160px;
}

.final__foot p {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-align: center;
  color: rgba(255, 255, 255, 0.25);
}

/* 16. ANİMASYONLAR -------------------------------------------------------- */
@keyframes ping {
  75%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes drop {
  0% {
    transform: translateY(-24px);
  }
  100% {
    transform: translateY(56px);
  }
}

@keyframes introFade {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes grain {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-3%, 2%);
  }
  100% {
    transform: translate(2%, -3%);
  }
}

/* RESPONSIVE: büyüyen ekranlar ------------------------------------------- */
@media (min-width: 640px) {
  .node__sub {
    display: block;
  }

  .work {
    width: 62vw;
  }

  .work-end {
    width: 50vw;
  }
}

@media (min-width: 768px) {
  .brand,
  .badge {
    left: 40px;
  }

  .rail {
    display: flex;
  }

  .h2 {
    font-size: 48px;
    line-height: 1.12;
  }

  .h3 {
    font-size: 30px;
  }

  .lead {
    font-size: 16px;
  }

  .lead--sm,
  .lead--center {
    font-size: 14px;
  }

  .prolog__title {
    font-size: 20px;
  }

  .prolog__lead {
    font-size: 16px;
  }

  .terminal__body {
    height: 380px;
    font-size: 13px;
  }

  .browser__view {
    height: 400px;
  }

  .sunucu__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
  }

  .node__label {
    font-size: 12px;
  }

  .logs {
    font-size: 11px;
  }

  .orbit__core {
    width: 112px;
    height: 112px;
  }

  .orbit__year {
    font-size: 26px;
  }

  .orbit__label {
    font-size: 9px;
  }

  .chip {
    padding: 4px 12px;
    font-size: 10px;
  }

  .eserler__head {
    padding: 0 64px;
  }

  .track {
    gap: 32px;
    padding: 0 64px;
  }

  .track-progress {
    margin: 32px 64px 0;
  }

  .work {
    width: 38vw;
    padding: 32px;
  }

  .work__no {
    font-size: 60px;
  }

  .work__title {
    font-size: 30px;
  }

  .work-end {
    width: 28vw;
  }

  .zaman__grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
  }

  .years {
    height: 170px;
  }

  .moments {
    height: 360px;
  }

  .moment {
    left: 48px;
  }

  .moment__title {
    font-size: 36px;
  }

  .moment__text {
    font-size: 16px;
  }

  .final .lead--center {
    font-size: 16px;
  }

}

@media (min-width: 1024px) {
  .kivilcim__grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .beats {
    order: 1;
  }

  .terminal {
    order: 2;
  }

  .arayuz__grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
  }

  .work {
    width: 30vw;
  }
}

/* 17. KÜÇÜK EKRANLAR ------------------------------------------------------ */
@media (max-width: 767px) {
  :root {
    --gutter: 20px;
  }

  .h2 {
    font-size: 27px;
  }

  /* Mobilde sürekli yeniden çizilen arka plan üstünde blur pahalı: kapat */
  .terminal,
  .browser {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .terminal {
    background: rgba(7, 9, 16, 0.95);
  }

  .browser {
    background: rgba(7, 9, 15, 0.95);
  }

  .steps {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 20px;
  }

  .step {
    gap: 8px;
  }

  .step__desc {
    display: none;
  }

  .wf__content {
    gap: 5px;
    padding: 8px;
  }

  .sk--title,
  .sk--subtitle {
    height: 9px;
  }

  .sk--btn {
    width: 60px;
    height: 14px;
    margin-top: 3px;
  }

  .sk--faint {
    display: none;
  }

  .sk--logo {
    width: 44px;
  }

  .sk--link {
    width: 22px;
  }

  .sk-row {
    gap: 6px;
  }

  .scroll-hint {
    bottom: 40px;
  }

  /* Mobilde sahneler ekranı dolduruyor: sabit katmanlar metnin üstüne binmesin */
  .badge {
    display: none;
  }

  html.is-ready body[data-chapter]:not([data-chapter="prolog"]):not([data-chapter="final"]) .brand {
    opacity: 0;
  }

  .terminal__body {
    height: 300px;
    padding: 16px 18px;
    font-size: clamp(9.5px, 2.75vw, 11px);
    line-height: 1.7;
  }

  .t-line {
    min-height: 1.7em;
  }
}

/* Kısa telefonlar (iPhone SE vb.) */
@media (max-width: 767px) and (max-height: 720px) {
  .h2 {
    font-size: 24px;
  }

  .lead {
    margin-top: 12px;
    font-size: 13px;
  }

  .kivilcim__grid,
  .arayuz__grid,
  .zaman__grid {
    gap: 22px;
  }

  .terminal__body {
    height: 244px;
    padding: 12px 14px;
    font-size: 10px;
    line-height: 1.55;
  }

  .t-line {
    min-height: 1.55em;
  }

  .arayuz__lead,
  .sunucu__lead {
    display: none;
  }

  .browser__view {
    height: 230px;
  }

  .sunucu__head {
    margin-bottom: 24px;
  }

  .logs {
    margin-top: 24px;
  }

  .years {
    height: 96px;
    margin-top: 20px;
  }

  .moments {
    height: 250px;
  }

  .email-link {
    margin-top: 32px;
  }

  .final__foot {
    margin-top: 26px;
  }
}

/* 18. HAREKET AZALTMA ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .grain,
  .intro-fade,
  .scroll-hint__dot,
  .pulse::before,
  .has-caret::after {
    animation: none !important;
  }

  .beat,
  .rail__text,
  .rail__tick,
  .node__box,
  .tick,
  .word {
    transition-duration: 0.01ms !important;
  }
}
