/* ============ Self-hosted fonts (Archivo + Jost) ============ */

/* Archivo 400 latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/archivo-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Archivo 400 latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/archivo-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Archivo 500 latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/archivo-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Archivo 500 latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/archivo-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Archivo 600 latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/archivo-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Archivo 600 latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/archivo-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Archivo 700 latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/archivo-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Archivo 700 latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/archivo-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Jost 300 latin-ext */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../assets/fonts/jost-300-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Jost 300 latin */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../assets/fonts/jost-300-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Jost 400 latin-ext */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/jost-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Jost 400 latin */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/jost-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Jost 500 latin-ext */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/jost-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Jost 500 latin */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/jost-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Jost 600 latin-ext */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/jost-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Jost 600 latin */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/jost-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   NestEdge — single page architecture site
   Palette: near-black / warm light gray, B&W photography
   Type: Archivo (display caps) + Jost (geometric body)
   ============================================================ */

:root {
  --black: #141519;
  --dark: #191a1f;
  --dark-2: #1e1f24;
  --light: #e8e7e3;
  --light-2: #efeeea;
  --paper: #ffffff;
  --ink: #161616;
  --ink-soft: #3c3c3a;
  --cream: #dcd8d1;
  --muted: #9a9994;
  --muted-ink: #64635e;
  --hairline-dark: rgba(255, 255, 255, 0.14);
  --hairline-light: rgba(0, 0, 0, 0.14);
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Jost", "Century Gothic", "Futura", sans-serif;
  --pad-x: clamp(1.25rem, 4vw, 4rem);
  --content-max: 1520px;
  --header-h: 78px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* native scrollbar is replaced by the custom one below */
html { scrollbar-width: none; }
html::-webkit-scrollbar,
body::-webkit-scrollbar { display: none; width: 0; height: 0; }

.scrollbar {
  position: fixed;
  top: calc(var(--header-h) + 14px);
  right: 9px;
  bottom: 18px;
  width: 16px;
  z-index: 60;
  color: #fff;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.4s ease;
  cursor: pointer;
}

.scrollbar::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.18);
}

.scrollbar-thumb {
  position: absolute;
  left: 50%;
  width: 3px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  transition: width 0.25s ease;
}

.scrollbar.show,
.scrollbar:hover,
.scrollbar.dragging { opacity: 1; }

.scrollbar:hover .scrollbar-thumb,
.scrollbar.dragging .scrollbar-thumb { width: 5px; }

/* section label that follows the thumb while crossing sections */
.scroll-label {
  position: fixed;
  right: 34px;
  z-index: 60;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transform: translateY(-50%);
  color: #fff;
  mix-blend-mode: difference;
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}

@media (hover: none) {
  .scrollbar,
  .scroll-label { display: none; }
}

img { max-width: 100%; display: block; filter: grayscale(1); }

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

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

section { position: relative; overflow: hidden; }

.section-dark { background: var(--dark); color: var(--cream); }
.section-light { background: var(--light); color: var(--ink); }

/* ---------- Section scaffolding ---------- */

/* full-bleed backgrounds, capped content: keeps the composition tight
   on wide screens (the reference was designed on a 4:3 canvas) */
.section-head,
.about-grid,
.svc-viewport,
.pf-stage,
.ts-stage,
.step,
.contact-grid,
.footer-bar {
  max-width: calc(var(--content-max) + 2 * var(--pad-x));
  margin-inline: auto;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: clamp(4rem, 8vw, 7rem) var(--pad-x) clamp(2rem, 4vw, 3.5rem);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 6.25rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.section-light .section-title { color: var(--ink-soft); }

.section-label {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  white-space: nowrap;
  padding-top: 0.5rem;
}

.head-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.1rem;
}

.nav-arrows { display: flex; gap: 0.6rem; }

.arrow-btn {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid;
  border-radius: 999px;
  transition: background 0.35s, color 0.35s, border-color 0.35s, opacity 0.3s;
}

.ab-ic {
  width: 22px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease-out);
}

.arrow-btn.ab-prev:hover:not([disabled]) .ab-ic { transform: translateX(-4px); }
.arrow-btn.ab-next:hover:not([disabled]) .ab-ic { transform: translateX(4px); }

.section-dark .arrow-btn { color: var(--paper); border-color: rgba(255, 255, 255, 0.32); }
.section-dark .arrow-btn:hover:not([disabled]) { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.section-light .arrow-btn { color: var(--ink); border-color: rgba(0, 0, 0, 0.28); }
.section-light .arrow-btn:hover:not([disabled]) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.arrow-btn[disabled] { opacity: 0.3; cursor: default; }

.cta-arrow { font-family: var(--font-display); }

/* ---------- Loader ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--black);
  display: grid;
  place-items: center;
  will-change: opacity, visibility;
  /* JavaScript hiç çalışmasa bile perde kısa sürede kapanır. */
  animation: loader-failsafe 0.35s ease 2.6s forwards;
}

.loader.loader-failsafe-active {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

@keyframes loader-failsafe {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

.loader-logo {
  width: clamp(190px, 25vw, 330px);
  aspect-ratio: 250.195 / 220;
  height: auto;
  color: var(--cream);
  overflow: visible;
}

/* every piece starts invisible — no flash of the assembled mark before
   the animation takes over; JS reveals each part in sequence */
.loader-logo path,
.loader-logo rect {
  fill: currentColor;
  will-change: transform, opacity;
  opacity: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--pad-x);
  height: var(--header-h);
  background: rgba(22, 23, 27, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #fff;
}

.defs-only { position: absolute; width: 0; height: 0; overflow: hidden; }

.brand { display: inline-flex; align-items: center; justify-self: start; }

.brand-mark {
  width: 62px;
  aspect-ratio: 250.195 / 220;
  height: auto;
  color: #fff;
  transition: opacity 0.25s;
}

.brand-mark path,
.brand-mark rect { fill: currentColor; }

.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.lang-toggle {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0.32rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.lang-toggle:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* sound toggle — small animated waveform */
.sound-toggle {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  width: 36px;
  height: 26px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  transition: border-color 0.25s;
}

.sound-toggle:hover { border-color: #fff; }

/* bar motion is driven by GSAP so on/off blends instead of snapping */
.sbar {
  width: 2px;
  border-radius: 1px;
  background: #fff;
  opacity: 0.5;
}

.sound-toggle .sbar:nth-child(1) { height: 34%; }
.sound-toggle .sbar:nth-child(2) { height: 62%; }
.sound-toggle .sbar:nth-child(3) { height: 44%; }
.sound-toggle .sbar:nth-child(4) { height: 74%; }

/* vertical WhatsApp CTA — appears once the hero is scrolled past */
.wa-cta {
  position: fixed;
  left: clamp(0.7rem, 1.5vw, 1.5rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 38;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.05rem 0.72rem;
  background: rgba(22, 23, 27, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #efedea;
  opacity: 0;
  visibility: hidden;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.wa-cta:hover { background: #efedea; color: #191a1f; border-color: #efedea; }

.wa-icon { width: 17px; height: 17px; fill: currentColor; }

.wa-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.burger {
  justify-self: center;
  display: grid;
  gap: 5px;
  padding: 10px 6px;
}

.burger span {
  display: block;
  width: 22px;
  height: 1.6px;
  background: #fff;
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}

.burger.open span:nth-child(1) { transform: translateY(3.3px) rotate(45deg); }
.burger.open span:nth-child(2) { transform: translateY(-3.3px) rotate(-45deg); }

.header-cta {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.header-cta:hover { border-color: rgba(255, 255, 255, 0.6); }

/* ---------- Menu overlay ---------- */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #15161a;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: calc(var(--header-h) + 20px) clamp(1.5rem, 5vw, 3rem) 1.6rem;
  opacity: 0;
  visibility: hidden;
}

.menu-inner {
  display: grid;
  text-align: left;
  margin: auto;
  width: min(100%, 640px);
}

.menu-inner a {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--cream);
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: clamp(0.55rem, 1.6vh, 0.95rem) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  opacity: 0.85;
  transition: opacity 0.25s, transform 0.35s var(--ease-out);
}

.menu-inner a:last-child { border-bottom: none; }

.menu-inner a:hover { opacity: 1; transform: translateX(10px); }

.menu-num { font-family: var(--font-body); font-size: 0.9rem; color: var(--muted); }

/* quiet contact line pinned under the list — the menu reads as a designed
   page rather than a floating list */
.menu-meta {
  width: min(100%, 640px);
  margin: 0 auto;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.4rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.menu-meta a { color: var(--muted); transition: color 0.25s; }

.menu-meta a:hover { color: var(--cream); }

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
}

.hero-lines { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; }

.hero-lines span {
  position: absolute;
  top: -10%;
  height: 120%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.06) 30%, rgba(255, 255, 255, 0.06) 70%, transparent);
  transform: rotate(14deg);
}

.hero-lines span:nth-child(1) { left: 8%; }
.hero-lines span:nth-child(2) { left: 24%; }
.hero-lines span:nth-child(3) { left: 41%; }
.hero-lines span:nth-child(4) { left: 58%; }
.hero-lines span:nth-child(5) { left: 74%; }
.hero-lines span:nth-child(6) { left: 90%; }

/* wider than the viewport so the outer columns bleed off both edges,
   like the reference */
.hero-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(1.1rem, 2.4vw, 2.6rem);
  padding: clamp(1.1rem, 2.2vw, 2.2rem) 0 0;
  width: 110%;
  margin-left: -5%;
  align-items: start;
  flex: 0 0 auto;
}

.strip-img {
  overflow: hidden;
  height: clamp(300px, 44vh, 640px);
}

.strip-col:nth-child(even) .strip-img { height: clamp(264px, 39vh, 570px); }

.strip-img img { width: 100%; height: 100%; object-fit: cover; }

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem var(--pad-x) clamp(2.5rem, 6vh, 4.5rem);
  position: relative;
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--pad-x));
  margin-inline: auto;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 7.2vw, 8.25rem);
  line-height: 1.0;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--cream);
}

.line-mask { display: block; overflow: hidden; }
.line-mask .line { display: block; }

.hero-sub {
  margin-top: 1.4rem;
  max-width: 34rem;
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  color: #cfcbc4;
}

/* rotating ring CTA */
.circle-btn {
  position: absolute;
  right: clamp(2rem, 7vw, 7rem);
  bottom: clamp(2.5rem, 9vh, 5.5rem);
  width: clamp(118px, 10vw, 148px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--cream);
}

.circle-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: currentColor;
  font-family: var(--font-display);
  font-size: 8.6px;
  /* Safari ignores textLength on textPath — spacing tuned per language so the
     ring closes naturally; Blink still normalises via textLength */
  letter-spacing: 1.23px;
  font-weight: 500;
  animation: cb-spin 18s linear infinite;
}

html[lang="tr"] .circle-ring { letter-spacing: 0.78px; }

.circle-btn:hover .circle-ring { animation-play-state: paused; }

.circle-arrow {
  line-height: 0;
  transition: transform 0.35s var(--ease-out);
}

/* an SVG arrow — the ↗ glyph falls back to its emoji form on iOS */
.circle-arrow svg {
  width: clamp(19px, 1.8vw, 24px);
  height: clamp(19px, 1.8vw, 24px);
  display: block;
}

.circle-btn:hover .circle-arrow { transform: translate(5px, -5px); }

@keyframes cb-spin {
  to { transform: rotate(360deg); }
}

/* ---------- About ---------- */

.about-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 46%) 1fr;
  gap: clamp(2rem, 6vw, 7rem);
  padding: 0 var(--pad-x) clamp(4rem, 8vw, 7rem);
}

.about-media {
  height: clamp(320px, 36vw, 580px);
  overflow: hidden;
}

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

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  text-align: right;
  position: relative;
  z-index: 1;
}

.about-copy p:first-child {
  max-width: 33rem;
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  color: var(--ink-soft);
}

.about-since {
  margin-top: 3rem;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 500;
  color: var(--ink-soft);
}

.watermark {
  position: absolute;
  color: rgba(0, 0, 0, 0.075);
  pointer-events: none;
  aspect-ratio: 250.195 / 220;
  height: auto;
}

.section-dark .watermark { color: rgba(255, 255, 255, 0.055); }

.watermark-c {
  position: absolute;
  font-family: var(--font-body);
  color: rgba(0, 0, 0, 0.12);
  font-size: 1.4rem;
  pointer-events: none;
}

.section-dark .watermark-c { color: rgba(255, 255, 255, 0.1); }

.about-watermark { width: clamp(200px, 24vw, 310px); right: 18%; bottom: 4rem; }
.about-c { right: 15.5%; bottom: calc(4rem + clamp(200px, 24vw, 310px) * 0.82); }

/* ---------- Stats (studio arch in numbers) — editorial specimen row ---------- */

.stats {
  max-width: calc(var(--content-max) + 2 * var(--pad-x));
  margin-inline: auto;
  padding: clamp(1rem, 2vw, 2rem) var(--pad-x) clamp(4.5rem, 8vw, 7.5rem);
}

.stats-head {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: clamp(2rem, 3.5vw, 3.2rem);
}

.stats-eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-ink);
  white-space: nowrap;
}

.stats-rule {
  flex: 1;
  height: 1px;
  background: var(--hairline-light);
  transform-origin: left center;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 4vw, 4.5rem);
}

.stat { display: flex; flex-direction: column; }

.stat-idx {
  font-size: 0.72rem;
  color: var(--muted-ink);
  margin-bottom: 0.9rem;
}

.stat-num-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
  line-height: 1;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.9rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  transition: color 0.4s;
}

.stat:hover .stat-num { color: var(--ink); }

.stat-suffix {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  color: var(--muted-ink);
  margin-top: 0.25em;
}

.stat-bar {
  height: 1px;
  background: var(--ink);
  margin: 1.1rem 0 0.8rem;
  transform-origin: left center;
}

.stat-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

@media (max-width: 820px) {
  .stats-row { grid-template-columns: 1fr 1fr; gap: 2.2rem 1.8rem; }
}

/* ---------- Services ---------- */

.svc-viewport { overflow: hidden; padding: 0 var(--pad-x) clamp(4rem, 8vw, 7rem); }

.svc-track {
  display: flex;
  gap: clamp(1rem, 1.6vw, 1.5rem);
  will-change: transform;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.svc-track:active { cursor: grabbing; }

.svc-card > img { -webkit-user-drag: none; }

/* lead card runs landscape, the rest square-ish; widths blend as the
   lead role moves (fractions mirrored in the JS step math) */
.svc-card {
  position: relative;
  flex: 0 0 calc(34% - clamp(1rem, 1.6vw, 1.5rem));
  height: clamp(400px, 58vh, 580px);
  overflow: hidden;
  isolation: isolate;
  transition: flex-basis 0.7s var(--ease-out);
}

.svc-card.is-lead { flex-basis: calc(52% - clamp(1rem, 1.6vw, 1.5rem)); }

/* colour lens: the area inside the cursor ring reveals the image in colour */
.svc-card > img { transition: transform 0.7s var(--ease-out); }

.lens-host { isolation: isolate; }

.lens-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: cover;
  z-index: 0;
  border-radius: inherit;
  filter: none !important;
  clip-path: circle(0px at 50% 50%); /* JS writes the live circle inline */
  pointer-events: none !important;
  transition: none !important;
}

.svc-card > .lens-img { z-index: -1; }

/* mobile: the project strip stacks vertically and loads in batches */
.pf-more {
  display: none;
  margin: 1.7rem auto 0;
  padding: 0.95rem 2.1rem;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  transition: background 0.3s, color 0.3s;
}

.pf-more:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 680px) {
  #pf-prev, #pf-next { display: none; }
  #pf-track { flex-direction: column; transform: none !important; }
  /* column direction: flex-basis would hijack the height axis — let the
     cards keep their explicit height */
  #pf-track .svc-card, #pf-track .svc-card.is-lead { flex-basis: auto; }
  #pf-track .svc-card.pf-hidden { display: none; }
  .pf-more:not([hidden]) { display: inline-flex; }
  .portfolio { text-align: center; }
  .portfolio .section-head, .portfolio .svc-viewport { text-align: left; }
}

.svc-card::after { transition: opacity 0.6s var(--ease-out); }

.svc-card:hover::after { opacity: 0.82; }

.svc-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.7s var(--ease-out);
}

.svc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 21, 25, 0.25) 0%, rgba(20, 21, 25, 0.05) 40%, rgba(20, 21, 25, 0.72) 100%);
}

.svc-card:hover > img { transform: scale(1.045); }

/* every card carries its own meta chips, always visible */
.svc-chips {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  right: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  color: #eee;
  background: rgba(24, 25, 29, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

.chip svg { width: 14px; height: 14px; stroke-width: 1.2; }

.svc-body {
  position: absolute;
  inset: auto 1.1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.svc-body h3 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.1;
  text-transform: uppercase;
  color: #f2f0ec;
}

.svc-body p { font-size: 0.88rem; color: #d8d5cf; max-width: 24rem; }

.svc-cta {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.85rem 1.1rem;
  transition: background 0.3s;
}

.svc-cta:hover { background: var(--cream); }

/* ---------- Portfolio ---------- */

.pf-stage {
  display: grid;
  grid-template-columns: 1fr 1.05fr 1fr;
  gap: clamp(1rem, 1.8vw, 1.8rem);
  align-items: end;
  padding: 0 var(--pad-x);
}

.pf-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 0.5rem;
  border-top: 1px solid var(--hairline-light);
  padding-top: 0.5rem;
}

.pf-imgwrap { position: relative; overflow: hidden; }

.pf-side { cursor: pointer; }

/* the centre-featured carousel adapts to dark sections (services) */
.section-dark .pf-meta { color: #cfccc5; border-top-color: rgba(255, 255, 255, 0.16); }
.section-dark .pf-caption { color: #cfccc5; }

.pf-side .pf-imgwrap { height: clamp(250px, 25vw, 400px); }

.pf-center .pf-imgwrap { height: clamp(340px, 33vw, 540px); }

.pf-imgwrap img { width: 100%; height: 100%; object-fit: cover; }

.pf-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(84px, 9vw, 124px);
  aspect-ratio: 250.195 / 220;
  height: auto;
  transform: translate(-50%, -60%);
  color: #fff;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.45));
}

.pf-caption {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  max-width: 30rem;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 0.15rem;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3.5rem, 6vw, 5.5rem);
}

.dots button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: transparent;
}

.dots button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  transition: background 0.3s, transform 0.3s;
}

.section-dark .dots button::after { background: rgba(255, 255, 255, 0.2); }

.dots button.active::after { background: var(--ink); transform: scale(1.25); }

/* ---------- Process ---------- */

.process { padding-bottom: clamp(3.5rem, 6vw, 6rem); }

.step {
  position: relative;
  display: grid;
  gap: clamp(1.4rem, 2.2vw, 2.2rem) clamp(1.5rem, 3vw, 3.5rem);
  padding: clamp(3rem, 5vw, 5rem) var(--pad-x);
}

.step + .step::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--pad-x);
  right: var(--pad-x);
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.step-num {
  position: absolute;
  top: clamp(1.1rem, 2vw, 1.8rem);
  right: var(--pad-x);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.38);
}

.step-media { overflow: hidden; }

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

.step-text h3 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.9rem, 2.7vw, 2.7rem);
  text-transform: uppercase;
  color: #f0eee9;
}

.step-text p {
  margin-top: 0.6rem;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.5;
  color: #cfccc5;
}

.step-1 {
  grid-template-columns: minmax(0, 30%) 1fr;
  grid-template-areas:
    "side main"
    "side text";
}

.step-1 .step-media-main { grid-area: main; height: clamp(300px, 30vw, 480px); }
.step-1 .step-media-side { grid-area: side; height: clamp(380px, 38vw, 600px); align-self: end; }
.step-1 .step-text { grid-area: text; text-align: right; justify-self: end; max-width: 30rem; }

.step-mark-1 { width: clamp(130px, 13vw, 210px); left: var(--pad-x); top: clamp(3rem, 5vw, 5rem); }
.step-c-1 { left: calc(var(--pad-x) + clamp(130px, 13vw, 210px) + 8px); top: clamp(3rem, 5vw, 5rem); }

.step-2 {
  grid-template-columns: 1fr minmax(0, 52%);
  align-items: end;
}

.step-2 .step-media { height: clamp(280px, 28vw, 440px); grid-column: 2; }
.step-2 .step-text { grid-column: 1; grid-row: 1; align-self: end; max-width: 28rem; }

.step-3 {
  grid-template-columns: minmax(0, 52%) 1fr;
  align-items: end;
}

.step-3 .step-media { height: clamp(280px, 28vw, 440px); }
.step-3 .step-text { text-align: right; justify-self: end; max-width: 28rem; }

.step-mark-3 { width: clamp(130px, 13vw, 210px); right: var(--pad-x); top: clamp(3rem, 5vw, 5rem); }
.step-c-3 { right: calc(var(--pad-x) - 4px); top: calc(clamp(3rem, 5vw, 5rem) - 4px); }

.step-4 { grid-template-columns: 1fr; }

.step-4 .step-media { height: clamp(300px, 34vw, 540px); }

/* ---------- Testimonials ---------- */

.ts-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--pad-x);
  min-height: 300px;
}

.ts-client {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.8rem;
}

.ts-spark { width: 30px; height: 30px; fill: var(--ink); }

.ts-client-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.ts-quote {
  max-width: 44rem;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.ts-person {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.ts-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.ts-person-meta { text-align: left; display: grid; }

.ts-person-meta strong { font-weight: 500; font-size: 1rem; color: var(--ink); }

.ts-person-meta span { font-size: 0.78rem; color: var(--muted-ink); }

/* ---------- Contact ---------- */

.contact { background: var(--black); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 480px);
  gap: clamp(2.5rem, 6vw, 7rem);
  padding: clamp(4.5rem, 9vw, 8rem) var(--pad-x);
  align-items: center;
}

.contact-copy .section-title { font-size: clamp(2.4rem, 4.6vw, 4rem); }

.contact-copy p {
  margin-top: 1.5rem;
  max-width: 26rem;
  font-size: 0.98rem;
  color: #c9c5be;
}

.contact-info {
  line-height: 2;
  color: var(--muted);
}

.contact-info a { border-bottom: 1px solid rgba(255, 255, 255, 0.25); transition: border-color 0.25s, color 0.25s; }
.contact-info a:hover { color: #fff; border-color: #fff; }

/* minimal map card — drafting-grid texture, pulsing pin, directions link */
.map-card {
  margin-top: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  max-width: 26rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(255, 255, 255, 0.05) 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, rgba(255, 255, 255, 0.05) 27px 28px),
    rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s, background-color 0.3s;
}

.map-card:hover { border-color: rgba(255, 255, 255, 0.45); }

.map-pin {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--cream);
}

.map-pin svg { width: 22px; height: 22px; position: relative; z-index: 1; }

.map-ripple {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: map-ripple 2.6s ease-out infinite;
}

@keyframes map-ripple {
  0% { transform: scale(0.45); opacity: 0.9; }
  70% { transform: scale(1.05); opacity: 0; }
  100% { transform: scale(1.05); opacity: 0; }
}

.map-meta { display: grid; gap: 0.2rem; }

.map-meta strong { font-weight: 500; color: var(--cream); font-size: 0.95rem; }

.map-dir {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  gap: 0.4rem;
  transition: color 0.25s;
}

.map-card:hover .map-dir { color: #fff; }

.map-card:hover .map-dir .cta-arrow { transform: translateX(4px); }

.map-dir .cta-arrow { transition: transform 0.3s var(--ease-out); }

.contact-card {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: grid;
  gap: 1.35rem;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; }

.field {
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.field input,
.field textarea {
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid #111;
  padding: 0.4rem 0 0.55rem;
  background: transparent;
  border-radius: 0;
  resize: none;
  outline: none;
}

.field input::placeholder,
.field textarea::placeholder { color: #b3b1ac; }

.field input:focus,
.field textarea:focus { border-bottom-width: 2px; }

/* KVKK consent — custom checkbox with a drawn tick */
.kvkk-field {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-soft);
  -webkit-user-select: none;
  user-select: none;
}

.kvkk-field input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.kvkk-field .checkbox {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: transparent;
  transition: background 0.3s var(--ease-out), border-color 0.3s, transform 0.2s;
}

.kvkk-field:hover .checkbox { transform: scale(1.08); }

.kvkk-field .checkbox svg { width: 11px; height: 9px; }

.kvkk-field .checkbox path {
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  transition: stroke-dashoffset 0.35s var(--ease-out) 0.05s;
}

.kvkk-field input:checked ~ .checkbox { background: var(--ink); border-color: var(--ink); }

.kvkk-field input:checked ~ .checkbox path { stroke-dashoffset: 0; }

.kvkk-field input:focus-visible ~ .checkbox { outline: 2px solid var(--ink); outline-offset: 2px; }

.kvkk-link {
  font: inherit;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: opacity 0.25s;
}

.kvkk-link:hover { opacity: 0.65; }

.kvkk-field.error .checkbox { border-color: #b3261e; }

.send-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--black);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 1rem 1.2rem;
  transition: background 0.3s;
}

.send-btn:hover { background: #262626; }

.send-btn.sent { background: #1d1d1d; }

/* ---------- Footer ---------- */

.footer {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(4.5rem, 9vw, 8rem) var(--pad-x) 0;
}

.footer-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
  color: var(--ink-soft);
}

.clock { width: 74px; height: 74px; }

.clock-city {
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

.footer-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.footer-nav {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.footer-nav a { transition: opacity 0.25s; }
.footer-nav a:hover { opacity: 0.6; }

.footer-cta {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--black);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 1rem 1.6rem;
  border-radius: 6px;
  transition: background 0.3s;
}

.footer-cta:hover { background: #262626; }

.footer-legal {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted-ink);
  font-size: 0.78rem;
}

.legal-link {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  padding: 0.3rem 0.2rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, color 0.25s;
}

.legal-link:hover { color: var(--ink); border-color: var(--ink); }

/* project detail modal — dark blurred mask, split panel, image in colour */
.proj-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: rgba(20, 21, 25, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
}

.proj-panel {
  width: min(100%, 1080px);
  height: min(84vh, 720px);
  height: min(84dvh, 720px);
  display: grid;
  grid-template-columns: minmax(0, 54%) 1fr;
  background: var(--dark-2);
  color: var(--cream);
  overflow: hidden;
  position: relative;
}

.proj-close {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  z-index: 2;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--muted);
  transition: color 0.25s, transform 0.3s;
}

.proj-close:hover { color: #fff; transform: rotate(90deg); }

.proj-media { position: relative; overflow: hidden; }

.proj-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0);
}

/* image gallery pill — arrows sit inactive until a project has more shots */
.proj-gallery {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.45rem;
  background: rgba(22, 23, 27, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.proj-gallery .arrow-btn {
  width: 30px;
  height: 26px;
  border-color: transparent;
}

.proj-gallery .ab-ic { width: 15px; height: 8px; }

.proj-g-count {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #e8e6e1;
  min-width: 34px;
  text-align: center;
}

.proj-info {
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  min-height: 0;
}

.proj-num {
  font-size: 0.8rem;
  color: var(--muted);
}

.proj-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-top: 0.5rem;
}

.proj-cat {
  margin-top: 0.3rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.proj-facts {
  margin-top: 1.4rem;
}

.proj-facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.proj-facts div:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }

.proj-facts dt {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: center;
}

.proj-facts dd { color: var(--cream); }

.proj-desc {
  margin-top: 1.3rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #cfccc5;
  overflow-y: auto;
  min-height: 0;
  flex: 1 1 auto;
  overscroll-behavior: contain;
  padding-right: 0.6rem;
  scrollbar-width: thin;
}

.proj-desc::-webkit-scrollbar { width: 4px; }
.proj-desc::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.25); border-radius: 2px; }

.proj-foot {
  margin-top: 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.proj-cta {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 0.25rem;
  transition: border-color 0.25s, color 0.25s;
}

.proj-cta:hover { color: #fff; border-color: #fff; }

.proj-modal .arrow-btn { color: var(--paper); border-color: rgba(255, 255, 255, 0.38); }
.proj-modal .arrow-btn:hover:not([disabled]) { background: var(--paper); color: var(--ink); border-color: var(--paper); }

@media (max-width: 820px) {
  .proj-panel {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 42%) 1fr;
    height: min(88vh, 760px);
    height: min(88dvh, 760px);
  }

  /* the image stays put; the info column scrolls as one piece with a
     minimal thumb — the description no longer scrolls separately inside it */
  .proj-info {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .proj-info::-webkit-scrollbar { width: 3px; }
  .proj-info::-webkit-scrollbar-thumb { background: rgba(232, 231, 227, 0.28); border-radius: 2px; }

  .proj-desc {
    overflow: visible;
    flex: 0 0 auto;
    padding-right: 0;
  }
}

/* legal modal — dark blurred mask, centred paper panel */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: rgba(20, 21, 25, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
}

.legal-panel {
  width: min(100%, 720px);
  max-height: min(82vh, 780px);
  max-height: min(82dvh, 780px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(1.4rem, 2.6vw, 2.2rem);
}

.legal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  padding-bottom: 0.9rem;
}

.legal-tabs { display: flex; flex-wrap: wrap; gap: 0.3rem 1.3rem; }

.legal-tab {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-ink);
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}

.legal-tab:hover { color: var(--ink); }

.legal-tab.active { color: var(--ink); border-color: var(--ink); }

.legal-close {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted-ink);
  transition: color 0.25s, transform 0.3s;
}

.legal-close:hover { color: var(--ink); transform: rotate(90deg); }

.legal-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 1.1rem 0 0.7rem;
}

.legal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.9rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-soft);
  scrollbar-width: thin;
}

.legal-body::-webkit-scrollbar { width: 4px; }
.legal-body::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.25); border-radius: 2px; }

.legal-body h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 1.3rem 0 0.4rem;
}

.legal-body h4:first-child { margin-top: 0.2rem; }

.legal-body p { margin-bottom: 0.7rem; }

.legal-body ul { margin: 0 0 0.7rem 1.1rem; }

.legal-body li { margin-bottom: 0.3rem; }

/* consent banner — quiet card, bottom left */
.consent {
  position: fixed;
  left: clamp(0.9rem, 2vw, 1.6rem);
  bottom: clamp(0.9rem, 2vw, 1.6rem);
  z-index: 140;
  width: min(340px, calc(100vw - 2rem));
  background: rgba(22, 23, 27, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #dad7d1;
  padding: 1.1rem 1.2rem;
  opacity: 0;
  visibility: hidden;
}

.consent-text { font-size: 0.82rem; line-height: 1.55; }

.consent-actions {
  margin-top: 0.9rem;
  display: flex;
  justify-content: flex-end;
  gap: 1.1rem;
  align-items: center;
}

.consent-more {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}

.consent-more:hover { color: #fff; border-color: #fff; }

.consent-ok {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--ink);
  padding: 0.5rem 1rem;
  transition: background 0.25s;
}

.consent-ok:hover { background: var(--cream); }

.footer-bar {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.74rem;
  color: var(--muted-ink);
}

.socials { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  transition: background 0.3s, color 0.3s;
}

.socials a svg { width: 17px; height: 17px; }

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

.footer-giant {
  position: relative;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  height: clamp(110px, 19.5vw, 335px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: #c9c8c3;
  transform: translateY(3%);
}

/* same width as the capped content sections above */
.giant-mark {
  width: min(100%, var(--content-max));
  aspect-ratio: 472.24 / 128.858;
  height: auto;
  color: #c9c8c3;
  flex: 0 0 auto;
}

/* ---------- Custom cursor (desktop pointer devices, JS-armed) ---------- */

html.has-cursor,
html.has-cursor * { cursor: none !important; }

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 500;
  pointer-events: none;
  border-radius: 50%;
}

/* only the ring inverts against content — the dot keeps its true neon colour */
.cursor-ring { mix-blend-mode: difference; }

/* light-painting layer under the cursor — softly blurred neon streak */
.cursor-trail {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 499;
  pointer-events: none;
  filter: blur(2px) saturate(1.25);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: hsl(160 100% 60%);
  margin: -3px 0 0 -3px;
  box-shadow: 0 0 12px 2.5px hsl(160 100% 60% / 0.5);
}

.cursor-ring {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  margin: -15px 0 0 -15px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

/* ---------- Reveal helpers (JS sets final state) ---------- */

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* iOS: lenis.stop() cannot block native touch scrolling — a real overflow
   lock is toggled alongside it whenever an overlay opens */
html.is-locked, html.is-locked body { overflow: hidden; }

.menu-overlay, .proj-modal, .legal-modal { overscroll-behavior: contain; }

::selection { background: #1e1f24; color: #e8e7e3; }
.section-dark ::selection, .hero ::selection, .proj-modal ::selection, .menu-overlay ::selection { background: #e8e7e3; color: #0a0a0a; }

/* keyboard focus: inputs otherwise only thicken a 1px border */
input:focus-visible, textarea:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 600;
  padding: 0.7rem 1.1rem;
  background: #141519;
  color: #efedea;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transform: translateY(-160%);
  transition: transform 0.25s ease;
}

.skip-link:focus-visible { transform: none; }

/* contact form delivery states */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  margin: 0.9rem 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.form-status.show { opacity: 1; transform: none; }
.form-status.ok { color: var(--ink); }
.form-status.err { color: #8a3b32; }

.send-btn[disabled] { opacity: 0.6; cursor: progress; }

/* project modal: quiet outbound link to the project's reel */
.proj-ig {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 231, 227, 0.65);
  border-bottom: 1px solid rgba(232, 231, 227, 0.3);
  padding-bottom: 3px;
  transition: color 0.3s, border-color 0.3s;
}

.proj-ig:hover { color: #e8e7e3; border-color: #e8e7e3; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-copy { align-items: flex-start; text-align: left; }
  .svc-card { flex-basis: calc(44% - clamp(1rem, 1.6vw, 1.5rem)); }
  .svc-card.is-lead { flex-basis: calc(58% - clamp(1rem, 1.6vw, 1.5rem)); }
  .step-1 { grid-template-columns: 1fr; grid-template-areas: "main" "side" "text"; }
  .step-1 .step-text { text-align: left; }
  .contact-grid { grid-template-columns: 1fr; }
  .pf-stage { grid-template-columns: 1fr 1.05fr 1fr; }
}

@media (max-width: 680px) {
  .wa-text { display: none; }
  .wa-cta {
    padding: 0.85rem;
    top: auto;
    left: auto;
    right: 1rem;
    bottom: 1.1rem;
    transform: none;
  }
  .header-cta { display: none; }
  .watermark, .watermark-c { display: none; }
  .footer-legal { flex-direction: column; gap: 0.55rem; }
  .legal-link { white-space: nowrap; }
  .footer-legal > span { display: none; }
  .footer-bar { flex-direction: column; align-items: center; text-align: center; gap: 1.1rem; }
  .socials { justify-content: center; }
  /* Turkish headline "DÖNÜŞTÜRÜYORUZ" is one long word — size down so it never clips */
  html[lang="tr"] .hero-title { font-size: clamp(1.8rem, 8.4vw, 3rem); }
  /* keep horizontal swipes on the services stage while the page still pans vertically */
  .pf-stage { touch-action: pan-y; }
  .hero-strip { grid-template-columns: repeat(3, 1fr); width: 108%; margin-left: -4%; }
  .strip-img { height: clamp(240px, 34vh, 420px); }
  .strip-col:nth-child(even) .strip-img { height: clamp(210px, 30vh, 380px); }
  .circle-btn { position: relative; right: auto; bottom: auto; margin-top: 2.2rem; align-self: flex-end; }
  .hero-strip .strip-col:nth-child(n+4) { display: none; }
  .svc-card, .svc-card.is-lead { flex-basis: 100%; }
  .pf-stage { grid-template-columns: 1fr; align-items: start; }
  .pf-side { display: none; }
  .section-head { flex-direction: column; }
  .head-side { flex-direction: row; align-items: center; gap: 1.5rem; }
  .field-row { grid-template-columns: 1fr; }
  .step-2, .step-3 { grid-template-columns: 1fr; }
  .step-2 .step-media { grid-column: 1; }
  .step-2 .step-text { grid-row: auto; }
  .step-3 .step-text { text-align: left; }
}

/* ---------- Portfolio v2: editorial index + full-screen project stories ---------- */

.portfolio {
  padding: clamp(6rem, 11vw, 10rem) var(--pad-x) clamp(6rem, 10vw, 9rem);
  text-align: left;
}

.portfolio-head {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.7fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: end;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid rgba(20, 21, 25, 0.22);
}

.portfolio-kicker {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

.portfolio-title {
  max-width: 9ch;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8.9vw, 9rem);
  font-weight: 500;
  line-height: 0.84;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.portfolio-intro {
  max-width: 35rem;
  justify-self: end;
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  line-height: 1.65;
  color: var(--muted-ink);
}

.portfolio-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0 clamp(2.2rem, 4vw, 3.6rem);
}

.portfolio-filters { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.pf-filter {
  padding: 0.62rem 0.95rem;
  border: 1px solid rgba(20, 21, 25, 0.24);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.25s, background 0.25s, border-color 0.25s;
}

.pf-filter:hover,
.pf-filter.is-active { color: var(--paper); background: var(--ink); border-color: var(--ink); }

.portfolio-count {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 2rem);
  row-gap: clamp(3rem, 7vw, 7rem);
}

.project-card { grid-column: span 6; min-width: 0; }
.project-card:nth-child(6n + 1), .project-card:nth-child(6n + 4) { grid-column: span 7; }
.project-card:nth-child(6n + 2), .project-card:nth-child(6n + 3) { grid-column: span 5; }
.project-card[hidden] { display: none; }

.project-card-button { display: block; width: 100%; text-align: left; }

.project-card-media {
  position: relative;
  overflow: hidden;
  background: #d8d5cf;
  aspect-ratio: 4 / 3;
}

.project-card:nth-child(6n + 2) .project-card-media,
.project-card:nth-child(6n + 5) .project-card-media { aspect-ratio: 4 / 5; }
.project-card:nth-child(6n + 4) .project-card-media { aspect-ratio: 16 / 10; }

.project-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 10, 0.42));
  opacity: 0.55;
  transition: opacity 0.6s var(--ease-out);
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.35);
  transform: scale(1.002);
  transition: transform 0.9s var(--ease-out), filter 0.7s var(--ease-out);
}

.project-card-button:hover .project-card-media img,
.project-card-button:focus-visible .project-card-media img { transform: scale(1.045); filter: saturate(1); }
.project-card-button:hover .project-card-media::after { opacity: 0.25; }

.project-card-index {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #fff;
}

.project-card-open {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: rgba(245, 243, 239, 0.93);
  color: var(--ink);
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.35s, transform 0.35s;
}

.project-card-open svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-card-button:hover .project-card-open,
.project-card-button:focus-visible .project-card-open { opacity: 1; transform: none; }

.project-card-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  padding-top: 1rem;
  border-top: 1px solid rgba(20, 21, 25, 0.22);
}

.project-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.project-card-sub {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--muted-ink);
}

.project-card-year {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.portfolio .pf-more {
  margin-top: clamp(3rem, 6vw, 5rem);
}
.portfolio .pf-more:not([hidden]) { display: flex; }

/* Project presentation replaces the small legacy modal. */
.proj-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: block;
  padding: 0;
  background: #121315;
  color: #efede8;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.proj-shell { width: 100%; height: 100%; background: #121315; }

.proj-topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 2.5vw, 2.5rem);
  background: rgba(18, 19, 21, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.proj-brand {
  display: inline-flex;
  align-items: center;
  color: #efede8;
}

.proj-brand-mark { display: block; width: 118px; height: auto; }

.proj-top-title {
  position: absolute;
  left: 50%;
  max-width: min(42vw, 34rem);
  overflow: hidden;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  color: #d5d2ca;
  pointer-events: none;
}

.proj-top-actions { display: flex; align-items: center; gap: 0.45rem; }
.proj-position { margin-right: 0.8rem; font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.12em; color: #aaa8a2; }

.proj-nav-btn,
.proj-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-width: 38px;
  padding: 0 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #efede8;
  transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.25s;
}

.proj-nav-btn:hover,
.proj-close:hover { color: #121315; background: #efede8; border-color: #efede8; transform: none; }
.proj-close { position: static; gap: 0.7rem; margin-left: 0.45rem; font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; }
.proj-close span:last-child { font-size: 1.25rem; line-height: 1; }

.proj-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.proj-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }

.proj-scrollbar {
  position: absolute;
  z-index: 7;
  top: 86px;
  right: 7px;
  bottom: 18px;
  width: 16px;
  opacity: 0;
  transition: opacity .35s ease;
  cursor: pointer;
  touch-action: none;
}
.proj-scrollbar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(255,255,255,.16);
}
.proj-scrollbar-thumb {
  position: absolute;
  left: 50%;
  width: 3px;
  min-height: 44px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35);
  transition: width .2s ease;
}
.proj-scrollbar.show,
.proj-scrollbar:hover,
.proj-scrollbar.dragging { opacity: 1; }
.proj-scrollbar:hover .proj-scrollbar-thumb,
.proj-scrollbar.dragging .proj-scrollbar-thumb { width: 5px; }

.proj-hero { position: relative; min-height: 78vh; min-height: 78svh; margin-top: 0; background: #252629; overflow: hidden; }
.proj-hero img { width: 100%; height: 100%; min-height: 78vh; min-height: 78svh; object-fit: cover; filter: none; }
.proj-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08) 55%, rgba(0,0,0,.6)); pointer-events: none; }

.proj-hero-caption {
  position: absolute;
  z-index: 1;
  left: clamp(1rem, 3vw, 3rem);
  right: clamp(1rem, 3vw, 3rem);
  bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.proj-intro {
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 0.7fr;
  gap: clamp(2rem, 6vw, 8rem);
  padding: clamp(4rem, 9vw, 9rem) var(--pad-x);
}

.proj-heading { display: flex; flex-direction: column; gap: 1.1rem; }
.proj-num { font-size: 0.72rem; color: #8f8e89; }
.proj-title { margin: 0; max-width: 11ch; font-family: var(--font-display); font-size: clamp(3.1rem, 7vw, 7.5rem); font-weight: 500; line-height: 0.88; letter-spacing: -0.055em; text-transform: uppercase; }
.proj-cat { margin: 0 0 1.4rem; font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; color: #9f9d96; }
.proj-desc { margin: 0; max-width: 38rem; font-size: clamp(1rem, 1.3vw, 1.16rem); line-height: 1.75; color: #c8c5bd; overflow: visible; }

.proj-facts { margin: 0; align-self: start; }
.proj-facts div { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 1rem; padding: 0.75rem 0; border-top: 1px solid rgba(255,255,255,.16); font-size: 0.82rem; }
.proj-facts div:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.proj-facts dt { font-family: var(--font-display); font-size: 0.62rem; letter-spacing: 0.11em; text-transform: uppercase; color: #85847f; }
.proj-facts dd { margin: 0; color: #efede8; }

.proj-sections {
  position: sticky;
  top: 72px;
  z-index: 3;
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.85rem var(--pad-x);
  background: rgba(18, 19, 21, 0.88);
  border-block: 1px solid rgba(255,255,255,.13);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}
.proj-sections::-webkit-scrollbar { display: none; }
.proj-section-link { flex: 0 0 auto; padding: 0.56rem 0.9rem; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-family: var(--font-display); font-size: 0.62rem; letter-spacing: .1em; text-transform: uppercase; color: #c1beb7; }
.proj-section-link:hover { background: #efede8; color: #121315; border-color: #efede8; }

.proj-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.55rem, 1vw, 1rem);
  padding: clamp(1rem, 2vw, 2rem) var(--pad-x) clamp(5rem, 10vw, 10rem);
}

.proj-group-heading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: clamp(3rem, 7vw, 7rem);
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.proj-group-heading:first-child { margin-top: 1rem; }
.proj-group-heading h4 { margin: 0; font-family: var(--font-display); font-size: clamp(1.4rem, 2.8vw, 2.8rem); font-weight: 500; text-transform: uppercase; }
.proj-group-heading span { font-size: .68rem; letter-spacing: .12em; color: #85847f; }

.proj-gallery-item {
  grid-column: span 6;
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #252629;
  cursor: zoom-in;
  contain: paint;
}
.proj-gallery-item.is-wide { grid-column: 1 / -1; }
.proj-gallery-item.is-portrait { grid-column: span 5; }
.proj-gallery-item.is-portrait + .proj-gallery-item:not(.is-wide) { grid-column: span 7; }
.proj-gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: none; transition: transform .8s var(--ease-out), opacity .4s; }
.proj-gallery-item img[data-src] { opacity: 0; }
.proj-gallery-item img.is-loaded { opacity: 1; }
.proj-gallery-item:hover img { transform: scale(1.025); }
.proj-next-block {
  padding: clamp(4rem, 8vw, 8rem) var(--pad-x);
  border-top: 1px solid rgba(255,255,255,.16);
}
.proj-next-block p, .proj-footer p { font-family: var(--font-display); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #85847f; }
.proj-next-block button { display: flex; width: 100%; justify-content: space-between; gap: 2rem; align-items: end; margin-top: 1.2rem; font-family: var(--font-display); font-size: clamp(2.6rem, 7vw, 7rem); font-weight: 500; line-height: .92; letter-spacing: -.04em; text-align: left; text-transform: uppercase; }

.proj-footer { display: flex; justify-content: space-between; align-items: end; gap: 2rem; padding: clamp(3rem, 6vw, 6rem) var(--pad-x); background: #efede8; color: #121315; }
.proj-footer p { color: #74736e; }
.proj-cta { font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 2.2rem); letter-spacing: -.02em; border-bottom: 1px solid currentColor; }

.proj-lightbox {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  place-items: center;
  padding: 1rem;
  background: rgba(8, 8, 9, .96);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.proj-lightbox[aria-hidden="false"] { opacity: 1; visibility: visible; }
.proj-lightbox figure { width: 100%; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; gap: .75rem; }
.proj-lightbox img { max-width: 100%; max-height: calc(100vh - 4rem); max-height: calc(100dvh - 4rem); object-fit: contain; filter: none; }
.proj-lightbox figcaption { font-family: var(--font-display); font-size: .68rem; letter-spacing: .12em; color: #a6a49e; }
.proj-lightbox-nav, .proj-lightbox-close { color: #efede8; font-size: 1.35rem; }
.proj-lightbox-close { position: absolute; top: 1rem; right: 1.2rem; z-index: 1; font-size: 2rem; }

@media (max-width: 900px) {
  .portfolio-head { grid-template-columns: 1fr; align-items: start; }
  .portfolio-intro { justify-self: start; }
  .proj-intro { grid-template-columns: 1fr 1fr; }
  .proj-heading { grid-column: 1 / -1; }
  .proj-title { max-width: 15ch; }
}

@media (max-width: 680px) {
  .portfolio { padding-inline: 1rem; }
  .portfolio-title { font-size: clamp(3.2rem, 17vw, 5rem); }
  .portfolio-toolbar { align-items: flex-start; }
  .portfolio-filters { flex-wrap: nowrap; overflow-x: auto; margin-right: -1rem; padding-right: 1rem; scrollbar-width: none; }
  .portfolio-filters::-webkit-scrollbar { display: none; }
  .portfolio-count { display: none; }
  .portfolio-grid { display: block; }
  .project-card { margin-bottom: 3.2rem; }
  .project-card:nth-child(n) .project-card-media { aspect-ratio: 4 / 3; }
  .project-card:nth-child(3n + 2) .project-card-media { aspect-ratio: 4 / 5; }
  .project-card-open { opacity: 1; transform: none; }

  .proj-topbar { height: 62px; }
  .proj-top-title { display: none; }
  .proj-position { display: none; }
  .proj-brand-mark { width: 90px; }
  .proj-top-actions { width: auto; margin-left: auto; justify-content: flex-end; }
  .proj-close span:first-child { display: none; }
  .proj-close { padding: 0; width: 38px; }
  .proj-hero, .proj-hero img { min-height: 64vh; min-height: 64svh; }
  .proj-intro { grid-template-columns: 1fr; gap: 2.4rem; padding-inline: 1rem; }
  .proj-heading { grid-column: auto; }
  .proj-title { font-size: clamp(3rem, 15vw, 5.2rem); }
  .proj-sections { top: 62px; padding-inline: 1rem; }
  .proj-gallery-grid { display: block; padding-inline: 1rem; }
  .proj-group-heading { margin-top: 4rem; }
  .proj-gallery-item { margin-top: .75rem; aspect-ratio: auto !important; }
  .proj-gallery-item img { display: block; height: auto; }
  .proj-next-block, .proj-footer { padding-inline: 1rem; }
  .proj-footer { align-items: flex-start; flex-direction: column; }
  .proj-lightbox { grid-template-columns: 44px minmax(0, 1fr) 44px; padding-inline: .35rem; }
}

@media (hover: none) {
  .proj-scrollbar { display: none; }
}

/* Safari repaints full-screen backdrop blur while a nested gallery scrolls.
   Solid translucent bars preserve the appearance without the compositor cost. */
html.is-safari .proj-topbar,
html.is-safari .proj-sections {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(18, 19, 21, .97);
}

/* Large filtered covers plus scale/filter interpolation trigger full image
   repaints in WebKit. Safari keeps the editorial overlay and a restrained
   scale cue, while each media tile gets its own bounded paint area. */
html.is-safari .project-card-media {
  contain: layout paint style;
}

html.is-safari .project-card-media img {
  filter: none;
  transform: none;
  transition: transform .35s var(--ease-out);
}

html.is-safari .project-card-button:hover .project-card-media img,
html.is-safari .project-card-button:focus-visible .project-card-media img {
  filter: none;
  transform: scale(1.015);
}

html.is-safari .project-card-media::after {
  opacity: .42;
  transition-duration: .3s;
}

/* Safari may restore the previous scroll position before ScrollTrigger has
   measured the document after a refresh. Never let entrance-animation start
   states strand real content off-screen or transparent. */
html.is-safari .reveal,
html.is-safari .reveal-img,
html.is-safari .reveal-img img,
html.is-safari .section-title,
html.is-safari .footer-giant,
html.is-safari #stats .stat,
html.is-safari #stats .stat-suffix {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  clip-path: none !important;
}

html.is-safari #stats .stats-rule,
html.is-safari #stats .stat-bar {
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .project-card-media img, .proj-gallery-item img { transition: none; }
}
