/* ============================================================================
   Rast Yapı İnşaat — Design System v2 ("Apple-cinematic")
   Static, offline. Self-hosted Clash Display (display) + Satoshi (text),
   with the San Francisco system stack as the instant fallback.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Type */
  --font-display: "Clash Display", -apple-system, BlinkMacSystemFont,
    "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --font-text: "Satoshi", -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", system-ui, sans-serif;

  /* Neutrals (Apple-adjacent, warmed slightly for construction) */
  --ink: #16130f;          /* near-black, warm */
  --ink-2: #3a352d;
  --muted: #6b6459;        /* secondary text on light */
  --line: rgba(22, 19, 15, 0.12);
  --line-2: rgba(22, 19, 15, 0.06);
  --bg: #fbfaf7;           /* warm off-white canvas */
  --bg-2: #f2efe9;         /* raised panel */
  --bg-3: #eae6de;
  --surface: #ffffff;

  /* Dark (cinematic) sections */
  --ink-dk: #0b0a08;       /* true cinematic near-black */
  --ink-dk-2: #131210;
  --on-dk: #f6f4ef;        /* primary text on dark */
  --muted-dk: #9c968a;     /* secondary text on dark */
  --line-dk: rgba(246, 244, 239, 0.14);

  /* Accent — refined construction amber */
  --accent: #c8842e;
  --accent-bright: #eda13a; /* on dark */
  --accent-ink: #16130f;    /* text on accent fills */

  /* Radius */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 980px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(22, 19, 15, 0.06),
    0 4px 16px rgba(22, 19, 15, 0.06);
  --shadow: 0 8px 30px rgba(22, 19, 15, 0.10);
  --shadow-lg: 0 30px 80px rgba(22, 19, 15, 0.22);

  /* Fluid type scale */
  --fs-hero: clamp(3rem, 1rem + 7vw, 7.25rem);
  --fs-display: clamp(2.4rem, 1rem + 6vw, 6rem);
  --fs-h2: clamp(2rem, 1.1rem + 3.4vw, 3.8rem);
  --fs-h3: clamp(1.4rem, 1.05rem + 1.3vw, 2rem);
  --fs-lead: clamp(1.15rem, 1rem + 0.7vw, 1.6rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.875rem;
  --fs-eyebrow: 0.8125rem;

  /* Rhythm */
  --maxw: 1220px;
  --maxw-narrow: 860px;
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 4rem);
  --section-y: clamp(5rem, 3rem + 8vw, 11rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.7s;
  --nav-h: 56px;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.015em;
  color: inherit;
  text-wrap: balance;
}

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

button { font: inherit; color: inherit; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--maxw-narrow); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 10px; left: 50%; transform: translate(-50%, -160%);
  z-index: 200; background: var(--ink); color: var(--on-dk);
  padding: 0.7rem 1.2rem; border-radius: var(--r-pill); font-size: var(--fs-sm);
  font-weight: 600; transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

.eyebrow {
  font-family: var(--font-text);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 1.8em; height: 1px; background: currentColor; opacity: 0.6;
}

.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-text); font-weight: 600; font-size: var(--fs-body);
  padding: 0.85em 1.5em; border-radius: var(--r-pill); border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background-color 0.3s var(--ease),
    color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-bright); box-shadow: 0 10px 30px rgba(200, 132, 46, 0.35); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--on-dk { color: var(--on-dk); border-color: var(--line-dk); }
.btn--on-dk:hover { border-color: var(--on-dk); background: rgba(246,244,239,0.06); }
.btn__arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 600; color: var(--accent);
}
.link-arrow svg { transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Sections */
.section { padding-block: var(--section-y); }
.section--dark { background: var(--ink-dk); color: var(--on-dk); }
.section--dark .eyebrow { color: var(--accent-bright); }
.section--panel { background: var(--bg-2); }

.section-head { max-width: 40ch; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head__title { font-size: var(--fs-h2); margin-top: 0.7rem; }
.section-head__sub {
  margin-top: 1.1rem; font-size: var(--fs-lead); color: var(--muted);
  line-height: 1.45; letter-spacing: -0.01em; font-weight: 400;
}
.section--dark .section-head__sub { color: var(--muted-dk); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ==========================================================================
   Header / Nav — translucent, blurred, Apple-style
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
    border-color 0.4s var(--ease), color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
  color: var(--on-dk); /* hero is dark, start light-on-dark */
}
.site-header.is-scrolled {
  background: rgba(251, 250, 247, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
  color: var(--ink);
}
/* Over a dark section: use dark glass instead of the light bar. */
.site-header.is-scrolled.is-dark {
  background: rgba(12, 11, 9, 0.62);
  border-bottom-color: var(--line-dk);
  color: var(--on-dk);
}
.site-header.is-scrolled.is-dark .site-nav__list a[aria-current="page"]::after { background: var(--accent-bright); }
.site-header.is-scrolled.is-dark .site-header__lang {
  background: rgba(246, 244, 239, 0.12); color: var(--on-dk); border-color: rgba(246, 244, 239, 0.4);
}
.site-header.is-scrolled.is-dark .site-header__lang:hover { background: rgba(246, 244, 239, 0.22); border-color: var(--on-dk); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter);
}
.site-header__brand {
  display: inline-flex; align-items: center;
  transition: opacity 0.2s ease;
}
.site-header__brand:hover { opacity: 0.82; }
.site-header__brand img {
  height: clamp(34px, 4.1vw, 44px); width: auto; display: block;
  /* lift the gold off dark heroes without a white plate */
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem); }
.site-nav__list {
  list-style: none; display: flex; align-items: center;
  gap: clamp(0.8rem, 1.8vw, 2rem); padding: 0;
}
.site-nav__list a {
  font-size: 0.95rem; font-weight: 500; opacity: 0.85;
  position: relative; padding-block: 0.3em;
  transition: opacity 0.25s var(--ease);
}
.site-nav__list a:hover { opacity: 1; }
.site-nav__list a[aria-current="page"] { opacity: 1; }
.site-nav__list a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent-bright); border-radius: 2px;
}
.site-header.is-scrolled .site-nav__list a[aria-current="page"]::after { background: var(--accent); }
.site-header__lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; height: 32px; padding: 0 0.85em;
  border: 1px solid rgba(246, 244, 239, 0.4); border-radius: var(--r-pill);
  background: rgba(246, 244, 239, 0.12); color: var(--on-dk);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.site-header__lang:hover { background: rgba(246, 244, 239, 0.22); border-color: var(--on-dk); }
.site-header.is-scrolled .site-header__lang {
  background: rgba(22, 19, 15, 0.05); color: var(--ink); border-color: var(--line);
}
.site-header.is-scrolled .site-header__lang:hover { background: rgba(22, 19, 15, 0.1); border-color: var(--ink); }

.site-header__toggle {
  display: none; width: 40px; height: 40px; border: 0; background: transparent;
  align-items: center; justify-content: center; margin-right: -8px;
}
.site-header__toggle-icon line {
  stroke: currentColor; stroke-width: 1.6; stroke-linecap: round;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
  transform-origin: center;
}

/* Lock background scroll while the mobile menu is open */
body.nav-open { overflow: hidden; }

/* Mobile nav — collapse to the hamburger only when the horizontal nav
   genuinely no longer fits (~635px needed), not on wide tablets. */
@media (max-width: 700px) {
  /* Brand + toggle sit ABOVE the full-screen overlay so the X stays clickable. */
  .site-header__toggle { display: inline-flex; position: relative; z-index: 3; }
  .site-header__brand { position: relative; z-index: 3; }

  /* Open menu: header bar must be transparent AND un-filtered — a
     backdrop-filter here would make the header the containing block for the
     fixed nav, collapsing the overlay to the bar height. Also overrides the
     scrolled (light) state so the language toggle stays readable. */
  .site-header.is-nav-open,
  .site-header.is-nav-open.is-scrolled {
    background: transparent;
    /* Snap instantly: transitioning backdrop-filter to none would keep the
       filter active mid-animation, re-trapping the fixed overlay. */
    transition: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
    color: var(--on-dk);
  }

  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; align-items: stretch;
    gap: 0; padding: calc(var(--nav-h) + 1.5rem) var(--gutter) 2rem;
    background: var(--ink-dk); color: var(--on-dk); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; counter-reset: navitem; }
  .site-nav__list li { border-top: 1px solid var(--line-dk); }
  .site-nav__list li:last-of-type { border-bottom: 1px solid var(--line-dk); }
  .site-nav__list a {
    display: flex; align-items: baseline; gap: 1.1rem;
    padding: clamp(0.85rem, 3vw, 1.3rem) 0;
    font-family: var(--font-display); font-style: italic; font-weight: 600;
    font-size: clamp(1.75rem, 7.5vw, 2.5rem); letter-spacing: -0.02em;
    color: var(--on-dk); opacity: 0; transform: translateY(14px);
  }
  .site-nav__list a::before {
    counter-increment: navitem; content: "0" counter(navitem);
    font-family: var(--font-mono); font-style: normal; font-size: 0.78rem;
    letter-spacing: 0.08em; color: var(--accent-bright); min-width: 2.6ch; align-self: center;
  }
  .site-nav__list a[aria-current="page"] { color: var(--accent-bright); }
  .site-nav__list a[aria-current="page"]::after { display: none; }
  .site-nav.is-open .site-nav__list a { animation: navItemIn 0.5s var(--ease-out) forwards; }
  .site-nav.is-open .site-nav__list li:nth-child(1) a { animation-delay: 0.06s; }
  .site-nav.is-open .site-nav__list li:nth-child(2) a { animation-delay: 0.12s; }
  .site-nav.is-open .site-nav__list li:nth-child(3) a { animation-delay: 0.18s; }
  .site-nav.is-open .site-nav__list li:nth-child(4) a { animation-delay: 0.24s; }
  .site-nav.is-open .site-nav__list li:nth-child(5) a { animation-delay: 0.30s; }

  .site-header__lang {
    align-self: flex-start; margin-top: 2.2rem; min-width: 0; height: auto;
    padding: 0.7em 1.5em; border: 1px solid rgba(246, 244, 239, 0.5); color: var(--on-dk);
    background: transparent; opacity: 1; font-size: 0.95rem; letter-spacing: 0.1em;
    border-radius: var(--r-pill);
  }
  .site-header__lang:hover { background: rgba(246, 244, 239, 0.08); border-color: var(--on-dk); }

  .is-nav-open .site-header__toggle-line--top { transform: translateY(5px) rotate(45deg); }
  .is-nav-open .site-header__toggle-line--mid { opacity: 0; }
  .is-nav-open .site-header__toggle-line--bot { transform: translateY(-5px) rotate(-45deg); }
}

@keyframes navItemIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .site-nav__list a { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  /* no bottom padding — the marquee ticker sits flush against the section edge */
  padding-block: calc(var(--nav-h) + 1.25rem) 0;
  color: var(--on-dk); background: var(--ink-dk); overflow: hidden; isolation: isolate;
}
/* content area grows and vertically centers the headline block; rail sits below */
.hero__body { flex: 1 1 auto; display: flex; align-items: center; min-height: 0; }
/* Background drone-footage loop (muted). Poster shows until it plays / if it can't. */
.hero__video {
  position: absolute; inset: 0; z-index: -4; width: 100%; height: 100%;
  object-fit: cover; object-position: center; pointer-events: none;
}
/* Legibility scrim over the video: darkens the left (text side) + bottom,
   keeps a subtle warm glow. Also the standalone bg if the video never loads. */
.hero__bg {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(100% 80% at 88% -8%, rgba(237, 161, 58, 0.15), transparent 45%),
    linear-gradient(90deg, rgba(6, 5, 4, 0.95) 0%, rgba(6, 5, 4, 0.78) 40%, rgba(6, 5, 4, 0.55) 72%, rgba(6, 5, 4, 0.66) 100%),
    linear-gradient(0deg, rgba(6, 5, 4, 0.92) 0%, transparent 52%);
}
/* Fine blueprint grid — subtle, masked toward the warm glow */
.hero__grid {
  position: absolute; inset: 0; z-index: -2; opacity: 0.38;
  background-image:
    linear-gradient(rgba(246, 244, 239, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 244, 239, 0.05) 1px, transparent 1px);
  background-size: clamp(56px, 6vw, 88px) clamp(56px, 6vw, 88px);
  mask-image: radial-gradient(135% 115% at 78% -5%, #000 28%, transparent 82%);
  -webkit-mask-image: radial-gradient(135% 115% at 78% -5%, #000 28%, transparent 82%);
}
/* Film grain for tactile depth */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.4; mix-blend-mode: overlay;
  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='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Vignette to concentrate light on the headline */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(125% 95% at 50% 38%, transparent 52%, rgba(4, 3, 2, 0.6) 100%);
}

.hero__inner { width: 100%; }
.hero__eyebrow { margin-bottom: clamp(1.2rem, 3vw, 2rem); color: var(--accent-bright); }
.hero__title {
  /* Sized by width (--fs-hero) AND clamped by viewport height (svh) so the
     4-line headline + lead + CTAs always fit within one screen, on any
     aspect ratio — no fixed height assumptions. */
  font-size: min(var(--fs-hero), 11.5svh);
  font-weight: 700; letter-spacing: -0.022em; line-height: 0.96; max-width: 16ch;
}
.hero__title .is-accent { color: var(--accent-bright); }
.hero__meta {
  margin-top: clamp(1.6rem, 3vw, 2.6rem);
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: clamp(1.5rem, 4vw, 3.5rem);
  justify-content: space-between;
}
.hero__lead {
  font-size: var(--fs-lead); color: var(--on-dk); opacity: 0.85; max-width: 42ch;
  font-weight: 400; letter-spacing: -0.01em;
}
.hero__cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* Bottom rail — positioning tag + scroll cue, grounds the hero and uses width */
.hero__rail {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: clamp(1rem, 2vw, 1.6rem); border-top: 1px solid var(--line-dk);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-dk);
}
.hero__rail-scroll { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--accent-bright); }
.hero__rail-arrow { display: inline-block; animation: scrollpulse 2s var(--ease) infinite; }
@keyframes scrollpulse { 0%, 100% { transform: translateY(-2px); opacity: 0.5; } 50% { transform: translateY(3px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero__rail-arrow { animation: none; } }
@media (max-width: 560px) { .hero__rail-scroll { display: none; } }

/* Staggered hero load */
.hero__load { opacity: 0; transform: translateY(24px); animation: heroIn 1s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes heroIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__load { opacity: 1; transform: none; animation: none; } }

/* ==========================================================================
   Marquee (trust strip)
   ========================================================================== */
.marquee {
  border-block: 1px solid var(--line); overflow: hidden; padding-block: 1.4rem;
  background: var(--bg);
}
.marquee__track {
  display: flex; gap: 3.5rem; white-space: nowrap; width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }
.marquee__item {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--muted); display: inline-flex; align-items: center; gap: 3.5rem; letter-spacing: -0.02em;
}
.marquee__item::after { content: "✦"; color: var(--accent); font-size: 0.7em; }

/* Marquee inside the dark hero: transparent, dark-styled, a grounding ticker */
.marquee--hero {
  flex: none; border-block: none; border-top: 1px solid var(--line-dk);
  background: transparent; padding-block: clamp(0.85rem, 1.5vw, 1.25rem); margin-top: auto;
}
.marquee--hero .marquee__item { color: var(--muted-dk); font-size: clamp(1rem, 2vw, 1.35rem); }
.marquee--hero .marquee__item::after { color: var(--accent-bright); }

/* ==========================================================================
   Stats
   ========================================================================== */
/* 4 cards → 4 / 2 / 1 columns so every row is exactly filled (no empty grey
   cells from an odd last row). */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .stats { grid-template-columns: 1fr; } }
.stat { background: var(--surface); padding: clamp(1.6rem, 3vw, 2.6rem); }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 1.5rem + 4vw, 4.4rem); letter-spacing: -0.02em; line-height: 1; }
.stat__num .unit { color: var(--accent); }
.stat__label { margin-top: 0.6rem; color: var(--muted); font-size: var(--fs-sm); font-weight: 500; }

/* ==========================================================================
   Manifesto (philosophy statement + architectural line art)
   ========================================================================== */
.manifesto { position: relative; overflow: hidden; background: var(--bg-2); isolation: isolate; }
/* faint blueprint grid, fading in from the right behind the art */
.manifesto__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.6;
  background-image:
    linear-gradient(rgba(22, 19, 15, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 19, 15, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(90% 120% at 100% 50%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(90% 120% at 100% 50%, #000 10%, transparent 70%);
}
.manifesto__inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.manifesto__quote {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.018em;
  font-size: clamp(1.9rem, 1rem + 3.4vw, 3.4rem); line-height: 1.12; margin-top: 1.2rem;
  color: var(--ink); text-wrap: balance;
}
.manifesto__quote b { color: var(--accent); font-weight: 700; }
.manifesto__sign {
  margin-top: clamp(1.8rem, 3vw, 2.6rem); display: flex; align-items: center; gap: 1rem;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.manifesto__sign-line { width: 3rem; height: 1px; background: var(--accent); flex: none; }

.manifesto__art { position: relative; display: flex; justify-content: center; }
.manifesto__art svg { position: relative; width: 100%; max-width: 380px; height: auto; color: rgba(22, 19, 15, 0.5); animation: floatArt 7s var(--ease) infinite; }
.manifesto__art .ma-accent { stroke: var(--accent); opacity: 1; }
.manifesto__art .ma-dot { fill: var(--accent); stroke: none; }
.manifesto__art-glow {
  position: absolute; inset: 8% 6%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 132, 46, 0.16), transparent 68%);
  filter: blur(8px);
}
@keyframes floatArt { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .manifesto__art svg { animation: none; } }

@media (max-width: 820px) {
  .manifesto__inner { grid-template-columns: 1fr; gap: clamp(2rem, 6vw, 3rem); }
  .manifesto__art { order: -1; }
  .manifesto__art svg { max-width: 260px; }
}

/* ==========================================================================
   Projects showcase — cinematic full-bleed panels
   ========================================================================== */
.showcase-intro { text-align: center; }
.projects { background: var(--ink-dk); color: var(--on-dk); }

.project {
  position: relative; min-height: 92svh; display: grid;
  grid-template-columns: 1fr 1fr; align-items: stretch; isolation: isolate;
  border-top: 1px solid var(--line-dk);
}
.project__media { position: relative; overflow: hidden; min-height: 60svh; }
.project__img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.08); transition: transform 1.4s var(--ease-out);
  will-change: transform;
}
.project.is-visible .project__img { transform: scale(1); }
.project__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11,10,8,0.55)); }
.project__tag {
  position: absolute; top: 1.4rem; left: 1.4rem; z-index: 2;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); background: var(--accent-bright); padding: 0.4em 0.9em; border-radius: var(--r-pill);
}
.project__body {
  display: flex; flex-direction: column; justify-content: center;
  gap: 1.1rem; padding: clamp(2.2rem, 5vw, 5rem);
}
.project__index {
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  color: var(--accent-bright); letter-spacing: 0.1em;
}
.project__name { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.02em; }
.project__desc { color: var(--muted-dk); font-size: var(--fs-lead); font-weight: 400; max-width: 40ch; line-height: 1.5; }
.project__specs { display: flex; flex-wrap: wrap; gap: 1.8rem; margin-top: 0.4rem; }
.project__spec { display: flex; flex-direction: column; gap: 0.15rem; }
.project__spec dt { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-dk); }
.project__spec dd { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.project__link { margin-top: 0.8rem; color: var(--accent-bright); }

/* alternate image side */
.project:nth-child(even) .project__media { order: 2; }

@media (max-width: 860px) {
  .project { grid-template-columns: 1fr; min-height: auto; }
  .project__media { min-height: 56svh; }
  .project:nth-child(even) .project__media { order: 0; }
  .project__body { padding-block: clamp(2rem, 8vw, 3rem); }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.1rem;
}
.service-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.7rem, 2.5vw, 2.3rem);
  min-height: 246px; display: flex; flex-direction: column; gap: 0.9rem;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
/* accent bar that draws in along the top on hover */
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }

/* icon chip that fills with accent on hover */
.service-card__icon {
  width: 56px; height: 56px; border-radius: 15px; background: var(--bg-2);
  display: inline-flex; align-items: center; justify-content: center; color: var(--accent);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.5s var(--ease);
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card:hover .service-card__icon { background: var(--accent); color: #fff; transform: translateY(-2px); }

.service-card__idx {
  position: absolute; top: 1.3rem; right: 1.5rem; font-family: var(--font-mono);
  font-weight: 500; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted); opacity: 0.5;
  transition: color 0.4s var(--ease), opacity 0.4s var(--ease);
}
.service-card:hover .service-card__idx { color: var(--accent); opacity: 1; }
.service-card__name { font-size: var(--fs-h3); margin-top: auto; }
.service-card__desc { color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; }

/* hover arrow only on the clickable (home) cards */
a.service-card::after {
  content: ""; position: absolute; bottom: 1.5rem; right: 1.5rem; width: 20px; height: 20px;
  background: var(--accent); -webkit-mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  opacity: 0; transform: translateX(-6px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
a.service-card:hover::after { opacity: 1; transform: translateX(0); }

/* ==========================================================================
   Values
   ========================================================================== */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 2.2rem 2.6rem; }
.value { padding-top: 1.4rem; border-top: 1px solid var(--line-dk); }
.value__title { font-size: var(--fs-h3); font-weight: 700; margin-bottom: 0.5rem; }
.value__desc { color: var(--muted-dk); font-size: var(--fs-body); line-height: 1.55; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta {
  position: relative; text-align: center; color: var(--on-dk); overflow: hidden;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(200,132,46,0.30), transparent 60%),
    var(--ink-dk);
}
.cta__title { font-size: var(--fs-display); font-weight: 700; letter-spacing: -0.02em; max-width: 18ch; margin-inline: auto; }
.cta__sub { margin-top: 1.2rem; color: var(--muted-dk); font-size: var(--fs-lead); max-width: 46ch; margin-inline: auto; }
.cta__actions { margin-top: 2.4rem; display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: clamp(3rem, 5vw, 5rem) 2rem; font-size: var(--fs-sm); }
.site-footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; }
.site-footer__brand { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: 0.02em; }
.site-footer__brand b { color: var(--accent); }
.site-footer__tagline { margin-top: 0.8rem; color: var(--muted); max-width: 34ch; }
.site-footer__col h4 { font-family: var(--font-text); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; font-weight: 700; }
.site-footer__col ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.site-footer__col a, .site-footer__col address { color: var(--ink-2); font-style: normal; transition: color 0.25s var(--ease); }
.site-footer__col a:hover { color: var(--accent); }
.site-footer__social { display: flex; gap: 0.8rem; margin-top: 1.2rem; }
.site-footer__social a { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); transition: color 0.25s var(--ease), border-color 0.25s var(--ease); }
.site-footer__social a:hover { color: var(--accent); border-color: var(--accent); }
.site-footer__social svg { width: 18px; height: 18px; }
.site-footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--muted); }

/* Agency signature (marketing credit) */
.site-footer__signature { display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.3rem 0; }
.site-footer__signature-label { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.site-footer__signature-brand {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em; color: var(--ink);
  display: inline-flex; align-items: center; gap: 0.15em; transition: color 0.25s var(--ease);
}
.site-footer__signature-arrow { font-size: 0.8em; transition: transform 0.3s var(--ease); }
.site-footer__signature:hover .site-footer__signature-brand { color: var(--accent); }
.site-footer__signature:hover .site-footer__signature-arrow { transform: translate(2px, -2px); }

@media (max-width: 760px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .site-footer__brand-col { grid-column: 1 / -1; }
}

/* ==========================================================================
   Signature footer (editorial — (01) Menü / (02) Konum / (03) İmza)
   ========================================================================== */
:root { --font-mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace; }

.mess-footer { background: var(--bg); border-top: 1px solid rgba(22, 19, 15, 0.28); }
.mess-footer a { transition: color 0.2s var(--ease); }

.fmeta { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.mess-footer__band { padding: 1.1rem var(--gutter); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; }

.mess-footer__cols {
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 3rem;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 820px) { .mess-footer__cols { grid-template-columns: 1fr; gap: 3rem; } }

.mess-footer__label { display: flex; justify-content: space-between; margin-bottom: 1.6rem; }
.mess-footer__label-r { color: var(--muted); opacity: 0.7; }

.mess-footer__nav { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.mess-footer__nav a { display: grid; grid-template-columns: 2.6ch 1fr auto; align-items: baseline; gap: 0 1rem; transition: transform 0.2s var(--ease); }
.mess-footer__nav a:hover { transform: translateX(6px); }
.mess-footer__nav .idx { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--accent); }
.mess-footer__nav .ttl { font-family: var(--font-display); font-style: italic; font-weight: 500; letter-spacing: -0.01em; font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--ink); transition: color 0.2s var(--ease); }
.mess-footer__nav a:hover .ttl, .mess-footer__nav a:hover .arw { color: var(--accent); }
.mess-footer__nav .arw { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }

.mess-footer__addr-line { font-family: var(--font-display); font-style: italic; font-weight: 500; letter-spacing: -0.01em; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.35; color: var(--ink); white-space: pre-line; }
.mess-footer__coords { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--muted); }
.mess-footer__coords a { color: var(--ink-2); width: fit-content; }
.mess-footer__coords a:hover { color: var(--accent); }

.mess-footer__signoff { font-family: var(--font-display); font-style: italic; font-weight: 500; letter-spacing: -0.015em; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.3; color: var(--ink); }
.mess-footer__heart { font-style: normal; color: var(--accent); }
.mess-footer__signoff-note { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.mess-footer__signoff-note a { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--muted); }
.mess-footer__signoff-note a:hover { color: var(--accent); }

.mess-footer__wordmark {
  display: block; padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) clamp(0.5rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--line); overflow: hidden; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; line-height: 0.9;
  font-size: clamp(2.6rem, 13.5vw, 11rem); white-space: nowrap; transition: color 0.25s var(--ease);
}
.mess-footer__wordmark:hover { color: var(--accent); }
.mess-footer__wordmark .dot { color: var(--accent); transition: color 0.25s var(--ease); }
.mess-footer__wordmark:hover .dot { color: var(--ink); }

.mess-footer__legal { padding: 1.4rem var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.6rem 2rem; }
.mess-footer__legal .muted { color: var(--muted); opacity: 0.8; }
.mess-footer__legal-right { display: flex; gap: 1.5rem; }
.mess-footer__legal-right a { color: var(--muted); }
.mess-footer__legal-right a:hover { color: var(--accent); }

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */
.page-hero { padding-block: calc(var(--nav-h) + clamp(4rem, 8vw, 8rem)) clamp(3rem, 6vw, 6rem); background: linear-gradient(167deg, #17130e 0%, #0d0b09 60%, #070605 100%); color: var(--on-dk); position: relative; overflow: hidden; isolation: isolate; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 130% at 82% -20%, rgba(237, 161, 58, 0.16), transparent 50%);
}
.page-hero__eyebrow { color: var(--accent-bright); }
.page-hero__title { font-size: var(--fs-display); font-weight: 700; letter-spacing: -0.02em; margin-top: 0.8rem; }
.page-hero__sub { margin-top: 1.2rem; color: var(--muted-dk); font-size: var(--fs-lead); max-width: 48ch; }
.page-hero .hero__grid { opacity: 0.4; z-index: -1; }

/* ==========================================================================
   Split layout (title left, body right)
   ========================================================================== */
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split__aside { position: sticky; top: calc(var(--nav-h) + 2rem); }
.split__title { font-size: var(--fs-h2); }
.split__body > * + * { margin-top: 1.4rem; }
.split__body p { color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.55; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 1.6rem; }
  .split__aside { position: static; }
}

/* Prose lead paragraph */
.lead-p { font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.55; }

/* Story intro (About) */
.story__lead { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; font-size: var(--fs-h3); line-height: 1.25; color: var(--ink); }
.story__p { margin-top: 1.3rem; font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.6; }

/* ==========================================================================
   Vision / Mission — clean columns with a top accent rule (no boxes)
   ========================================================================== */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); }
@media (max-width: 820px) { .vm { grid-template-columns: 1fr; gap: 3rem; } }
.vm__col { padding-top: 1.6rem; border-top: 2px solid var(--accent-bright); }
.vm__title { font-size: var(--fs-h3); margin-bottom: 1.3rem; }
.vm__vision {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em;
  font-size: clamp(1.35rem, 1rem + 1.3vw, 1.9rem); line-height: 1.35; color: var(--on-dk);
}
.mission-list { list-style: none; padding: 0; display: grid; gap: 1.2rem; counter-reset: mission; }
.mission-list li { position: relative; padding-left: 2.9rem; color: var(--muted-dk); line-height: 1.55; }
.mission-list li::before {
  counter-increment: mission; content: "0" counter(mission);
  position: absolute; left: 0; top: 0.2em; font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.06em; color: var(--accent-bright);
}

/* ==========================================================================
   Value cards (light)
   ========================================================================== */
.value-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1.1rem; }
.value-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 2.5vw, 2rem); display: flex; flex-direction: column; gap: 0.6rem; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card__num { font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 0.85rem; letter-spacing: 0.1em; }
.value-card__title { font-size: var(--fs-h3); }
.value-card__desc { color: var(--muted); font-size: var(--fs-sm); line-height: 1.55; }

/* ==========================================================================
   Policy list (quality)
   ========================================================================== */
.policy { display: grid; gap: 1rem; list-style: none; padding: 0; }
.policy li { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.1rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.policy li svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 0.1em; }
.policy li span { color: var(--ink-2); line-height: 1.5; }

/* ==========================================================================
   Projects gallery + filter (projeler.html)
   ========================================================================== */
.gallery-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(2rem, 3vw, 3rem); }
.filter-btn {
  padding: 0.6em 1.2em; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: transparent; color: var(--ink-2); font-weight: 600; font-size: 0.9rem;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.is-active { background: var(--ink); color: var(--on-dk); border-color: var(--ink); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 1.4rem; }
.gallery-card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg);
  overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.gallery-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.gallery-card.is-filtered-out { display: none; }
.gallery-card.is-entering { animation: cardIn 0.5s var(--ease-out) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gallery-card.is-entering { animation: none; } }
.gallery-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.gallery-card__img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.8s var(--ease-out); }
.gallery-card:hover .gallery-card__img { transform: scale(1.06); }
.gallery-card__overlay { position: absolute; inset: 0; z-index: 2; }
.gallery-card__cta {
  display: inline-flex; align-items: center; gap: 0.4em;
  margin-top: 1rem; color: var(--accent); font-weight: 600; font-size: var(--fs-sm);
}
.gallery-card__cta svg { transition: transform 0.3s var(--ease); }
.gallery-card:hover .gallery-card__cta svg { transform: translateX(4px); }
.gallery-card__tag { position: absolute; top: 1rem; left: 1rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); background: var(--accent-bright); padding: 0.35em 0.8em; border-radius: var(--r-pill); }
.gallery-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.5rem; }
.gallery-card__name { font-size: var(--fs-h3); }
.gallery-card__loc { color: var(--muted); font-size: var(--fs-sm); }
.gallery-card__specs { display: flex; gap: 1.2rem; margin-top: 0.6rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.gallery-card__spec dt { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.gallery-card__spec dd { font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; margin-top: 0.1rem; }
.gallery-empty { color: var(--muted); font-size: var(--fs-lead); padding: 3rem 0; text-align: center; }

/* ==========================================================================
   Contact (iletisim.html)
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1.3rem; }
.form-field { display: grid; gap: 0.5rem; }
.form-label { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.form-control {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); padding: 0.85em 1em;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.form-control::placeholder { color: #a7a094; }
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,132,46,0.16); }
textarea.form-control { min-height: 150px; resize: vertical; }
.form-field.is-invalid .form-control { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,0.14); }
.field-error { color: #c0392b; font-size: var(--fs-sm); }
.form-status { padding: 0.9em 1.1em; border-radius: var(--r); font-size: 0.92rem; font-weight: 500; }
.form-status.is-error { background: rgba(192,57,43,0.1); color: #a5281b; border: 1px solid rgba(192,57,43,0.25); }
.form-status.is-success { background: rgba(46,140,74,0.12); color: #1f7a3f; border: 1px solid rgba(46,140,74,0.28); }
.form-note { color: var(--muted); font-size: var(--fs-sm); }
.form-submit { justify-self: start; }

.contact-details { display: grid; gap: 1.6rem; }
.detail-item { display: flex; gap: 1rem; align-items: flex-start; }
.detail-item__icon { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--bg-2); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); }
.detail-item__icon svg { width: 20px; height: 20px; }
.detail-item__label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.detail-item__value { font-weight: 600; color: var(--ink); }
.detail-item__value a:hover { color: var(--accent); }

/* Multiple phone numbers stack neatly (footer + contact details) */
.phones { display: flex; flex-direction: column; gap: 0.3rem; align-items: flex-start; }

.contact-map {
  margin-top: 2rem; position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg);
  overflow: hidden; border: 1px solid var(--line); background: var(--bg-2);
}
.contact-map__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(0.92); }
.contact-map__open {
  display: inline-flex; align-items: center; gap: 0.4em; margin-top: 0.9rem;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--muted);
  transition: color 0.25s var(--ease);
}
.contact-map__open:hover { color: var(--accent); }
.contact-social { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.contact-social a { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); transition: color 0.25s var(--ease), border-color 0.25s var(--ease); }
.contact-social a:hover { color: var(--accent); border-color: var(--accent); }
.contact-social svg { width: 18px; height: 18px; }

/* ==========================================================================
   Project video — play button + lightbox
   ========================================================================== */
.play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 3; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(11, 10, 8, 0.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(246, 244, 239, 0.55); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.play-btn svg { width: 24px; height: 24px; margin-left: 3px; }
.play-btn:hover { background: var(--accent); border-color: var(--accent); transform: translate(-50%, -50%) scale(1.1); }
.gallery-card__media .play-btn { width: 54px; height: 54px; }
.gallery-card__media .play-btn svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   Media carousel — homepage project panels + detail-page galleries
   -------------------------------------------------------------------------- */
.carousel { position: absolute; inset: 0; overflow: hidden; outline: none; }
.carousel__track {
  display: flex; height: 100%; width: 100%;
  transition: transform 0.6s var(--ease); will-change: transform;
}
.carousel__slide {
  position: relative; flex: 0 0 100%; height: 100%;
  background-size: cover; background-position: center; background-color: var(--ink-dk-2);
}
.carousel__slide--video { display: grid; place-items: center; }
.carousel__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: #000; z-index: 2;
}
.carousel__play {
  position: relative; z-index: 3; width: 66px; height: 66px; border-radius: 50%;
  background: rgba(11, 10, 8, 0.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(246, 244, 239, 0.55); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.carousel__play svg { width: 26px; height: 26px; margin-left: 3px; }
.carousel__play:hover { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.carousel__slide.is-playing .carousel__play { display: none; }

.carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: rgba(11, 10, 8, 0.38); border: 1px solid rgba(246, 244, 239, 0.28);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), opacity 0.25s var(--ease);
  opacity: 0;
}
.carousel:hover .carousel__nav, .carousel:focus-within .carousel__nav { opacity: 1; }
.carousel__nav:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.carousel__nav--prev { left: 14px; }
.carousel__nav--next { right: 14px; }
.carousel__nav svg { width: 22px; height: 22px; }
.carousel__dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 4;
  display: flex; gap: 8px; padding: 6px 10px; border-radius: var(--r-pill);
  background: rgba(11, 10, 8, 0.3); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.carousel__dot {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(246, 244, 239, 0.5); transition: width 0.3s var(--ease), background 0.3s var(--ease);
}
.carousel__dot[aria-current="true"] { background: var(--accent-bright); width: 22px; border-radius: 6px; }
.carousel__videocue {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  display: inline-flex; align-items: center; gap: 0.45em;
  padding: 0.5em 0.95em 0.5em 0.8em; border-radius: var(--r-pill); cursor: pointer;
  font-family: var(--font-text); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.01em;
  color: var(--accent-ink); background: var(--accent-bright); border: 0;
  box-shadow: 0 6px 18px rgba(11, 10, 8, 0.3);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.carousel__videocue:hover { transform: translateY(-1px); background: #fff; }
.carousel__videocue svg { width: 15px; height: 15px; margin-left: 1px; }
@media (hover: none) { .carousel__nav { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .carousel__track { transition: none; } }

/* --------------------------------------------------------------------------
   Project detail page
   -------------------------------------------------------------------------- */
.detail__back {
  display: inline-flex; align-items: center; gap: 0.5em; margin-bottom: 1.4rem;
  color: var(--muted); font-weight: 600; font-size: var(--fs-sm);
}
.detail__back svg { transition: transform 0.3s var(--ease); }
.detail__back:hover { color: var(--accent); }
.detail__back:hover svg { transform: translateX(-3px); }
.page-hero--project .page-hero__title { text-transform: none; }

.detail-gallery {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: var(--r-lg); background: var(--ink-dk-2);
  box-shadow: var(--shadow-lg);
}
.detail__hint {
  margin-top: 1rem; text-align: center; color: var(--muted);
  font-size: var(--fs-sm); letter-spacing: 0.02em;
}

.detail__grid {
  display: grid; grid-template-columns: 1.6fr 1fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.detail__h2 { font-size: var(--fs-h3); margin-bottom: 1.1rem; }
.detail__body { color: var(--ink-2); font-size: var(--fs-lead); font-weight: 400; line-height: 1.6; max-width: 60ch; }
.detail__specs { position: sticky; top: calc(var(--nav-h) + 2rem); }
.detail__spec-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.detail__spec-list > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.detail__spec-list dt { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.detail__spec-list dd { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-align: right; }

@media (max-width: 800px) {
  .detail__grid { grid-template-columns: 1fr; }
  .detail__specs { position: static; }
  .detail-gallery { aspect-ratio: 4 / 3; }
}

/* --------------------------------------------------------------------------
   Showreel — full montage of all projects
   -------------------------------------------------------------------------- */
.showreel__frame {
  position: relative; aspect-ratio: 16 / 9; max-width: 1040px; margin: 0 auto;
  border-radius: var(--r-lg); overflow: hidden; cursor: pointer;
  background-size: cover; background-position: center; background-color: var(--ink-dk-2);
  box-shadow: var(--shadow-lg);
}
.showreel__frame::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(11, 10, 8, 0.12), rgba(11, 10, 8, 0.46));
  transition: background 0.4s var(--ease);
}
.showreel__frame:hover::after { background: radial-gradient(ellipse at center, rgba(11, 10, 8, 0.04), rgba(11, 10, 8, 0.3)); }
.showreel__play { width: 88px; height: 88px; z-index: 2; }
.showreel__play svg { width: 34px; height: 34px; }
@media (max-width: 600px) { .showreel__frame { aspect-ratio: 4 / 3; } }

.video-modal {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem); background: rgba(5, 4, 3, 0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.video-modal.is-open { opacity: 1; visibility: visible; }
.video-modal video { width: 100%; max-width: 1120px; max-height: 82vh; border-radius: var(--r-lg); background: #000; box-shadow: var(--shadow-lg); }
.video-modal__close {
  position: absolute; top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem);
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(246, 244, 239, 0.4);
  background: rgba(246, 244, 239, 0.08); color: var(--on-dk);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.video-modal__close:hover { background: rgba(246, 244, 239, 0.2); border-color: var(--on-dk); }
.video-modal__close svg { width: 22px; height: 22px; }
