/* Bilişim Vizyonu — ortak stil.
   Tokenlar: design-system/bilisim-vizyonu/MASTER.md (Verified adjustments).
   Ev kuralları (design-taste-frontend): çizgi, gölge, gradyan yok; ayrım ton basamağı ve boşlukla. */
:root {
    --navy: #0F2238;
    --navy-2: #17324F;
    --teal: #1E7A8C;
    --teal-light: #6CC4D4;
    --orange: #E8902A;
    --orange-hover: #F2A64B;
    --bg: #F6F8FA;
    --tone: #E9EEF3;
    --surface: #FFFFFF;
    --ink: #0F172A;
    --muted: #475569;
    --on-navy: #E8EEF4;
    --on-navy-muted: #A9B8C9;
    --navy-hover: #1F4166;
    --tone-hover: #DCE5EE;
    --photo-mat: #E8D9BE;

    --font: 'Archivo', 'Segoe UI', system-ui, sans-serif;

    --text-sm: .9375rem;                                  /* 15 */
    --text-base: 1.0625rem;                               /* 17 */
    --text-lg: 1.25rem;                                   /* 20 */
    --text-2xl: clamp(2rem, 1.4rem + 2.2vw, 3rem);        /* 32–48 */
    --text-hero: clamp(2.5rem, 1rem + 4.4vw, 4.5rem);     /* 40–72 */

    --gutter: clamp(20px, 3vw, 40px);
    --section: clamp(96px, 11vw, 168px);
    --radius: 2px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font); font-size: var(--text-base); line-height: 1.6; color: var(--ink); background: var(--bg); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--orange); color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.on-navy :focus-visible { outline-color: var(--orange); }

h1, h2, h3 { line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; font-weight: 800; }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
p { max-width: 60ch; text-wrap: pretty; }
figcaption, li, dd { text-wrap: pretty; }

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.on-navy { background: var(--navy); color: var(--on-navy); }
.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; }

.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 20; background: var(--orange); color: var(--navy); padding: 12px 18px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Üst şerit: kelime işareti, birkaç bağlantı, bir eylem */
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 800; letter-spacing: -0.01em; text-decoration: none; }
.brand svg { width: 22px; height: 22px; color: var(--orange); }
.nav { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: none; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); }

/* Düğmeler: düz, tek dolgu, köşeli */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 24px; border: 0; border-radius: var(--radius);
    background: var(--orange); color: var(--navy); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
    transition: background-color .2s var(--ease), transform .12s ease-out;
}
.btn:active { transform: scale(.96); }
.btn svg { width: 20px; height: 20px; flex: none; transition: transform .2s var(--ease); }
.btn--quiet { background: var(--navy-2); color: var(--on-navy); }
.link { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-thickness .15s; }
.on-navy .link { color: var(--teal-light); }

@media (hover: hover) {
    .nav a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
    .btn:hover { background: var(--orange-hover); }
    .btn:hover svg { transform: translateY(2px); }
    .btn--quiet:hover { background: var(--navy-hover); }
    .link:hover { text-decoration-thickness: 2px; }
}

/* ---------- Giriş ---------- */
.hero { padding-bottom: clamp(56px, 7vw, 104px); }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gutter); align-items: end; padding-top: clamp(40px, 6vw, 88px); }
.hero__text { grid-column: 1 / span 7; }
.hero h1 { font-size: var(--text-hero); }
.hero__lede { margin-top: 32px; font-size: var(--text-lg); line-height: 1.5; max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 36px; }
.meta { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 6px 36px; margin-top: 48px; }
.meta dt { font-size: var(--text-sm); color: var(--on-navy-muted); }
.meta dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.hero__cover { grid-column: 8 / -1; justify-self: end; width: 100%; max-width: 430px; }
.hero__cover img { width: 100%; border-radius: var(--radius); }

/* ---------- Bölümler ---------- */
.section { padding-block: var(--section); }
.section--tone { background: var(--tone); }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gutter); }
.split__head { grid-column: 1 / span 4; }
.split__head p { margin-top: 16px; color: var(--muted); }
.split__body { grid-column: 6 / -1; }
.split__body > p + p { margin-top: 1em; }
.lead { font-size: var(--text-lg); line-height: 1.5; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 40px; }
.facts div { padding: 18px 20px; background: var(--tone); }
.facts dt { font-size: var(--text-sm); color: var(--muted); }
.facts dd { margin-top: 4px; font-weight: 600; }

/* Tam genişlik fotoğraf bandı */
.band { margin-top: clamp(56px, 7vw, 96px); }
.band__frame { overflow: hidden; border-radius: var(--radius); }
.band img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.band figcaption { margin-top: 12px; font-size: var(--text-sm); color: var(--muted); }

/* Tanım: lacivert alanda bir ifade */
.definition .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gutter); align-items: end; }
.definition h2 { grid-column: 1 / span 4; color: var(--teal-light); font-size: var(--text-lg); letter-spacing: -0.01em; }
.definition figure { grid-column: 5 / -1; }
.definition blockquote p { max-width: 34ch; font-size: clamp(1.375rem, 1rem + 1.4vw, 2.125rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }
.definition figcaption { margin-top: 24px; color: var(--on-navy-muted); font-size: var(--text-sm); }

/* ---------- Anket: canlı bölüm ---------- */
.survey { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gutter); }
.survey__picker { grid-column: 1 / span 4; display: grid; gap: 4px; align-content: start; }
.survey__picker button {
    min-height: 52px; padding: 12px 16px; border: 0; border-radius: var(--radius); text-align: start;
    background: var(--surface); color: var(--ink); font: inherit; font-weight: 500; cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease), transform .12s ease-out;
}
.survey__picker button:active { transform: scale(.96); }
.survey__picker button[aria-pressed="true"] { background: var(--navy); color: var(--on-navy); }
@media (hover: hover) { .survey__picker button:not([aria-pressed="true"]):hover { background: var(--tone-hover); } }
html:not(.js) .survey__picker { display: none; }
.survey__charts { grid-column: 5 / -1; display: grid; gap: 48px; }
.js .survey__charts { gap: 0; }
.q { background: var(--surface); padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); }
.q h3 { font-size: clamp(1.25rem, 1rem + .8vw, 1.625rem); line-height: 1.25; max-width: 32ch; }
.q .note { margin-top: 8px; color: var(--muted); font-size: var(--text-sm); }
.bars { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.bars li { display: grid; grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr) 3.5rem; gap: 14px; align-items: center; }
.bars .lbl { font-size: var(--text-sm); line-height: 1.3; }
.bars .track { height: 22px; background: var(--tone); border-radius: var(--radius); overflow: hidden; }
.bars .fill { display: block; height: 100%; width: calc(var(--v) * 1%); background: var(--teal); transform-origin: left center; border-radius: var(--radius); }
.bars li.top .fill { background: var(--navy); }
.bars .val { font-weight: 700; font-variant-numeric: tabular-nums; text-align: end; }
.survey__source { grid-column: 5 / -1; margin-top: 16px; font-size: var(--text-sm); color: var(--muted); }

/* ---------- İçindekiler ---------- */
.toc { list-style: none; display: grid; gap: 4px; }
.toc > li { padding: 22px 24px; background: var(--surface); border-radius: var(--radius); }
.toc__row { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) auto; gap: 0 16px; align-items: baseline; }
.toc__no { font-weight: 800; font-size: var(--text-lg); color: var(--teal); font-variant-numeric: tabular-nums; }
.toc__title { font-weight: 700; font-size: var(--text-lg); line-height: 1.3; }
.toc__page { font-variant-numeric: tabular-nums; color: var(--muted); font-size: var(--text-sm); }
.toc ol { list-style: none; margin: 12px 0 0 calc(2.75rem + 16px); display: grid; gap: 6px; }
.toc ol li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: 0 12px; color: var(--muted); font-size: var(--text-sm); }
.toc ol li span:first-child, .toc ol li span:last-child { font-variant-numeric: tabular-nums; }

/* ---------- Sonuçlar ---------- */
.outcomes { list-style: none; display: grid; gap: 28px; counter-reset: o; }
.outcomes li { counter-increment: o; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 0 16px; font-size: var(--text-lg); line-height: 1.45; }
.outcomes li::before { content: counter(o); font-weight: 800; font-size: var(--text-2xl); line-height: 1; color: var(--teal); font-variant-numeric: tabular-nums; }
.closing { margin-top: 56px; padding: clamp(24px, 3vw, 40px); background: var(--navy); color: var(--on-navy); border-radius: var(--radius); }
.closing p { font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem); line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; max-width: 40ch; }
.closing cite { display: block; margin-top: 16px; font-style: normal; color: var(--on-navy-muted); font-size: var(--text-sm); }

/* ---------- Yazar ---------- */
.author { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gutter); align-items: start; }
.author__photo { grid-column: 1 / span 4; }
.author__photo img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: var(--radius); }
.author__text { grid-column: 6 / -1; }
.author__role { margin-top: 12px; color: var(--muted); font-size: var(--text-lg); }
.author__text .bio { margin-top: 24px; }
.profiles { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.profiles a {
    display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px;
    background: var(--tone); border-radius: var(--radius); font-weight: 500; text-decoration: none;
    transition: background-color .2s var(--ease), color .2s var(--ease);
}
.profiles svg { width: 18px; height: 18px; color: var(--teal); transition: transform .2s var(--ease); }
@media (hover: hover) { .profiles a:hover { background: var(--tone-hover); } .profiles a:hover svg { transform: translate(2px, -2px); } }

/* ---------- Alt bilgi: tasarlanmış kapanış ---------- */
.footer { padding-block: clamp(64px, 8vw, 112px) 32px; }
.footer__name { font-size: clamp(2.5rem, 1rem + 7vw, 7rem); font-weight: 800; line-height: .95; letter-spacing: -0.04em; max-width: none; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; margin-top: 40px; }
.footer__row p { color: var(--on-navy-muted); font-size: var(--text-sm); max-width: none; }
.footer__credits { margin-top: 24px; color: var(--on-navy-muted); font-size: var(--text-sm); max-width: 90ch; }

/* ---------- Hakkımda sayfası ---------- */
.profile { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gutter); align-items: center; padding-top: clamp(32px, 6vw, 72px); }
.profile__photo { grid-column: 1 / span 4; }
.profile__photo img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: var(--radius); }
.profile__text { grid-column: 6 / -1; }
.profile__text h1 { font-size: var(--text-hero); }
.profile__text .role { margin-top: 16px; font-size: var(--text-lg); }
.profile__text .profiles a { background: var(--navy-2); color: var(--on-navy); }
.profile__text .profiles svg { color: var(--teal-light); }
@media (hover: hover) { .profile__text .profiles a:hover { background: var(--navy-hover); } }
.page-head { padding-bottom: var(--section); }

.timeline { list-style: none; display: grid; gap: 4px; }
.timeline li { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 0 20px; padding: 22px 24px; background: var(--surface); border-radius: var(--radius); }
.timeline .year { font-weight: 800; font-size: var(--text-lg); color: var(--teal); font-variant-numeric: tabular-nums; }
.timeline h3 { margin-bottom: 4px; }
.timeline p { color: var(--muted); }
.cols-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.cols-list li { padding: 16px 20px; background: var(--surface); border-radius: var(--radius); font-weight: 500; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--gutter); }
.two h3 { margin-bottom: 16px; }
.plain { list-style: none; display: grid; gap: 10px; }
.plain li span { color: var(--muted); margin-left: .5em; }

/* ---------- Hareket ---------- */
@media (prefers-reduced-motion: no-preference) {
    .js .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
    .js .rise.in { opacity: 1; transform: none; }
    .js .bars .fill { transform: scaleX(0); transition: transform .8s var(--ease); transition-delay: calc(var(--n, 0) * 60ms); }
    .js .q.shown .bars .fill { transform: scaleX(1); }
    @supports (animation-timeline: view()) {
        .band img { animation: drift linear both; animation-timeline: view(); }
    }
}
@keyframes drift { from { transform: scale(1.12) translateY(-3%); } to { transform: scale(1) translateY(2%); } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Duyarlı ---------- */
@media (max-width: 960px) {
    .hero__text, .hero__cover, .split__head, .split__body, .author__photo, .author__text,
    .profile__photo, .profile__text, .survey__picker, .survey__charts, .survey__source,
    .definition h2, .definition figure { grid-column: 1 / -1; }
    .hero__cover { justify-self: start; max-width: 220px; }
    .author__photo, .profile__photo { max-width: 260px; }
    .meta { grid-template-columns: repeat(2, auto); }
    .survey__picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .nav { gap: 0 18px; }
    .hero__cover { max-width: 150px; }
    .hero__grid { padding-top: 16px; gap: 24px; }
    .hero__actions .btn { width: 100%; }
    .facts, .cols-list, .two { grid-template-columns: 1fr; }
    .bars li { grid-template-columns: minmax(0, 1fr) 3rem; }
    .bars .lbl { grid-column: 1 / -1; }
    .toc ol { margin-left: 0; }
    .toc > li { padding: 18px; }
    .toc__row { grid-template-columns: 2.25rem minmax(0, 1fr) auto; }
    .band img { aspect-ratio: 4 / 3; }
    .outcomes li { grid-template-columns: 2.5rem minmax(0, 1fr); font-size: var(--text-base); }
}

/* Inspector round 2 */
.hero__text { grid-column: 1 / span 8; }
.hero__cover { grid-column: 9 / -1; }
.definition blockquote p { max-width: 46ch; font-size: clamp(1.375rem, 1rem + 1.1vw, 1.875rem); }
.toc { gap: 32px; }
.toc > li { padding: 0; background: none; }
.toc ol { margin-top: 10px; }
@media (max-width: 960px) { .hero__text, .hero__cover { grid-column: 1 / -1; } }
@media (max-width: 640px) { .toc > li { padding: 0; } }

/* Zarif katman: siyah-beyaz görseller, soluk çizim zeminleri, daha ince başlıklar */
h1, h2, .footer__name { font-weight: 600; letter-spacing: -0.025em; }
.toc__title, .outcomes li::before, .toc__no, .timeline .year { font-weight: 600; }

.ground { background-color: var(--bg); background-repeat: no-repeat; }
.ground--cephe { background-image: url("zemin-cephe-1872.jpg"); background-size: min(820px, 70vw) auto; background-position: right -40px top 40px; }
.ground--harita { background-image: url("zemin-pervititch-1944.jpg"); background-size: min(900px, 80vw) auto; background-position: left -60px center; }
.ground--harita-alt { background-image: url("zemin-pervititch-1944.jpg"); background-size: min(760px, 70vw) auto; background-position: right -80px bottom; }
@media (max-width: 640px) {
    .ground--cephe, .ground--harita, .ground--harita-alt { background-size: 140% auto; background-position: center top; }
}


/* Tam başlık (sahibin kararı) ve alt bilgi videosu */
.hero h1 { line-height: 1.04; }
.footer--film { position: relative; isolation: isolate; overflow: hidden; background: var(--navy) url("vue-des-travaux-de-la-part-dieu-poster.jpg") center / cover no-repeat; }
.footer__film { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.footer--film::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(15, 34, 56, .82); }
.film-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px;
    background: none; border: 0; color: var(--on-navy); font: inherit; font-size: var(--text-sm); cursor: pointer;
    text-decoration: underline; text-decoration-color: var(--teal-light); text-underline-offset: 5px;
}
.film-toggle svg { width: 14px; height: 14px; }
html:not(.js) .film-toggle { display: none; }
.definition .wrap { align-items: start; }

/* Görsel tonları (sahibin isteği): kapak tam renkli, diğerleri eski renkli fotoğraf gibi */
img, .footer__film { filter: sepia(.6) saturate(.8) hue-rotate(-8deg) contrast(.86) brightness(1.06); }
.hero__cover img { filter: none; }
.band__frame, .author__photo, .profile__photo { background: var(--photo-mat); }

/* Kapak HTML'de başlıktan önce (okuma sırası); masaüstünde ikisi aynı satırda */
@media (min-width: 961px) { .hero__text, .hero__cover { grid-row: 1; } }
