/* İlyas Utku Meydan — gece sanat yönetimi. Site stili. */

:root {
  color-scheme: dark;
  --bg: #101112;
  --bg-deep: #0b0c0d;
  --paper: #18191b;
  --paper-2: #202326;
  --ink: #f3f3ee;
  --muted: #a3a6a7;
  --faint: #6f7375;
  --line: #2c2e31;
  --accent: #d8f36a;
  --accent-soft: #e8ff9a;
  --on-accent: #101112;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'DM Serif Display', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;
  --gutter: clamp(16px, 4vw, 64px);
  --max: 1680px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 500; line-height: 1.05; letter-spacing: -.045em; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
main:focus { outline: none; }
[hidden] { display: none !important; }

.mono, .kicker { font: 12px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.kicker { color: var(--muted); }
.muted { color: var(--muted); }
.note { font-size: 13px; color: var(--faint); }

.skip { position: fixed; top: -80px; left: var(--gutter); z-index: 100; padding: 12px 18px; background: var(--accent); color: var(--on-accent); border-radius: 8px; }
.skip:focus { top: 14px; }

.draft-bar { position: relative; z-index: 60; padding: 8px var(--gutter); background: #ffcc00; color: #111; font: 13px var(--mono); text-align: center; }
.draft-bar a { text-decoration: underline; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 11px 20px; border-radius: 999px; font-size: 15px; font-weight: 500; line-height: 1; border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); white-space: nowrap; }
.btn small { font: 11px var(--mono); opacity: .7; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-soft); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { min-height: 58px; padding: 16px 28px; font-size: 17px; }
.link { display: inline-flex; gap: 6px; align-items: baseline; border-bottom: 1px solid currentColor; padding-bottom: 3px; font-size: 15px; transition: color .2s; }
.link:hover { color: var(--accent); }
.arrow { display: inline-block; transition: transform .25s var(--ease); }
a:hover > .arrow, a:focus-visible > .arrow { transform: translate(3px, -3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 28px; padding: 18px var(--gutter); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, padding .3s; }
.site-header.is-scrolled { border-color: var(--line); padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { display: block; height: 44px; width: auto; max-width: 200px; object-fit: contain; }
.brand-name { font-size: 12px; line-height: 1.3; font-weight: 500; }
.header-note { font-size: 12px; line-height: 1.4; color: var(--muted); }
.header-note span { color: var(--faint); }
.site-nav { display: flex; gap: 6px; }
.site-nav a { position: relative; padding: 8px 14px; font-size: 15px; color: var(--muted); border-radius: 999px; transition: color .2s, background-color .2s; }
.site-nav a:hover { color: var(--ink); background: var(--paper); }
.site-nav a[aria-current] { color: var(--ink); }
.site-nav a[aria-current]::after { content: ''; position: absolute; left: 50%; bottom: 1px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent); }
.header-cv { min-height: 40px; padding: 9px 18px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter) 40px; --hx: 0px; --hy: 0px; }
.hero-meta { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.hero-meta time { color: var(--accent); margin-left: 6px; }
.hero-stage { position: relative; padding-top: clamp(28px, 5vw, 60px); isolation: isolate; }
.hero-title { position: relative; z-index: 2; text-align: center; font-size: clamp(52px, 9.4vw, 168px); font-weight: 500; line-height: 1.04; letter-spacing: -.065em; pointer-events: none; }
.hero-title > span { display: block; position: relative; width: max-content; max-width: 100%; margin: 0 auto; }
.hero-title .hl { color: var(--accent); }
.hero-title > span::before, .hero-title > span::after { content: attr(data-echo); position: absolute; inset: 0; z-index: -1; color: transparent; -webkit-text-stroke: 1px #6d7174; font: inherit; opacity: .45; transform: translate(calc(6px + var(--hx)), calc(4px + var(--hy))); transition: transform .7s var(--ease); }
.hero-title > span::after { opacity: .18; transform: translate(calc(13px + var(--hx) * 1.7), calc(8px + var(--hy) * 1.7)); }
.hero-cards { position: relative; z-index: 3; width: min(700px, 92%); aspect-ratio: 700 / 390; margin: clamp(-24px, -1.5vw, -8px) auto 0; transform: translate(var(--hx), var(--hy)); transition: transform .9s var(--ease); }
.hero-card { position: absolute; top: 20px; width: 37%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); border: 1px solid #ffffff1f; background: var(--paper-2); box-shadow: 0 30px 70px #000a; transition: transform .6s var(--ease), filter .5s; }
.hero-card > img, .hero-card > .type-art { width: 100%; height: 100%; object-fit: cover; }
.hero-card > .type-art strong { font-size: clamp(22px, 2.6vw, 38px); }
.hero-card-label { position: absolute; inset: auto 0 0; padding: 36px 14px 14px; background: linear-gradient(transparent, #000d); color: #fff; font-size: 11px; }
.hero-card-1 { left: 0; transform: rotate(-12deg); filter: brightness(.72); }
.hero-card-2 { left: 31.5%; top: 0; z-index: 2; transform: rotate(3deg); }
.hero-card-3 { right: 0; transform: rotate(12deg); filter: brightness(.72); }
.hero-card:hover, .hero-card:focus-visible { z-index: 4; filter: brightness(1); transform: translateY(-16px) rotate(0); }
.hero-base { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: end; margin-top: 36px; }
.hero-base h2 { font-size: 18px; letter-spacing: -.02em; line-height: 1.4; }
.hero-base .muted { font-size: 14px; margin-top: 6px; }
.hero-lede { justify-self: center; max-width: 330px; color: var(--muted); line-height: 1.65; }
.hero-explore { justify-self: end; display: inline-flex; align-items: center; gap: 18px; font-size: 16px; }
.hero-explore span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 24px; transition: transform .3s var(--ease); }
.hero-explore:hover span { transform: translateY(5px); }

/* ---------- Marquee ---------- */
.marquee { position: relative; border-block: 1px solid var(--line); padding: 22px 0 26px; background: var(--bg-deep); }
.marquee-label { padding: 0 var(--gutter) 14px; color: var(--faint); }
.marquee-window { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
/* Kopya sayısı, kayma mesafesi ve süre main.js tarafından ekran genişliğine göre ayarlanır (kesintisiz döngü) */
.marquee-track { display: flex; width: max-content; animation: marquee var(--marquee-duration, 34s) linear infinite; will-change: transform; }
.marquee-set { display: flex; align-items: center; gap: 72px; padding-right: 72px; }
.marquee-set li { font-size: clamp(22px, 2.4vw, 34px); font-weight: 600; letter-spacing: -.04em; color: #c9ccc8; white-space: nowrap; }
.marquee-set li:nth-child(3n + 2) { font: italic 400 clamp(24px, 2.6vw, 38px) var(--serif); letter-spacing: -.01em; }
.marquee-set li:nth-child(3n) { font: 500 clamp(15px, 1.4vw, 19px) var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.marquee-set li.has-logo { display: flex; align-items: center; }
/* Boyutlar /assets/theme.css içinde logonun oranına göre üretilir */
.marquee-set li.has-logo img { display: block; object-fit: contain; opacity: .82; transition: opacity .2s; }
.marquee-set li.has-logo:hover img { opacity: 1; }
.fx-mono img { filter: brightness(0) invert(1); }
/* Beyaz siluet, ama logonun içindeki beyaz harf/şekiller oyuk kalır (renkli kutulu logolar için) */
.fx-knock img { filter: url(#logo-knockout); }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.fx-adapt img { filter: invert(1) hue-rotate(180deg) saturate(1.15); }
.fx-gray img { filter: grayscale(1) brightness(1.6) contrast(.9); }
.marquee-set li.fx-original img { opacity: .95; }
.marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-toggle { position: absolute; right: var(--gutter); top: 14px; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; font-size: 12px; color: var(--muted); }
.marquee-toggle:hover { color: var(--ink); border-color: var(--ink); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(var(--marquee-shift, -50%)); } }

/* ---------- Sections ---------- */
.section, .stats, .cta, .page-head, .project, .toc, .cv-block, .contact-page { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 110px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(34px, 4.6vw, 72px); }
.section-head em { color: var(--accent); }
.section-head.split { grid-template-columns: 1fr auto; align-items: end; }
.section-head.split > div { display: grid; gap: 14px; }
.section-lede { max-width: 620px; font-size: 17px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding-block: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.stats > div { display: flex; align-items: center; gap: 18px; padding: 8px 24px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats strong { font-size: clamp(54px, 6vw, 96px); font-weight: 500; letter-spacing: -.06em; line-height: 1; }
.stats sup { font-size: .42em; color: var(--accent); vertical-align: top; position: relative; top: .25em; margin-left: 2px; }
.stats span { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---------- Work grid ---------- */
.work-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.work-count { color: var(--faint); margin-left: auto; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); transition: background-color .2s, color .2s, border-color .2s; }
.filters button:hover { color: var(--ink); border-color: var(--muted); }
.filters button[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 24px; }
.tile { display: block; min-width: 0; }
.tile-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--paper); }
.tile-cover > img, .tile-cover > .type-art { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tile:hover .tile-cover > img, .tile:hover .tile-cover > .type-art, .tile:focus-visible .tile-cover > img { transform: scale(1.045); }
.tile-open { position: absolute; right: 14px; bottom: 14px; padding: 9px 14px; border-radius: 999px; background: #121314e8; border: 1px solid #ffffff2a; font-size: 13px; opacity: 0; translate: 0 8px; transition: opacity .25s, translate .25s var(--ease); }
.tile:hover .tile-open, .tile:focus-visible .tile-open { opacity: 1; translate: 0 0; }
.tile-caption { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; }
.tile-caption h3 { font-size: 21px; font-weight: 500; letter-spacing: -.03em; line-height: 1.25; transition: color .2s; }
.tile-caption p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.tile-index { color: var(--faint); padding-top: 4px; }
.tile:hover .tile-caption h3 { color: var(--accent); }
.work .note { margin-top: 36px; }
.empty { padding: 60px 0; color: var(--muted); }

/* Tipografik kapaklar — renkler /assets/theme.css içinde projeye göre üretilir */
.type-art { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(18px, 2vw, 28px); background: var(--paper-2); color: var(--ink); }
.type-art span { font: 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.type-art strong { font-size: clamp(30px, 3.4vw, 58px); font-weight: 600; letter-spacing: -.06em; line-height: .98; }
.type-art strong em { font-weight: 400; }
.type-art b { align-self: flex-end; font-size: 15px; font-weight: 600; }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.principles article { display: grid; align-content: start; gap: 12px; min-height: 220px; padding: 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.principles article:hover { border-color: #4a4d50; transform: translateY(-4px); }
.principles span { color: var(--accent); }
.principles h3 { font-size: 24px; letter-spacing: -.035em; margin-top: auto; padding-top: 40px; }
.principles p { color: var(--muted); font-size: 15px; }

/* ---------- Rows (career, education, awards) ---------- */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.row time { font: 13px/1.8 var(--mono); color: var(--muted); }
.row h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.03em; }
.row b { display: block; font-weight: 500; color: var(--accent); margin-top: 6px; }
.row p { color: var(--muted); margin-top: 6px; max-width: 720px; }

/* ---------- CTA ---------- */
.cta { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-block: clamp(40px, 6vw, 80px); padding-block: clamp(36px, 5vw, 64px); background: radial-gradient(120% 140% at 100% 0%, #d8f36a1f, transparent 55%), var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); max-width: calc(var(--max) - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); }
.cta > div:first-child { display: grid; gap: 14px; }
.cta h2 { font-size: clamp(36px, 4.6vw, 72px); }
.cta em { color: var(--accent); }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn.is-copied { border-color: var(--accent); color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 72px) var(--gutter) 28px; margin-top: clamp(40px, 6vw, 80px); }
.footer-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; max-width: var(--max); margin: 0 auto; padding-bottom: 36px; }
.footer-line { font-size: clamp(30px, 4vw, 60px); letter-spacing: -.05em; line-height: 1.05; }
.footer-line em { color: var(--accent); }
.footer-mail { font-size: clamp(17px, 1.6vw, 22px); border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color .2s; }
.footer-mail:hover { border-color: var(--accent); }
.footer-bottom { display: flex; gap: 12px 28px; flex-wrap: wrap; max-width: var(--max); margin: 0 auto; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); }
.footer-bottom a:hover { color: var(--ink); }
.to-top { margin-left: auto; }

/* ---------- Page heads ---------- */
.page-head { display: grid; gap: 22px; padding-top: clamp(40px, 7vw, 100px); padding-bottom: clamp(30px, 5vw, 60px); }
.page-head h1, .contact-page h1 { font-size: clamp(52px, 8.4vw, 150px); letter-spacing: -.065em; line-height: 1; }
.page-head h1 em, .contact-page h1 em { color: var(--accent); }
.page-lede { max-width: 560px; font-size: 18px; }
.page-head + .section.work { padding-top: 0; border-top: 0; }

/* ---------- Project ---------- */
.project { padding-top: 22px; }
.project-bar { display: flex; justify-content: space-between; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.project-bar a:hover { color: var(--accent); }
.project-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; padding-block: clamp(36px, 6vw, 80px) 36px; }
.project-head h1 { font-size: clamp(56px, 9vw, 160px); letter-spacing: -.065em; line-height: .95; margin-top: 12px; }
.project-subtitle { font-size: clamp(22px, 2.4vw, 34px); color: var(--accent); margin-top: 14px; }
.project-desc { font-size: 18px; color: var(--muted); line-height: 1.7; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); margin-bottom: 36px; }
.facts > div { padding: 20px 20px 22px 0; }
.facts > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dt { color: var(--faint); }
.facts dd { margin-top: 8px; font-size: 16px; line-height: 1.45; }
.project-cover { aspect-ratio: 16 / 9; }
.project-cover > .type-art strong { font-size: clamp(44px, 7vw, 120px); }
.story { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-block: 56px; }
.story article { display: grid; align-content: start; gap: 12px; }
.story article > p:last-child { font-size: 17px; line-height: 1.7; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
.gallery figure:first-child { grid-column: 1 / -1; }
.gallery-item { position: relative; display: block; width: 100%; overflow: hidden; border-radius: var(--radius); background: var(--paper); cursor: zoom-in; }
.gallery-item img { width: 100%; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.02); }
.gallery-item span { position: absolute; right: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px; background: #121314e0; font-size: 13px; opacity: 0; transition: opacity .2s; }
.gallery-item:hover span, .gallery-item:focus-visible span { opacity: 1; }
.gallery figcaption { font-size: 14px; color: var(--muted); padding-top: 10px; }
.gallery-empty { margin-top: 24px; font-size: 15px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(48px, 7vw, 90px); }
.pager a { display: grid; gap: 8px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, background-color .25s; }
.pager a:last-child { text-align: right; }
.pager a:hover { border-color: var(--accent); background: var(--paper); }
.pager span { color: var(--muted); }
.pager strong { font-size: clamp(24px, 2.8vw, 40px); font-weight: 500; letter-spacing: -.04em; }

/* ---------- About ---------- */
.about-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.lead { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.55; max-width: 760px; }
.about-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; justify-self: end; }
.toc { position: sticky; top: 78px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding-block: 12px; background: var(--bg); border-block: 1px solid var(--line); scrollbar-width: none; }
.toc a { padding: 6px 12px; border-radius: 999px; color: var(--muted); white-space: nowrap; }
.toc a:hover, .toc a[aria-current] { color: var(--on-accent); background: var(--accent); }
.cv-block { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding-block: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.cv-block > .kicker { padding-top: 6px; font-weight: 400; }
.cv-block .rows { border-top: 0; }
.cv-block .row:first-child { padding-top: 0; }
.cv-block .row { grid-template-columns: 180px minmax(0, 1fr); }
.prose { display: grid; gap: 18px; max-width: 860px; }
.prose h2 { font-size: clamp(28px, 3vw, 42px); letter-spacing: -.04em; line-height: 1.15; }
.prose p { font-size: 17px; line-height: 1.8; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; }

/* ---------- Contact ---------- */
.contact-page { display: grid; gap: 26px; padding-top: clamp(40px, 7vw, 100px); }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 30px; }
.contact-card { display: grid; gap: 18px; align-content: start; padding: clamp(24px, 3vw, 40px); border-radius: calc(var(--radius) + 6px); background: radial-gradient(120% 140% at 100% 0%, #d8f36a1f, transparent 55%), var(--paper); border: 1px solid var(--line); }
.contact-mail { font-size: clamp(24px, 3.4vw, 50px); letter-spacing: -.045em; line-height: 1.1; overflow-wrap: anywhere; transition: color .2s; }
.contact-mail:hover { color: var(--accent); }
.contact-list { display: grid; align-content: start; border-top: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--faint); padding-top: 2px; }
.socials { display: flex; flex-wrap: wrap; gap: 16px; }
.not-found { min-height: 60vh; align-content: center; }

/* ---------- Contact form ---------- */
.contact-side { display: grid; gap: 24px; align-content: start; }
.contact-grid.has-form .contact-card { padding: clamp(20px, 2.4vw, 30px); }
.contact-grid.has-form .contact-mail { font-size: clamp(20px, 2vw, 28px); }
.form-card { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 3vw, 40px); border-radius: calc(var(--radius) + 6px); background: radial-gradient(120% 140% at 100% 0%, #d8f36a1f, transparent 55%), var(--paper); border: 1px solid var(--line); scroll-margin-top: 120px; }
.form-card h2 { font-size: clamp(28px, 3vw, 42px); letter-spacing: -.04em; }
.contact-form { display: grid; gap: 16px; margin-top: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: grid; gap: 8px; }
.form-field label { font-size: 14px; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s; }
.contact-form textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.contact-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.contact-form input:hover, .contact-form select:hover, .contact-form textarea:hover { border-color: #4a4d50; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #d8f36a26; }
.contact-form [aria-invalid='true'] { border-color: #ff6b5b; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { font-size: 13px; color: var(--faint); line-height: 1.55; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-actions .btn:disabled { opacity: .6; cursor: progress; transform: none; }
.form-status { font-size: 14px; color: var(--muted); }
.form-status.is-error, .form-notice.is-error { color: #ff9b8f; }
.form-notice { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); font-size: 15px; }
.form-notice.is-ok { border-color: #d8f36a66; color: var(--accent); }
.form-notice.is-error { border-color: #ff6b5b66; }
.form-done { display: grid; gap: 10px; padding: 26px 0 6px; }
.form-done strong { font-size: 22px; letter-spacing: -.02em; color: var(--accent); font-weight: 500; }

/* ---------- Lightbox ---------- */
.lightbox { width: min(1400px, 94vw); max-height: 94dvh; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-deep); color: var(--ink); }
.lightbox::backdrop { background: #000c; backdrop-filter: blur(6px); }
.lightbox img { width: 100%; max-height: 78dvh; object-fit: contain; }
.lightbox-close { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 8px 14px; border-radius: 999px; background: #121314e0; border: 1px solid #ffffff30; font-size: 14px; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.lightbox-bar button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); font-size: 20px; }
.lightbox-bar button:disabled { opacity: .3; cursor: default; }
.lightbox-caption { font-size: 14px; color: var(--muted); text-align: center; }

/* ---------- Pointer label ---------- */
.cursor-label { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; padding: 6px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 11px/1.3 var(--mono); letter-spacing: .06em; opacity: 0; transition: opacity .15s; }
.cursor-label.is-visible { opacity: 1; }

/* ---------- Reveal (yalnızca JS varken ve hareket azaltılmamışken) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--delay, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header-note { display: none; }
  .site-header { grid-template-columns: auto 1fr auto; }
  .site-nav { justify-self: end; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .project-head, .about-intro, .contact-grid { grid-template-columns: 1fr; }
  .about-actions { justify-self: start; }
  .principles, .story { grid-template-columns: 1fr; }
  .principles article { min-height: 0; }
  .principles h3 { padding-top: 16px; }
  .hero-base { grid-template-columns: 1fr 1fr; }
  .hero-lede { display: none; }
  .cv-block { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 20px; }
  .stats > div { border-left: 0; padding: 0; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 130px; }
  .site-header { grid-template-columns: 1fr auto; gap: 12px 16px; padding-block: 12px 8px; }
  .site-header.is-scrolled { padding-block: 8px 6px; }
  .brand-logo { height: 36px; max-width: 160px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; justify-content: space-between; margin-inline: -14px; }
  .hero-meta > span:nth-child(2) { display: none; }
  .hero-title { font-size: 13.4vw; line-height: 1.08; }
  .hero-title > span::after { display: none; }
  .hero-cards { width: 100%; aspect-ratio: 100 / 66; margin-top: 18px; }
  .hero-card { width: 42%; }
  .hero-card-label { font-size: 10px; padding: 28px 10px 10px; }
  .hero-card-1 .hero-card-label, .hero-card-3 .hero-card-label { display: none; }
  .hero-card-2 { left: 29%; }
  .hero-base { grid-template-columns: 1fr; gap: 20px; }
  .hero-explore { justify-self: start; }
  .marquee-set { gap: 44px; padding-right: 44px; }
  .work-grid { grid-template-columns: 1fr; gap: 36px; }
  .section-head.split { grid-template-columns: 1fr; }
  .row, .cv-block .row { grid-template-columns: 1fr; gap: 6px; }
  .facts { grid-template-columns: 1fr; }
  .facts > div, .facts > div + div { padding-left: 0; border-left: 0; }
  .facts > div + div { border-top: 1px solid var(--line); }
  .gallery { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager a:last-child { text-align: left; }
  .toc { top: 96px; }
  .contact-list > div { grid-template-columns: 1fr; gap: 4px; }
  .form-row { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { justify-content: center; flex: 1; }
  .to-top { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .marquee-track { animation: none; }
  .marquee-window { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .marquee-toggle { display: none; }
  .hero-card:hover, .hero-card:focus-visible { transform: none; }
}

@media print {
  .site-header, .marquee, .cta, .site-footer, .toc, .hero-cards { display: none; }
  body { background: #fff; color: #000; }
}
