:root {
  --paper: #f2f0eb;
  --ink: #151515;
  --muted: #76726a;
  --line: #d6d2c8;
  --night: #0e0e0d;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 76px;
  --font-ui: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-text: 'Newsreader', Georgia, serif;
  --fade: 1.4s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2,
p,
dl,
dd {
  margin: 0;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Üst bar ---------- */

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  padding: 0 var(--gutter);
}

.site-header--overlay {
  position: absolute;
  inset: 0 0 auto 0;
  color: #fff;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-name {
  font-weight: 600;
}

.brand-tag {
  font-weight: 300;
  opacity: 0.7;
}

.site-nav {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current='page']::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  position: relative;
  z-index: 31;
}

.menu-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s ease, top 0.3s ease;
}

.menu-toggle span:first-child {
  top: 17px;
}

.menu-toggle span:last-child {
  top: 26px;
}

@media (max-width: 720px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 30;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 0 var(--gutter);
    background: var(--night);
    color: #fff;
    font-size: 30px;
    font-weight: 300;
    letter-spacing: 0.02em;
    text-transform: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
  }

  .menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s;
  }

  .menu-open {
    overflow: hidden;
  }

  .menu-open .menu-toggle {
    color: #fff;
  }

  .menu-open .menu-toggle span:first-child {
    top: 21px;
    transform: rotate(45deg);
  }

  .menu-open .menu-toggle span:last-child {
    top: 21px;
    transform: rotate(-45deg);
  }

  .brand-tag {
    display: none;
  }
}

/* ---------- Ana sayfa slider'ı ---------- */

.page-home {
  background: var(--night);
}

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  background: var(--night);
  color: #fff;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--fade) ease, visibility 0s var(--fade);
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transition: opacity var(--fade) ease, visibility 0s;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0) 24%),
    linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0) 58%);
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  /* Slayt sönerken ölçek korunur, sonra sıfırlanır. */
  transition: transform 0s var(--fade);
}

/* is-ready sınıfını site.js ekler; böylece ilk slayt beklemeden görünür, yakınlaşma sonra başlar. */
.hero.is-ready[data-kenburns='1'] .hero-slide.is-active .hero-image {
  transform: scale(1.07);
  transition: transform calc(var(--dur, 6s) + var(--fade)) linear;
}

.hero-caption {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(84px, 13vh, 132px);
  max-width: 900px;
}

.hero-caption > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.is-active .hero-caption > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s ease 0.45s, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s;
}

.is-active .hero-caption > :nth-child(2) {
  transition-delay: 0.55s;
}

.is-active .hero-caption > :nth-child(3) {
  transition-delay: 0.7s;
}

.hero-kicker {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(38px, 6.4vw, 96px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-link {
  display: inline-flex;
  gap: 10px;
  margin-top: 26px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-link span {
  transition: transform 0.3s ease;
}

.hero-link:hover span {
  transform: translateX(5px);
}

.hero-controls {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  font-size: 18px;
  border-radius: 50%;
  transition: background 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-count {
  min-width: 64px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
}

.hero-count b {
  font-weight: 600;
}

.hero-count i {
  margin: 0 6px;
  font-style: normal;
  opacity: 0.5;
}

.hero-progress {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  bottom: 51px;
  display: flex;
  gap: 6px;
  width: min(360px, calc(100% - var(--gutter) * 2 - 180px));
}

.hero-progress span {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.hero-progress i {
  display: block;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}

.hero-progress .is-active i {
  animation: hero-fill var(--dur, 6s) linear forwards;
}

@keyframes hero-fill {
  to {
    transform: scaleX(1);
  }
}

/* ---------- Sayfa başlıkları ---------- */

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(28px, 4vw, 52px);
}

.page-head h1,
.about h1,
.contact h1,
.empty-state h1 {
  font-size: clamp(42px, 7.4vw, 108px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  padding-bottom: 10px;
}

.filters button {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.filters button:hover,
.filters button.is-active {
  color: var(--ink);
}

.filters button.is-active {
  border-bottom-color: var(--ink);
}

/* ---------- Proje listesi ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 72px) clamp(16px, 2.4vw, 36px);
  padding: 0 var(--gutter) clamp(64px, 9vw, 128px);
}

.project-card[hidden] {
  display: none;
}

.project-card-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--line);
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-card:hover .project-card-media img {
  transform: scale(1.035);
}

.project-card-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
}

.project-card-info h2 {
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.project-card-info p {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- Proje sayfası ---------- */

.project-hero {
  position: relative;
  height: clamp(420px, 88svh, 1100px);
  background: var(--night);
  color: #fff;
}

.project-hero-media {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.project-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0) 24%),
    linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0) 52%);
  pointer-events: none;
}

.project-hero-text {
  position: absolute;
  z-index: 1;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(32px, 6vh, 64px);
  pointer-events: none;
}

.project-hero-text h1 {
  max-width: 14ch;
  font-size: clamp(38px, 6.4vw, 96px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.project-info {
  display: grid;
  grid-template-columns: minmax(220px, 4fr) 8fr;
  gap: 40px clamp(32px, 6vw, 96px);
  padding: clamp(48px, 7vw, 104px) var(--gutter);
}

.project-info--facts-only {
  grid-template-columns: 1fr;
  padding-block: clamp(32px, 4vw, 56px);
}

.project-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.project-facts > div:last-child {
  border-bottom: 1px solid var(--line);
}

.project-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 24px;
  text-transform: uppercase;
}

.project-facts dd {
  font-size: 15px;
  text-align: right;
}

.project-info--facts-only .project-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0 clamp(16px, 2.4vw, 36px);
}

.project-info--facts-only .project-facts > div {
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  border-bottom: 0;
}

.project-info--facts-only .project-facts dd {
  font-size: 17px;
  text-align: left;
}

.project-text,
.prose {
  max-width: 64ch;
  font-family: var(--font-text);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.62;
}

.project-text p + p,
.prose p + p {
  margin-top: 1.1em;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 16px);
  padding: 0 var(--gutter) clamp(56px, 8vw, 112px);
}

.gallery-item {
  display: block;
  overflow: hidden;
  background: var(--line);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

.gallery-item--wide {
  grid-column: 1 / -1;
  aspect-ratio: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.02);
}

.project-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.project-nav a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(28px, 4vw, 56px) var(--gutter);
  transition: background 0.3s ease, color 0.3s ease;
}

.project-nav a + a {
  border-left: 1px solid var(--line);
  align-items: flex-end;
  text-align: right;
}

.project-nav a:hover {
  background: var(--ink);
  color: var(--paper);
}

.project-nav span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
}

.project-nav b {
  font-size: clamp(20px, 2.6vw, 36px);
  font-weight: 300;
  letter-spacing: -0.015em;
}

/* ---------- Görsel büyütme ---------- */

.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 10, 9, 0.97);
  color: #fff;
}

.lightbox::backdrop {
  background: #0a0a09;
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox img {
  max-width: 100vw;
  max-height: calc(100dvh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
}

.lightbox button {
  position: absolute;
  width: 52px;
  height: 52px;
  font-size: 22px;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.lightbox-close {
  top: 10px;
  right: 14px;
}

.lightbox-prev {
  left: 14px;
  bottom: 4px;
}

.lightbox-next {
  right: 14px;
  bottom: 4px;
}

.lightbox-count {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* ---------- Hakkında / İletişim ---------- */

.about {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  min-height: calc(100svh - var(--header-h) - 90px);
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(64px, 9vw, 128px);
}

.about--no-image {
  grid-template-columns: 1fr;
}

.about-media img {
  width: 100%;
}

.about h1 {
  margin-bottom: clamp(28px, 4vw, 56px);
}

.contact {
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(64px, 9vw, 128px);
  min-height: calc(100svh - var(--header-h) - 90px);
}

.contact h1 {
  margin-bottom: clamp(36px, 5vw, 72px);
}

.contact-list {
  max-width: 980px;
}

.contact-list > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 24px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.contact-list > div:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-list dd {
  font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 300;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.contact-list a,
.text-link {
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s ease;
}

.contact-list a:hover,
.text-link:hover {
  border-bottom-color: var(--ink);
}

.contact-empty {
  color: var(--muted);
  font-family: var(--font-text);
  font-size: 20px;
}

.empty-state {
  display: grid;
  align-content: center;
  gap: 20px;
  min-height: calc(100svh - var(--header-h) - 90px);
  padding: 48px var(--gutter);
}

.empty-state p {
  color: var(--muted);
  font-family: var(--font-text);
  font-size: 20px;
}

.page-home--empty {
  background: var(--paper);
}

/* ---------- Alt bilgi ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.site-footer a:hover {
  color: var(--ink);
}

/* ---------- Dar ekranlar ---------- */

@media (max-width: 800px) {
  .project-grid,
  .gallery,
  .about,
  .project-info {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    aspect-ratio: auto;
  }

  .project-card-info {
    flex-direction: column;
    gap: 4px;
  }

  .contact-list > div {
    grid-template-columns: 1fr;
  }

  .project-nav b {
    font-size: 18px;
  }

  .hero-progress {
    width: calc(100% - var(--gutter) * 2 - 170px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero.is-ready[data-kenburns='1'] .hero-slide.is-active .hero-image {
    transform: none;
  }

  .hero-caption > *,
  .project-card-media img,
  .gallery-item img {
    transition: none !important;
    transform: none !important;
  }
}
