/* Ortava belge teması: rapor, sunum, teklif.
   Zemin yalnız Kâğıt ya da Siyah; belge başına 3 renk (zemin, metin, tek vurgu).
   Vurgu açıkta Kobalt, koyuda Limon (Kobalt siyah zeminde okunmuyor). */


:root, [data-theme=light] {
  --bg: #F2F0EA; --fg: #0E0E10; --accent: #1F3BFF; --on-accent: #F2F0EA;
  --muted: rgba(14,14,16,.58); --line: rgba(14,14,16,.14); --grid: rgba(14,14,16,.06); color-scheme: light;
}
[data-theme=dark] {
  --bg: #0E0E10; --fg: #F2F0EA; --accent: #C8F53A; --on-accent: #0E0E10;
  --muted: rgba(242,240,234,.56); --line: rgba(242,240,234,.14); --grid: rgba(242,240,234,.06); color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0 }
html { background: var(--bg); color: var(--fg); font: 400 17px/1.55 Inter, sans-serif; -webkit-font-smoothing: antialiased }
a { color: inherit }
.d { font-family: 'Bodoni Moda', serif; font-weight: 700; letter-spacing: -0.02em; line-height: .95 }
.i { font-family: 'Bodoni Moda', serif; font-style: italic; font-weight: 400; letter-spacing: 0 }
.lab { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted) }
.acc { color: var(--accent) }
.mark { display: inline-block; width: 1em; height: 1em; vertical-align: -.12em; background: var(--accent);
        -webkit-mask: url('/brand/ortava-isaret.svg') center/contain no-repeat; mask: url('/brand/ortava-isaret.svg') center/contain no-repeat }
.px { image-rendering: pixelated; display: block }
.tick { display: inline-block; width: .55em; height: .55em; background: var(--accent); vertical-align: .1em }
.ph { color: var(--muted) }                    /* [yer tutucu] */

/* üst çubuk */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px; padding: 18px 48px;
       background: var(--bg); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase }
.bar .brand { display: flex; align-items: center; gap: 8px; font: 700 20px/1 'Bodoni Moda', serif; letter-spacing: 0; text-transform: none }
.bar nav { display: flex; gap: 22px; margin-left: auto }
.bar nav a { text-decoration: none; color: var(--muted) }
.bar nav a:hover { color: var(--fg) }
.theme-btn { font: inherit; letter-spacing: inherit; text-transform: inherit; background: none; color: var(--fg);
             border: 1px solid var(--line); padding: 7px 12px; cursor: pointer }

/* ızgara çizgili bölüm */
.sec { padding: 120px 48px; border-bottom: 1px solid var(--line) }
.sec-head { display: grid; grid-template-columns: 220px 1fr; gap: 40px; margin-bottom: 64px }
.sec-head .n { font: 700 15px/1 Inter; color: var(--accent) }
.sec-head h2 { font-size: clamp(44px, 6vw, 92px) }
.lead { max-width: 760px; font-size: 22px; line-height: 1.5 }
.grid-lines { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
              background-size: 80px 80px }

/* bulgu satırı */
.finding { display: grid; grid-template-columns: 220px 1fr 280px; gap: 40px; padding: 40px 0; border-top: 1px solid var(--line) }
.finding h3 { font: 700 30px/1.15 'Bodoni Moda', serif }
.finding .meta { display: flex; flex-direction: column; gap: 14px; font-size: 14px }
.finding .meta b { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600 }
.prio { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase }

/* rakam kutuları: değer yoksa — gösterilir */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line) }
.kpis > div { padding: 28px 24px 28px 0; border-right: 1px solid var(--line) }
.kpis > div:last-child { border-right: 0 }
.kpis .v { font: 700 64px/1 'Bodoni Moda', serif; margin: 14px 0 10px }

/* tablo */
table.t { width: 100%; border-collapse: collapse; font-size: 15px }
table.t th { text-align: left; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--fg) }
table.t td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top }
table.t td.r, table.t th.r { text-align: right }

.foot { display: flex; justify-content: space-between; padding: 32px 48px; font-size: 13px; color: var(--muted) }

@media (max-width: 900px) {
  .sec { padding: 72px 22px } .bar { padding: 14px 22px } .bar nav { display: none }
  .sec-head, .finding { grid-template-columns: 1fr; gap: 16px } .kpis { grid-template-columns: 1fr 1fr }
}
/* hareket: ortava-anim.js sınıfları ekler; JS yoksa hiçbir şey gizlenmez */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform 1.1s cubic-bezier(.2,.7,.2,1) var(--d, 0ms) }
.rv.in { opacity: 1; transform: none }
[data-motion=calm] .rv { transform: none }
.rise .w { display: inline-block; opacity: 0; transform: translateY(.45em); transition: opacity .7s ease var(--d), transform .9s cubic-bezier(.2,.7,.2,1) var(--d) }
.rise.in .w { opacity: 1; transform: none }
.agent { position: absolute; z-index: 20; left: 0; top: 0; pointer-events: none; opacity: 0; transition: transform .62s cubic-bezier(.45,0,.2,1), opacity .4s }
.agent.on { opacity: 1 }
.agent img { width: 22px; height: 28px; image-rendering: pixelated; display: block; transition: transform .12s }
.agent.click img { transform: scale(.82) }
.agent span { position: absolute; left: 18px; top: 22px; white-space: nowrap; font: 600 12px/1 Inter, sans-serif; padding: 5px 8px; border-radius: 0 6px 6px 6px; letter-spacing: 0; text-transform: none }
/* 1600 genişlikteki slaytlarda imleç ve etiket büyür */
.s .agent img { width: 33px; height: 42px } .s .agent span { left: 27px; top: 33px; font-size: 18px; padding: 7px 11px }
.ic { image-rendering: pixelated; display: block }
/* scan: tıklanan bir an parlar, bulgudaki öncelik işareti belirir */
.pre-hit .tick, .pre-hit.tick { transform: scale(0) }
.hit .tick, .hit.tick { transform: scale(1); transition: transform .35s cubic-bezier(.3,1.6,.5,1) }
.pre-hit.hit { animation: flash 1.2s ease }
@keyframes flash { 0% { background: color-mix(in srgb, var(--accent) 18%, transparent) } 100% { background: transparent } }
/* build: kart çizgisi basamaklı (piksel gibi) çizilir, numara tıklanınca belirir */
.cards.building { border-top-color: transparent }
.bc { position: relative }
.bc .bline { position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--fg); transform-origin: left; transform: scaleX(0); transition: transform .5s steps(14) }
.bc:nth-child(n+5) .bline { background: var(--line) }   /* alt sıra eski yerleşimdeki gibi ince çizgi */
.bc .lab { opacity: 0 } .bc.numbered .lab { opacity: 1 }
.bc.lined .bline { transform: none }
.bc .bic { position: absolute; left: 46px; top: 16px; width: 36px; height: 36px }
.bc b { min-height: 1.2em }
.ch { opacity: 0 } .ch.on { opacity: 1 }
/* walk */
.steps.walk { position: relative }
.steps.walk > div { border-top-color: transparent }
.track { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--fg); transform-origin: left; transform: scaleX(0) }
.walker { position: absolute; left: 0; bottom: 100%; width: 120px; height: 120px }
/* flags */
.steps > div.fl { position: relative; border-top-color: var(--line) }
.fl .fill { position: absolute; left: 0; right: 0; top: -2px; height: 3px; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform .7s cubic-bezier(.2,.7,.2,1) .15s }
.fl .flag { position: absolute; left: 0; top: -40px; transform: scale(0); transform-origin: bottom left; transition: transform .35s cubic-bezier(.3,1.6,.5,1) }
.fl.planted .fill, .fl.planted .flag { transform: none }
/* draw, curtain, quote */
.drawing > :not(.wipe):not(.ft) { position: relative; z-index: 1 }
.wipe { position: absolute; inset: 0; background: var(--bg); transform-origin: right; transition: transform 1.3s cubic-bezier(.6,0,.2,1) }
.drawn .wipe { transform: scaleX(0) }
.drawing > .d.acc { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(.6,0,.2,1) .35s }
.drawn > .d.acc { clip-path: inset(0 0 0 0) }
.curtain { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s cubic-bezier(.6,0,.2,1) .2s }
.curtain.open { clip-path: inset(0 0 0 0) }
.qm { display: inline-block; opacity: 0; transform: translateY(24px) scale(.7); transform-origin: left bottom; transition: opacity .6s, transform .8s cubic-bezier(.3,1.5,.5,1) }
.qm.in { opacity: 1; transform: none }
.still *, .still *::before, .still *::after { transition: none !important; animation: none !important }
.still .rv, .still .rise .w, .still .ch { opacity: 1; transform: none }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important } .rv, .rise .w, .ch { opacity: 1 !important; transform: none !important } }
@media print {
  .bar { position: static } .theme-btn { display: none } .agent, .wipe { display: none }
  *, *::before, *::after { transition: none !important; animation: none !important }
  .rv, .rise .w, .ch, .qm, .pre-hit .tick, .pre-hit.tick { opacity: 1 !important; transform: none !important }
  .curtain, .drawing > .d.acc { clip-path: none !important }
  .bc .bline { transform: none !important } .bc .lab { opacity: 1 !important }
}

