/* ==========================================================================
   hibrit.hidrojen.tech — theme.css  ·  Açık (beyaz) modernist tema
   Sitenin tek tasarım kaynağı. Renkler yalnızca buradaki değişkenlerden gelir.
   Kırılma noktaları: < 700 px telefon · 700–1199 px tablet · ≥ 1200 px projeksiyon
   Bölümler: 1 Yazı tipleri · 2 Değişkenler · 3 Temel · 4 Bileşenler · 5 Grafik/tablo
             6 Sahne ızgarası · 7 Görseller · 8 Harita · 9 Üst menü · 10 Animasyonlar
   ========================================================================== */

/* ---------- 1. Yazı tipleri (assets/fonts, internet gerekmez) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-tight-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-tight-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- 2. Değişkenler ---------- */
:root {
  /* Zemin ve metin */
  --bg: #ffffff;
  --bg-soft: #f6f7f5;
  --panel: #ffffff;
  --panel-2: #f2f4f1;
  --border: #e4e7e2;
  --border-strong: #cfd4cc;
  --text: #0c1210;
  --muted: #5f6a65;
  --accent: #0f766e;      /* ana vurgu: koyu turkuaz */

  /* Anlamlar */
  --h2: #0d9488;          /* hidrojen        */
  --o2: #dc2626;          /* oksijen         */
  --hplus: #2563eb;       /* H⁺              */
  --oh: #16a34a;          /* OH⁻             */
  --electron: #ea580c;    /* e⁻              */
  --sun: #f59e0b;         /* güneş / PV      */
  --wind: #3b82f6;        /* rüzgâr          */
  --battery: #8b5cf6;     /* batarya         */
  --fossil: #8a8f8a;      /* fosil / gri H₂  */
  --sun-ink: #b45309;     /* güneş rengi metin (okunurluk) */
  --fossil-ink: #52574f;
  --warn: #ea580c;
  --danger: #dc2626;
  --ok: #16a34a;
  --st-sim: #6366f1;      /* simülasyon çalışması */
  --st-field: #16a34a;    /* saha projesi         */
  --st-done: #0284c7;     /* tamamlanmış araştırma */
  --st-cancel: #dc2626;   /* iptal edildi         */
  --estu: #c8102e;        /* ESTÜ                 */
  /* Çizim (kapak animasyonu) */
  --quote-bg: #f0fdfa; --quote-ink: #134e48; --analogy-bg: #fffbeb; --analogy-ink: #92400e;
  --land: #eef0ec; --land-tr: #ccfbf1;
  --pv-panel: #1e3a8a; --pv-line: #93c5fd; --sky: #ecfeff;
  --metal: #cbd5e1; --metal-2: #e2e8f0; --metal-3: #94a3b8; --metal-4: #64748b;

  --radius: 18px;
  --radius-sm: 12px;
  --gap: clamp(14px, 0.9rem + 0.4vw, 22px);
  --shadow: 0 1px 2px rgba(12, 18, 16, .04), 0 8px 24px -12px rgba(12, 18, 16, .12);
  --shadow-lg: 0 2px 4px rgba(12, 18, 16, .04), 0 24px 48px -20px rgba(12, 18, 16, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font: "Inter", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, "Courier New", monospace;
  /* 360 px → 16 px, 1920 px → 20 px */
  --fs-body: clamp(1rem, 0.9425rem + 0.2564vw, 1.25rem);
  --fs-h1: clamp(1.8rem, 1.4rem + 1.7vw, 3.15rem);
  --fs-h2: clamp(1.3rem, 1.12rem + 0.8vw, 2rem);
  --fs-h3: clamp(1.08rem, 1rem + 0.35vw, 1.4rem);
  --fs-small: 0.86em;

  --tap: 44px;
  --nav-h: 64px;
}

/* ---------- 3. Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  font-feature-settings: "cv11", "ss01";
}
body.has-hnav { padding-top: var(--nav-h); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0 0 0.45em; font-weight: 750; letter-spacing: -0.025em; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.015em; }
p { margin: 0 0 0.75em; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
@media (hover: hover) { a:hover { text-decoration-thickness: 2px; } }
img, svg, canvas, video { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--quote-bg); }

.muted { color: var(--muted); }
.num, .mono, output { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.small { font-size: var(--fs-small); }
.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gap); }

.c-h2 { color: var(--h2); } .c-o2 { color: var(--o2); } .c-hplus { color: var(--hplus); } .c-electron { color: var(--electron); } .c-oh { color: var(--oh); }
.c-warn { color: var(--warn); } .c-danger { color: var(--danger); } .c-ok { color: var(--ok); } .c-accent { color: var(--accent); } .c-muted { color: var(--muted); }
.c-sun { color: var(--sun-ink); } .c-wind { color: var(--wind); } .c-battery { color: var(--battery); } .c-fossil { color: var(--fossil-ink); }

/* ---------- 4. Bileşenler ---------- */
/* Buton */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45em;
  min-width: var(--tap); min-height: var(--tap); padding: 0.45em 1.05em;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--bg); color: var(--text);
  font: inherit; font-weight: 600; font-size: 0.92em; line-height: 1.2; text-decoration: none;
  cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  transition: background-color .2s, border-color .2s, color .2s, transform .12s, box-shadow .2s;
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) { .btn:hover { border-color: var(--text); box-shadow: var(--shadow); } }
.btn.active, .btn[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn.primary { background: var(--text); border-color: var(--text); color: var(--bg); }
@media (hover: hover) { .btn.primary:hover { background: var(--accent); border-color: var(--accent); } }
.btn.lg { font-size: 1.08em; padding: 0.75em 1.7em; min-height: 56px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.35; cursor: not-allowed; transform: none; pointer-events: none; }
.btn-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Sekmeler */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 24px; background: var(--panel-2); max-width: 100%; }
.tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  min-height: var(--tap); min-width: var(--tap); padding: 0.35em 1em;
  border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  font: inherit; font-weight: 600; font-size: 0.92em; text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
@media (hover: hover) { .tab:hover { color: var(--text); } }
.tab.active, .tab[aria-selected="true"], .tab[aria-current="page"] { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }

/* Kart */
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: calc(var(--gap) * 1.1); min-width: 0;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.card > :last-child { margin-bottom: 0; }
.card h2, .card h3 { margin-top: 0; }
a.card { display: block; color: inherit; text-decoration: none; }
@media (hover: hover) { a.card:hover, .card.lift:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); transform: translateY(-3px); } }
.card.soft { background: var(--bg-soft); border-color: transparent; }

/* Rozet */
.badge {
  display: inline-flex; align-items: center; gap: 0.4em; padding: 0.2em 0.7em;
  border-radius: 999px; background: color-mix(in srgb, var(--bc, var(--muted)) 11%, transparent);
  color: var(--bc, var(--muted)); font-size: 0.8em; font-weight: 700; line-height: 1.4; white-space: nowrap; letter-spacing: 0.01em;
}
.badge::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge.ok { --bc: var(--ok); } .badge.warn { --bc: var(--warn); } .badge.danger { --bc: var(--danger); }
.badge.sun { --bc: var(--sun-ink); } .badge.wind { --bc: var(--wind); } .badge.battery { --bc: var(--battery); } .badge.h2 { --bc: var(--h2); } .badge.fossil { --bc: var(--fossil-ink); }
.badge.st-sim { --bc: var(--st-sim); } .badge.st-field { --bc: var(--st-field); } .badge.st-done { --bc: var(--st-done); } .badge.st-cancel { --bc: var(--st-cancel); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

/* KPI */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: var(--gap); }
.kpi {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px;
  background: var(--bg-soft); border-radius: var(--radius); min-width: 0;
  border-top: 3px solid var(--kc, var(--border-strong));
}
.kpi-value {
  font-family: var(--display); font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.7rem); line-height: 1.05; color: var(--text); overflow-wrap: anywhere;
}
.kpi-value small, .kpi-unit { font-size: 0.45em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.kpi-label { font-size: var(--fs-small); color: var(--muted); }
.kpi:has(.c-h2) { --kc: var(--h2); } .kpi:has(.c-sun) { --kc: var(--sun); } .kpi:has(.c-wind) { --kc: var(--wind); }
.kpi:has(.c-battery) { --kc: var(--battery); } .kpi:has(.c-danger) { --kc: var(--danger); } .kpi:has(.c-warn) { --kc: var(--warn); }
.kpi:has(.c-o2) { --kc: var(--o2); } .kpi:has(.c-fossil) { --kc: var(--fossil); }

/* Bilgi kutusu */
.info-box { padding: 14px 18px; border-radius: var(--radius); background: var(--bg-soft); border-left: 3px solid var(--ib, var(--text)); }
.info-box > :last-child { margin-bottom: 0; }
.info-box.ok { --ib: var(--ok); } .info-box.warn { --ib: var(--warn); } .info-box.danger { --ib: var(--danger); }
.info-box-title { font-family: var(--display); font-weight: 750; margin-bottom: 0.25em; letter-spacing: -0.01em; }

/* Rapordan alıntı */
.quote { position: relative; margin: 0; padding: 18px 20px 16px 64px; border-radius: var(--radius); background: var(--quote-bg); }
.quote::before { content: "“"; position: absolute; left: 18px; top: 8px; font-family: var(--display); font-size: 4.2em; font-weight: 800; color: var(--h2); line-height: 1; }
.quote p { margin: 0 0 0.45em; font-size: 1.02em; line-height: 1.5; color: var(--quote-ink); }
.quote cite { display: block; font-style: normal; font-size: var(--fs-small); color: var(--muted); }
.quote cite::before { content: "Rapordan · "; color: var(--h2); font-weight: 750; }

/* Benzetme */
.analogy { position: relative; padding: 16px 18px; border-radius: var(--radius); background: var(--analogy-bg); }
.analogy > :last-child { margin-bottom: 0; }
.analogy-title { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 800; color: var(--analogy-ink); font-size: 0.78em; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.5em; }
.analogy-title::before { content: "💡"; letter-spacing: 0; }

.eyebrow { font-size: 0.78em; font-weight: 750; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.5em; }

/* Lejant */
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-small); color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 0.45em; }
.swatch { display: inline-block; flex: 0 0 auto; width: 0.9em; height: 0.9em; border-radius: 3px; background: var(--c, var(--accent)); }
.swatch.line { height: 4px; width: 1.6em; border-radius: 2px; }
.swatch.dot { border-radius: 50%; }
.sw-h2 { --c: var(--h2); } .sw-o2 { --c: var(--o2); } .sw-hplus { --c: var(--hplus); } .sw-electron { --c: var(--electron); } .sw-oh { --c: var(--oh); }
.sw-warn { --c: var(--warn); } .sw-danger { --c: var(--danger); } .sw-ok { --c: var(--ok); } .sw-accent { --c: var(--accent); } .sw-muted { --c: var(--muted); }
.sw-sun { --c: var(--sun); } .sw-wind { --c: var(--wind); } .sw-battery { --c: var(--battery); } .sw-fossil { --c: var(--fossil); }
.sw-st-sim { --c: var(--st-sim); } .sw-st-field { --c: var(--st-field); } .sw-st-done { --c: var(--st-done); } .sw-st-cancel { --c: var(--st-cancel); } .sw-estu { --c: var(--estu); }

/* Kaydırıcı */
.slider-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label value" "range range"; align-items: center; gap: 2px 12px; }
.slider-row > label { grid-area: label; color: var(--muted); font-weight: 600; }
.slider-row > .value, .slider-row > output { grid-area: value; font-family: var(--mono); font-weight: 700; text-align: right; white-space: nowrap; }
.slider-row > input[type="range"] { grid-area: range; }
.controls { display: flex; flex-direction: column; gap: 14px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: var(--tap); margin: 0; padding: 0; background: transparent; cursor: pointer; touch-action: pan-y; accent-color: var(--text); }
input[type="range"]:focus { outline: none; }
input[type="range"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(to right, var(--rc, var(--text)) 0 var(--pct, 50%), var(--panel-2) var(--pct, 50%) 100%); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--bg); border: 3px solid var(--rc, var(--text)); box-shadow: var(--shadow); transition: transform .12s; }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: var(--panel-2); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--rc, var(--text)); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 3px solid var(--rc, var(--text)); }

/* Izgara */
.grid { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Büyük sayı */
.big { font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; font-size: clamp(2.6rem, 1.6rem + 4vw, 5.6rem); line-height: 0.95; color: var(--text); overflow-wrap: anywhere; }
.big small { font-size: 0.4em; color: var(--muted); font-weight: 700; letter-spacing: -0.01em; }

/* Formül */
.formula { font-family: var(--mono); text-align: center; padding: 18px 14px; border-radius: var(--radius); background: var(--bg-soft); overflow-x: auto; }
.frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; margin: 0 0.3em; }
.frac > span:first-child { border-bottom: 2px solid var(--text); padding: 0 0.4em 0.25em; }
.frac > span:last-child { padding: 0.25em 0.4em 0; }
@media (max-width: 699px) { .formula { font-size: 0.82em; } }

.olist, .ulist { margin: 0; padding-left: 1.25em; }
.olist li, .ulist li { margin-bottom: 0.4em; }
.ulist li::marker { color: var(--h2); }
.olist li::marker { font-family: var(--mono); font-weight: 700; color: var(--h2); }

/* ---------- 5. Grafik ve tablolar ---------- */
.chart { display: flex; flex-direction: column; gap: 12px; }
.chart-title { font-family: var(--display); font-weight: 750; font-size: 1.05em; margin: 0 0 4px; letter-spacing: -0.01em; }
.bar-row { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 4px 16px; align-items: center; }
.bar-label { font-weight: 600; line-height: 1.25; }
.bar-label small { display: block; color: var(--muted); font-weight: 400; }
.bar-track { position: relative; height: 36px; border-radius: 10px; background: var(--panel-2); }
.bar-fill {
  position: absolute; top: 0; bottom: 0; left: var(--from, 0%); width: var(--w, 0%); min-width: 6px;
  border-radius: 10px; background: var(--c, var(--accent));
  transition: left .6s var(--ease), width .6s var(--ease);
}
.bar-val {
  position: absolute; top: 50%; transform: translateY(-50%);
  left: calc(var(--from, 0%) + var(--w, 0%) + 10px);
  font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.92em;
  white-space: nowrap; transition: left .6s var(--ease);
}
.bar-val.left { left: auto; right: calc(100% - var(--from, 0%) + 10px); }
.bar-val.in { left: auto; right: calc(100% - var(--from, 0%) - var(--w, 0%) + 10px); color: #fff; }
.bar-axis { position: relative; height: 1.6em; color: var(--muted); font-family: var(--mono); font-size: 0.78em; border-top: 1px solid var(--border); padding-top: 4px; }
.bar-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.bar-axis span:first-child { transform: none; }
.bar-axis span:last-child { transform: translateX(-100%); }
.axis-title { color: var(--muted); font-size: 0.8em; text-align: right; margin: 0; }
@media (max-width: 699px) { .bar-row { grid-template-columns: minmax(0, 1fr); } .bar-row.axis > :first-child { display: none; } }

.calc { display: flex; flex-direction: column; }
.calc-row { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--border); }
.calc-row:last-child { border-bottom: none; }
.calc-row .n { font-family: var(--mono); font-weight: 800; color: var(--h2); }
.calc-row .op { display: block; color: var(--muted); font-size: 0.8em; font-family: var(--mono); overflow-wrap: anywhere; }
.calc-row .v { font-family: var(--mono); font-weight: 700; white-space: nowrap; text-align: right; }
@media (max-width: 699px) { .calc-row { grid-template-columns: 2.2em minmax(0, 1fr); } .calc-row .v { grid-column: 2; text-align: left; } }

.stack { display: flex; height: 44px; border-radius: 12px; overflow: hidden; background: var(--panel-2); gap: 3px; }
.stack span { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-family: var(--mono); font-size: 0.85em; white-space: nowrap; overflow: hidden; transition: flex-basis .7s var(--ease); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tbl th { color: var(--muted); font-size: 0.78em; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
.tbl td:first-child { font-weight: 650; }
.tbl .num { font-family: var(--mono); }
.tbl tr:last-child td { border-bottom: none; }
@media (hover: hover) { .tbl tbody tr { transition: background-color .15s; } .tbl tbody tr:hover { background: var(--bg-soft); } }
.tbl.wide { min-width: 640px; }

/* ---------- 6. Sahne ızgarası ---------- */
.scene {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "visual" "controls" "cards";
  align-content: start; gap: var(--gap);
  width: 100%; max-width: 1760px; margin: 0 auto;
  padding: calc(var(--gap) * 1.2) clamp(16px, 2.4vw, 48px) var(--gap);
  min-height: calc(100vh - var(--nav-h)); min-height: calc(100dvh - var(--nav-h));
}
.scene:has(> .scene-head) { grid-template-areas: "head" "visual" "controls" "cards"; }
.scene > * { min-width: 0; }
.scene-head { grid-area: head; position: relative; padding-bottom: 4px; isolation: isolate; }
.scene-head h1 { margin-bottom: 0.2em; max-width: 34ch; }
.scene-head > p { margin: 0; color: var(--muted); max-width: 72ch; font-size: 1.05em; }
.scene-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 0.78em; font-weight: 600; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.scene-kicker b { color: var(--text); font-weight: 700; }
.scene-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sc, var(--h2)); }
.scene-num {
  position: absolute; right: 0; top: -0.1em; z-index: -1; pointer-events: none;
  font-family: var(--display); font-weight: 900; font-size: clamp(5rem, 3rem + 8vw, 12rem); line-height: 0.8;
  letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px var(--border);
}
.scene-visual { grid-area: visual; display: flex; flex-direction: column; gap: var(--gap); }
.scene-controls { grid-area: controls; display: flex; flex-direction: column; gap: 14px; }
.scene-cards { grid-area: cards; display: flex; flex-direction: column; gap: var(--gap); }
.scene-side { grid-row: 2; display: flex; flex-direction: column; gap: var(--gap); }
.scene:has(> .scene-head) > .scene-side { grid-row: 3; }
.scene > .sources { grid-column: 1 / -1; }
.scene-visual svg, .scene-visual canvas { display: block; width: 100%; height: auto; }
.scene-visual svg text { font-family: var(--font); fill: var(--text); }

.scroll-x { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; max-width: 100%; }
.scroll-x > * { min-width: 720px; }

@media (min-width: 700px) {
  .scene { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "visual visual" "controls cards"; }
  .scene:has(> .scene-head) { grid-template-areas: "head head" "visual visual" "controls cards"; }
  .scene-side { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
  .scene { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "visual controls" "visual cards"; column-gap: calc(var(--gap) * 1.6); }
  .scene:has(> .scene-head) { grid-template-rows: auto auto 1fr; grid-template-areas: "head head" "visual controls" "visual cards"; }
  .scene-side { grid-column: 2; grid-row: 1 / span 2; }
  .scene:has(> .scene-head) > .scene-side { grid-row: 2 / span 2; }
}

/* Kaynak satırı */
.sources { margin-top: var(--gap); padding: 10px 0 0; border-top: 1px solid var(--border); color: var(--muted); font-size: var(--fs-small); display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.sources a { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); font-family: var(--mono); text-decoration: none; border-radius: 8px; }
@media (hover: hover) { .sources a:hover { background: var(--bg-soft); } }
.schematic-note { font-size: 0.8em; color: var(--muted); font-style: italic; margin: 0; }

/* ---------- 7. Görseller ---------- */
.foto { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.foto-kutu { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--panel-2); aspect-ratio: var(--ar, 16 / 10); cursor: zoom-in; }
.foto-kutu img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .5s; }
.foto.contain .foto-kutu img { object-fit: contain; }
@media (hover: hover) { .foto-kutu:hover img { transform: scale(1.04); } }
.foto-kutu::after { content: "⤢"; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--text); font-size: 15px; opacity: 0; transition: opacity .2s; }
@media (hover: hover) { .foto-kutu:hover::after { opacity: 1; } }
.foto figcaption { font-size: 0.82em; color: var(--muted); line-height: 1.4; }
.foto figcaption b { color: var(--text); font-weight: 650; }
.kunye { display: block; font-size: 0.92em; opacity: 0.85; }
.kunye a { color: inherit; }

/* Büyütülmüş görsel */
.lb { position: fixed; inset: 0; z-index: 5000; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 12px; padding: 20px; background: rgba(250, 250, 248, .96); backdrop-filter: blur(8px); cursor: zoom-out; }
.lb.open { display: flex; animation: lbIn .3s var(--ease); }
.lb img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lb p { margin: 0; max-width: 900px; text-align: center; color: var(--muted); font-size: 0.9em; }
.lb .btn { position: absolute; top: 16px; right: 16px; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 8. Harita ---------- */
.map svg { display: block; width: 100%; height: auto; }
@media (min-width: 1200px) { .map svg { max-height: calc(100vh - var(--nav-h) - 300px); } }
.map .land { fill: var(--land); stroke: var(--bg); stroke-width: 0.8; }
.map .tr-land { fill: var(--land-tr); stroke: var(--h2); stroke-width: 1.5; }
.map .pin { cursor: pointer; }
.map .pin .halo { opacity: 0.18; transform-box: fill-box; transform-origin: center; animation: nabiz 2.4s var(--ease) infinite; }
.map .pin.sel .halo { opacity: 0.35; animation-duration: 1.2s; }
.map .pin text { font-family: var(--font); font-weight: 750; fill: var(--text); paint-order: stroke; stroke: var(--bg); stroke-width: 7px; stroke-linejoin: round; }
.map .pin .num { fill: #fff; stroke: none; font-family: var(--mono); }
@keyframes nabiz { 0% { transform: scale(0.6); opacity: 0.35; } 100% { transform: scale(1.6); opacity: 0; } }
@media (max-width: 699px) { .map .pin .name { display: none; } }
.proj { cursor: pointer; }
.proj.sel { border-color: var(--text); box-shadow: var(--shadow-lg); }
.proj h3 { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; margin-bottom: 0.3em; }
.pnum { font-family: var(--mono); color: var(--muted); margin-right: 0.4em; }
.proj-detay h3 { margin: 4px 0 0.3em; }
.proj-detay p { margin: 0; }
@media (min-width: 1200px) { .scene-side .proj-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card.duzen { display: flex; flex-direction: column; }
.card.duzen > .foto { margin-bottom: 14px; }
.proj p { margin: 0; color: var(--muted); }
@media (hover: hover) { .proj:hover { border-color: var(--border-strong); } }
.proj-list { display: flex; flex-direction: column; gap: 8px; }
.proj-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); cursor: pointer; text-align: left; font: inherit; color: inherit; min-height: var(--tap); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.proj-item img, .proj-item .ph { width: 64px; height: 48px; border-radius: 9px; object-fit: cover; background: var(--panel-2); display: grid; place-items: center; font-family: var(--mono); font-weight: 800; color: var(--muted); }
.proj-item b { display: block; font-size: 0.95em; }
.proj-item span.s { font-size: 0.8em; color: var(--muted); }
.proj-item[aria-pressed="true"] { border-color: var(--text); box-shadow: var(--shadow); }
@media (hover: hover) { .proj-item:hover { transform: translateX(3px); border-color: var(--border-strong); } }
.proj-detay .foto { --ar: 2 / 1 !important; }
.proj-detay.degisti { animation: detay .5s var(--ease); }
@keyframes detay { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   9. Üst menü (nav.js tarafından oluşturulur)
   ========================================================================== */
.hnav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); font-size: 0.82em; }
.hnav-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px clamp(12px, 2vw, 32px); max-width: 1920px; margin: 0 auto; }
.hnav-brand { display: inline-flex; align-items: center; gap: 0; min-height: var(--tap); font-family: var(--display); font-weight: 800; font-size: 1.15em; letter-spacing: -0.02em; color: var(--text); text-decoration: none; white-space: nowrap; }
.hnav-brand::before { content: ""; margin-right: 0.55em; width: 14px; height: 14px; border-radius: 4px; background: var(--h2); transform: rotate(45deg); }
.hnav-brand span { color: var(--h2); }
.hnav-sections { display: flex; gap: 2px; }
.hnav-sections .btn { padding: 0.35em 0.75em; border-color: transparent; background: transparent; font-size: 0.95em; }
.hnav-sections .btn.active, .hnav-sections .btn[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.hnav-tabsbox { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 2px; }
.hnav-ind { display: none; position: absolute; left: 50%; bottom: -5px; width: 56px; height: 3px; margin-left: -28px; border-radius: 999px; background: var(--border); overflow: hidden; pointer-events: none; }
.hnav-ind-thumb { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--text); opacity: 0.7; }
.hnav-tabsbox.overflow .hnav-ind { display: block; }
.hnav-tabs { --fl: 0px; --fr: 0px; flex: 1 1 0; min-width: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%); }
.hnav-tabs::-webkit-scrollbar { display: none; }
.hnav-tabsbox.can-l .hnav-tabs { --fl: 40px; }
.hnav-tabsbox.can-r .hnav-tabs { --fr: 40px; }
.hnav-arrow { display: none; flex: 0 0 auto; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); margin: 0 -6px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; touch-action: manipulation; transition: opacity .2s, color .15s; }
.hnav-arrow svg { width: 26px; height: 26px; padding: 6px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hnav-tabsbox.overflow .hnav-arrow { display: inline-flex; }
.hnav-arrow:disabled { opacity: 0; pointer-events: none; }
@media (hover: hover) { .hnav-arrow:not(:disabled):hover { color: var(--text); } }
svg.ico { display: inline-block !important; width: 1em !important; height: 1em !important; min-width: 0 !important; max-width: none !important; max-height: none !important; margin: 0 !important; fill: currentColor; flex: 0 0 auto; vertical-align: -0.125em; }
.hnav-step-ico { width: 0.7em; height: 1.1em; fill: currentColor; flex: 0 0 auto; }
.hnav-fs { display: inline-flex; align-items: center; gap: 0.45em; }
.hnav-fs[hidden] { display: none; }
.hnav-fs-ico { width: 1.15em; height: 1.15em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hnav-stage { position: fixed; inset: 0; z-index: 3000; background: var(--bg); }
.hnav-stage iframe { display: block; width: 100%; height: 100%; border: 0; }
body.hnav-staged > :not(.hnav-stage) { display: none !important; }
.hnav-tabs .tab { white-space: nowrap; padding: 0.3em 0.85em; flex: 0 0 auto; font-size: 0.95em; }
.hnav-tab-id { font-family: var(--mono); color: var(--h2); font-weight: 700; }
.hnav-tools { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.hnav-counter { display: none; font-family: var(--mono); color: var(--muted); white-space: nowrap; }
.hnav-burger { display: none; font-size: 1.3em; }
.hnav-panel { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; max-height: calc(100vh - var(--nav-h)); max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 8px var(--gap) var(--gap); }
.hnav.open .hnav-panel { display: block; animation: lbIn .25s var(--ease); }
.hnav-panel h3 { margin: 14px 0 6px; font-size: 0.85em; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.hnav-panel ul { list-style: none; margin: 0; padding: 0; }
.hnav-panel li a { display: flex; align-items: center; gap: 0.6em; min-height: var(--tap); padding: 4px 10px; border-radius: 10px; color: var(--text); text-decoration: none; }
.hnav-panel li a:active { background: var(--panel-2); }
.hnav-panel li a[aria-current="page"] { background: var(--panel-2); font-weight: 700; }
.hnav-panel-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
/* İlerleme çizgisi (site.js) */
.hnav-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--p, 0%); background: linear-gradient(90deg, var(--sun), var(--h2), var(--wind)); transition: width .8s var(--ease); }
@media (max-width: 1199px) { .hnav-tabsbox { order: 10; flex: 1 1 100%; } }
@media (max-width: 699px) {
  .hnav-bar { flex-wrap: nowrap; gap: 6px; padding: 6px 10px; }
  .hnav-sections, .hnav-tabsbox, .hnav-fs { display: none; }
  .hnav-counter { display: inline; }
  .hnav-burger { display: inline-flex; }
  .hnav-brand { font-size: 1em; }
  .hnav-tools { gap: 4px; }
}
@media (max-width: 400px) {
  .hnav-bar { gap: 4px; padding: 6px 8px; }
  .hnav-brand { font-size: 0.9em; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .hnav-counter { font-size: 0.8em; }
}

/* ==========================================================================
   10. Animasyonlar (site.js sınıfları ekler; hareket azaltma tercihine uyar)
   ========================================================================== */
.rv { opacity: 0; transform: translateY(18px); }
.rv.on { animation: rv .7s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes rv { to { opacity: 1; transform: none; } }
.rv.on .bar-fill { animation: buyu 1.1s var(--ease) both; animation-delay: calc(var(--d, 0ms) + 150ms); }
@keyframes buyu { from { width: 0; } }
.rv.on .stack span { animation: buyuFlex 1s var(--ease) both; animation-delay: calc(var(--d, 0ms) + 150ms); }
@keyframes buyuFlex { from { flex-basis: 0; } }
.rv.on .foto-kutu img { animation: fotoIn 1.2s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes fotoIn { from { transform: scale(1.12); opacity: 0.2; } to { transform: scale(1); opacity: 1; } }
.scene-num { animation: numIn 1.2s var(--ease) both; }
@media (max-width: 699px) { .scene-num { display: none; } }
@keyframes numIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

/* Sürekli animasyonlar: --spd ile hızlanır, .anim-dur ile durur */
.anim-dur, .anim-dur * { animation-play-state: paused !important; }
@keyframes kabarcik { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; } 85% { opacity: .9; } 100% { transform: translateY(var(--yol, -170px)) scale(1.1); opacity: 0; } }
@keyframes akisCizgi { to { stroke-dashoffset: -40; } }
@keyframes don { to { transform: rotate(360deg); } }
@keyframes suz { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes parla { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .rv { opacity: 1; transform: none; }
}
.proj-item .badge { white-space: normal; }
