/* ---------- Tokens ---------- */
:root {
  --bg: #000;
  --bg-light: #f5f5f7;
  --fg: #f5f5f7;
  --fg-dark: #1d1d1f;
  --muted: #86868b;
  --muted-light: #6e6e73;
  --surface: #161617;
  --surface-light: #ffffff;
  --line: rgba(255, 255, 255, 0.12);
  --line-light: rgba(0, 0, 0, 0.08);
  --accent: #f5f5f7;
  --hairline: rgba(255, 255, 255, 0.10);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --radius: 22px;
  --wrap: 1120px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 48px); margin-inline: auto; }

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.nav__brand { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 28px; font-size: 13px; color: var(--muted); }
.nav__links a { transition: color 0.2s var(--ease); }
.nav__links a:hover { color: var(--fg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 500;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #000; }
.btn--primary:hover { background: #d2d2d7; }
.btn--ghost { color: var(--fg); padding-inline: 12px; }
.btn--ghost:hover { color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 140px 0 96px;
  background:
    var(--bg);
}
.hero__title {
  font-size: clamp(44px, 7.2vw, 96px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero__lede {
  margin-top: 28px;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.4;
  color: var(--muted);
  max-width: 34ch;
  letter-spacing: -0.01em;
}
.hero__cta { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 144px 0; }
.section--light { background: var(--bg-light); color: var(--fg-dark); }
.section--light .eyebrow { color: var(--muted-light); }
.section--light .section__lead { color: var(--muted-light); }
.section--dark { background: var(--bg); border-top: 1px solid var(--hairline); }

.section__head { margin-bottom: 72px; max-width: 760px; }
.section__title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.section__lead {
  margin-top: 20px;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.4;
  color: var(--muted);
  letter-spacing: -0.01em;
}

/* ---------- Approach cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 120px 40px; }

.card {
  background: var(--surface-light);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: 0 1px 0 var(--line-light), 0 12px 40px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--line-light), 0 24px 60px rgba(0, 0, 0, 0.08); }
.card__index { font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.card h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 56px 0 14px; }
.card p { color: var(--muted-light); font-size: 17px; line-height: 1.5; }

/* ---------- Perspective ---------- */
.statement {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin-bottom: 48px;
}
.statement__body {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 24px;
}
.statement__body--muted { color: var(--muted); }

/* ---------- Work ---------- */
.work { display: block; }
.work__media {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #0c0c0d;
  background:
    linear-gradient(135deg, #1c1c1e 0%, #0b0b0c 100%);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform 0.6s var(--ease), border-color 0.4s var(--ease);
}
.work__media span { font-size: 14px; color: var(--muted); }
.work__meta { padding: 20px 0 0; }
.work__meta h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.work__meta p { margin-top: 6px; color: var(--muted); font-size: 17px; }
.work:hover .work__media { transform: scale(1.01); border-color: rgba(255, 255, 255, 0.24); }

/* ---------- Footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a:hover { color: var(--fg); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 80px 0; }
  .section { padding: 96px 0; }
  .section__head { margin-bottom: 48px; }
  .card h3 { margin-top: 32px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav__links a:not(:last-child) { display: none; }
  .hero { padding-top: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Work slot (orijinal işler taşınacak) ---------- */
.work-slot { min-height: 240px; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Precision details ---------- */
.eyebrow::before { content: ""; display: inline-block; width: 24px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 12px; opacity: 0.6; }
.footer { letter-spacing: 0.01em; }

/* Primary button on light sections */
.section--light .btn--primary { background: #000; color: #fff; }
.section--light .btn--primary:hover { background: #1d1d1f; }

.work__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work__media { padding: 0; }

.nav__brand { display: inline-flex; align-items: center; gap: 10px; }
.nav__logo { height: 22px; width: auto; }

/* ---------- Work popup ---------- */
.work { cursor: zoom-in; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, 0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.3s var(--ease); }
.modal.is-open { opacity: 1; }
.modal__dialog { position: relative; width: min(1100px, 100%); max-height: 92vh; overflow: auto; background: #111; border: 1px solid var(--line); border-radius: 16px; transform: scale(0.98); transition: transform 0.4s var(--ease); }
.modal.is-open .modal__dialog { transform: scale(1); }
.modal__media { background: #0c0c0d; }
.modal__media img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; margin: 0 auto; }
.modal__body { padding: 28px 32px 32px; }
.modal__body h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.modal__body p { margin-top: 10px; color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 62ch; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.modal__close:hover { background: rgba(255, 255, 255, 0.15); }
@media (max-width: 560px) { .modal__body { padding: 20px; } }
