:root {
  --black: #000;
  --ink: #ededE8;
  --mute: #85857f;
  --line: #2a2a28;
  --glow: #ededE8;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--ink); color: var(--black); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Giriş ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  background: var(--black);
  display: grid; place-items: center;
}
.intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: var(--ox, 50%) var(--oy, 50%); }
.intro.is-leaving canvas { transition: transform 1.1s cubic-bezier(.8, 0, .3, 1), opacity .9s ease .2s; transform: scale(24); opacity: 0; }
.intro.is-leaving { transition: background-color .6s ease .35s; background-color: transparent; pointer-events: none; }
.intro__skip {
  position: absolute; right: var(--gutter); bottom: var(--gutter);
  background: none; border: 0; color: var(--mute);
  font: inherit; font-size: .875rem; cursor: pointer; padding: 8px;
}
.intro__skip:hover { color: var(--ink); }
.intro.is-leaving .intro__skip { opacity: 0; }

/* ---------- Menü ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px var(--gutter);
  mix-blend-mode: difference;
}
.nav__logo { display: block; width: 52px; color: #fff; }
.nav__logo svg { width: 100%; height: auto; color: #fff; }
.nav__links { display: flex; gap: clamp(16px, 3vw, 36px); font-size: .9375rem; }
.nav__links a { text-decoration: none; color: #fff; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--gutter) clamp(28px, 5vw, 56px);
  overflow: hidden;
}
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__title {
  position: relative;
  margin: 0;
  font-weight: 700;
  font-size: clamp(3.5rem, min(17.5vw, 23svh), 19rem);
  line-height: .82;
  letter-spacing: -.012em;
  font-variation-settings: "opsz" 96, "wdth" 75;
  pointer-events: none;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.12em; }
.hero__title .word { display: inline-block; transform: translateY(105%); }
.hero__title .line:nth-child(3) { padding-left: 18vw; }
.hero__title .word--logo svg { height: .74em; width: auto; margin: .06em 0 .08em; color: var(--ink); }
.is-ready .hero__title .word { transform: none; transition: transform 1.2s var(--ease); }
.is-ready .hero__title .line:nth-child(2) .word { transition-delay: .08s; }
.is-ready .hero__title .line:nth-child(3) .word { transition-delay: .16s; }

.hero__foot {
  position: relative;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
  margin-top: clamp(28px, 4vw, 48px);
  opacity: 0; transform: translateY(12px);
}
.is-ready .hero__foot { opacity: 1; transform: none; transition: opacity 1s ease .6s, transform 1s var(--ease) .6s; }
.hero__lede { max-width: 34ch; margin: 0; font-size: clamp(1.125rem, 1.8vw, 1.5rem); line-height: 1.3; }
.hero__lede em { font-size: 1.08em; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Buton ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink);
  font: inherit; font-size: .9375rem; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s;
}
.btn:hover { background: var(--ink); color: var(--black); }
.btn--solid { background: var(--ink); color: var(--black); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--wide { width: 100%; }

/* ---------- Bölüm başlıkları ---------- */
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap;
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.section-head h2 {
  margin: 0; font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 500; letter-spacing: -.02em;
}
.section-note { margin: 0; color: var(--mute); font-size: .9375rem; max-width: 42ch; }

/* ---------- Çalışmalar ---------- */
.work { padding: clamp(96px, 14vw, 180px) var(--gutter) clamp(64px, 10vw, 140px); }
.work__list { list-style: none; margin: 0; padding: 0; }
.work__item {
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: clamp(16px, 3vw, 40px);
}
.work__visit {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: .875rem; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s;
}
.work__visit svg { width: 11px; height: 11px; transition: transform .3s var(--ease); }
.work__visit:hover, .work__visit:focus-visible { background: var(--c, var(--ink)); border-color: var(--c, var(--ink)); color: var(--black); }
.work__visit:hover svg { transform: translate(2px, -2px); }
.work__btn {
  width: 100%;
  display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: clamp(16px, 4vw, 64px);
  padding: clamp(20px, 3vw, 36px) 0;
  background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.work__name {
  font-size: clamp(2.25rem, 7.5vw, 7.5rem);
  font-weight: 600; line-height: .95; letter-spacing: -.035em;
  font-variation-settings: "opsz" 96, "wdth" 100;
  transition: font-variation-settings .6s var(--ease), color .3s, transform .6s var(--ease);
}
.work__cat { color: var(--mute); font-size: .9375rem; }
.work__year { color: var(--mute); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.work__thumb { display: none; }

@media (hover: hover) {
  .work__list:hover .work__name { color: #4a4a47; }
  .work__list .work__btn:hover .work__name,
  .work__list .work__btn:focus-visible .work__name {
    color: var(--c, var(--ink));
    font-variation-settings: "opsz" 96, "wdth" 75;
    transform: translateX(.15em);
  }
}

.peek {
  position: fixed; left: 0; top: 0; z-index: 15;
  width: clamp(260px, 26vw, 420px); aspect-ratio: 4 / 3;
  pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.6);
  transition: opacity .3s ease, transform .5s var(--ease);
}
.peek.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.peek__inner { width: 100%; height: 100%; overflow: hidden; border-radius: 6px; }
.peek__inner img, .peek__inner video { width: 100%; height: 100%; object-fit: cover; }

/* Medya henüz eklenmediyse gösterilen çerçeve */
.ph {
  width: 100%; height: 100%;
  background: var(--c, #333);
  color: #000;
  display: flex; flex-direction: column;
  padding: 10px;
  border-radius: inherit;
}
.ph__bar { display: flex; gap: 5px; margin-bottom: 10px; }
.ph__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(0,0,0,.35); }
.ph__body {
  flex: 1; display: grid; place-items: center; text-align: center;
  background: rgba(0,0,0,.12); border-radius: 3px;
  font-weight: 700; font-size: clamp(1.25rem, 2.4vw, 2rem); letter-spacing: -.03em; line-height: 1;
  padding: 12px;
}
.ph__hint { display: block; margin-top: 8px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: .875rem; letter-spacing: 0; opacity: .7; }

/* ---------- Hakkında ---------- */
.about {
  padding: 0 var(--gutter) clamp(96px, 14vw, 180px);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px;
}
.about__statement {
  grid-column: 1 / span 8;
  margin: 0;
  font-size: clamp(1.625rem, 3.6vw, 3.25rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 400;
  max-width: 24ch;
}
.about__statement em { font-size: 1.05em; }
.about__facts { grid-column: 9 / span 4; margin: 0; align-self: end; }
.about__facts div { padding: 16px 0; border-top: 1px solid var(--line); }
.about__facts dt { font-weight: 600; }
.about__facts dd { margin: 4px 0 0; color: var(--mute); font-size: .9375rem; }

/* ---------- İletişim ---------- */
.contact { padding: clamp(80px, 12vw, 160px) var(--gutter); border-top: 1px solid var(--line); }
.contact__title {
  margin: 0 0 clamp(48px, 7vw, 96px);
  font-size: clamp(3rem, 11vw, 11rem); font-weight: 700; line-height: .86; letter-spacing: -.012em;
  font-variation-settings: "opsz" 96, "wdth" 75;
}
.contact__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; }
.form { grid-column: 1 / span 7; display: grid; gap: 28px; max-width: 640px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-size: .875rem; color: var(--mute); padding: 0; }
.field input, .field textarea {
  width: 100%; background: transparent; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 10px 0; font: inherit; font-size: 1.25rem; resize: vertical;
  transition: border-color .25s;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: #ff8a7a; }
.field--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.field--chips legend { margin-bottom: 10px; width: 100%; }
.field--chips label { position: relative; cursor: pointer; }
.field--chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.field--chips span {
  display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .9375rem; transition: background-color .2s, color .2s, border-color .2s;
}
.field--chips input:checked + span { background: var(--ink); color: var(--black); border-color: var(--ink); }
.field--chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.form__status { margin: 0; min-height: 1.5em; font-size: .9375rem; color: var(--mute); }
.form__status.is-error { color: #ff8a7a; }
.form__status.is-ok { color: var(--ink); }

.direct { grid-column: 9 / span 4; list-style: none; margin: 0; padding: 0; align-self: start; }
.direct li { border-top: 1px solid var(--line); }
.direct li:last-child { border-bottom: 1px solid var(--line); }
.direct a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 18px 0; text-decoration: none;
}
.direct a span:first-child { color: var(--mute); font-size: .875rem; }
.direct a span:last-child { font-size: 1.125rem; transition: transform .4s var(--ease); overflow-wrap: anywhere; text-align: right; }
.direct a:hover span:last-child { transform: translateX(-6px); }

/* ---------- Alt bilgi ---------- */
.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 28px var(--gutter); border-top: 1px solid var(--line);
  color: var(--mute); font-size: .875rem;
}
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand svg { width: 34px; color: var(--ink); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---------- Galeri ---------- */
.viewer {
  width: min(1200px, 100vw - 32px); max-height: calc(100svh - 32px);
  padding: 0; border: 1px solid var(--line); border-radius: 10px;
  background: var(--black); color: var(--ink);
  overflow: auto;
}
.viewer::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(6px); }
.viewer[open] { animation: viewer-in .5s var(--ease); }
@keyframes viewer-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.viewer__bar {
  position: sticky; top: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 24px; background: var(--black); border-bottom: 1px solid var(--line);
}
.viewer__bar h3 { margin: 0; font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; }
.viewer__bar p { margin: 2px 0 0; color: var(--mute); font-size: .875rem; }
.viewer__close {
  background: none; border: 1px solid var(--line); border-radius: 999px; color: var(--ink);
  font: inherit; font-size: .875rem; padding: 8px 16px; cursor: pointer;
}
.viewer__close:hover { border-color: var(--ink); }
.viewer__stage { padding: 24px 24px 0; }
.viewer__stage > :not(.ph) { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #0d0d0d; border-radius: 6px; }
.viewer__stage .ph { aspect-ratio: 16 / 10; height: auto; border-radius: 6px; }
.viewer__thumbs { display: flex; gap: 10px; padding: 14px 24px 0; overflow-x: auto; }
.viewer__thumbs:empty { display: none; }
.viewer__thumbs button {
  flex: 0 0 auto; width: 112px; aspect-ratio: 16 / 10; padding: 0;
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #111; cursor: pointer; opacity: .55;
  position: relative; transition: opacity .2s, border-color .2s;
}
.viewer__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--ink); }
.viewer__thumbs button:hover { opacity: 1; }
.viewer__thumbs img, .viewer__thumbs video { width: 100%; height: 100%; object-fit: cover; }
.viewer__thumbs .is-video::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-40%, -50%);
  border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent;
  filter: drop-shadow(0 0 4px rgba(0,0,0,.6));
}
.viewer__info {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap;
  padding: 24px;
}
.viewer__info p { margin: 0; max-width: 62ch; color: #c9c9c3; }
.viewer__info .btn[hidden] { display: none; }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .about, .contact__grid { grid-template-columns: 1fr; }
  .about__statement, .about__facts, .form, .direct { grid-column: auto; }
  .work__item { grid-template-columns: 1fr; }
  .work__btn { grid-template-columns: 1fr auto; row-gap: 14px; padding-bottom: 14px; }
  .work__visit { justify-self: start; margin-bottom: clamp(20px, 3vw, 36px); }
  .work__thumb { display: block; grid-column: 1 / -1; order: -1; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; }
  .work__thumb img, .work__thumb video { width: 100%; height: 100%; object-fit: cover; }
  .work__name { grid-column: 1 / -1; }
  .work__year { justify-self: end; }
  .peek { display: none; }
  .hero__title .line:nth-child(3) { padding-left: 0; }
}
@media (max-width: 520px) {
  .hero__title { font-size: 22vw; }
  .nav__links a:not(.nav__cta) { display: none; }
  .viewer__stage, .viewer__thumbs, .viewer__info { padding-left: 16px; padding-right: 16px; }
  .viewer__bar { padding: 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
