/* =========================================================
   Kaan Doğramacılar — Vizör / Çift Pozlama
   ========================================================= */

:root {
  --bg: #0b0a09;
  --bg-2: #141210;
  --ink: #ece6dc;
  --mute: #8a8178;
  --line: rgba(236, 230, 220, .14);
  --ember: #ff5a1f;
  --ember-2: #ffb36b;
  --term: #9cff9c;

  --f-display: "Syne", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 3vw, 40px);
  /* Tüm bölümler aynı kenar boşluğuyla hizalanır (ilk açılış ve üst bar dahil) */
  --pad: var(--gutter);
  --ease: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.js body.is-loading { overflow: hidden; }
html:not(.js) .loader { display: none; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--ember); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }

.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; }
em.serif { color: var(--ember-2); }

.tag { color: var(--mute); margin-bottom: 28px; display: flex; align-items: center; gap: 12px; }
.tag::before { content: ""; width: 8px; height: 8px; background: var(--ember); border-radius: 50%; }

.h2 {
  font-size: clamp(40px, 7vw, 112px);
  line-height: .95;
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0 0 48px;
}
.h2 em { font-weight: 400; letter-spacing: -.01em; }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%;
  z-index: 90; pointer-events: none;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); }
  40% { transform: translate(4%, -6%); } 60% { transform: translate(-3%, 7%); }
  80% { transform: translate(6%, 2%); } 100% { transform: translate(0, 0); }
}

/* ---------- REC ---------- */
.rec { display: inline-flex; align-items: center; gap: 6px; color: var(--ember); }
.rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; z-index: 100; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor__ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1px solid #fff;
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s;
}
.cursor__label { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .2s; }
.cursor.has-label .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: #fff; }
.cursor.has-label .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (hover: hover) and (pointer: fine) { body, a, button { cursor: none; } }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 95;
  background: var(--bg);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: var(--gutter);
  clip-path: inset(0 0 0 0);
}
.loader__top, .loader__bottom { display: flex; justify-content: space-between; color: var(--mute); }
.loader__count {
  align-self: end;
  font-size: clamp(96px, 26vw, 360px);
  font-weight: 800; line-height: .8; letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.loader__count small { font-size: .2em; color: var(--ember); margin-left: .1em; letter-spacing: 0; }
.loader__bottom { padding-top: 20px; }
.loader__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--ember); transform-origin: left; transform: scaleX(0); }

/* ---------- HUD ---------- */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px var(--gutter);
  mix-blend-mode: difference;
}
.hud__logo { font-size: 22px; font-weight: 800; letter-spacing: -.04em; display: flex; align-items: center; gap: 4px; }
.hud__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); }
.hud__meta { display: flex; gap: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.hud__nav { display: flex; gap: 26px; }
.hud__nav a { position: relative; }
.hud__nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.hud__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hud__menu { display: none; }
.lang { display: flex; align-items: center; gap: 6px; color: var(--mute); }
.lang button { padding: 4px 2px; color: var(--mute); transition: color .3s; }
.lang button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.lang button:hover { color: var(--ink); }

.menu {
  position: fixed; inset: 0; z-index: 79;
  background: var(--bg);
  padding: 100px var(--gutter) var(--gutter);
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { white-space: nowrap; font-size: clamp(34px, 10vw, 90px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; display: flex; gap: 14px; align-items: baseline; }
.menu nav small { color: var(--ember); }
.menu p { color: var(--mute); }

@media (max-width: 1100px) { .hide-md { display: none; } }
@media (max-width: 860px) {
  .hud__nav { display: none; }
  .hud__menu { display: block; }
  .lang { margin-left: auto; margin-right: 6px; }
  .hud__meta span:not(.rec):not([data-timecode]) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 110px var(--gutter) 28px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}
.vf { position: absolute; inset: 76px var(--gutter) 70px; pointer-events: none; }
.vf__c { position: absolute; width: 28px; height: 28px; border-color: var(--ink); border-style: solid; opacity: .7; }
.vf__c--tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.vf__c--tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.vf__c--bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.vf__c--br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.vf__cross { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; }
.vf__cross::before, .vf__cross::after { content: ""; position: absolute; background: var(--ember); }
.vf__cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.vf__cross::after { top: 50%; left: 0; right: 0; height: 1px; }
.vf__side { position: absolute; top: 50%; color: var(--mute); transform: translateY(-50%); }
.vf__side--l { left: 14px; } .vf__side--r { right: 14px; }

.hero__photo {
  position: absolute;
  right: calc(var(--gutter) + 6vw);
  top: 16vh;
  width: min(34vw, 460px);
  aspect-ratio: 1 / 1;
  margin: 0;
  z-index: 1;
  will-change: transform;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.08) saturate(1.05); clip-path: inset(0 0 0 0); }
.hero__photo figcaption { position: absolute; left: 0; bottom: -24px; color: var(--mute); }

.hero__title {
  position: relative; z-index: 2;
  align-self: end;
  margin: 0;
  font-weight: 800;
  font-size: clamp(48px, 10.6vw, 220px);
  line-height: .86;
  letter-spacing: -.045em;
  mix-blend-mode: difference;
  user-select: none;
}
.hero__line { display: block; width: max-content; white-space: nowrap; }
.hero__line--2 { margin-left: -.04em; }
.char-wrap { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; }
.char { display: inline-block; will-change: transform; }

.hero__role { position: relative; z-index: 2; display: flex; align-items: baseline; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.hero__role .mono { color: var(--mute); }
.hero__swap { font-size: clamp(26px, 3.4vw, 52px); line-height: 1; color: var(--ember-2); min-height: 1em; max-width: 100%; overflow-wrap: anywhere; }

.hero__foot { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 16px; margin-top: 34px; color: var(--mute); }
.hero__scroll i { display: inline-block; font-style: normal; animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }

@media (max-width: 860px) {
  .hero { padding-top: 96px; grid-template-rows: auto auto auto auto; align-content: end; }
  .hero__photo { position: relative; right: auto; top: auto; width: 72%; justify-self: end; margin-top: 10px; }
  .hero__photo figcaption { bottom: auto; top: calc(100% + 8px); }
  .hero__title { margin-top: -10vw; }
  .vf__side { display: none; }
  .hero__foot > span:first-child { display: none; }
}

/* ---------- Marquee ---------- */
.marquee { padding: 6vw 0; border-block: 1px solid var(--line); overflow: hidden; }
.marquee__row { display: flex; white-space: nowrap; font-size: clamp(40px, 8vw, 128px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; will-change: transform; }
.marquee__row span { padding-right: .3em; }
.marquee__row i { font-style: normal; color: var(--ember); }
.marquee__row--alt { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: transparent; -webkit-text-stroke: 1px var(--ink); }
.marquee__row--alt i { color: var(--ember); -webkit-text-stroke: 0; }

/* ---------- About ---------- */
section { position: relative; }
.about, .dual, .work, .svc-wrap, .contact { padding: clamp(90px, 14vw, 200px) var(--gutter); }

.about__text {
  font-size: clamp(28px, 4.4vw, 70px);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 700;
  margin: 0 0 clamp(60px, 9vw, 140px);
  max-width: 18em;
}
.about__text .w { opacity: .14; }

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "photo stats" "photo small";
  gap: 40px clamp(30px, 6vw, 100px);
  align-items: start;
}
.about__photo { grid-area: photo; margin: 0; overflow: hidden; aspect-ratio: 3 / 4; }
.about__photo img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }

.stats { grid-area: stats; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stats li { padding: 26px 0 28px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.stats li:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--line); }
.stats li:nth-child(even) { padding-left: 24px; }
.stats b { font-size: clamp(54px, 7vw, 110px); line-height: .9; letter-spacing: -.05em; font-weight: 800; font-variant-numeric: tabular-nums; }
.stats sup { font-size: .35em; color: var(--ember); vertical-align: top; margin-left: 4px; position: relative; top: .3em; }
.stats .mono { color: var(--mute); }
.about__small { grid-area: small; margin: 0; color: var(--mute); font-size: clamp(16px, 1.4vw, 20px); max-width: 34em; font-weight: 600; }
.about__small p { margin: 0 0 1em; }
.about__small p:last-child { margin: 0; padding-left: 14px; border-left: 2px solid var(--ember); }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; grid-template-areas: "stats" "photo" "small"; }
}

/* ---------- Dual ---------- */
.dual__stage {
  --split: 50%;
  position: relative;
  height: clamp(460px, 70vh, 720px);
  border: 1px solid var(--line);
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}
.dual__layer { position: absolute; inset: 0; padding: clamp(16px, 3vw, 40px); }
.dual__layer--it { background: #070807; }
.dual__layer--cr {
  background: #16120f;
  clip-path: inset(0 0 0 var(--split));
}
.dual__handle {
  position: absolute; top: 0; bottom: 0; left: var(--split);
  width: 1px; background: var(--ember);
  z-index: 3;
}
.dual__handle span {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  background: var(--ember); color: var(--bg);
  padding: 8px 10px; white-space: nowrap;
}
.dual__label { position: absolute; left: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 36px); display: flex; flex-direction: column; gap: 4px; }
.dual__label--r { left: auto; right: clamp(16px, 3vw, 40px); text-align: right; }
.dual__label .mono { color: var(--mute); }
.dual__label strong { font-size: clamp(32px, 5vw, 76px); line-height: .9; letter-spacing: -.04em; }
.dual__layer--it .dual__label strong { color: var(--term); }

.term { width: min(620px, 100%); border: 1px solid rgba(156, 255, 156, .2); background: rgba(0, 0, 0, .5); }
.term__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid rgba(156, 255, 156, .15); color: var(--mute); text-transform: none; }
.term__bar i { width: 9px; height: 9px; border-radius: 50%; background: #2c2f2c; }
.term__bar span { margin-left: 8px; }
.term__body { margin: 0; padding: 14px; min-height: 250px; color: var(--term); white-space: pre-wrap; font-size: clamp(11px, 1.05vw, 13px); line-height: 1.7; text-transform: none; }
.term__body .p { color: var(--ember-2); }
.term__body .d { color: var(--mute); }
.term__caret { display: inline-block; width: .6em; height: 1.1em; background: var(--term); vertical-align: -2px; animation: blink 1s steps(2) infinite; }

/* Proje masası: proje geliştirme akışı + AI stüdyo */
.desk { position: absolute; top: clamp(16px, 3vw, 40px); right: clamp(16px, 3vw, 40px); width: min(680px, calc(100% - 32px)); height: calc(100% - 150px); }
.proj {
  position: absolute; left: 0; top: 0; width: 74%; height: 82%;
  background: #0c0b0a; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px; padding: 12px;
  text-transform: none; font-size: 11px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.proj__head { display: flex; justify-content: space-between; color: var(--mute); font-size: 10px; text-transform: uppercase; }
.proj__ver { font-variant-numeric: tabular-nums; }
.proj__ver b { color: var(--ink); font-weight: 500; }

/* Aşama çizgisi */
.proj__flow { --prog: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; }
.proj__flow::before, .proj__flow::after { content: ""; position: absolute; left: 6px; top: 5px; height: 1px; }
.proj__flow::before { right: 6px; background: var(--line); }
.proj__flow::after { width: calc((100% - 12px) * var(--prog)); background: var(--ember); transition: width .9s var(--ease); }
.proj__flow li { position: relative; padding-top: 17px; font-size: 9.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .4s; }
.proj__flow li::before {
  content: ""; position: absolute; left: 1px; top: 0; z-index: 1;
  width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid #3a3532; background: #0c0b0a;
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.proj__flow li.is-done { color: var(--ink); }
.proj__flow li.is-done::before { background: var(--ember); border-color: var(--ember); }
.proj__flow li.is-active { color: var(--ember-2); }
.proj__flow li.is-active::before { border-color: var(--ember); box-shadow: 0 0 0 4px rgba(255, 90, 31, .22); animation: proj-pulse 1s ease-in-out infinite; }
@keyframes proj-pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 90, 31, 0); } }

/* Blueprint → arayüz */
.proj__body { position: relative; flex: 1; min-height: 0; background: #07111a; border: 1px solid rgba(127, 216, 255, .18); overflow: hidden; transition: background 1s, border-color 1s, box-shadow .6s; }
.proj__bp { position: absolute; inset: 0; width: 100%; height: 100%; }
.proj .w { fill: transparent; stroke: #7fd8ff; stroke-width: .7; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease), fill .9s, stroke .9s; }
.proj .w:nth-child(2) { transition-delay: .12s; } .proj .w:nth-child(3) { transition-delay: .24s; }
.proj .w:nth-child(4) { transition-delay: .36s; } .proj .w:nth-child(5) { transition-delay: .48s; } .proj .w:nth-child(6) { transition-delay: .6s; }
.proj.is-drawn .w { stroke-dashoffset: 0; }
.proj.is-built .proj__body { background: #0e0c0b; border-color: var(--line); }
.proj.is-built .w { stroke: #2d2825; fill: #171311; }
.proj.is-built .w--nav { fill: #1d1916; }
.proj.is-built .w--img { fill: #3a1a0c; }
.proj.is-built .w--hot { fill: var(--ember); stroke: var(--ember); }
.proj__ui rect { fill: var(--ink); opacity: 0; transition: opacity .6s .5s; }
.proj__ui .u--btn { fill: var(--ember); }
.proj.is-built .proj__ui rect { opacity: .9; }
.proj.is-built .proj__ui rect:nth-child(2) { opacity: .45; }

/* Test taraması */
.proj__body::after { content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 30%; background: linear-gradient(transparent, rgba(156, 255, 156, .22), transparent); opacity: 0; }
.proj.is-testing .proj__body::after { opacity: 1; animation: proj-scan 1.1s linear infinite; }
@keyframes proj-scan { to { top: 100%; } }

/* Canlı */
.proj__live { position: absolute; right: 8px; top: 8px; z-index: 2; color: var(--term); font-size: 10px; background: rgba(0, 0, 0, .6); padding: 2px 6px; opacity: 0; transform: translateY(-4px); transition: opacity .4s, transform .4s; }
.proj.is-live .proj__live { opacity: 1; transform: none; animation: blink 1.2s steps(2) 3; }
.proj.is-live .proj__body { box-shadow: inset 0 0 0 1px rgba(156, 255, 156, .45); }

/* Günlük */
.proj__log { list-style: none; margin: 0; padding: 0; min-height: 4.9em; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; color: var(--mute); }
.proj__log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: proj-log .4s var(--ease); }
.proj__log li:last-child { color: var(--ink); }
.proj__log b { color: var(--term); font-weight: 400; }
@keyframes proj-log { from { opacity: 0; transform: translateY(6px); } }

.ai {
  position: absolute; right: 0; bottom: 0; width: 56%;
  background: rgba(12, 10, 9, .94); border: 1px solid rgba(255, 90, 31, .45);
  padding: 12px; display: flex; flex-direction: column; gap: 10px;
  text-transform: none; font-size: 11px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.ai__head { display: flex; justify-content: space-between; color: var(--mute); text-transform: uppercase; font-size: 10px; }
.ai__status { color: var(--ember-2); font-variant-numeric: tabular-nums; }
.ai__prompt { min-height: 3.2em; line-height: 1.6; color: var(--ink); }
.ai__p { color: var(--ember); }
.ai__bar { height: 2px; background: var(--line); }
.ai__bar i { display: block; height: 100%; width: 0; background: var(--ember); }
.ai__out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ai__out img { width: 100%; aspect-ratio: 9 / 12; object-fit: cover; filter: blur(10px) brightness(.4); transform: scale(.94); transition: filter .9s var(--ease), transform .9s var(--ease); }
.ai__out.is-done img { filter: none; transform: none; }
.ai__out.is-done img:nth-child(2) { transition-delay: .15s; }
.ai__out.is-done img:nth-child(3) { transition-delay: .3s; }
.ai__chips { display: flex; flex-wrap: wrap; gap: 4px; }
.ai__chips span { border: 1px solid var(--line); border-radius: 99px; padding: 2px 8px; color: var(--mute); font-size: 10px; }

.hint { color: var(--mute); margin-top: 16px; }

@media (max-width: 860px) {
  .dual__stage { height: 640px; }
  .desk { top: 16px; height: calc(100% - 140px); }
  .proj { width: 94%; height: 50%; gap: 10px; }
  .proj__log { display: none; }
  .proj__flow li { font-size: 8px; letter-spacing: 0; }
  .ai { width: 84%; gap: 8px; }
  .ai__out img { aspect-ratio: 1; }
  .term__body { min-height: 0; }
}

/* ---------- Web projeleri ---------- */
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.work__total { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-bottom: 52px; }
.work__total b { font-size: clamp(54px, 7vw, 110px); line-height: .85; letter-spacing: -.05em; color: var(--ember); font-variant-numeric: tabular-nums; }
.work__total .mono { color: var(--mute); }

.work__list { border-top: 1px solid var(--line); }
.wp {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 56px minmax(0, 2fr) minmax(0, 1fr) auto 28px;
  align-items: center; gap: 24px;
  padding: clamp(20px, 2.4vw, 32px) 0;
  border-bottom: 1px solid var(--line);
}
.wp::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(255, 90, 31, .16), rgba(255, 90, 31, 0) 75%);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.wp:hover::before { transform: scaleX(1); }
.wp__no { color: var(--ember); }
.wp__main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wp__domain { font-size: clamp(18px, 2.2vw, 32px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; transition: color .3s, transform .5s var(--ease); }
.wp:hover .wp__domain { color: var(--ember-2); transform: translateX(10px); }
.wp__client { color: var(--mute); font-weight: 600; font-size: clamp(13px, 1.1vw, 16px); }
.wp__scope { display: flex; flex-wrap: wrap; gap: 6px; }
.wp__scope span { text-transform: none; border: 1px solid var(--line); border-radius: 99px; padding: 3px 9px; font-size: 10px; color: var(--mute); white-space: nowrap; }
.wp__live { display: flex; align-items: center; gap: 7px; color: var(--term); font-size: 11px; }
.wp__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--term); box-shadow: 0 0 0 0 rgba(156, 255, 156, .6); animation: wp-ping 2s infinite; }
@keyframes wp-ping { 70% { box-shadow: 0 0 0 7px rgba(156, 255, 156, 0); } 100% { box-shadow: 0 0 0 0 rgba(156, 255, 156, 0); } }
.wp__arrow { font-size: 22px; transition: transform .4s var(--ease), color .3s; }
.wp:hover .wp__arrow { transform: translate(4px, -4px); color: var(--ember); }

.work__partner {
  margin: clamp(56px, 7vw, 100px) 0 0;
  padding: clamp(22px, 2.6vw, 34px) clamp(22px, 3vw, 40px);
  border: 1px solid var(--line); border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(120deg, rgba(255, 90, 31, .12), rgba(255, 90, 31, 0) 60%);
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.work__partner strong { font-size: clamp(24px, 3vw, 46px); letter-spacing: -.035em; line-height: 1; }
.work__partner .mono { color: var(--mute); }
.work__partner .work__partner-tag { background: var(--ember); color: var(--bg); padding: 3px 9px; font-size: 10px; }
.work__partner + .work__list { border-top-color: var(--ember); }

@media (max-width: 860px) {
  .work__total { align-items: flex-start; margin-bottom: 30px; }
  .wp { grid-template-columns: 34px minmax(0, 1fr) 22px; grid-template-areas: "no main arrow" ". scope ." ". live ."; gap: 10px 12px; }
  .wp__no { grid-area: no; align-self: start; padding-top: 4px; }
  .wp__main { grid-area: main; }
  .wp__domain { font-size: clamp(14px, 4.2vw, 20px); letter-spacing: -.04em; }
  .wp__scope { grid-area: scope; }
  .wp__live { grid-area: live; }
  .wp__arrow { grid-area: arrow; align-self: start; }
}

/* ---------- Tescilli marka ---------- */
.tm {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-areas: "logo doc" "body doc";
  align-items: start; column-gap: clamp(40px, 7vw, 120px); row-gap: 26px;
  padding: clamp(90px, 12vw, 180px) var(--pad);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.tm::before {
  content: ""; position: absolute; left: calc(var(--pad) - 120px); top: clamp(30px, 8vw, 120px); width: 420px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(246, 162, 12, .13), transparent 62%); pointer-events: none;
}
.tm__logo { grid-area: logo; position: relative; }
.tm__logo img { display: block; width: clamp(96px, 9vw, 132px); height: auto; filter: drop-shadow(0 0 22px rgba(246, 162, 12, .35)); }
.tm__body { grid-area: body; }
.tm__body .h2 { margin-bottom: 22px; font-size: clamp(34px, 4.4vw, 72px); }
.tm__text { margin: 0 0 30px; color: var(--mute); font-weight: 600; font-size: clamp(15px, 1.3vw, 19px); max-width: 34em; }
.tm__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 28px; border-top: 1px solid var(--line); }
.tm__facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.tm__facts div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.tm__facts div:nth-child(even) { padding-left: 18px; }
.tm__facts dt { color: var(--mute); font-size: 10px; margin-bottom: 6px; }
.tm__facts dd { margin: 0; font-weight: 700; font-size: clamp(16px, 1.4vw, 21px); letter-spacing: -.01em; }
.tm__classes { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 8px; }
.tm__classes li { display: flex; gap: 14px; align-items: baseline; color: var(--mute); font-weight: 600; font-size: clamp(14px, 1.15vw, 17px); }
.tm__classes b { flex: none; color: var(--bg); background: var(--ember); padding: 2px 7px; font-size: 11px; font-weight: 500; }
.tm__btn { border: 1px solid var(--ink); border-radius: 999px; padding: 12px 20px; transition: background .3s, color .3s, border-color .3s; }
.tm__btn:hover { background: var(--ember); border-color: var(--ember); color: var(--bg); }
.tm__note { margin: 16px 0 0; color: var(--mute); font-size: 10px; text-transform: none; max-width: 40em; }
.tm__doc {
  grid-area: doc; align-self: center; justify-self: center; width: 100%; max-width: 340px;
  transform: rotate(4deg); transition: transform .6s var(--ease), box-shadow .6s;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
}
.tm__doc img { width: 100%; height: auto; display: block; }
.tm__doc:hover { transform: rotate(0deg) scale(1.03); box-shadow: 0 40px 120px rgba(255, 90, 31, .25); }

.tm-dialog img { max-height: 84vh; width: auto; margin: 0 auto; background: #fff; }
.tm-dialog figure { width: auto; max-width: calc(100vw - 32px); }

@media (max-width: 960px) {
  .tm { grid-template-columns: minmax(0, 1fr); grid-template-areas: "logo" "body" "doc"; }
  .tm__doc { justify-self: center; max-width: 240px; margin-top: 20px; transform: rotate(2deg); }
}

/* ---------- Edits (Reels) ---------- */
.edits { padding: clamp(90px, 14vw, 200px) var(--gutter) clamp(60px, 8vw, 120px); }
.edits__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.edits__head .h2 { margin-bottom: 22px; }
.edits__note { margin: 0 0 52px; max-width: 30em; color: var(--mute); font-weight: 600; font-size: clamp(15px, 1.3vw, 18px); }
.edits__note .mono { color: var(--bg); background: var(--ember); padding: 2px 7px; margin-right: 8px; font-size: 10px; vertical-align: 2px; }
.edits__total { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-bottom: 52px; }
.edits__total b { font-size: clamp(54px, 7vw, 110px); line-height: .85; letter-spacing: -.05em; color: var(--ember); font-variant-numeric: tabular-nums; }
.edits__total .mono { color: var(--mute); }
.edits__filter { display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.edits__filter button { border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; color: var(--mute); transition: background .3s, color .3s, border-color .3s; }
.edits__filter button:hover { color: var(--ink); border-color: var(--ink); }
.edits__filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.edits__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); align-items: start; }
.edit { position: relative; display: block; width: 100%; text-align: left; }
.edit[hidden] { display: none; }
@media (min-width: 900px) {
  .edits__grid .edit:nth-child(4n + 2), .edits__grid .edit:nth-child(4n + 4) { margin-top: 12vh; }
}
.edit__media { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; background: #000; }
.edit__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: saturate(.9) brightness(.85); }
.edit:hover .edit__media img { transform: scale(1.07); filter: saturate(1.1) brightness(1); }
.edit__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,10,9,.55), transparent 22%, transparent 55%, rgba(11,10,9,.92)); }
.edit__scan { position: absolute; left: 0; right: 0; top: -20%; height: 20%; background: linear-gradient(transparent, rgba(255, 90, 31, .28), transparent); opacity: 0; z-index: 1; }
.edit:hover .edit__scan { opacity: 1; animation: scan 1.4s linear infinite; }
@keyframes scan { to { top: 100%; } }
.edit__play {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid rgba(236, 230, 220, .7);
  display: grid; place-items: center; font-size: 15px; padding-left: 3px;
  transform: scale(.8); opacity: .75;
  transition: transform .5s var(--ease), background .3s, color .3s, opacity .3s;
}
.edit:hover .edit__play { transform: scale(1.1); background: var(--ember); border-color: var(--ember); color: var(--bg); opacity: 1; }
.edit__top { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 2; display: flex; justify-content: space-between; color: var(--ink); font-size: 11px; }
.edit__kind { border: 1px solid currentColor; padding: 1px 6px; }
.edit[data-kind="ai"] .edit__kind { color: #7fd8ff; }
.edit__info { position: absolute; left: 12px; right: 66px; bottom: 12px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.edit__info strong { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.05; letter-spacing: -.02em; }
.edit__info .mono { color: var(--mute); font-size: 11px; }
.edit__info .mono b { color: var(--ember-2); font-weight: 500; }
.edit--viral .edit__media { outline: 1px solid var(--ember); outline-offset: -1px; }
.edit--viral .edit__top > span:first-child::after { content: " · VIRAL"; color: var(--ember); }

@media (max-width: 899px) {
  .edits__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edits__grid .edit:nth-child(even) { margin-top: 40px; }
  .edits__total { align-items: flex-start; margin-bottom: 30px; }
  .edit__play { width: 34px; height: 34px; font-size: 11px; right: 10px; bottom: 10px; }
  .edit__info { right: 50px; }
}

.edits__cta {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: clamp(60px, 8vw, 110px);
  padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 44px);
  border: 1px solid var(--line); border-radius: 999px;
  transition: background .4s, color .4s, border-color .4s;
}
.edits__cta .mono { color: var(--mute); transition: color .4s; }
.edits__cta strong { font-size: clamp(24px, 3.4vw, 54px); letter-spacing: -.035em; line-height: 1; }
.edits__cta em { color: var(--ember); font-weight: 400; }
.edits__cta:hover { background: var(--ember); border-color: var(--ember); color: var(--bg); }
.edits__cta:hover .mono, .edits__cta:hover em { color: var(--bg); }
@media (max-width: 860px) { .edits__cta { border-radius: 24px; } }

/* ---------- Görsel renk düzeltmesi (stok görseller site paletine oturur) ---------- */
.graded { background: linear-gradient(160deg, var(--ember) 0%, #6b1d08 55%, #120806 100%); }
.graded img { mix-blend-mode: luminosity; filter: contrast(1.15) brightness(1.05); }

/* ---------- Services ---------- */
.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc__item { border-bottom: 1px solid var(--line); }
.svc__head {
  width: 100%;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto 40px;
  align-items: center;
  gap: 20px;
  padding: clamp(22px, 3vw, 40px) 0;
  text-align: left;
  transition: padding .5s var(--ease), color .3s;
}
.svc__no { color: var(--ember); }
.svc__name { font-size: clamp(30px, 5.4vw, 88px); font-weight: 800; letter-spacing: -.04em; line-height: .95; transition: transform .5s var(--ease); }
.svc__tags { color: var(--mute); text-align: right; }
.svc__plus { position: relative; width: 22px; height: 22px; justify-self: end; }
.svc__plus::before, .svc__plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform .4s var(--ease); }
.svc__plus::after { transform: rotate(90deg); }
.svc__item.is-open .svc__plus::after { transform: rotate(0); }
.svc__head:hover .svc__name { transform: translateX(16px); }
.svc__item:hover .svc__name, .svc__item.is-open .svc__name { color: var(--ember-2); }

.svc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.svc__body > div { overflow: hidden; }
.svc__item.is-open .svc__body { grid-template-rows: 1fr; }
.svc__body ul { list-style: none; margin: 0; padding: 0 0 36px 90px; columns: 2; column-gap: 40px; color: var(--mute); font-weight: 600; font-size: clamp(15px, 1.3vw, 19px); }
.svc__body li { break-inside: avoid; padding: 8px 0; border-top: 1px solid var(--line); }

.svc__float {
  position: fixed; left: 0; top: 0; z-index: 5;
  width: 260px; aspect-ratio: 4 / 5; margin: -160px 0 0 -130px;
  pointer-events: none; overflow: hidden;
  opacity: 0; transform: scale(.8);
}
.svc__float img { width: 100%; height: 100%; object-fit: cover; }
.svc__pic { display: none; margin: 0 0 36px 90px; aspect-ratio: 16 / 9; overflow: hidden; }
.svc__pic img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .svc__head { grid-template-columns: 34px minmax(0, 1fr) 24px; }
  .svc__tags { display: none; }
  .svc__body ul { columns: 1; padding-left: 54px; }
  .svc__float { display: none; }
  .svc__pic { display: block; margin-left: 54px; }
}

/* ---------- Reel / film strip ---------- */
.reel { padding-top: clamp(60px, 8vw, 120px); }
.reel__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.reel__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 0 var(--gutter); }
.reel__head .h2 { margin-bottom: 36px; }
.reel__ig { margin-bottom: 44px; border: 1px solid var(--line); padding: 12px 16px; border-radius: 99px; white-space: nowrap; transition: background .3s, color .3s; }
.reel__ig:hover { background: var(--ink); color: var(--bg); }

.reel__track {
  display: flex; gap: 0;
  padding: 0 var(--gutter);
  width: max-content;
  will-change: transform;
}
.frame {
  position: relative;
  flex: none;
  width: clamp(240px, 26vw, 400px);
  background: #050505;
  padding: 28px 10px;
  border-right: 1px solid #1c1a18;
}
.frame::before, .frame::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background: repeating-linear-gradient(90deg, transparent 0 6px, #2b2622 6px 16px, transparent 16px 22px);
}
.frame::before { top: 9px; }
.frame::after { bottom: 9px; }
.frame__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.frame__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .6s; filter: grayscale(.35) contrast(1.05); }
.frame:hover .frame__img img { transform: scale(1.06); filter: none; }
.frame__type { position: absolute; left: 8px; top: 8px; background: var(--ember); color: var(--bg); padding: 2px 6px; font-size: 10px; }
.frame__meta { display: flex; justify-content: space-between; margin-top: 10px; color: var(--ember-2); font-size: 11px; }
.frame__meta span:last-child { color: var(--mute); }

@media (max-width: 899px) {
  .reel__pin { min-height: 0; }
  .reel__head { flex-direction: column; align-items: flex-start; }
  .reel__ig { margin-bottom: 24px; }
  .reel__scroller { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .reel__scroller::-webkit-scrollbar { display: none; }
  .reel__track { width: auto; }
  .frame { scroll-snap-align: start; width: 72vw; }
}

/* ---------- Contact ---------- */
.contact { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; }
.contact__title { font-size: clamp(54px, 11vw, 210px); line-height: .88; letter-spacing: -.05em; font-weight: 800; margin: 0 0 56px; }
.contact__title em { font-weight: 400; letter-spacing: -.02em; }
.contact__title + .contact__lead { margin: -28px 0 40px; color: var(--mute); font-size: clamp(16px, 1.5vw, 22px); font-weight: 600; max-width: 30em; }
.contact__mail {
  align-self: flex-start;
  display: inline-block;
  font-size: clamp(20px, 3.6vw, 56px);
  font-weight: 700; letter-spacing: -.02em;
  padding: .45em .8em;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background .35s, color .35s;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.contact__mail:hover { background: var(--ember); border-color: var(--ember); color: var(--bg); }
.contact__links { display: flex; gap: 28px; margin-top: 40px; color: var(--mute); flex-wrap: wrap; }
.contact__links a:hover { color: var(--ink); }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px var(--gutter); border-top: 1px solid var(--line); color: var(--mute); }
.foot a:hover { color: var(--ink); }

/* ---------- Çerez bildirimi ---------- */
.cookie {
  position: fixed; left: var(--gutter); bottom: 18px; z-index: 85;
  width: min(440px, calc(100vw - 2 * var(--gutter)));
  background: rgba(18, 16, 14, .94); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 18px 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .45s, transform .45s cubic-bezier(.2, 1, .3, 1);
}
.cookie.is-in { opacity: 1; transform: none; pointer-events: auto; }
.cookie__text { margin: 0 0 14px; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.55; color: #cfc8bd; }
.cookie__text b { color: var(--ink); font-weight: 600; }
.cookie__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cookie__more { color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
.cookie__more:hover { color: var(--ink); }
.cookie__ok { background: var(--ember); color: var(--bg); border: 0; border-radius: 999px; padding: 11px 18px; font: inherit; text-transform: inherit; letter-spacing: inherit; margin-left: auto; transition: background .3s; }
.cookie__ok:hover { background: var(--ink); }
@media (max-width: 480px) { .cookie { bottom: 12px; } .cookie__ok { flex: 1 1 100%; } }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; color: var(--ink); }
.lightbox::backdrop { background: rgba(5, 5, 5, .92); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; width: min(560px, calc(100vw - 32px)); }
.lightbox img { width: 100%; max-height: 76vh; object-fit: contain; background: #000; }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; color: var(--mute); }
.lightbox figcaption a { color: var(--ember-2); }
.lightbox__close { position: fixed; top: 20px; right: var(--gutter); color: var(--ink); }

/* ---------- Geniş ekran: içerik genişliği sınırı ---------- */
.about, .dual, .work, .edits, .svc-wrap, .contact, .reel__head, .foot { padding-left: var(--pad); padding-right: var(--pad); }
.reel__track { padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Küçük telefonlar: uzun tek kelimeler ekrandan taşmasın ---------- */
@media (max-width: 480px) {
  .h2 { font-size: clamp(30px, 9.4vw, 44px); }
  .hud { gap: 12px; }
  .hud__meta { gap: 10px; }
  .lang { margin-right: 0; }
  .svc__head { gap: 12px; }
  .svc__name { font-size: clamp(22px, 6vw, 30px); hyphens: auto; overflow-wrap: anywhere; }
  .wp__domain { font-size: clamp(13px, 3.6vw, 20px); overflow-wrap: anywhere; }
  .menu nav a { font-size: clamp(28px, 8.6vw, 40px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .rec i, .proj *, .hero__scroll i, .term__caret { animation: none; }
  .about__text .w { opacity: 1; }
}
