/* ============================================================
   ZeroNerf — Premium Software & Digital Growth Agency
   Direction: cinematic, handcrafted, crimson over charcoal.
   Type-led. Accent used sparingly. Never flat black.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:        #0f0f12;
  --bg-2:      #141418;
  --bg-3:      #1b1b22;
  --crimson-1: #2a0f14;
  --crimson-2: #3a1218;
  --void:      #0a090c;

  --text:      #ece9ee;
  --text-dim:  #9a949f;
  --text-faint:#5e5862;

  --accent:    #b3122a;   /* deep crimson — sparingly */
  --accent-2:  #87101f;   /* darker ruby */
  --accent-soft:#c9445b;  /* soft ruby — tiny highlights */

  --line:      rgba(236, 233, 238, 0.07);
  --line-2:    rgba(236, 233, 238, 0.13);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Inter", -apple-system, sans-serif;

  --maxw: 1320px;
  --gut: clamp(20px, 5vw, 84px);

  --ease: cubic-bezier(0.65, 0.05, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --r: 16px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  color: var(--text);
  line-height: 1.5;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* the "sky" behind the planet — layered, never flat black */
  background:
    radial-gradient(120% 90% at 78% 8%, #1a121c 0%, rgba(26,18,28,0) 52%),
    radial-gradient(120% 80% at 12% 100%, #1c0e14 0%, rgba(28,14,20,0) 55%),
    linear-gradient(180deg, #0f0f12 0%, #121016 45%, #0e0d12 100%);
  background-attachment: fixed;
}
img, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }

/* lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.section {
  position: relative;
  padding-block: clamp(96px, 14vh, 200px);
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 13px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

/* Type scale — Inter Display (high opsz, tight tracking) */
.display, .h2, .h3, .logo, .stat__num, .quote p, .cine-line {
  font-variation-settings: "opsz" 32;
}
.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-size: clamp(40px, 7vw, 104px);
}
.display em, .h2 em { font-style: normal; color: var(--accent-soft); }
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-size: clamp(34px, 5vw, 68px);
}
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(21px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.lead {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 56ch;
  font-weight: 400;
}
.muted { color: var(--text-dim); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.005em;
  position: relative;
  transition: transform .5s var(--ease-out), background .4s, color .4s, border-color .4s;
  will-change: transform;
}
.btn--primary { background: var(--accent); color: #fff; isolation: isolate; }
.btn--primary::before {
  content: ""; position: absolute; inset: -14px; border-radius: inherit;
  background: radial-gradient(closest-side, rgba(179,18,42,0.55), rgba(179,18,42,0) 72%);
  filter: blur(10px); opacity: 0.5; z-index: -1; pointer-events: none;
  transition: opacity .5s var(--ease-out), filter .5s var(--ease-out);
}
.btn--primary:hover { background: var(--accent-soft); }
.btn--primary:hover::before { opacity: 0.9; filter: blur(16px); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn__arrow { display: inline-flex; transition: transform .5s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(5px); }

/* ============================================================
   Loading screen
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--void);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 6vw, 64px);
  letter-spacing: -0.03em;
}
.loader__logo .o { color: var(--accent); }
.loader__bar {
  width: min(280px, 60vw);
  height: 1px;
  background: var(--line-2);
  position: relative;
  overflow: hidden;
}
.loader__bar i {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s linear;
}
.loader__pct {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Three.js canvas + darkness veil
   ============================================================ */
#scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#scene canvas { width: 100% !important; height: 100% !important; }

#eclipse {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 120% at 50% 50%, rgba(10,9,12,0) 0%, rgba(10,9,12,0) 30%, var(--void) 82%),
    linear-gradient(180deg, rgba(10,9,12,0) 60%, var(--void) 100%);
  opacity: 0;
}

/* ============================================================
   Header / Nav
   ============================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 24px 0;
  transition: padding .5s var(--ease), background .5s var(--ease), backdrop-filter .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  padding: 14px 0;
  background: rgba(15,15,18,0.55);
  backdrop-filter: blur(20px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -0.03em;
}
.logo .o { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 38px; }
.nav__links { display: flex; gap: 34px; }
.nav__links a {
  font-size: 14px; color: var(--text-dim); position: relative;
  transition: color .35s; padding: 4px 0; font-weight: 500;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: 11px 22px; font-size: 14px; }

.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 110; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { bottom: 17px; }
.burger.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.open span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 105;
  background: var(--void);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gut); gap: 6px;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu__close {
  position: absolute; top: 18px; right: var(--gut);
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  transition: border-color .4s var(--ease), transform .5s var(--ease-out);
}
.mobile-menu__close:hover { border-color: var(--accent); transform: rotate(90deg); }
.mobile-menu__close::before, .mobile-menu__close::after {
  content: ""; position: absolute; width: 17px; height: 1.5px; background: var(--text);
}
.mobile-menu__close::before { transform: rotate(45deg); }
.mobile-menu__close::after { transform: rotate(-45deg); }
/* the burger hides while the menu is open — the in-menu close button takes over */
.burger.open { opacity: 0; pointer-events: none; }
.mobile-menu a {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 8vw, 50px); line-height: 1.3;
  letter-spacing: -0.03em; color: var(--text);
}
.mobile-menu a .idx { font-size: 12px; color: var(--accent); vertical-align: super; margin-right: 10px; font-weight: 500; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 120px; padding-bottom: 60px; z-index: 2;
}
.hero__eyebrow { margin-bottom: 30px; }
.hero h1 { max-width: 17ch; }
.hero__meta { margin-top: clamp(40px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 22px 40px; align-items: center; }
.hero__sub { max-width: 42ch; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; bottom: 34px; left: var(--gut);
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-faint);
}
.scroll-hint .dot { width: 28px; height: 46px; border: 1px solid var(--line-2); border-radius: 20px; position: relative; }
.scroll-hint .dot::after {
  content: ""; position: absolute; top: 8px; left: 50%;
  width: 3px; height: 7px; background: var(--accent); border-radius: 3px;
  transform: translateX(-50%); animation: scrolldot 2s var(--ease) infinite;
}
@keyframes scrolldot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 16px); } 100% { opacity: 0; }
}

/* ============================================================
   Journey spacer (camera pull toward planet → darkness)
   ============================================================ */
.void { height: 320vh; position: relative; z-index: 2; pointer-events: none; }

/* ============================================================
   Cinematic typography sequence (over the dark planet)
   ============================================================ */
.cinematic { position: relative; z-index: 3; }
.cinematic__pin {
  height: 100svh; position: relative;
  display: grid; place-items: center; text-align: center;
  padding: 0 var(--gut);
}
.cinematic__pin::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 50%, rgba(10,9,12,0.55), rgba(10,9,12,0) 75%);
  pointer-events: none;
}
.cine-line {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(20ch, 92vw);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(38px, 6.4vw, 96px); line-height: 1.02; letter-spacing: -0.035em;
  opacity: 0; z-index: 1; text-wrap: balance;
}
.cine-line .word { display: inline-block; }
.cine-line--brand {
  font-size: clamp(56px, 13vw, 200px); letter-spacing: -0.045em; font-weight: 700;
}
.cine-line--brand .o { color: var(--accent); }
.cine-line em { font-style: normal; color: var(--accent-soft); }

/* ============================================================
   Content scenes — layered gradients, soft transitions
   ============================================================ */
.below {
  position: relative; z-index: 2;
  background:
    linear-gradient(180deg,
      var(--void) 0%,
      #100e13 7%,
      #131119 28%,
      #15101a 46%,
      #120f16 64%,
      #15111c 82%,
      #100e14 100%);
}
.below::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 60vh;
  background: linear-gradient(180deg, var(--void), rgba(10,9,12,0));
  pointer-events: none;
}
/* per-scene atmospheric accents */
.scene-glow::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 70% at var(--gx, 80%) var(--gy, 20%), rgba(60,18,24,0.45), rgba(60,18,24,0) 60%);
}
.section > .wrap { position: relative; z-index: 1; }

/* ============================================================
   Philosophy
   ============================================================ */
.philo__grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 80px); }
.philo__lead-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: end; }
.philo__pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 54px); }
.pillar { padding-top: 30px; border-top: 1px solid var(--line-2); }
.pillar__num { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--accent-soft); }
.pillar h4 { font-size: 23px; font-weight: 600; margin: 20px 0 14px; letter-spacing: -0.02em; }
.pillar p { color: var(--text-dim); font-size: 16px; line-height: 1.6; }

/* ============================================================
   Services — fixed-size cards, horizontal carousel
   No size change on hover (prevents layout shift below the fold).
   ============================================================ */
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; margin-bottom: clamp(50px, 6vw, 84px); }
.services__viewport {
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none;
  border-top: 1px solid var(--line); padding-top: clamp(30px, 4vw, 50px);
  scroll-snap-type: x proximity; cursor: grab; user-select: none;
}
.services__viewport.dragging { cursor: grabbing; scroll-snap-type: none; }
.services__viewport.scrubbing { scroll-snap-type: none; }
.services__viewport::-webkit-scrollbar { display: none; }
.services__track { display: flex; gap: 22px; width: max-content; padding: 6px 56px 6px 6px; }
.srv-card { flex: 0 0 auto; width: clamp(240px, 21vw, 300px); scroll-snap-align: start; -webkit-user-drag: none; }
.srv-card img { -webkit-user-drag: none; }
.srv-card__box {
  position: relative; height: clamp(360px, 34vw, 430px);
  border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 28px; overflow: hidden;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(236,233,238,0.03), rgba(236,233,238,0) 45%);
  transition: border-color .65s var(--ease-out), box-shadow .65s var(--ease-out);
}
.srv-card__box::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,15,18,0.1) 0%, rgba(15,15,18,0.55) 58%, rgba(15,15,18,0.94) 100%);
}
.srv-card__media {
  position: absolute; inset: 0; z-index: 0; opacity: 0;
  transition: opacity .8s var(--ease-out); pointer-events: none;
}
.srv-card:hover .srv-card__media, .srv-card:focus-visible .srv-card__media { opacity: 0.4; }
.srv-card:hover .srv-card__box, .srv-card:focus-visible .srv-card__box {
  border-color: var(--accent);
  box-shadow: 0 24px 54px -26px rgba(179,18,42,0.45);
}
.srv-card__glyph {
  position: absolute; z-index: 1; right: -18px; bottom: 54px;
  width: clamp(120px, 13vw, 168px); height: clamp(120px, 13vw, 168px);
  color: var(--text); opacity: 0.05; pointer-events: none;
  transform: rotate(-6deg); transition: opacity .75s var(--ease-out);
}
.srv-card__glyph svg { width: 100%; height: 100%; }
.srv-card:hover .srv-card__glyph, .srv-card:focus-visible .srv-card__glyph { opacity: 0.09; color: var(--accent-soft); }
.srv-card__num {
  position: absolute; top: 26px; right: 26px; z-index: 2;
  font-family: var(--font-display); font-weight: 600; font-size: 12px; color: var(--text-faint);
}
.srv-card__icon {
  position: relative; z-index: 2; margin-bottom: auto;
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--accent-soft);
  background: rgba(15,15,18,0.4);
  transition: border-color .65s var(--ease-out), background .65s var(--ease-out);
}
.srv-card__icon svg { width: 19px; height: 19px; }
.srv-card:hover .srv-card__icon, .srv-card:focus-visible .srv-card__icon { border-color: var(--accent); background: rgba(179,18,42,0.16); }
.srv-card__text { position: relative; z-index: 2; margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.srv-card__title {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 1.6vw, 22px); letter-spacing: -0.02em; line-height: 1.2;
  /* fixed footprint (2 lines) regardless of actual wrap, so short titles
     don't sit lower than titles that wrap to a second line */
  height: 2.4em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.srv-card__desc {
  color: var(--text-dim); font-size: 14.5px; line-height: 1.55;
  opacity: 0; max-height: 0; overflow: hidden;
  transition: opacity .7s var(--ease-out), max-height .85s var(--ease-out);
}
.srv-card:hover .srv-card__desc, .srv-card:focus-visible .srv-card__desc { opacity: 1; max-height: 100px; transition: opacity .7s var(--ease-out) .1s, max-height .85s var(--ease-out); }
.services__nav { display: flex; align-items: center; gap: 20px; margin-top: clamp(24px, 3vw, 36px); }
.services__progress {
  flex: 1 1 auto; height: 3px; border-radius: 3px; background: var(--line-2);
  position: relative; overflow: hidden;
}
.services__progress-fill {
  position: absolute; top: 0; left: 0; height: 100%; border-radius: 3px;
  background: var(--accent-soft);
}
.services__arrows { display: flex; gap: 10px; flex-shrink: 0; }
.services__arrow {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; color: var(--text);
  transition: border-color .35s var(--ease-out), background .35s var(--ease-out), opacity .3s;
}
.services__arrow:hover { border-color: var(--accent); background: rgba(179,18,42,0.12); }
.services__arrow:disabled { opacity: 0.3; pointer-events: none; }

/* ============================================================
   Projects
   ============================================================ */
.projects__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 3vw, 46px); }
.project { position: relative; }
.project--lg { grid-column: span 7; }
.project--sm { grid-column: span 5; }
.project--full { grid-column: span 12; }
.project__media { width: 100%; border-radius: var(--r); overflow: hidden; background: var(--bg-2); position: relative; }
.project__media image-slot { width: 100%; display: block; }
.project__media--brand { background: var(--bg-3); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; }
.project__media--brand image-slot { flex: none; width: auto; display: block; }

/* Brand showcase tiles */
.brand-tile {
  position: relative; overflow: hidden; height: 200px; box-sizing: border-box;
  transition: box-shadow .5s var(--ease-out), border-color .5s var(--ease-out);
}
.project:hover .brand-tile { border-color: var(--accent); box-shadow: 0 24px 54px -26px rgba(179,18,42,0.45); }
.brand-tile__logo { position: relative; z-index: 2; transition: transform .6s var(--ease-out); }
.project:hover .brand-tile__logo { transform: scale(1.05); }
.brand-tile__logo image-slot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transition: opacity .5s var(--ease-out);
}
.brand-tile__logo .logo-white { opacity: 0.92; }
.brand-tile__logo .logo-color { opacity: 0; }
.project:hover .brand-tile__logo .logo-white { opacity: 0; }
.project:hover .brand-tile__logo .logo-color { opacity: 1; }
.brand-tile__arrow {
  position: absolute; right: 18px; bottom: 16px; z-index: 3; font-size: 15px; color: rgba(236,233,238,0.4);
  opacity: 0; transform: translate(-6px, 6px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.project:hover .brand-tile__arrow { opacity: 1; transform: translate(0, 0); }
.project__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 20px; gap: 20px; }
.project__title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.project__cat { font-size: 13px; color: var(--text-dim); letter-spacing: 0.02em; }
.project__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tag-chip { font-size: 12px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 100px; color: var(--text-dim); }

/* ============================================================
   Why choose
   ============================================================ */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.why__list { display: grid; gap: 1px; }
.why__item { padding: 30px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start; }
.why__item:last-child { border-bottom: 1px solid var(--line); }
.why__k { font-family: var(--font-display); font-weight: 600; color: var(--accent-soft); font-size: 18px; }
.why__item h4 { font-size: 21px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.02em; }
.why__item p { color: var(--text-dim); font-size: 16px; line-height: 1.55; }

/* ============================================================
   Process
   ============================================================ */
.process__track { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(20px, 2vw, 36px); }

.step { padding-top: 26px; border-top: 1px solid var(--line-2); min-height: 200px; display: flex; flex-direction: column; gap: 18px; }
.step__n { font-family: var(--font-display); font-weight: 600; font-size: 34px; color: var(--accent-soft); line-height: 1; letter-spacing: -0.02em; }
.step h4 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--text-dim); line-height: 1.5; }

/* ============================================================
   Slogan — cinematic mid-page statement (non-pinned scroll reveal)
   ============================================================ */
.slogan { padding-block: clamp(120px, 16vw, 220px); }
.slogan .wrap { display: flex; justify-content: center; }
.slogan__line {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 5.4vw, 80px); line-height: 1.15; letter-spacing: -0.03em;
  text-align: center; max-width: 20ch; text-wrap: balance;
}
.slogan__line em { font-style: normal; color: var(--accent-soft); }
.slogan__line .word { display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(40px); }
@media (prefers-reduced-motion: reduce) {
  .slogan__line .word { opacity: 1; filter: none; transform: none; }
}

/* ============================================================
   Testimonials
   ============================================================ */
.testi { display: grid; gap: clamp(30px, 4vw, 60px); grid-template-columns: repeat(2, 1fr); }
.quote {
  padding: clamp(34px, 3.5vw, 54px); border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(42,15,20,0.35), rgba(15,15,18,0.2));
  display: flex; flex-direction: column; gap: 30px;
}
.quote__mark { font-family: var(--font-display); font-weight: 600; font-size: 56px; line-height: 0; color: var(--accent-soft); height: 28px; }
.quote p { font-size: clamp(21px, 2.2vw, 29px); font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; }
.quote__by { display: flex; align-items: center; gap: 16px; margin-top: auto; }
.quote__avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; font-weight: 600; color: #fff; font-size: 15px; }
.quote__name { font-size: 15px; font-weight: 600; }
.quote__role { font-size: 13px; color: var(--text-dim); }

/* ============================================================
   FAQ
   ============================================================ */
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; font-size: clamp(18px, 1.9vw, 23px); font-weight: 600; letter-spacing: -0.02em; color: var(--text); transition: color .35s; }
.faq__q:hover { color: var(--accent-soft); }
.faq__icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--accent-soft); transition: transform .45s var(--ease); }
.faq__icon::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.faq__icon::after { left: 50%; top: 0; width: 1.5px; height: 100%; transform: translateX(-50%); }
.faq__item.open .faq__icon::after { transform: translateX(-50%) scaleY(0); }
.faq__a { overflow: hidden; height: 0; }
.faq__a-inner { padding-bottom: 28px; color: var(--text-dim); font-size: 16.5px; line-height: 1.6; max-width: 60ch; }

/* ============================================================
   Contact
   ============================================================ */
.contact { position: relative; z-index: 2; }
.contact__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 90px); }
.contact h2 { max-width: 14ch; }
.contact__info { margin-top: 46px; display: grid; gap: 30px; }
.contact__info .row { display: grid; gap: 6px; }
.contact__info .k { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }
.contact__info .v { font-size: 19px; }
.contact__info .v a:hover { color: var(--accent-soft); }

.form { display: grid; gap: 24px; }
.field { display: grid; gap: 10px; position: relative; }
.field label { font-size: 13px; letter-spacing: 0.02em; color: var(--text-dim); }
.field input, .field textarea, .field select {
  background: transparent; border: none; border-bottom: 1px solid var(--line-2);
  color: var(--text); font-family: inherit; font-size: 16px; padding: 12px 0; transition: border-color .4s; width: 100%;
}
.field select option { background: var(--bg-2); }
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field.error input, .field.error textarea, .field.error select { border-color: var(--accent); }
.field .err { font-size: 12px; color: var(--accent-soft); opacity: 0; transition: opacity .3s; }
.field.error .err { opacity: 1; }
.select-fancy__native { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.select-fancy { position: relative; }
.select-fancy__trigger {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: transparent; border: none; border-bottom: 1px solid var(--line-2);
  color: var(--text); font-family: inherit; font-size: 16px; padding: 12px 0; text-align: left;
  transition: border-color .4s;
}
.select-fancy__trigger:hover { border-color: var(--text-dim); }
.select-fancy.is-open .select-fancy__trigger,
.select-fancy__trigger:focus-visible { outline: none; border-color: var(--accent); }
.select-fancy__label { color: var(--text); }
.select-fancy__trigger.is-placeholder .select-fancy__label { color: var(--text-faint); }
.select-fancy__chevron { color: var(--text-dim); transition: transform .35s var(--ease-out); flex-shrink: 0; }
.select-fancy.is-open .select-fancy__chevron { transform: rotate(180deg); color: var(--accent-soft); }
.select-fancy__menu {
  position: absolute; z-index: 20; top: calc(100% + 10px); left: 0; right: 0;
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 6px; box-shadow: 0 24px 54px -20px rgba(0,0,0,0.6);
  max-height: 280px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.98); transform-origin: top;
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out), visibility 0s linear .28s;
}
.select-fancy.is-open .select-fancy__menu {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out), visibility 0s;
}
.select-fancy__menu li {
  padding: 11px 14px; font-size: 14.5px; color: var(--text-dim); border-radius: 8px; cursor: pointer;
  transition: background .2s, color .2s;
}
.select-fancy__menu li:hover,
.select-fancy__menu li.is-active { background: rgba(179,18,42,0.12); color: var(--text); }
.select-fancy__menu li.is-selected { color: var(--text); font-weight: 600; }
.select-fancy__menu li.is-selected::after { content: "✓"; float: right; color: var(--accent-soft); }
.select-fancy__menu::-webkit-scrollbar { width: 8px; }
.select-fancy__menu::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
.form__submit { justify-self: start; margin-top: 8px; }
.form__success { display: none; padding: 20px; border: 1px solid #2e8b57; border-radius: var(--r); color: #6fd39a; font-size: 15px; }
.form__success.show { display: block; }

/* ============================================================
   Footer
   ============================================================ */
.footer { position: relative; z-index: 2; background: var(--void); border-top: 1px solid var(--line); padding-top: clamp(60px, 7vw, 100px); padding-bottom: 40px; }
.footer__top { display: grid; grid-template-columns: 1.3fr 0.85fr 0.85fr 0.85fr; gap: 40px; padding-bottom: clamp(50px, 6vw, 80px); }
.footer__brand .logo { font-size: 34px; }
.footer__brand p { color: var(--text-dim); margin-top: 20px; max-width: 34ch; }
.social-row { display: flex; gap: 10px; margin-top: 26px; }
.social-icon {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; color: var(--text-dim);
  transition: border-color .4s var(--ease-out), color .4s, transform .4s var(--ease-out);
}
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover { border-color: var(--accent); color: var(--accent-soft); transform: translateY(-3px); }
.footer__cta { margin-top: 30px; padding: 13px 24px; font-size: 14px; }
.footer__contact { display: grid; gap: 13px; }
.footer__contact li { color: var(--text-dim); font-size: 15px; }
.footer__col h5 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 22px; }
.footer__col ul { display: grid; gap: 13px; }
.footer__col a { color: var(--text-dim); font-size: 15px; transition: color .3s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 30px; border-top: 1px solid var(--line); color: var(--text-faint); font-size: 13px; }
.footer__bigmark {
  margin-top: 24px; user-select: none; overflow: hidden;
  width: 100%;
}
.footer__bigmark svg { display: block; width: 100%; height: auto; }
.footer__bigmark text {
  font-family: var(--font-display); font-weight: 600;
  font-size: 200px; letter-spacing: -3px;
  fill: rgba(236, 233, 238, 0.055);
  stroke: none;
}
.footer__bigmark .fm-o { fill: rgba(179, 18, 42, 0.42); }


/* ============================================================
   Reveal utility + progress
   ============================================================ */
.reveal { opacity: 0; }

/* Scroll-reveal görünümü CSS geçişiyle (compositor sürüşlü → rAF/ticker'dan
   bağımsız, performanslı). .below ile sınırlı; hero/cinematic GSAP'le yönetilir.
   .is-visible class'ı JS tarafından (getBoundingClientRect ile) eklenir. */
.below .reveal {
  transform: translateY(30px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  will-change: opacity, transform;
}
.below .reveal[data-rev="lines"] { transform: translateY(18px); }
.below .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .below .reveal { opacity: 1; transform: none; transition: none; }
}
.progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--accent); width: 0%; z-index: 200; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .philo__lead-row { grid-template-columns: 1fr; align-items: start; }
  .philo__pillars { grid-template-columns: 1fr; gap: 30px; }
  .why { grid-template-columns: 1fr; }
  .process__track { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .faq__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .sec-head { grid-template-columns: 1fr; }
  .testi { grid-template-columns: 1fr; }
  .project--lg, .project--sm, .project--full { grid-column: span 12; }
  .process__track { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .void { height: 240vh; }
}
/* touch devices have no hover — show each card's description/media by
   default instead of gating it behind an interaction that can't happen */
@media (hover: none) {
  .srv-card__desc { opacity: 1; max-height: 100px; }
  .srv-card__media { opacity: 0.4; }
  .srv-card__icon { border-color: var(--accent); background: rgba(179,18,42,0.16); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint .dot::after { animation: none; }
}
