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

:root {
  --ink: #1a1410;
  --paper: #f2ece0;
  --cream: #ede5d3;
  --bone: #e8e1d0;
  --rose: #fde8ea;
  --blush: #f4ddd6;
  --alert: #c41e3a;
  --midnight: #0a0e27;
  --moonlight: #e6e9f5;
  --starlight: #f8e9b0;
  --terminal-bg: #0d1117;
  --terminal-fg: #7ee787;
  --terminal-dim: #8b949e;
  --terminal-amber: #f0b72f;
  --clay: #c4936a;
  --forest: #1e2e21;
  --sage: #d8dfd0;
  --sepia: #efe4cf;
  --gold: #b08a3e;
  --sand: #ead7b0;
  --rust: #a0411a;
  --indigo: #1e1a4a;
  --violet: #6b4ba0;
  --electric: #7dd3fc;
  --china-red: #c72c2c;
  --china-gold: #f4c430;
  --noir: #111111;
  --noir-paper: #e9e4da;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}
html[data-preset="sade"] {
  --font-display: 'Inter', system-ui, sans-serif;
}
html[data-preset="okuma"] {
  --font-display: 'Source Serif 4', Georgia, serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.serif { font-family: var(--font-display); font-variation-settings: 'opsz' 144; }
.serif-text { font-family: var(--font-display); font-variation-settings: 'opsz' 14; }
.mono { font-family: 'JetBrains Mono', monospace; }

.kicker {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.page {
  min-height: 100vh;
  padding: 9vh 7vw;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid rgba(0,0,0,0.08);
}
.page:last-child { border-bottom: none; }
.page .pagenum {
  position: absolute;
  bottom: 3vh; right: 7vw;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  opacity: 0.6;
  pointer-events: none;
}
.page .source {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  max-width: 56ch;
  position: relative;
  z-index: 3;
  cursor: pointer;
}
.page .source:hover,
.page .source:focus-visible {
  background: rgba(0,0,0,0.06);
  outline: none;
}
.page .source .favicon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 2px;
  background: #fff;
  padding: 1px;
}
.page .source .ext {
  font-style: normal;
  font-size: 0.9em;
  opacity: 0.7;
  transform: translateY(-1px);
}
.page .source .name {
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}
.page .source .name .tr {
  font-style: italic;
  opacity: 0.78;
  font-weight: 400;
}
.page .source .favicon {
  margin-top: 2px;
}
.page .source .ext {
  margin-top: 5px;
}
.p-midnight .source:hover,
.p-midnight .source:focus-visible,
.p-noir .source:hover,
.p-noir .source:focus-visible,
.p-terminal .source:hover,
.p-terminal .source:focus-visible,
.p-gradient .source:hover,
.p-gradient .source:focus-visible,
.p-warn .source:hover,
.p-warn .source:focus-visible {
  background: rgba(255,255,255,0.08);
}
/* ——— Kaynak "sesleri" — layout karakterine göre farklı treatment ——— */

/* FRAMED (default): mevcut kutu — p-hero, p-midnight, p-bigstat, p-corp,
   p-diptych, p-timeline, p-cover, p-gradient, p-warn */
.p-hero .source {
  border-width: 2px;
  padding: 8px 16px;
}

/* STAMP — hafif rotasyon, damga hissi (p-stamp, p-noir) */
.p-stamp .source,
.p-noir .source {
  transform: rotate(-1.5deg);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 8px 14px;
}
.p-noir .source { border-style: dashed; }
.p-stamp .source {
  border-width: 2px;
  background: rgba(255,255,255,0.35);
}

/* TERMINAL — kutu yok, monospace, "// kaynak:" prefix (p-terminal, p-tech) */
.p-terminal .source,
.p-tech .source {
  border: none;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  font-family: 'JetBrains Mono', monospace;
  font-style: normal;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0.02em;
  gap: 6px;
}
.p-terminal .source::before,
.p-tech .source::before {
  content: '//';
  opacity: 0.55;
}
.p-terminal .source .favicon,
.p-tech .source .favicon { display: none; }
.p-terminal .source:hover,
.p-terminal .source:focus-visible,
.p-tech .source:hover,
.p-tech .source:focus-visible {
  background: transparent !important;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* BYLINE — kutu yok, em-dash yazar (p-quote, p-letter, p-classic, p-drop, p-formula) */
.p-quote .source,
.p-letter .source,
.p-classic .source,
.p-drop .source,
.p-formula .source {
  border: none;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  font-style: italic;
  font-size: 15px;
  gap: 6px;
}
.p-quote .source::before,
.p-letter .source::before,
.p-classic .source::before,
.p-drop .source::before,
.p-formula .source::before {
  content: '—';
  font-style: normal;
  opacity: 0.7;
}
.p-quote .source .favicon,
.p-letter .source .favicon,
.p-classic .source .favicon,
.p-drop .source .favicon,
.p-formula .source .favicon { display: none; }
.p-quote .source:hover,
.p-quote .source:focus-visible,
.p-letter .source:hover,
.p-letter .source:focus-visible,
.p-classic .source:hover,
.p-classic .source:focus-visible,
.p-drop .source:hover,
.p-drop .source:focus-visible,
.p-formula .source:hover,
.p-formula .source:focus-visible {
  background: transparent !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.sources-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 3vh;
}
.page .section-badge {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 11px;
  border: 1.5px solid currentColor;
  display: inline-block;
}
.body-p {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 14, 'wght' 400;
  font-size: 17px;
  line-height: 1.6;
  max-width: 62ch;
}
.body-sans {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  max-width: 62ch;
}

/* MASTHEAD */
.masthead {
  background: var(--paper);
  padding: 5vh 7vw 6vh;
  border-bottom: 2px solid var(--ink);
}
.masthead .topline {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1em;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 2.5vh;
  border-bottom: 1px solid var(--ink);
}
.masthead h1 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 900, 'SOFT' 40;
  font-size: clamp(68px, 12vw, 170px);
  letter-spacing: -0.045em;
  line-height: 0.86;
  padding: 3vh 0 1vh;
}
.masthead .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: 'opsz' 96;
  font-size: clamp(19px, 2.1vw, 28px);
  font-weight: 400;
  color: #4a3a2a;
  max-width: 38ch;
  padding-top: 2vh;
  line-height: 1.3;
}
.masthead .sub {
  margin-top: 5vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  padding-top: 2.5vh;
  border-top: 1px solid var(--ink);
}
.masthead .sub > div {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  max-width: 46ch;
}
.masthead .sub strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding-bottom: 1.2vh;
}
.toc {
  margin-top: 6vh;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5vw;
  row-gap: 3.5vh;
}
.toc-item {
  border-top: 1.5px solid var(--ink);
  padding-top: 1.3vh;
}
.toc-item .n {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: 'opsz' 144, 'wght' 700;
  font-size: 26px;
  line-height: 1;
}
.toc-item .sec {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.7;
  display: block;
  margin: 0.8vh 0 0.4vh;
}
.toc-item a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.3;
}
.toc-item a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* PAGE 1 — IMF · hero big-stat */
.p-hero { background: var(--cream); color: var(--ink); }
.p-hero .badge { color: var(--alert); margin-bottom: 2.5vh; }
.p-hero .big {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 900, 'SOFT' 30;
  font-size: clamp(140px, 22vw, 300px);
  line-height: 0.82;
  letter-spacing: -0.06em;
  color: var(--alert);
}
.p-hero .big span.pct { font-size: 0.5em; vertical-align: 0.4em; }
.p-hero .year {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(28px, 3.8vw, 54px);
  margin-top: 1vh;
  color: var(--ink);
}
.p-hero h2 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 600;
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 24ch;
  margin-top: 3.5vh;
}
.p-hero .deck {
  margin-top: 3vh;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 5vw;
  align-items: end;
}
.p-hero .source { color: var(--alert); }

/* PAGE 2 — Trump Powell · midnight */
.p-midnight {
  background: radial-gradient(ellipse at 15% 20%, #1a2050 0%, var(--midnight) 60%);
  color: var(--moonlight);
}
.p-midnight .kicker { color: var(--starlight); }
.p-midnight .timestamp {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 14px;
  color: var(--starlight);
  letter-spacing: 0.12em;
  margin-bottom: 2.5vh;
}
.p-midnight h2 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 700;
  font-size: clamp(38px, 5.6vw, 90px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  max-width: 17ch;
}
.p-midnight h2 em {
  font-style: italic;
  font-weight: 500;
  color: #ff8a8a;
}
.p-midnight .reaction {
  margin-top: 5.5vh;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3vw;
  padding-top: 2.5vh;
  border-top: 1px solid rgba(230,233,245,0.3);
}
.p-midnight .reaction-cell .v {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 800;
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1;
  color: var(--starlight);
}
.p-midnight .reaction-cell .label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 1vh;
  color: var(--moonlight);
  opacity: 0.85;
}
.p-midnight .context {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.65;
  max-width: 62ch;
  margin-top: 4vh;
  color: var(--moonlight);
  opacity: 0.92;
}

/* PAGE 3 — Körfez · rose stamp */
.p-stamp {
  background: var(--rose);
  color: #4a1624;
  position: relative;
}
.p-stamp .stamp {
  position: absolute;
  top: 6vh; right: 6vw;
  transform: rotate(10deg);
  border: 4px solid var(--alert);
  color: var(--alert);
  padding: 12px 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.p-stamp h2 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 700;
  font-style: italic;
  font-size: clamp(34px, 4.8vw, 74px);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-top: 2vh;
}
.p-stamp .trillion {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 900;
  font-size: clamp(92px, 13vw, 180px);
  line-height: 1;
  color: var(--alert);
  margin-top: 2.5vh;
}
.p-stamp .trillion sup {
  font-size: 0.45em;
  vertical-align: 0.9em;
  font-weight: 700;
}
.p-stamp .trillion-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  color: #4a1624;
  margin-top: -0.5vh;
}
.p-stamp .brief {
  max-width: 62ch;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.6;
  margin-top: 4vh;
}

/* PAGE 4 — WSJ Survey · terminal */
.p-terminal {
  background: var(--terminal-bg);
  color: var(--terminal-fg);
  font-family: 'JetBrains Mono', monospace;
}
.p-terminal .prompt {
  color: var(--terminal-amber);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  margin-bottom: 2vh;
}
.p-terminal h2 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 50px);
  line-height: 1.1;
  color: var(--terminal-fg);
  letter-spacing: -0.005em;
  max-width: 22ch;
}
.p-terminal .grid {
  margin-top: 5vh;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3vh 3vw;
}
.p-terminal .cell {
  border-left: 2px solid var(--terminal-amber);
  padding: 0 0 1.5vh 1.2vw;
}
.p-terminal .cell .k {
  font-size: 13px;
  color: var(--terminal-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.p-terminal .cell .v {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: clamp(32px, 3.4vw, 52px);
  color: var(--terminal-fg);
  margin-top: 0.5vh;
  line-height: 1.1;
}
.p-terminal .cell .v em {
  font-style: normal;
  color: var(--terminal-amber);
}
.p-terminal .cell .delta {
  font-size: 13px;
  color: var(--terminal-dim);
  margin-top: 0.4vh;
}
.p-terminal .footer {
  margin-top: 5vh;
  padding-top: 2.5vh;
  border-top: 1px dashed var(--terminal-dim);
  font-size: 13px;
  color: var(--terminal-dim);
  max-width: 80ch;
  line-height: 1.8;
}
.p-terminal .pagenum { color: var(--terminal-amber); font-family: 'JetBrains Mono', monospace; }

/* PAGE 5 — PPK · drop-cap */
.p-drop {
  background: var(--bone);
  color: var(--ink);
}
.p-drop .rule {
  border-top: 3px double var(--ink);
  padding-top: 1.5vh;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  margin-bottom: 3vh;
}
.p-drop h2 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 400;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 20ch;
  margin-bottom: 4vh;
}
.p-drop h2 em {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'wght' 400, 'SOFT' 100;
}
.p-drop .cols {
  column-count: 2;
  column-gap: 4vw;
  column-rule: 1px solid rgba(0,0,0,0.2);
}
.p-drop .cols p {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 1em;
  text-align: justify;
  hyphens: auto;
}
.p-drop .cols p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 800;
  float: left;
  font-size: 110px;
  line-height: 0.85;
  padding: 5px 10px 0 0;
  color: var(--ink);
}

/* PAGE 6 — Bütçe · big-stat finish */
.p-bigstat {
  background: var(--cream);
  color: var(--ink);
}
.p-bigstat .top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1em; flex-wrap: wrap;
}
.p-bigstat h2 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 500;
  font-size: clamp(28px, 3.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin-top: 2vh;
}
.p-bigstat .grand {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 900;
  font-size: clamp(110px, 16vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.045em;
  color: var(--clay);
  margin: 5vh 0 0;
}
.p-bigstat .grand-unit {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 38px);
  color: var(--ink);
  margin-top: 0.5vh;
  margin-bottom: 4vh;
}
.p-bigstat .row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5vw;
  padding-top: 2.5vh;
  border-top: 1.5px solid var(--ink);
}
.p-bigstat .row .item .v {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1;
}
.p-bigstat .row .item .l {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.8vh;
}

/* PAGE 7 — Tarım ÜFE · diptych */
.p-diptych {
  padding: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.p-diptych .panel {
  padding: 9vh 5vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  position: relative;
}
.p-diptych .panel-a { background: #e8d9be; color: #3a2a10; }
.p-diptych .panel-b { background: #6b3f2e; color: #f2e6d1; }
.p-diptych .panel .kicker { opacity: 0.75; margin-bottom: 2.5vh; }
.p-diptych .panel h3 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 600;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.1;
  max-width: 20ch;
}
.p-diptych .panel .big {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 900;
  font-size: clamp(88px, 11vw, 170px);
  line-height: 0.88;
  letter-spacing: -0.035em;
  margin: 1.5vh 0 1vh;
}
.p-diptych .panel .under {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  max-width: 30ch;
  line-height: 1.4;
}
.p-diptych .panel .foot {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 3vh;
}

/* PAGE 8 — CDS · timeline */
.p-timeline { background: #1a2430; color: #f1e7d4; }
.p-timeline .kicker { color: #f1e7d4; opacity: 0.85; }
.p-timeline h2 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 700;
  font-size: clamp(32px, 4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-top: 2vh;
}
.p-timeline .strip {
  margin: 5vh 0 3vh;
  position: relative;
  padding: 3vh 0 1.5vh;
}
.p-timeline .axis {
  height: 2px;
  background: #f1e7d4;
  opacity: 0.35;
  position: relative;
  margin: 1.5vh 0;
}
.p-timeline .trend {
  width: 100%;
  height: clamp(120px, 16vh, 180px);
  margin: 1vh 0 2vh;
  display: block;
}
.p-timeline .trend text {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.p-timeline .trend .src {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  fill: #f1e7d4;
  opacity: 0.6;
}
.p-timeline .ticks {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 2vw;
}
.p-timeline .tick .date {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #f4c430;
  margin-bottom: 0.8vh;
}
.p-timeline .tick .bp {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 800;
  font-size: clamp(52px, 6vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.p-timeline .tick .bp .u {
  font-size: 0.32em;
  font-weight: 500;
  font-style: italic;
  display: inline-block;
  margin-left: 0.12em;
}
.p-timeline .tick .note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  margin-top: 1vh;
  opacity: 0.9;
  max-width: 24ch;
}
.p-timeline .tick.hi .bp { color: #f4c430; }
.p-timeline .caption {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.6;
  max-width: 66ch;
  margin-top: 3vh;
  opacity: 0.92;
}

/* PAGE 9 — Çin · bold cover */
.p-cover {
  background: var(--china-red);
  color: var(--china-gold);
}
.p-cover .kicker { color: var(--china-gold); opacity: 1; }
.p-cover .big {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 900;
  font-size: clamp(150px, 24vw, 320px);
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: var(--china-gold);
  padding-bottom: 0.22em;
}
.p-cover .big .pct { font-size: 0.34em; vertical-align: 0.8em; font-style: italic; font-weight: 500; }
.p-cover .caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2vw, 26px);
  color: var(--china-gold);
  margin-top: 2vh;
  letter-spacing: 0.01em;
  opacity: 0.9;
}
.p-cover h2 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 500;
  font-style: italic;
  font-size: clamp(26px, 3.2vw, 48px);
  line-height: 1.1;
  color: #fff1c7;
  max-width: 24ch;
  margin-top: 2.5vh;
}
.p-cover .note {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.6;
  color: #fff1c7;
  max-width: 64ch;
  margin-top: 3.5vh;
  border-top: 2px solid var(--china-gold);
  padding-top: 2.5vh;
}
.p-cover .source { color: #fff1c7; }

/* PAGE 10 — CFTC · noir */
.p-noir {
  background: var(--noir-paper);
  color: var(--noir);
  position: relative;
}
.p-noir::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0.025) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.p-noir .confidential {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--alert);
  border: 2px solid var(--alert);
  padding: 7px 14px;
  display: inline-block;
  text-transform: uppercase;
}
.p-noir h2 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 700;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin: 3vh 0;
}
.p-noir .docbox {
  margin-top: 1.5vh;
  background: #faf7ef;
  border: 1.5px solid var(--noir);
  padding: 3vh 3vw;
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 6px 6px 0 var(--noir);
}
.p-noir .docbox .meta {
  display: flex;
  gap: 2.5em;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 13px;
  padding-bottom: 1.5vh;
  margin-bottom: 1.5vh;
  border-bottom: 1px dashed var(--noir);
}
.p-noir .docbox .meta span b { color: var(--alert); margin-right: 0.4em; }
.p-noir .docbox .lines p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  line-height: 1.85;
  padding: 0.15em 0;
}
.p-noir .docbox .lines .redacted {
  display: inline-block;
  background: var(--noir);
  color: var(--noir);
  padding: 0 0.2em;
  user-select: none;
}
.p-noir .docbox .lines strong { color: var(--alert); }

/* PAGE 11 — Hammack · pull quote */
.p-quote {
  background: #efe8d7;
  color: #2a1f14;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.p-quote .mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(140px, 18vw, 260px);
  line-height: 0.6;
  color: #c9a961;
  margin-bottom: -1vh;
  letter-spacing: -0.05em;
}
.p-quote blockquote {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 400;
  font-style: italic;
  font-size: clamp(30px, 3.6vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 24ch;
}
.p-quote .attribution {
  margin-top: 4.5vh;
  padding-top: 2.5vh;
  border-top: 1.5px solid #2a1f14;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1em;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.p-quote .attribution .who {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 18px;
}
.p-quote .gloss {
  max-width: 66ch;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  margin-top: 3.5vh;
}

/* PAGE 12 — Pürüzlü Zekâ · letterform */
.p-letter {
  background: #f5f2e9;
  color: var(--ink);
  position: relative;
  padding-top: 7vh;
}
.p-letter .backletter {
  position: absolute;
  top: -6vh; right: -3vw;
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 900;
  font-size: clamp(280px, 44vw, 680px);
  line-height: 0.85;
  color: #e8ddc0;
  letter-spacing: -0.08em;
  z-index: 0;
  user-select: none;
}
.p-letter .content { position: relative; z-index: 1; }
.p-letter h2 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 700;
  font-size: clamp(36px, 5vw, 78px);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin-top: 2.5vh;
}
.p-letter h2 em {
  font-style: italic;
  font-weight: 400;
}
.p-letter .jag {
  display: inline-block;
  color: var(--alert);
  font-style: italic;
  text-decoration: line-through;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--alert);
}
.p-letter .paras {
  margin-top: 4.5vh;
  max-width: 72ch;
  column-count: 2;
  column-gap: 3.5vw;
}
.p-letter .paras p {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 1em;
  break-inside: avoid-column;
}

/* PAGE 13 — Snap · corporate stat */
.p-corp {
  background: #d8dcdd;
  color: #1a1a1a;
}
.p-corp .sticker {
  display: inline-block;
  background: var(--ink);
  color: #f5d642;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.18em;
  padding: 7px 12px;
  text-transform: uppercase;
}
.p-corp .grid {
  margin-top: 4vh;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 5vw;
  align-items: center;
}
.p-corp .number {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 900;
  font-size: clamp(170px, 24vw, 320px);
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: var(--ink);
}
.p-corp .number .pct { font-size: 0.34em; font-style: italic; vertical-align: 0.7em; font-weight: 500; }
.p-corp .right h2 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 600;
  font-size: clamp(24px, 2.8vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.p-corp .right .brief {
  margin-top: 3vh;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  max-width: 48ch;
}
.p-corp .right ul {
  list-style: none;
  margin-top: 3vh;
  padding-top: 2vh;
  border-top: 1.5px solid var(--ink);
}
.p-corp .right ul li {
  display: flex;
  justify-content: space-between;
  padding: 1vh 0;
  border-bottom: 1px solid rgba(0,0,0,0.25);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
}
.p-corp .right ul li b {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 800;
  font-size: 20px;
}

/* PAGE 14 — Mythos · gradient */
.p-gradient {
  background: linear-gradient(135deg, #0e0a2a 0%, #3a1e7a 45%, #6b3a9e 100%);
  color: #e8e0ff;
  position: relative;
  overflow: hidden;
}
.p-gradient::before {
  content: "";
  position: absolute;
  top: -20vh; right: -20vw;
  width: 80vw; height: 80vw;
  background: radial-gradient(circle, rgba(125,211,252,0.25) 0%, transparent 60%);
  pointer-events: none;
}
.p-gradient .kicker { color: var(--electric); }
.p-gradient h2 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 700;
  font-size: clamp(36px, 4.8vw, 74px);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-top: 2vh;
}
.p-gradient h2 em {
  font-style: italic;
  color: var(--electric);
}
.p-gradient .asym {
  margin-top: 5vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5vw;
  align-items: stretch;
  position: relative;
  z-index: 1;
}
.p-gradient .asym .cell {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(232,224,255,0.3);
  padding: 3vh 2.5vw;
  backdrop-filter: blur(8px);
}
.p-gradient .asym .cell .k {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 13px;
  color: var(--electric);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.p-gradient .asym .cell .v {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 800;
  font-size: clamp(44px, 5vw, 84px);
  line-height: 1;
  color: #fff;
  margin-top: 1vh;
}
.p-gradient .asym .cell .sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  margin-top: 1.5vh;
  color: #e8e0ff;
  opacity: 0.85;
  line-height: 1.45;
}
.p-gradient .brief {
  margin-top: 4vh;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  max-width: 66ch;
  position: relative;
  z-index: 1;
}

/* PAGE 15 — Prefill/Decode · tech */
.p-tech {
  background: #f5efe1;
  color: var(--ink);
}
.p-tech h2 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  max-width: 28ch;
  margin-top: 1.5vh;
}
.p-tech .split {
  margin-top: 5vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5vw;
}
.p-tech .split .side {
  padding: 3vh 2.5vw;
  border: 1.5px solid var(--ink);
  background: #fdf8eb;
  position: relative;
}
.p-tech .split .side .tag {
  position: absolute;
  top: -12px; left: 2.5vw;
  background: #fdf8eb;
  padding: 0 10px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.p-tech .split .side.compute .tag { color: #9c4d1a; }
.p-tech .split .side.memory .tag { color: #1a5d6b; }
.p-tech .split .side h3 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 700;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.15;
  margin-bottom: 1.8vh;
}
.p-tech .split .side .bar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 110px;
  margin: 1.5vh 0;
}
.p-tech .split .side .bar .b {
  flex: 1;
  background: var(--ink);
  opacity: 0.85;
}
.p-tech .split .side.compute .bar .b { background: #9c4d1a; }
.p-tech .split .side.memory .bar .b { background: #1a5d6b; }
.p-tech .split .side p {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.55;
}
.p-tech .results {
  margin-top: 4vh;
  display: flex;
  gap: 3.5vw;
  flex-wrap: wrap;
}
.p-tech .results .r .v {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 900;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1;
}
.p-tech .results .r .v.green { color: #1a5d6b; }
.p-tech .results .r .v.orange { color: #9c4d1a; }
.p-tech .results .r .l {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.8vh;
}

/* PAGE 16 — Cosmos · classical */
.p-classic {
  background: var(--sepia);
  color: #2a1c0a;
  text-align: center;
  padding: 11vh 8vw;
}
.p-classic .ornament {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 2vh;
  letter-spacing: 0.4em;
}
.p-classic .rubric {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: 'opsz' 96;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3vh;
}
.p-classic h2 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 500;
  font-style: italic;
  font-size: clamp(32px, 4.4vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 20ch;
  margin: 0 auto 3vh;
}
.p-classic .greek {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 96, 'wght' 500;
  font-size: clamp(26px, 2.8vw, 46px);
  color: #6d4e1c;
  font-style: italic;
  margin: 2.5vh 0;
  letter-spacing: 0.05em;
}
.p-classic .body {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.75;
  max-width: 64ch;
  margin: 3.5vh auto 0;
  text-align: left;
}
.p-classic .body::first-letter {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 700;
  float: left;
  font-size: 62px;
  line-height: 0.9;
  padding: 3px 10px 0 0;
  color: var(--gold);
}
.p-classic .foot {
  margin-top: 4.5vh;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  opacity: 0.75;
}

/* PAGE 17 — R* · formula card */
.p-formula {
  background: #e0e6d6;
  color: #1c2614;
}
.p-formula .kicker { color: #4a5b38; }
.p-formula h2 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 600;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 24ch;
  margin-top: 2.5vh;
}
.p-formula .card {
  margin-top: 5vh;
  background: #1c2614;
  color: #e0e6d6;
  padding: 5vh 4vw;
  border-radius: 4px;
  position: relative;
}
.p-formula .card .eq {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'wght' 500;
  font-size: clamp(28px, 3.8vw, 58px);
  line-height: 1.15;
  text-align: center;
  color: #f4e7a8;
  letter-spacing: 0.03em;
}
.p-formula .card .eq .var { color: #e0e6d6; }
.p-formula .card .eq .op { color: #d8dfd0; opacity: 0.8; }
.p-formula .card .eq sub {
  font-size: 0.55em;
  vertical-align: -0.3em;
}
.p-formula .card .eq sup {
  font-size: 0.45em;
  vertical-align: 0.9em;
}
.p-formula .card .legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5vw;
  margin-top: 4.5vh;
  padding-top: 2.5vh;
  border-top: 1px solid rgba(224,230,214,0.3);
}
.p-formula .card .legend .i {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.55;
}
.p-formula .card .legend .i b {
  font-style: italic;
  font-size: 20px;
  color: #f4e7a8;
  display: inline-block;
  margin-right: 0.4em;
}
.p-formula .brief {
  margin-top: 4vh;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.65;
  max-width: 64ch;
}

/* PAGE 18 — Teksas · warn */
.p-warn {
  background: linear-gradient(180deg, var(--sand) 0%, #d4b47a 100%);
  color: #3b1a0a;
  position: relative;
}
.p-warn .warnbar {
  background: repeating-linear-gradient(45deg, var(--ink) 0 16px, #f1c40f 16px 32px);
  height: 12px;
  margin: 0 -7vw 4vh;
}
.p-warn .kicker { color: var(--rust); }
.p-warn h2 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 700;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-top: 1.5vh;
}
.p-warn .thermometer {
  margin: 4.5vh 0 3vh;
  display: flex;
  align-items: center;
  gap: 2.5vw;
  flex-wrap: wrap;
}
.p-warn .thermometer .v {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 900;
  font-size: clamp(110px, 15vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--rust);
}
.p-warn .thermometer .v .pct { font-size: 0.32em; font-style: italic; font-weight: 500; vertical-align: 0.7em; }
.p-warn .thermometer .l {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.45;
  max-width: 26ch;
}
.p-warn .row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5vw;
  margin-top: 2.5vh;
  padding-top: 2.5vh;
  border-top: 1.5px solid var(--ink);
}
.p-warn .row .item .v {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 800;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1;
}
.p-warn .row .item .l {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.8vh;
  opacity: 0.8;
}
.p-warn .brief {
  margin-top: 4vh;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.65;
  max-width: 66ch;
}

/* Colophon */
.colophon {
  background: var(--ink);
  color: var(--paper);
  padding: 9vh 7vw;
  text-align: center;
}
.colophon .mark {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 800;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.colophon .tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(17px, 1.8vw, 24px);
  max-width: 50ch;
  margin: 3vh auto 0;
  line-height: 1.5;
  opacity: 0.9;
}
.colophon .meta {
  margin-top: 4.5vh;
  padding-top: 3vh;
  border-top: 1px solid rgba(242,236,224,0.3);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.colophon a {
  color: var(--starlight);
  text-decoration: none;
  border-bottom: 1px solid var(--starlight);
}

/* ——— Öğe navigasyonu: sağ kenar noktalar + klavye ——— */
.dotnav {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 20;
  padding: 6px 4px;
}
.dotnav a {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(26,20,16,0.45);
  border: 1.5px solid rgba(255,255,255,0.85);
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
  outline: none;
}
/* Hit target genişletici (24x24) — görsel 8x8 kalır, tıklanabilir alan büyür */
.dotnav a::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
}
.dotnav a:hover,
.dotnav a:focus-visible {
  transform: scale(1.6);
  background: rgba(26,20,16,0.85);
}
.dotnav a:focus-visible {
  box-shadow: 0 0 0 3px rgba(26,20,16,0.25), 0 0 0 0.5px rgba(0,0,0,0.15);
}
.dotnav a.active {
  width: 12px;
  height: 12px;
  margin-left: -2px;
  background: rgba(26,20,16,0.9);
  border-color: #ffffff;
}
.dotnav a::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: #1a1410;
  color: #f2ece0;
  padding: 6px 11px;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dotnav a:hover::after,
.dotnav a:focus-visible::after {
  opacity: 1;
}

.kbhint {
  position: fixed;
  bottom: 16px;
  right: 18px;
  z-index: 20;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #1a1410;
  background: rgba(242,236,224,0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(26,20,16,0.2);
  border-radius: 3px;
  padding: 4px 9px;
  letter-spacing: 0.04em;
  opacity: 0.55;
  transition: opacity 0.2s ease;
  cursor: help;
  user-select: none;
}
.kbhint:hover { opacity: 1; }
.kbhint-panel {
  position: fixed;
  right: 18px;
  bottom: 44px;
  z-index: 21;
  background: #1a1410;
  color: #f2ece0;
  padding: 14px 18px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.7;
  max-width: 260px;
  display: none;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.kbhint-panel.open { display: block; }
.kbhint-panel h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
  margin-bottom: 8px;
}
.kbhint-panel kbd {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255,255,255,0.1);
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 11px;
  margin: 0 2px;
}

@media (max-width: 860px) {
  body { font-size: 15px; }
  .page { padding: 7vh 6vw 6vh; }
  .page .pagenum {
    position: relative;
    bottom: auto; right: auto;
    margin-top: 4vh;
    text-align: right;
    font-size: 11px;
    z-index: 2;
  }
  .p-diptych .pagenum {
    position: absolute;
    bottom: 2.5vh; right: 6vw;
    margin-top: 0;
  }
  .p-drop .cols { column-count: 1; }
  .p-letter .paras { column-count: 1; }
  .p-diptych { grid-template-columns: 1fr; }
  .p-hero .deck { grid-template-columns: 1fr; gap: 3vh; }
  .p-corp .grid { grid-template-columns: 1fr; }
  .p-tech .split { grid-template-columns: 1fr; }
  .p-gradient .asym { grid-template-columns: 1fr; }
  .p-midnight .reaction { grid-template-columns: 1fr; }
  .p-timeline .ticks { grid-template-columns: 1fr; gap: 3vh; }
  .p-terminal .grid { grid-template-columns: 1fr; }
  .masthead .sub { grid-template-columns: 1fr; }
  .dotnav, .kbhint, .kbhint-panel { display: none; }
}

@media (max-width: 480px) {
  body { font-size: 14px; line-height: 1.5; }
  .page { padding: 5vh 5vw 5vh; }
  .page .pagenum {
    margin-top: 3.5vh;
    font-size: 10px;
    opacity: 0.55;
  }
  .p-diptych .pagenum {
    bottom: 2vh; right: 5vw;
    margin-top: 0;
  }
  .masthead { padding: 6vh 5vw 5vh; }
  .masthead .topline { font-size: 11px; letter-spacing: 0.1em; }
  .masthead h1 { font-size: clamp(52px, 18vw, 96px); line-height: 0.9; }
  .masthead .tagline { font-size: 15px; }
  .toc { grid-template-columns: 1fr; }
  .p-hero .big { font-size: clamp(80px, 24vw, 140px); }
  .p-cover .big { font-size: clamp(120px, 36vw, 220px); }
  .p-bigstat .grand { font-size: clamp(96px, 28vw, 180px); }
  .p-diptych .panel { padding: 7vh 6vw; min-height: auto; }
  .p-diptych .panel .big { font-size: clamp(70px, 20vw, 130px); }
  .p-stamp .stamp { top: 3vh; right: 5vw; font-size: 18px; }
  .p-noir .confidential { font-size: 11px; letter-spacing: 0.18em; }
}

/* ============================================================
   GEÇİŞ KATMANI — köprü + reveal + progress strip
   Her .page'in data-bg attribute'u JS üzerinden --next-bg olarak
   komşu sayfaya aktarılır. Yeni p-XXX layout'u eklenirken sadece
   data-bg="#hex" doğru olmalı; aşağıdaki kurallar olduğu gibi kalır.
   ============================================================ */

.progress-strip {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.08);
  pointer-events: none;
}
.progress-strip-fill {
  height: 100%;
  width: 0%;
  background: #1a1410;
  transition: background 0.55s ease, width 0.08s linear;
  box-shadow: 0 0 10px currentColor;
}

.page { border-bottom: none; }
.page::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 5vh;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--next-bg, transparent) 100%);
  opacity: 0.45;
}
.page:last-of-type::after { display: none; }
.page > *:not(.pagenum) { position: relative; z-index: 1; }
.page .pagenum { z-index: 2; }
.p-diptych::after { z-index: 0; }

.page .page-inner {
  opacity: 0;
  transform: translateY(28px) scale(0.99);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.page.is-revealed .page-inner {
  opacity: 1;
  transform: none;
}
.page:first-of-type .page-inner {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .page .page-inner {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
