/* ============================================================
   MURAT İNAN — Editorial Portfolio
   One typeface (Gilroy); hierarchy comes from weight.
   Dark (#212121 family) is the default; light is opt-in
   via [data-theme="light"].
   ============================================================ */

/* ---------- 0. FONT ---------- */
@font-face { font-family: 'Gilroy'; src: url('../assets/fonts/gilroy-300.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../assets/fonts/gilroy-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../assets/fonts/gilroy-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../assets/fonts/gilroy-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../assets/fonts/gilroy-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../assets/fonts/gilroy-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap; }

/* ---------- 1. TOKENS ---------- */
:root {
  /* --- DARK (default) — #212121 family, never pure black --- */
  --bg: #212121;
  --surface: #262626;
  --surface-2: #2d2d2d;

  --fg: #f2f1ee;
  --fg-dim: #c4c1bb;
  --fg-mute: #8d8a84;
  --fg-faint: #4a4a4a;    /* manifesto "unlit" state */

  /* Accent — sage, pulled from the portrait */
  --sage: #9fb5a3;
  --sage-deep: #7d9984;

  /* Hairlines & glass */
  --line: rgba(242, 241, 238, 0.11);
  --line-strong: rgba(242, 241, 238, 0.20);
  --glass: rgba(242, 241, 238, 0.05);

  /* Nav chrome */
  --chrome: rgba(33, 33, 33, 0.68);

  /* Tuning knobs the two themes disagree on */
  --grain-opacity: 0.035;
  /* client mockups sit on white — settle them into the dark ground */
  --media-filter: grayscale(0.2) brightness(0.86) contrast(1.04);
  --bezel-inset: inset 0 1px 1px rgba(242, 241, 238, 0.12);

  /* Ambient light — present in BOTH themes, just tuned differently */
  --glow-core: rgba(159, 181, 163, 0.20);
  --glow-edge: rgba(159, 181, 163, 0.00);
  --card-glow: rgba(159, 181, 163, 0.12);
  --map-filter: invert(0.92) hue-rotate(180deg) saturate(0.6) brightness(0.95);

  /* Type — single family, weight does the work */
  --sans: 'Gilroy', system-ui, -apple-system, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);

  /* Rhythm */
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  /* viewport-based so a wide child (marquee) can never feed back into the width */
  --shell: min(1440px, calc(100vw - var(--gut) * 2));
}

:root[data-theme="light"] {
  /* --- LIGHT — warm paper, not clinical white --- */
  --bg: #f5f3ef;
  --surface: #eceae4;
  --surface-2: #e3e0d8;

  --fg: #1c1c1c;
  --fg-dim: #4a453e;
  --fg-mute: #7d766c;
  --fg-faint: #c6c1b6;

  /* darkened so the accent still clears AA on paper */
  --sage: #5f7d68;
  --sage-deep: #46604e;

  --line: rgba(28, 28, 28, 0.12);
  --line-strong: rgba(28, 28, 28, 0.20);
  --glass: rgba(28, 28, 28, 0.035);

  --chrome: rgba(245, 243, 239, 0.72);

  --grain-opacity: 0.028;
  --media-filter: none;
  --bezel-inset: 0 1px 1px rgba(28, 28, 28, 0.06);

  /* On paper the glow has to lean warmer and denser or it vanishes */
  --glow-core: rgba(95, 125, 104, 0.22);
  --glow-edge: rgba(95, 125, 104, 0.00);
  --card-glow: rgba(95, 125, 104, 0.14);
  --map-filter: none;
}

/* Colour/background changes ride a transition so the toggle feels physical */
body, .nav, .sheet, .svc, .fact, .shot, .show-row-bg, .field input, .field textarea {
  transition: background-color 0.6s var(--ease-out), color 0.6s var(--ease-out),
              border-color 0.6s var(--ease-out);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
/* Lenis kaydırmayı devralır; reduced-motion'da native davranış geri gelir. */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* height:auto so width/height HTML attributes can't override aspect-ratio */
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--sage); color: var(--bg); }

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

/* ---------- 3. FILM GRAIN (fixed, never on scrollers) ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 9;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 8s steps(10) infinite;
}
@keyframes grainShift {
  0%,100% { transform: translate(0,0); }
  10% { transform: translate(-2%,-4%); }
  30% { transform: translate(3%,-2%); }
  50% { transform: translate(-1%,3%); }
  70% { transform: translate(2%,1%); }
  90% { transform: translate(-3%,2%); }
}

/* ---------- 4. LAYOUT ---------- */
.shell { width: var(--shell); margin-inline: auto; }
section { position: relative; }
.pad { padding-block: clamp(6rem, 14vh, 11rem); }

/* Eyebrow tag */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.45em 1em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  background: var(--glass);
}
.eyebrow::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sage);
}

/* Display type — contrast comes from weight, never from a second family */
.display {
  font-family: var(--sans);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-size: clamp(2.75rem, 8.5vw, 8.5rem);
}
.display em {
  font-style: normal;
  font-weight: 300;
  letter-spacing: -0.035em;
  color: var(--sage);
}
.h2 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-size: clamp(2rem, 5vw, 4.25rem);
}
.h2 em {
  font-style: normal;
  font-weight: 300;
  color: var(--sage);
}
.lede {
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.75;
  color: var(--fg-dim);
  max-width: 62ch;
}
.mono {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* ---------- 5. NAV — floating glass island ---------- */
.nav {
  position: fixed;
  top: 1.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: max-content;
  max-width: calc(100% - 2rem);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 0.6rem 0.6rem 0.6rem 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--chrome);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  transition: transform 0.7s var(--ease-soft), opacity 0.5s var(--ease-soft);
}
.nav.is-hidden { transform: translateX(-50%) translateY(-160%); opacity: 0; }

/* Wordmark — the SVG inherits currentColor, so it flips with the theme */
.nav-mark {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  color: var(--fg);
  transition: opacity 0.4s var(--ease-out);
}
.nav-mark svg { width: auto; height: 1.6rem; fill: currentColor; }
.nav-mark:hover { opacity: 0.65; }

/* CTA + theme button read as one cluster, so they sit tight together */
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-links { display: flex; gap: clamp(0.9rem, 2vw, 1.75rem); }
.nav-links a {
  position: relative;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--fg-dim);
  transition: color 0.4s var(--ease-out);
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease-soft);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Nested CTA pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.5rem 0.5rem 1.15rem;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.5s var(--ease-soft), background 0.4s var(--ease-out);
}
.pill-ico {
  display: grid; place-items: center;
  width: 1.9rem; height: 1.9rem;
  border-radius: 50%;
  background: rgba(13, 11, 10, 0.08);
  transition: transform 0.5s var(--ease-soft), background 0.4s var(--ease-out);
}
.pill-ico svg { width: 12px; height: 12px; }
.pill:hover { background: var(--sage); }
.pill:hover .pill-ico { transform: translate(2px, -2px) scale(1.08); background: rgba(13,11,10,0.14); }
.pill:active { transform: scale(0.975); }

.pill-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-strong);
}
.pill-ghost .pill-ico { background: var(--glass); }
.pill-ghost:hover { background: var(--glass); border-color: var(--sage); }

/* Theme toggle — the emoji swaps on a small vertical roll */
.theme-btn {
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--glass);
  font-size: 0.95rem;
  line-height: 1;
  overflow: hidden;
  transition: transform 0.5s var(--ease-soft), background 0.4s var(--ease-out),
              border-color 0.4s var(--ease-out);
}
.theme-btn:hover { background: var(--sage); border-color: var(--sage); transform: translateY(-2px); }
.theme-btn:active { transform: scale(0.94); }
.theme-btn span {
  display: block;
  transition: transform 0.5s var(--ease-soft), opacity 0.35s var(--ease-out);
}
.theme-btn.is-swapping span { transform: translateY(-120%); opacity: 0; }

/* Mobile menu toggle — the two bars are absolutely centred, so the morph to an
   X rotates around the true middle instead of drifting with margin offsets. */
.burger {
  display: none;
  position: relative;
  width: 2.5rem; height: 2.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--glass);
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.burger:hover { background: var(--surface-2); }
.burger span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.5px;
  margin-left: -8px;
  border-radius: 2px;
  background: var(--fg);
  transition: transform 0.5s var(--ease-soft), opacity 0.25s var(--ease-out);
}
.burger span:nth-child(1) { transform: translateY(-5px); }
.burger span:nth-child(2) { transform: translateY(0); }
.burger span:nth-child(3) { transform: translateY(5px); }

.burger.is-open span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
.burger.is-open span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

.sheet {
  position: fixed; inset: 0;
  z-index: 39;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  /* Fully opaque: the panel must stay readable even where backdrop-filter is
     unsupported or disabled, so the blur is a bonus and never load-bearing. */
  background: var(--bg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease-soft), visibility 0.6s;
}
.sheet.is-open { opacity: 1; visibility: visible; }

/* Staggered mask reveal for every direct child (links + theme row) */
.sheet > * {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.7s var(--ease-soft), transform 0.7s var(--ease-soft);
}
.sheet.is-open > * { opacity: 1; transform: none; }
.sheet.is-open > *:nth-child(1) { transition-delay: 0.10s; }
.sheet.is-open > *:nth-child(2) { transition-delay: 0.16s; }
.sheet.is-open > *:nth-child(3) { transition-delay: 0.22s; }
.sheet.is-open > *:nth-child(4) { transition-delay: 0.30s; }

.sheet a {
  font-family: var(--sans);
  font-size: clamp(2rem, 10vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.3;
  text-align: center;
  color: var(--fg);
}

/* Theme switch inside the mobile sheet — reads as a menu row, not a stray icon */
.sheet-theme {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--glass);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
              color 0.4s var(--ease-out);
}
.sheet-theme:hover, .sheet-theme:focus-visible {
  background: var(--surface-2);
  border-color: var(--sage);
  color: var(--fg);
}
.sheet-theme .emo { font-size: 1rem; line-height: 1; }
/* Only exists on mobile — the desktop nav has its own theme button.
   Declared here, before the media query that switches it back on. */
.sheet-theme { display: none; }
.sheet.is-open a:nth-child(4) { transition-delay: 0.28s; }

/* ---------- 6. HERO ---------- */
.hero {
  min-height: 100dvh;
  display: grid;
  align-content: center;
  padding-block: 9rem 4rem;
  position: relative;
}
/* Ambient light. JS eases --gx/--gy toward the pointer; the defaults keep it
   centred when there's no pointer (touch, reduced motion, JS off). */
.hero-glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-glow::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: min(58rem, 120vw);
  aspect-ratio: 1;
  margin: -29rem 0 0 -29rem;   /* centre the disc on its own origin */
  background: radial-gradient(circle closest-side, var(--glow-core), var(--glow-edge) 72%);
  filter: blur(30px);
  transform: translate3d(var(--gx, 50vw), var(--gy, 42vh), 0);
  will-change: transform;
}
.hero-inner { position: relative; z-index: 2; }

.hero-title { margin-block: 1.75rem 0; }
/* Mask-reveal lines. The box needs padding on both ends: Turkish İ carries a
   dot above the cap-height and g/ş descend below the baseline — a tight
   overflow:hidden box clips both. */
.line-mask {
  display: block;
  overflow: hidden;
  padding-top: 0.12em;
  margin-top: -0.12em;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}
.line-mask > span { display: block; will-change: transform; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.hero-role {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.8vw, 1.5rem);
  font-weight: 400;
  line-height: 1.35;
}
.hero-role span { color: var(--fg-mute); display: block; font-size: 0.8em; }

/* Portrait — double bezel */
.bezel {
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--glass);
}
.bezel-core {
  overflow: hidden;
  border-radius: calc(2rem - 0.5rem);
  box-shadow: var(--bezel-inset);
  background: var(--surface-2);
}

.hero-portrait {
  width: clamp(9rem, 15vw, 15rem);
  flex-shrink: 0;
}
.hero-portrait img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05);
  transition: filter 0.9s var(--ease-out), transform 1.2s var(--ease-out);
}
.hero-portrait:hover img { filter: grayscale(0) contrast(1); transform: scale(1.04); }

/* Marquee ticker */
.ticker {
  overflow: hidden;
  width: 100vw;
  max-width: 100%;
  border-block: 1px solid var(--line);
  padding-block: 1.15rem;
  margin-top: clamp(3rem, 8vh, 6rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; will-change: transform; }
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  font-family: var(--sans);
  font-size: clamp(1rem, 2vw, 1.6rem);
  font-weight: 400;
  color: var(--fg-mute);
  white-space: nowrap;
}
.ticker-track span::after {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}

/* ---------- 7. SECTION HEAD ---------- */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}

/* ---------- 8. MANIFESTO (scroll-lit words) ---------- */
.manifesto p {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.65rem, 4.6vw, 3.9rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
/* Readable by default; scroll only brightens it further */
.manifesto .w { color: var(--fg-mute); transition: color 0.4s linear; }
.anim .manifesto .w { color: var(--fg-faint); }
.manifesto .w.lit { color: var(--fg); }
.manifesto .w.accent.lit { color: var(--sage); font-weight: 800; }

/* ---------- 9. SERVICES ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  overflow: hidden;
}
.svc {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--bg);
  min-height: 13rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.6s var(--ease-out);
  overflow: hidden;
}
.svc::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--card-glow), transparent 58%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}
.svc:hover::before { opacity: 1; }
.svc:hover { background: var(--surface); }
.svc-num {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  color: var(--sage-deep);
}
.svc h3 {
  font-family: var(--sans);
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-top: auto;
}
.svc p { font-size: 0.875rem; color: var(--fg-mute); line-height: 1.6; }

/* ---------- 10. PORTFOLIO SHOWCASE ----------
   List rows + a preview that follows the cursor. Pattern adapted from the
   21st.dev "Project Showcase" component (lerp-eased float, blur/scale swap),
   rewritten for this stack. */

.show-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(1.75rem, 4vh, 2.75rem);
}
.show-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg-dim);
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out),
              border-color 0.4s var(--ease-out);
}
.show-chip:hover { background: var(--glass); color: var(--fg); }
.show-chip.is-on {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}
.show-chip-n {
  font-size: 0.6875rem;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}

/* --- rows --- */
.showcase { border-top: 1px solid var(--line); }

.show-row {
  position: relative;
  display: block;
  border-bottom: 1px solid var(--line);
  /* rows added by "daha fazla" fade in on their own beat */
  animation: rowIn 0.7s var(--ease-out) both;
  animation-delay: calc(var(--d, 0) * 45ms);
}
@keyframes rowIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.show-row-bg {
  position: absolute;
  inset: 0 -1rem;
  border-radius: 1rem;
  background: var(--glass);
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
  pointer-events: none;
}
.show-row:hover .show-row-bg,
.show-row:focus-visible .show-row-bg { opacity: 1; transform: scale(1); }

.show-row-in {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.25rem, 2.4vw, 1.9rem) 0;
}
.show-row-main { min-width: 0; }

.show-row-title {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.show-row-name {
  position: relative;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  transition: color 0.4s var(--ease-out);
}
/* underline grows from the left on hover */
.show-row-name::after {
  content: '';
  position: absolute;
  left: 0; bottom: -0.15em;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-soft);
}
.show-row:hover .show-row-name::after,
.show-row:focus-visible .show-row-name::after { transform: scaleX(1); }

.show-row-arrow {
  display: grid;
  place-items: center;
  width: 1.35rem; height: 1.35rem;
  flex-shrink: 0;
  color: var(--sage);
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-soft);
}
.show-row-arrow svg { width: 100%; height: 100%; }
.show-row:hover .show-row-arrow,
.show-row:focus-visible .show-row-arrow { opacity: 1; transform: none; }

.show-row-desc {
  display: block;
  margin-top: 0.4rem;
  max-width: 52ch;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--fg-mute);
  transition: color 0.4s var(--ease-out);
  /* long summaries stay to two lines so the row rhythm holds */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.show-row:hover .show-row-desc { color: var(--fg-dim); }

.show-row-meta {
  flex-shrink: 0;
  padding-top: 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-variant-numeric: tabular-nums;
  transition: color 0.4s var(--ease-out);
}
.show-row:hover .show-row-meta { color: var(--fg-dim); }

/* --- cursor-following preview --- */
.show-peek {
  position: fixed;
  top: 0; left: 0;
  z-index: 12;
  width: 19rem;
  aspect-ratio: 14/9;
  border-radius: 1rem;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100vw, 0, 0);
  scale: 0.86;
  transition: opacity 0.35s var(--ease-out), scale 0.4s var(--ease-out);
  will-change: transform;
}
.show-peek.is-on { opacity: 1; scale: 1; }
.show-peek-core {
  position: relative;
  width: 100%; height: 100%;
  background: var(--surface-2);
  box-shadow: 0 26px 60px -18px rgba(0, 0, 0, 0.55);
}
.show-peek-core img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  scale: 1.08;
  filter: blur(10px);
  transition: opacity 0.5s var(--ease-out), scale 0.6s var(--ease-out),
              filter 0.5s var(--ease-out);
}
.show-peek-core img.is-on { opacity: 1; scale: 1; filter: none; }
.show-peek-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.22), transparent 55%);
}

/* --- "daha fazla" --- */
.show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 5vh, 3.25rem);
}
.show-more {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.7rem 0.7rem 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-dim);
  transition: background 0.45s var(--ease-out), color 0.45s var(--ease-out),
              border-color 0.45s var(--ease-out);
}
.show-more:hover { background: var(--glass); color: var(--fg); border-color: var(--sage); }
.show-more-ico {
  display: grid; place-items: center;
  width: 1.9rem; height: 1.9rem;
  border-radius: 50%;
  background: var(--glass);
  transition: transform 0.5s var(--ease-soft), background 0.4s var(--ease-out);
}
.show-more-ico svg { width: 13px; height: 13px; }
.show-more:hover .show-more-ico { transform: translateY(2px); background: var(--surface-2); }
.show-more:active { transform: scale(0.98); }

@media (max-width: 620px) {
  .show-row-in { flex-direction: column; gap: 0.5rem; }
  .show-row-meta { padding-top: 0; }
}

/* ---------- 11. ABOUT ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.about-media { position: relative; }
.about-media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: grayscale(0.25);
  will-change: transform;
}
.about-copy p + p { margin-top: 1.35rem; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}
.stat-n {
  font-family: var(--sans);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--sage);
}
.stat-l { font-size: 0.75rem; color: var(--fg-mute); margin-top: 0.5rem; line-height: 1.4; }

/* ---------- 12. CONTACT ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.info-row {
  display: flex;
  gap: 1.25rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.info-row .mono { flex: 0 0 5.5rem; padding-top: 0.2em; }
.info-row a { transition: color 0.4s var(--ease-out); }
.info-row a:hover { color: var(--sage); }

.field { position: relative; margin-bottom: 1.5rem; }
.field input, .field textarea {
  width: 100%;
  padding: 1.05rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--glass);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.4s var(--ease-out), background 0.4s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-mute); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sage);
  background: rgba(159,181,163,0.05);
}
.field label {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 0.6rem;
}

/* ---------- 13. FOOTER ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 3rem 2.5rem;
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.socials { display: flex; gap: 0.6rem; }
.socials a {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--fg-dim);
  transition: transform 0.5s var(--ease-soft), background 0.4s, color 0.4s, border-color 0.4s;
}
.socials a svg { width: 15px; height: 15px; }
.socials a:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--bg);
  transform: translateY(-3px);
}

/* ---------- 14. PROJECT DETAIL ---------- */
.pj-hero {
  min-height: 92dvh;
  display: grid;
  align-content: end;
  padding-block: 10rem 3.5rem;
  position: relative;
}
.pj-cover {
  position: relative;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  border-radius: 2rem;
  padding: 0.5rem;
  border: 1px solid var(--line);
  background: var(--glass);
}
.pj-cover-core {
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--surface-2);
  /* crop the mockup's dead white margin so the device fills the frame */
  aspect-ratio: 16 / 9;
}
/* Logo projects: the mark is line art, so it gets a dark vitrine and is
   contained rather than cropped — same treatment as the archive grid. */
.pj-cover-core.is-mark {
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vw, 5rem);
  background: #17140f;
}
.pj-cover-core.is-mark img {
  width: 100%; height: 100%;
  object-fit: contain;
  transform: none;
  filter: invert(1) brightness(1.9) contrast(0.9);
}
/* Covers are now the real project photography, not a laptop mockup with dead
   white margins, so no zoom-crop — show the shot as shot. */
.pj-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: var(--media-filter);
}
@media (max-width: 720px) {
  .pj-cover-core { aspect-ratio: 4 / 3; }
}

.pj-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.fact { background: var(--bg); padding: 1.75rem clamp(1rem, 2vw, 1.75rem); }
.fact dt { font-size: 0.625rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-mute); }
.fact dd { margin: 0.7rem 0 0; font-family: var(--sans); font-size: 1.05rem; font-weight: 400; }

.pj-body {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
}
.pj-body h2 { position: sticky; top: 7rem; }
.pj-body p + p { margin-top: 1.35rem; }

.swatches { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.sw { text-align: center; }
.sw i {
  display: block;
  width: 4.5rem; height: 4.5rem;
  border-radius: 1rem;
  border: 1px solid var(--line-strong);
  transition: transform 0.6s var(--ease-soft);
}
.sw:hover i { transform: translateY(-5px) scale(1.05); }
.sw b { display: block; margin-top: 0.6rem; font-size: 0.625rem; letter-spacing: 0.1em; color: var(--fg-mute); font-weight: 400; }

.pj-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
}

/* ---------- 15. REVEAL BASE ----------
   Hidden only once JS has confirmed GSAP is live (html.anim). If the CDN
   fails or JS is off, every .rv stays visible instead of blanking the page. */
.anim .rv { opacity: 0; transform: translateY(2.5rem); }
.anim .rv.done { opacity: 1; transform: none; }

/* ---------- 16. RESPONSIVE ---------- */
@media (max-width: 900px) {
  .sec-head { grid-template-columns: 1fr; align-items: start; }
  .about, .contact, .pj-body { grid-template-columns: 1fr; }
  .pj-body h2 { position: static; }
  .col-7, .col-5, .col-12 { grid-column: span 12; }
  .about-media { order: -1; }
  .about-media img { aspect-ratio: 16/10; }
}
@media (max-width: 720px) {
  .nav {
    width: calc(100% - 2rem);
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0.55rem 0.55rem 1.15rem;
  }
  /* On mobile the CTA and the desktop theme button move into the sheet */
  .nav-links, .nav .nav-actions { display: none; }
  .burger { display: block; }
  .sheet-theme { display: inline-flex; }

  .hero-meta { flex-direction: column; align-items: flex-start; }
  .hero-portrait { width: 8rem; }
  .about-stats { grid-template-columns: 1fr; gap: 1.75rem; text-align: left; }
  .card-body { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .info-row { flex-direction: column; gap: 0.35rem; }
  .info-row .mono { flex: none; }

  /* Vertical rhythm was tuned for desktop; on a phone it reads as dead space. */
  .pad { padding-block: clamp(3.5rem, 9vh, 5rem); }
  .hero { min-height: auto; padding-block: 7.5rem 2.5rem; }
  .pj-hero { min-height: auto; padding-block: 7.5rem 2rem; }
  .ticker { margin-top: 2.5rem; }
  .sec-head { margin-bottom: 2.25rem; }
  .about-stats { margin-top: 2rem; padding-top: 1.75rem; }
  .pj-cover { margin-top: 2rem; }
  .pj-next { padding-block: 2.75rem; }
  .foot { padding-block: 2.25rem 2rem; }
  /* Sections that opt out of their top padding shouldn't collapse entirely */
  section[style*="padding-top:0"] { padding-top: 0 !important; }
}

/* ---------- 17. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .rv { opacity: 1 !important; transform: none !important; }
  .grain { animation: none; }
  .manifesto .w { color: var(--fg); }
}

/* ---------- 14. PROJECT PAGE: identity row + shots ---------- */
.pj-ident {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1.5rem, 4vw);
  align-items: center;
}
.pj-ident .pj-facts { margin: 0; }

/* The cover now shows the work itself, so the mark gets its own vitrine.
   Fixed dark plate in both themes — the artwork is black line art. */
.pj-mark {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.pj-mark img {
  width: clamp(8rem, 14vw, 11rem);
  aspect-ratio: 3/2;
  object-fit: contain;
  padding: 1.1rem;
  border-radius: 1rem;
  /* Light plate, no invert filter: a filter on this element would flip the
     background with the artwork, leaving a white mark on a white plate. */
  background: #efece6;
  border: 1px solid var(--line);
}

/* Gallery: masonry-ish rhythm, every third shot spans full width */
.logo-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 0 clamp(1.5rem, 3vh, 2.25rem);
  padding-top: clamp(2rem, 4vh, 3rem);
  border-top: 1px solid var(--line);
}
.logo-head h3 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}
.shot {
  margin: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.shot-wide { grid-column: 1 / -1; }
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.shot:hover img { transform: scale(1.03); }

@media (max-width: 760px) {
  .pj-ident { grid-template-columns: 1fr; }
  .pj-mark { align-items: flex-start; }
  .shots { grid-template-columns: 1fr; }
}

/* ---------- 15. ABOUT SLIDER ---------- */
.about-slider { position: relative; }
.about-slides { position: relative; aspect-ratio: 4/5; }
.about-slides img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s var(--ease-out), transform 1.4s var(--ease-out);
}
.about-slides img.is-on { opacity: 1; transform: none; }

.about-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  margin-top: -1.25rem;
  border-radius: 50%;
  border: 1px solid rgba(244, 241, 236, 0.28);
  background: rgba(13, 11, 10, 0.45);
  color: #f4f1ec;
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out), background 0.4s var(--ease-out),
              transform 0.5s var(--ease-soft);
}
.about-nav svg { width: 14px; height: 14px; }
.about-nav.prev { left: 0.85rem; }
.about-nav.next { right: 0.85rem; }
.about-slider:hover .about-nav,
.about-nav:focus-visible { opacity: 1; }
.about-nav:hover { background: var(--sage); color: #0d0b0a; }
.about-nav.prev:hover { transform: translateX(-2px); }
.about-nav.next:hover { transform: translateX(2px); }

.about-dots {
  position: absolute;
  left: 0; right: 0; bottom: 0.9rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}
.about-dot {
  width: 0.4rem; height: 0.4rem;
  border-radius: 999px;
  background: rgba(244, 241, 236, 0.45);
  transition: width 0.5s var(--ease-soft), background 0.4s var(--ease-out);
}
.about-dot.is-on { width: 1.4rem; background: #f4f1ec; }

/* Touch devices have no hover, so the arrows stay visible there */
@media (hover: none) {
  .about-nav { opacity: 1; }
}

/* ---------- 16. MAP ---------- */
.map-sec { padding-block: clamp(3rem, 8vh, 6rem) 0; }
.map-core {
  position: relative;
  aspect-ratio: 21/9;
  min-height: 18rem;
  background: var(--surface-2);
}
.map-core iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  /* the stock map is bright; settle it into the dark ground */
  filter: var(--map-filter, none);
}
.map-open {
  position: absolute;
  right: 1rem; bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.5rem 0.5rem 1.15rem;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background 0.4s var(--ease-out), transform 0.5s var(--ease-soft);
}
.map-open:hover { background: var(--sage); }
.map-open:active { transform: scale(0.975); }

@media (max-width: 720px) {
  .map-core { aspect-ratio: 4/3; }
  .map-sec { padding-top: 2.5rem; }
}
