:root{
  --ink:#080C18; --ink-2:#0F1526; --ink-3:#161E33;
  --rule:#26304C; --rule-soft:#1B2338;
  --moonlight:#EAE7DB; --dim:#8B95B0; --dimmer:#5D6883;
  --brass:#C89A45; --brass-soft:#8A6A2E; --redlight:#E04528;
  --maxw:740px; --maxw-wide:1080px;
}
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } }

body{
  margin:0; background:var(--ink); color:var(--moonlight);
  font-family:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:17px; line-height:1.7; -webkit-font-smoothing:antialiased;
  background-image:radial-gradient(ellipse 120% 55% at 50% -8%, #141C33 0%, transparent 60%);
  background-repeat:no-repeat;
}
.mono{ font-family:"IBM Plex Mono",ui-monospace,monospace; font-variant-numeric:tabular-nums; }
.eyebrow{
  font-family:"IBM Plex Mono",monospace; font-size:11px; letter-spacing:.18em;
  text-transform:uppercase; color:var(--brass);
}
.wrap{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.wrap-wide{ width:100%; max-width:var(--maxw-wide); margin:0 auto; padding:0 24px; }

/* ── HERO ── */
.hero{ padding:68px 0 52px; border-bottom:1px solid var(--rule-soft); }
.hero-grid{ display:grid; grid-template-columns:1fr; gap:40px; align-items:center; }
@media (min-width:860px){ .hero-grid{ grid-template-columns:1.15fr .85fr; gap:60px; } }
.hero h1{
  font-family:"Bodoni Moda",serif; font-weight:500;
  font-size:clamp(36px,6vw,60px); line-height:1.04; letter-spacing:-.018em;
  margin:18px 0 20px;
}
.hero h1 em{ font-style:italic; color:var(--brass); }
.hero-lede{ font-size:17.5px; color:var(--dim); max-width:50ch; margin:0 0 24px; }
.hero-meta{
  display:flex; flex-wrap:wrap; gap:8px 24px;
  font-family:"IBM Plex Mono",monospace; font-size:12px; color:var(--dimmer);
}
.moon-live{ text-align:center; }
.moon-live svg{ width:min(280px,72vw); height:auto; filter:drop-shadow(0 0 40px rgba(234,231,219,.13)); }
.moon-readout{ margin-top:18px; font-family:"IBM Plex Mono",monospace; font-size:12.5px; color:var(--dim); line-height:1.85; }
.moon-readout .big{
  display:block; font-family:"Bodoni Moda",serif; font-size:32px;
  line-height:1.1; color:var(--moonlight);
}
.moon-readout .note{
  display:block; margin-top:9px; font-size:11px; color:var(--dimmer);
  max-width:32ch; margin-left:auto; margin-right:auto; line-height:1.55;
}

/* ── KISA YOL ── */
.story-nav{
  position:sticky; top:0; z-index:10; background:rgba(8,12,24,.9);
  border-bottom:1px solid var(--rule-soft); backdrop-filter:blur(14px);
}
.story-nav .wrap-wide{
  display:flex; gap:8px; overflow-x:auto; padding-top:10px; padding-bottom:10px;
  scrollbar-width:none;
}
.story-nav .wrap-wide::-webkit-scrollbar{ display:none; }
.story-nav a{
  flex:0 0 auto; color:var(--dim); text-decoration:none; border:1px solid transparent;
  border-radius:99px; padding:6px 11px; font-family:"IBM Plex Mono",monospace;
  font-size:10.5px; letter-spacing:.04em; transition:all .18s ease;
}
.story-nav a:hover,.story-nav a:focus-visible{
  color:var(--moonlight); border-color:var(--rule); background:var(--ink-2); outline:none;
}

/* ── BÖLÜM ── */
.section{ padding:62px 0 12px; }
.section + .section{ border-top:1px solid var(--rule-soft); }
.sec-head{ display:flex; align-items:flex-start; gap:16px; margin-bottom:24px; }
.sec-glyph{ flex:0 0 auto; margin-top:4px; }
.sec-glyph svg{ display:block; width:28px; height:28px; }
.sec-head h2{
  font-family:"Bodoni Moda",serif; font-weight:500;
  font-size:clamp(25px,3.4vw,34px); line-height:1.14; letter-spacing:-.012em; margin:5px 0 0;
}
.section p{ margin:0 0 18px; }
.section p:last-child{ margin-bottom:0; }
.section h3{ font-weight:600; font-size:16px; margin:32px 0 10px; }
.section a{
  color:var(--moonlight); text-decoration:none;
  border-bottom:1px solid var(--brass-soft); padding-bottom:1px;
  transition:color .18s ease,border-color .18s ease;
}
.section a:hover{ color:var(--brass); border-bottom-color:var(--brass); }
.section a:focus-visible{ outline:2px solid var(--brass); outline-offset:3px; border-radius:2px; }
.section ul{ margin:0 0 20px; padding-left:19px; }
.section li{ margin-bottom:8px; }
.section li::marker{ color:var(--brass-soft); }
strong{ font-weight:600; color:#F5F3EC; }
code.mono{ font-size:14px; color:var(--brass); }

/* ── ÜRETİM BÖLÜMÜ ── */
.phase-divider{
  padding:64px 0 20px; text-align:center;
  border-top:1px solid var(--rule);
}
.phase-divider h2{
  font-family:"Bodoni Moda",serif; font-weight:500;
  font-size:clamp(28px,4.4vw,44px); letter-spacing:-.014em; margin:14px 0 10px;
}
.phase-divider p{ color:var(--dim); font-size:16px; max-width:46ch; margin:0 auto; }

.step{ padding:38px 0 6px; }
.step + .step{ border-top:1px solid var(--rule-soft); }
.step-no{
  font-family:"IBM Plex Mono",monospace; font-size:11px; letter-spacing:.16em;
  color:var(--redlight); text-transform:uppercase; display:block; margin-bottom:8px;
}
.step h3{
  font-family:"Bodoni Moda",serif; font-weight:500; font-size:clamp(21px,2.8vw,27px);
  line-height:1.2; margin:0 0 14px; letter-spacing:-.008em;
}

/* ── formül / tablo ── */
.formula{
  font-family:"IBM Plex Mono",monospace; font-size:13px;
  background:var(--ink-2); border:1px solid var(--rule-soft); border-radius:3px;
  padding:14px 16px; margin:20px 0; overflow-x:auto; line-height:1.8; white-space:pre;
}
.formula .c{ color:var(--dimmer); }
table{ width:100%; border-collapse:collapse; margin:22px 0; font-size:14px; }
caption{
  caption-side:bottom; text-align:left; font-family:"IBM Plex Mono",monospace;
  font-size:11px; color:var(--dimmer); padding-top:11px; line-height:1.55;
}
th,td{ text-align:left; padding:8px 12px 8px 0; border-bottom:1px solid var(--rule-soft); vertical-align:top; }
th{
  font-family:"IBM Plex Mono",monospace; font-size:10.5px; letter-spacing:.13em;
  text-transform:uppercase; color:var(--brass); font-weight:500; border-bottom-color:var(--rule);
}
td.num{ font-family:"IBM Plex Mono",monospace; }

/* ── figür ── */
figure{
  margin:32px 0; background:var(--ink-2); border:1px solid var(--rule-soft);
  border-radius:4px; padding:18px;
}
figure svg{ display:block; width:100%; height:auto; }
figcaption{
  margin-top:14px; padding-top:12px; border-top:1px solid var(--rule-soft);
  font-size:13px; color:var(--dim); line-height:1.6;
}
figcaption b{ color:var(--moonlight); font-weight:600; }
.fig-controls{ display:flex; align-items:center; gap:11px; flex-wrap:wrap; margin-top:14px; }
.diagram-head{ margin:0 0 14px; }
.diagram-head strong{
  display:block; font-family:"Bodoni Moda",serif; font-size:21px;
  font-weight:500; line-height:1.2; margin-bottom:4px;
}
.diagram-head span{
  display:block; font-family:"IBM Plex Mono",monospace; font-size:10.5px;
  color:var(--brass); letter-spacing:.06em;
}
.motion-diagram svg{ border-radius:3px; overflow:hidden; }

/* ── fotoğraf / bilgi blokları ── */
.photo-feature{ padding:0; overflow:hidden; }
.photo-feature img,.photo-feature video{
  display:block; width:100%; max-height:560px; object-fit:cover; background:var(--ink-3);
}
.photo-feature figcaption{ margin:0; padding:14px 18px; }
.photo-feature a{ color:var(--moonlight); text-decoration:none; border-bottom:1px solid var(--brass-soft); }
.media-grid{ display:grid; grid-template-columns:1fr; gap:14px; margin:26px 0 32px; }
@media (min-width:720px){
  .media-grid.two{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .media-grid.three{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}
.media-card{ margin:0; padding:0; overflow:hidden; min-width:0; }
.media-card img,.media-card video{
  display:block; width:100%; aspect-ratio:16/9; object-fit:contain;
  background:#05070D;
}
.media-card.map-card img{ aspect-ratio:4/3; object-fit:contain; }
.media-card figcaption{ margin:0; padding:12px 14px; }
.fit-contain img,.fit-contain video{ max-height:none; object-fit:contain; }
.missing-media-frame{
  aspect-ratio:16/9; display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:9px; padding:18px; background:var(--ink-3);
  color:var(--dimmer); text-align:center;
}
.missing-media-frame svg{ width:30px; height:30px; opacity:.72; }
.missing-media-frame span{
  font-family:"IBM Plex Mono",monospace; font-size:10.5px; line-height:1.5;
}

.metric-grid,.source-grid,.decision-grid{
  display:grid; grid-template-columns:1fr; gap:12px; margin:26px 0;
}
@media (min-width:640px){
  .metric-grid{ grid-template-columns:repeat(3,1fr); }
  .source-grid{ grid-template-columns:1fr; }
  .decision-grid{ grid-template-columns:1fr 1fr; }
}
.metric,.source-card,.decision-card{
  background:var(--ink-2); border:1px solid var(--rule-soft); border-radius:4px; padding:17px;
}
.metric strong{
  display:block; font-family:"Bodoni Moda",serif; font-size:28px; font-weight:500;
  color:var(--moonlight); line-height:1.1; margin-bottom:7px;
}
.metric span,.source-card p,.decision-card p{ color:var(--dim); font-size:13px; line-height:1.55; margin:0; }
.source-card h3,.decision-card h3{ margin:0 0 8px; font-size:14px; }
.source-card .tag{
  display:block; font-family:"IBM Plex Mono",monospace; color:var(--brass);
  font-size:9.5px; letter-spacing:.12em; text-transform:uppercase; margin-bottom:9px;
}
.source-card{ padding:22px; }
.source-card h3{ font-size:20px; margin-bottom:10px; }
.source-card > p{ font-size:14px; line-height:1.65; }
.source-card h4{
  margin:18px 0 10px; font-family:"IBM Plex Mono",monospace; font-size:11px;
  letter-spacing:.08em; text-transform:uppercase; color:var(--moonlight);
}
.catalog-list{ list-style:none; margin:0; padding:0; display:grid; gap:9px; }
.catalog-list li{ color:var(--dim); font-size:13px; line-height:1.55; padding-left:28px; position:relative; }
.catalog-list b{ color:var(--moonlight); }
.catalog-list .initial{
  position:absolute; left:0; top:0; color:var(--brass); font-family:"IBM Plex Mono",monospace;
}
.source-media{ display:grid; grid-template-columns:1fr; gap:12px; margin-top:18px; }
@media (min-width:720px){ .source-media{ grid-template-columns:1fr 1fr; } }
.source-media figure{ margin:0; overflow:hidden; border:1px solid var(--rule-soft); border-radius:3px; background:var(--ink-3); }
.source-media img{ display:block; width:100%; aspect-ratio:2/1; object-fit:cover; }
.source-media figcaption{ margin:0; padding:10px 12px; color:var(--dim); font-size:12px; line-height:1.5; }
.source-media figcaption b{ color:var(--moonlight); }
.callout{
  margin:28px 0; padding:20px 22px; border-left:2px solid var(--brass);
  background:linear-gradient(90deg,rgba(200,154,69,.09),transparent);
}
.callout p{ margin:0; font-family:"Bodoni Moda",serif; font-size:21px; line-height:1.45; }

.pipeline{
  display:grid; grid-template-columns:1fr; gap:10px; margin:30px 0;
  counter-reset:pipe;
}
@media (min-width:720px){ .pipeline{ grid-template-columns:repeat(4,1fr); gap:24px; } }
.pipe{
  position:relative; background:var(--ink-2); border:1px solid var(--rule-soft);
  border-radius:4px; padding:15px; min-height:112px;
}
.pipe::before{
  counter-increment:pipe; content:"0" counter(pipe); display:block; color:var(--brass);
  font-family:"IBM Plex Mono",monospace; font-size:10px; margin-bottom:15px;
}
.pipe b{ display:block; font-size:14px; margin-bottom:5px; }
.pipe span{ display:block; color:var(--dim); font-size:12px; line-height:1.45; }
@media (min-width:720px){
  .pipe:not(:last-child)::after{
    content:"→"; position:absolute; right:-18px; top:42%; color:var(--brass-soft);
    font-family:"IBM Plex Mono",monospace;
  }
}

button{
  font-family:"IBM Plex Mono",monospace; font-size:11.5px; letter-spacing:.07em;
  text-transform:uppercase; background:var(--ink-3); color:var(--moonlight);
  border:1px solid var(--rule); border-radius:3px; padding:7px 13px; cursor:pointer;
  transition:border-color .18s ease,background .18s ease;
}
button:hover{ border-color:var(--brass-soft); background:#1B2338; }
button[aria-pressed="true"]{ border-color:var(--brass); color:var(--brass); }
button:focus-visible{ outline:2px solid var(--brass); outline-offset:2px; }

/* ── faz şeridi ── */
.phase-strip{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px 8px; margin:26px 0 8px; }
@media (min-width:640px){ .phase-strip{ grid-template-columns:repeat(8,1fr); } }
.phase-cell{ text-align:center; }
.phase-cell svg{ width:100%; max-width:60px; height:auto; margin:0 auto; }
.phase-cell .nm{
  display:block; font-family:"IBM Plex Mono",monospace; font-size:9.5px;
  color:var(--dim); margin-top:8px; line-height:1.35;
}

/* ── spektrum ── */
.spectrum{ display:grid; grid-template-columns:repeat(2,1fr); gap:11px; margin:24px 0; }
@media (min-width:700px){ .spectrum{ grid-template-columns:repeat(5,1fr); } }
.spec-cell{
  background:var(--ink-2); border:1px solid var(--rule-soft); border-radius:3px;
  padding:13px 10px; text-align:center;
}
.spec-dot{ width:24px; height:24px; border-radius:50%; margin:0 auto 9px; }
.spec-cell .cls{ font-family:"Bodoni Moda",serif; font-size:19px; display:block; line-height:1; }
.spec-cell .k{ font-family:"IBM Plex Mono",monospace; font-size:10px; color:var(--brass); display:block; margin-top:5px; }
.spec-cell .ex{ font-size:11px; color:var(--dim); display:block; margin-top:5px; line-height:1.4; }

/* ── künye ── */
.colophon{ margin-top:18px; padding:52px 0 76px; border-top:1px solid var(--rule); }
.colophon dl{ display:grid; grid-template-columns:1fr; gap:2px 22px; margin:22px 0 0; }
@media (min-width:620px){ .colophon dl{ grid-template-columns:auto 1fr; } }
.colophon dt{
  font-family:"IBM Plex Mono",monospace; font-size:10.5px; letter-spacing:.13em;
  text-transform:uppercase; color:var(--brass); padding-top:13px;
}
.colophon dd{
  margin:0; padding:13px 0; font-size:14px; color:var(--dim);
  border-bottom:1px solid var(--rule-soft);
}
@media (max-width:619px){ .colophon dt{ padding-top:16px; } .colophon dd{ padding-top:3px; } }
.colophon dd a{ color:var(--moonlight); border-bottom:1px solid var(--brass-soft); text-decoration:none; }
.colophon dd a:hover{ color:var(--brass); }

.reveal{ opacity:0; transform:translateY(12px); transition:opacity .55s ease,transform .55s ease; }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){ .reveal{ opacity:1; transform:none; transition:none; } }
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
