/* İdeal Bilişim
   Order: fonts · tokens · base · layout · header · buttons · hero · services · process ·
   projects · about · cta · page head · products · values · contact · footer · motion */

/* ---------- Fonts (self-hosted Geologica, variable 300–800) ---------- */
@font-face {
  font-family: "Geologica";
  src: url("../fonts/geologica-latin-ext.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  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-20C4, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geologica";
  src: url("../fonts/geologica-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  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;
}

/* Accent serif (Instrument Serif italic, OFL): single emphasised words in headlines */
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  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-20C4, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  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;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand colours, measured from the office sign */
  --wall: #1F252B;        /* blue-charcoal of the sign's phone/web panels */
  --wall-raised: #283038;
  --wall-line: rgba(244, 245, 243, 0.13);
  --lime: #B8CC00;        /* chartreuse of the sign's accent bars */
  --lime-hover: #C8DA26;
  --lime-ink: #456300;    /* green that passes contrast on light grounds (5.6:1 on --bed) */
  --leaf: #3F7D0A;        /* deep green of the logo mark's lower curve */
  --mark-gradient: linear-gradient(135deg, var(--lime) 0%, #8FB400 45%, var(--leaf) 100%);
  --glow: #FFC777;        /* warm LED halo behind the channel letters */
  --sign: #F4F5F3;        /* white sign face */
  --bed: #E6E8E5;         /* light section ground */
  --bed-line: rgba(31, 37, 43, 0.16);
  --error: #B42318;

  --font: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Instrument Serif", Georgia, "Times New Roman", serif;

  /* Type scale (classical: 14 · 17 · 20 · 24 · 36 · 56 · 72) */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
  --step-4: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  --step-5: clamp(2.25rem, 1.6rem + 3.4vw, 4.5rem);

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --header-h: 72px;

  /* The "seed" shape from the logo: two opposite corners rounded */
  --leaf-s: 0 10px 0 10px;
  --leaf-m: 0 14px 0 14px;
  --leaf-l: 0 28px 0 28px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  font-weight: 350;
  line-height: 1.6;
  color: var(--sign);
  background: var(--wall);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
:focus-visible {
  outline: 2px solid var(--focus, var(--lime));
  outline-offset: 3px;
}
::selection {
  background: var(--lime);
  color: var(--wall);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--lime);
  color: var(--wall);
  font-weight: 600;
  border-radius: var(--leaf-s);
}
.skip-link:focus {
  top: 12px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Tones: each section picks one; components read --muted / --ink-accent from it */
.tone-dark {
  background: var(--wall);
  color: var(--sign);
  --muted: #A9B0B7;
  --ink-accent: var(--lime);
  --rule: var(--wall-line);
  --focus: var(--lime);
}
.tone-light {
  background: var(--bed);
  color: var(--wall);
  --muted: #50575E;
  --ink-accent: var(--lime-ink);
  --rule: var(--bed-line);
  --focus: var(--lime-ink);
}
.tone-white {
  background: var(--sign);
  color: var(--wall);
  --muted: #50575E;
  --ink-accent: var(--lime-ink);
  --rule: var(--bed-line);
  --focus: var(--lime-ink);
}
.tone-lime {
  background: var(--lime);
  color: var(--wall);
  --muted: #3A4A00;
  --ink-accent: var(--wall);
  --rule: rgba(31, 37, 43, 0.25);
  --focus: var(--wall);
}

/* ---------- Layout & type ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}
.section {
  padding-block: clamp(72px, 10vw, 136px);
}
.title-xl {
  font-size: var(--step-5);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.title-l {
  font-size: var(--step-4);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.title-m {
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--muted);
  max-width: 44ch;
  text-wrap: pretty;
}
.prose {
  max-width: 62ch;
  text-wrap: pretty;
}
.prose p + p {
  margin-top: 1em;
}
.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.text-link {
  font-weight: 550;
  color: var(--ink-accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.text-link:hover {
  text-decoration-thickness: 3px;
}

/* One emphasised word in a headline, set in the italic serif (MK Vision-style) */
.accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em; /* the serif's x-height is smaller than Geologica's */
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--ink-accent);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 6px;
  background: var(--ink-accent);
  border-radius: 0 3px 0 3px;
}
.section--tight {
  padding-block: clamp(40px, 6vw, 72px);
}

/* Marks content that still needs real information from the company */
.sample-badge {
  display: inline-block;
  align-self: start;
  justify-self: start;
  padding: 2px 9px;
  font-size: 0.75rem;
  font-weight: 550;
  line-height: 1.6;
  color: var(--muted);
  border: 1px dashed currentColor;
  border-radius: 0 6px 0 6px;
}
.todo {
  color: var(--muted);
  font-style: italic;
}

/* Leaf bullet: the logo's centre piece in miniature */
.leaf-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}
.leaf-list li {
  position: relative;
  padding-left: 22px;
}
.leaf-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  background: var(--ink-accent);
  border-radius: 0 5px 0 5px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--sign);
  transition: background-color 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.is-solid {
  background: rgba(31, 37, 43, 0.97);
}
@supports (backdrop-filter: blur(8px)) {
  /* Translucent material: content scrolls on underneath, slightly saturated */
  .site-header.is-solid {
    background: rgba(31, 37, 43, 0.78);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
  }
}
/* Scroll edge: a short shade where content meets the header, instead of a hard line */
.site-header::after {
  content: "";
  position: absolute;
  inset: 100% 0 auto;
  height: 18px;
  background: linear-gradient(rgba(15, 19, 23, 0.32), rgba(15, 19, 23, 0));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.site-header.is-solid::after {
  opacity: 1;
}
@media (prefers-reduced-transparency: reduce) {
  .site-header.is-solid {
    background: var(--wall);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (prefers-contrast: more) {
  .site-header.is-solid {
    background: var(--wall);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 1px solid var(--sign);
  }
  .site-header::after {
    display: none;
  }
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  flex: none;
  display: flex;
  align-items: center;
  padding: 6px 0;
}
.brand img {
  height: 34px;
  width: auto;
}
/* Mark-only img: gerçek boyut korunur, 3D logo tam buraya oturur */
[data-brand-mark] {
  height: 20px;
  width: auto;
  flex: none;
}
/* 3D logo aktifken mark baştan gizli — hero.js yönetir */
html.hero-live [data-brand-mark] {
  opacity: 0;
}
/* Wordmark (logo.svg): mark kısmını kırparak sadece "ideal Bilişim" yazısını göster */
.brand__wordmark {
  /* logo.svg 485.68x116.59 → mark 72px wide, rest is wordmark */
  /* Mark'ı gizlemek için negatif margin + clip */
  margin-left: -2px;
  /* logo.svg'yi tam boy göster ama bunu orijinal logo.svg ile bırak */
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav__list {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  position: relative;
  display: block;
  padding: 10px 12px;
  font-size: 0.9375rem;
  font-weight: 450;
  text-decoration: none;
  color: var(--sign);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}
.lang {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--sign);
  border: 1.5px solid var(--wall-line);
  border-radius: var(--leaf-s);
}
.lang:hover {
  border-color: var(--lime);
}
.menu-btn {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: var(--sign);
  background: none;
  border: 0;
  cursor: pointer;
}
.menu-btn__bars,
.menu-btn__bars::before {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}
.menu-btn__bars {
  position: relative;
  transform: translateY(-4px);
}
.menu-btn__bars::before {
  content: "";
  position: absolute;
  top: 8px;
  width: 16px;
}
.menu-btn[aria-expanded="true"] .menu-btn__bars {
  transform: rotate(45deg);
}
.menu-btn[aria-expanded="true"] .menu-btn__bars::before {
  top: 0;
  width: 24px;
  transform: rotate(-90deg);
}

@media (max-width: 900px) {
  .menu-btn {
    display: inline-flex;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding: 24px var(--gutter) 40px;
    background: var(--wall);
    border-top: 1px solid var(--wall-line);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.18s cubic-bezier(0.4, 0, 1, 1), transform 0.18s cubic-bezier(0.4, 0, 1, 1),
      visibility 0s linear 0.18s;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.24s cubic-bezier(0, 0, 0.2, 1), transform 0.24s cubic-bezier(0, 0, 0.2, 1);
  }
  .nav__list {
    flex-direction: column;
  }
  .nav__link {
    padding: 14px 0;
    font-size: var(--step-3);
    font-weight: 550;
    border-bottom: 1px solid var(--wall-line);
  }
  .nav__link::after {
    left: 0;
    right: auto;
    width: 40px;
    bottom: -1px;
  }
  .lang {
    align-self: flex-start;
  }
  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 900px) {
  .header-cta {
    align-self: stretch;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 24px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--leaf-m);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn--primary {
  background: var(--lime);
  color: var(--wall);
}
.btn--primary:hover {
  background: var(--lime-hover);
}
.btn--ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.btn--ghost:hover {
  background: rgba(244, 245, 243, 0.08);
}
.tone-light .btn--ghost:hover,
.tone-white .btn--ghost:hover {
  background: rgba(31, 37, 43, 0.06);
}
.btn--dark {
  background: var(--wall);
  color: var(--sign);
}
.btn--dark:hover {
  background: #2F373F;
}
.btn--sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: var(--leaf-s);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.actions > [data-404-tr],
.actions > [data-404-en] {
  display: contents;
}

[data-404-tr][hidden],
[data-404-en][hidden] {
  display: none !important;
}

/* Press feedback: shows the instant the pointer goes down, springs back on release */
.btn:active:not([disabled]),
.filter:active,
.lang:active,
.menu-btn:active,
.strip__end:active,
a.project__cover--img:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}
.filter,
.lang,
.menu-btn,
a.project__cover--img {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
}
.strip__end {
  transition: background-color 0.2s ease, transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Hero (home) ---------- */
.wall-light {
  /* Warm spot from above, like the light grazing the office wall, plus paint grain */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(70% 62% at 72% -8%, rgba(255, 199, 119, 0.17) 0%, rgba(255, 199, 119, 0.05) 45%, transparent 72%),
    linear-gradient(180deg, #2A3138 0%, var(--wall) 58%, #1B2126 100%);
}
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + 48px) 72px;
  overflow: hidden;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: min(680px, 50vw);
  display: grid;
  gap: 28px;
}
.hero__content .actions {
  margin-top: 12px;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* Keeps the menu readable where the spotlight hits the top of the wall */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 180px;
  background: linear-gradient(180deg, rgba(25, 30, 35, 0.78), rgba(25, 30, 35, 0));
}
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Chrome ribbons over the wall, behind the logo and the text (js/scene/ribbons.js) */
.hero__ribbons {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.fx-live .hero__ribbons {
  display: block;
}
.hero__ribbons.is-ready {
  opacity: 1;
}
/* fade the ribbons where the text sits, and under the menu, so they never fight
   the copy or the navigation */
.hero__ribbons {
  --fade-top: linear-gradient(180deg, transparent 0, transparent calc(var(--header-h) - 10px), #000 calc(var(--header-h) + 90px));
  -webkit-mask-image:
    var(--fade-top),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.3) 44%, #000 62%),
    linear-gradient(0deg, transparent 0, #000 90px);
  -webkit-mask-composite: source-in, source-in;
  mask-image:
    var(--fade-top),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.3) 44%, #000 62%),
    linear-gradient(0deg, transparent 0, #000 90px);
  mask-composite: intersect;
}
@media (max-width: 900px) {
  /* home: the text sits at the bottom on phones and tablets, so the ribbons stay up with the logo */
  .hero .hero__ribbons {
    -webkit-mask-image: var(--fade-top), linear-gradient(180deg, #000 0%, #000 40%, rgba(0, 0, 0, 0.18) 56%, transparent 70%);
    mask-image: var(--fade-top), linear-gradient(180deg, #000 0%, #000 40%, rgba(0, 0, 0, 0.18) 56%, transparent 70%);
  }
  /* inner pages: the title spans the width, so the ribbons stay faint behind it */
  .page-head .hero__ribbons {
    -webkit-mask-image: var(--fade-top), linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0.6) 100%);
    mask-image: var(--fade-top), linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0.6) 100%);
  }
}
/* Two pictures of the same wall: with the finished logo on it (shown without the
   3D logo) and empty (shown behind the live 3D logo). */
.hero__wall {
  display: none;
}
.hero-live .hero__wall {
  display: block;
}
.hero-live .hero__still {
  display: none;
}
/* Bottom line of the hero: place, live clock, availability (Junca-style) */
.hero__status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-size: 0.8125rem;
  letter-spacing: 0.012em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.hero__scroll {
  margin-left: auto;
}
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sign);
}
.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(184, 204, 0, 0.6);
  animation: status-ping 2.4s ease-out infinite;
}
@keyframes status-ping {
  70%,
  100% {
    box-shadow: 0 0 0 8px rgba(184, 204, 0, 0);
  }
}
@media (max-width: 900px) {
  .hero {
    padding-bottom: 88px !important;
  }
  .hero__scroll {
    display: none;
  }
}

/* Where the 3D logo rests in the hero: scene/hero.js reads this box's centre and height. */
.hero__anchor {
  position: absolute;
  left: 71%;
  top: 51%;
  width: 1px;
  height: min(50vh, 500px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
/* The live logo is drawn on one fixed, transparent canvas over the page so it can
   leave the hero and fly up to the header. */
.logo3d {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-live .logo3d {
  display: block;
}
.menu-open .logo3d {
  visibility: hidden !important;
}

@media (max-width: 900px) {
  .hero {
    align-items: flex-end;
    /* below the logo in the mobile video, which ends ~36% down the frame */
    padding-top: calc(var(--header-h) + 37vh);
    padding-bottom: 48px;
  }
  /* tablets crop the tall pictures top and bottom; take more from the bottom */
  .hero__media img {
    object-position: 50% 25%;
  }
  .hero__anchor {
    left: 50%;
    top: calc(var(--header-h) + 19vh);
    height: min(27vh, 300px);
  }
  .hero__content {
    max-width: none;
  }
}

/* Phones: tighter type and spacing than tablets, so the logo, headline and both
   buttons fit on one screen. */
@media (max-width: 600px) {
  .hero {
    padding-top: calc(var(--header-h) + 34vh);
    padding-bottom: 28px;
  }
  .hero__content {
    gap: 18px;
  }
  .hero__content .title-xl {
    font-size: 2rem;
  }
  .hero__content .lead {
    font-size: 1.0625rem;
  }
  .hero__content .actions {
    margin-top: 4px;
  }
  .hero__content .btn {
    min-height: 48px;
  }
}

/* ---------- Services (home): one pinned showcase per device ----------
   Without JS/WebGL each showcase is a plain two-column block with a CSS device.
   With them, main.js pins it for a few screens of scrolling (see showcase.js). */
.showcase__pin {
  display: flex;
  align-items: center;
  padding-block: 40px;
}
.showcase__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 24px clamp(32px, 5vw, 88px);
}
.showcase--flip .showcase__grid {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.showcase + .showcase {
  margin-top: 6vh;
}
.showcase__stage {
  position: relative;
  height: min(72vh, 680px);
  min-height: 320px;
}
/* Soft pool of light behind the device so dark metal reads against the dark section */
.showcase__stage::before {
  content: "";
  position: absolute;
  inset: 6% 2%;
  background: radial-gradient(closest-side, rgba(244, 245, 243, 0.09), rgba(244, 245, 243, 0.03) 55%, transparent);
  pointer-events: none;
}
.showcase__stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.showcase__stage.is-live canvas {
  opacity: 1;
}
.showcase__stage.is-live .showcase__fallback {
  visibility: hidden;
}
.showcase__fallback {
  position: absolute;
  inset: 12% 6%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.showcase__fallback .device-web {
  width: 88%;
}
.showcase__fallback .device-app {
  width: 34%;
}
.showcase.is-pinned .showcase__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  padding-block: var(--header-h) 0;
}
.service {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.service p {
  color: var(--muted);
  max-width: 46ch;
}
.service .leaf-list {
  margin-top: 8px;
}
.showcase--printer .service .btn {
  margin-top: 8px;
}
/* "Yakında": a small lit pill, like the LED edge on the sign */
.soon-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid rgba(255, 199, 119, 0.35);
  border-radius: 999px;
  color: var(--glow);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.soon-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 10px 2px rgba(255, 199, 119, 0.6);
}
.showcase__fallback img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* licence credit for the 3D printer model (CC BY): small, in the footer's last row */
.footer__credit {
  font-size: 0.75rem;
  opacity: 0.6;
}

@media (max-width: 900px) {
  .showcase__grid,
  .showcase--flip .showcase__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .showcase__stage {
    order: -1;
    height: 40vh;
    min-height: 240px;
  }
  .service {
    gap: 12px;
  }
  .service .leaf-list {
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    margin-top: 4px;
    font-size: 0.9375rem;
  }
}

/* CSS-drawn devices: project covers and no-WebGL fallback share these */
.device-web,
.device-app {
  position: relative;
  background: var(--sign);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}
.device-web {
  width: 64%;
  aspect-ratio: 16 / 10.5;
  border-radius: 10px;
  border-top: 18px solid #36404A;
  background:
    linear-gradient(var(--wall), var(--wall)) 8% 22% / 46% 9% no-repeat,
    linear-gradient(var(--wall), var(--wall)) 8% 36% / 34% 9% no-repeat,
    linear-gradient(#9AA2AA, #9AA2AA) 8% 52% / 40% 3.5% no-repeat,
    linear-gradient(var(--lime), var(--lime)) 8% 66% / 18% 10% no-repeat,
    linear-gradient(var(--wall), var(--wall)) 92% 26% / 36% 46% no-repeat,
    linear-gradient(var(--bed), var(--bed)) 8% 94% / 26% 16% no-repeat,
    linear-gradient(var(--bed), var(--bed)) 50% 94% / 26% 16% no-repeat,
    linear-gradient(var(--bed), var(--bed)) 92% 94% / 26% 16% no-repeat,
    var(--sign);
}
.device-app {
  width: 22%;
  aspect-ratio: 1 / 2.1;
  border-radius: 18px;
  border: 5px solid #36404A;
  background:
    linear-gradient(var(--sign), var(--sign)) 14% 9% / 50% 3% no-repeat,
    linear-gradient(var(--lime), var(--lime)) 50% 25% / 84% 22% no-repeat,
    linear-gradient(#46505A, #46505A) 14% 54% / 60% 3% no-repeat,
    linear-gradient(#46505A, #46505A) 14% 64% / 48% 3% no-repeat,
    linear-gradient(#46505A, #46505A) 14% 74% / 56% 3% no-repeat,
    linear-gradient(#36404A, #36404A) 50% 100% / 100% 9% no-repeat,
    var(--wall);
}

/* ---------- Process ---------- */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding-top: 20px;
  border-top: 2px solid var(--rule);
}
/* the line draws itself across the steps as they come into view (js/motion.js) */
.step::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 2px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(var(--draw, 1));
}
.step__num {
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1;
  color: var(--ink-accent);
}
.step p {
  color: var(--muted);
}
@media (max-width: 1000px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }
}
@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Projects ---------- */
.projects-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 3vw, 40px) clamp(20px, 2.5vw, 32px);
}
.project {
  display: grid;
  gap: 14px;
  align-content: start;
}
.project[hidden] {
  display: none;
}
.project__cover {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: var(--wall);
  border-radius: var(--leaf-l);
}
.project__cover .device-web {
  width: 78%;
  margin-bottom: -6%;
}
.project__cover .device-app {
  width: 34%;
  margin-bottom: -18%;
}
.project__cover--lime {
  background: var(--lime);
}
.project__cover--bed {
  background: #CFD3CF;
}
.project__cover--img {
  background: var(--wall);
  padding: 0;
}
.project__cover--img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--leaf-l);
  transition: transform 0.4s ease;
}
.project__cover--img:hover img {
  transform: scale(1.04);
}
/* project__cover hem div hem a olarak kullanılabilir */
a.project__cover--img {
  display: flex;
  text-decoration: none;
  cursor: pointer;
}
.project__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.2s ease;
}
.project__link:hover {
  opacity: 0.6;
}


.project__meta {
  letter-spacing: 0.008em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: var(--step--1);
  color: var(--muted);
}
.project__title {
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.3;
}
.project p {
  color: var(--muted);
}
.section-foot {
  margin-top: clamp(40px, 5vw, 56px);
}
@media (max-width: 1000px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Horizontal project strip (home). Without JS it is a swipeable row; with JS the
   section pins and vertical scrolling moves the row to the left. */
.strip {
  overflow-x: clip;
}
.strip__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 16px 48px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.strip__head .lead {
  justify-self: end;
  max-width: 36ch;
}
.strip__track {
  --edge: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  list-style: none;
  margin: 0;
  padding: 0 var(--edge);
  display: flex;
  gap: clamp(20px, 2.5vw, 32px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none;
}
.strip__track::-webkit-scrollbar {
  display: none;
}
.strip__card {
  flex: 0 0 clamp(264px, 30vw, 420px);
  scroll-snap-align: start;
}
.strip__card--end {
  display: flex;
}
.strip__end {
  flex: 1;
  -webkit-tap-highlight-color: transparent;
  aspect-ratio: 4 / 3;
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: clamp(24px, 3vw, 36px);
  color: var(--sign);
  text-decoration: none;
  background: var(--wall);
  border-radius: var(--leaf-l);
}
.strip__end:hover {
  background: #2F373F;
}
.strip__end .title-m {
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}
.strip__end-note {
  color: #A9B0B7;
  max-width: 28ch;
}
.strip__bar {
  position: relative;
  height: 2px;
  margin-top: clamp(32px, 4vw, 48px);
  background: var(--rule);
}
.strip__bar span {
  position: absolute;
  inset: 0;
  background: currentColor;
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.strip.is-pinned {
  padding-block: 0;
}
.strip.is-pinned .strip__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-h);
}
.strip.is-pinned .strip__track {
  overflow: visible;
  scroll-snap-type: none;
  will-change: transform;
}
@media (max-width: 720px) {
  .strip__head {
    grid-template-columns: 1fr;
  }
  .strip__head .lead {
    justify-self: start;
  }
  .strip__card {
    flex-basis: 78vw;
  }
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.filter {
  min-height: 44px;
  padding: 8px 18px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 550;
  color: var(--wall);
  background: transparent;
  border: 1.5px solid var(--bed-line);
  border-radius: var(--leaf-s);
  cursor: pointer;
}
.filter:hover {
  border-color: var(--wall);
}
.filter[aria-pressed="true"] {
  background: var(--wall);
  color: var(--sign);
  border-color: var(--wall);
}

/* ---------- About teaser / split blocks ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.split .prose {
  color: var(--muted);
}
.split .prose .text-link {
  display: inline-block;
  margin-top: 28px;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* ---------- Section with a looping video behind it ---------- */
.band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.band__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.band__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Wall-coloured veil: heavier on the left where the heading sits */
.band__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 37, 43, 0.45) 0%, rgba(31, 37, 43, 0.3) 50%, rgba(31, 37, 43, 0.38) 100%),
    linear-gradient(180deg, var(--wall) 0%, rgba(31, 37, 43, 0) 18%, rgba(31, 37, 43, 0) 82%, var(--wall) 100%);
}
.band .prose {
  color: #C9CED2;
}

/* ---------- CTA band ---------- */
.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px 64px;
}
.cta__inner .lead {
  margin-top: 16px;
}
@media (max-width: 800px) {
  .cta__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* ---------- Page head (inner pages) ----------
   A shorter cousin of the home hero: the same lit wall and chrome ribbons, the
   title low on the left. */
.page-head {
  position: relative;
  min-height: min(78svh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-block: calc(var(--header-h) + clamp(56px, 9vw, 120px)) clamp(56px, 8vw, 104px);
}
.page-head__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-head__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
}
.page-head__inner .eyebrow {
  margin-bottom: 0;
}
.page-head .title-xl {
  max-width: 15ch;
}
/* [data-lines] headlines are split into clipped line boxes (motion.js). The box is
   only one line-height tall, so give it room for descenders (g, ç, ş) and the
   italic accent's overhang, and take that room back with negative margins. */
[data-lines] > div {
  padding: 0 0.12em 0.18em;
  margin: 0 -0.12em -0.18em;
}
/* keep the lead inside the faded left part, clear of the bright ribbons */
.page-head .lead {
  max-width: 40ch;
}

/* ---------- Products ---------- */
.products {
  list-style: none;
  padding: 0;
  border-top: 2px solid currentColor;
}
.product {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto;
  gap: 16px 48px;
  align-items: start;
  padding-block: 36px;
  border-bottom: 1px solid var(--rule);
}
.product__name {
  display: grid;
  gap: 10px;
}
.product p {
  color: var(--muted);
  max-width: 56ch;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
}
.tag {
  padding: 2px 10px;
  font-size: 0.8125rem;
  letter-spacing: 0.012em;
  font-weight: 500;
  background: rgba(31, 37, 43, 0.08);
  border-radius: 0 6px 0 6px;
}
@media (max-width: 900px) {
  .product {
    grid-template-columns: 1fr;
  }
}

/* ---------- Values (about) ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}
.value {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.value p {
  color: var(--muted);
}
@media (max-width: 900px) {
  .values {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
  }
}
.contact .form,
.contact .contact-list {
  margin-top: 28px;
}
.section-note {
  margin-bottom: 32px;
}
.form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
  width: 100%;
}
.form__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.field {
  display: grid;
  gap: 8px;
  align-content: start;
}
.field--full {
  grid-column: 1 / -1;
}
@media (max-width: 600px) {
  .form {
    grid-template-columns: 1fr;
  }
}
.field label,
.field legend {
  font-size: 0.9375rem;
  font-weight: 550;
}
.field .optional {
  font-weight: 400;
  color: var(--muted);
}
.input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--wall);
  background: var(--sign);
  border: 1.5px solid #8C949A;
  border-radius: var(--leaf-s);
}
.input:hover {
  border-color: var(--wall);
}
.input:focus-visible {
  outline: 2px solid var(--lime-ink);
  outline-offset: 1px;
  border-color: var(--wall);
}
textarea.input {
  min-height: 168px;
  resize: vertical;
}
select.input {
  appearance: none;
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--wall) 50%),
    linear-gradient(135deg, var(--wall) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.input[aria-invalid="true"] {
  border-color: var(--error);
}
.field__hint {
  font-size: 0.875rem;
  color: var(--muted);
}
.field .check {
  font-weight: 400;
}
.field__error {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--error);
}
.field__error:empty {
  display: none;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9375rem;
}
.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--wall);
}
.form__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.form__status {
  font-weight: 500;
}
.form__status[data-state="ok"] {
  color: var(--lime-ink);
}
.form__status[data-state="error"] {
  color: var(--error);
}
.contact-list {
  display: grid;
  gap: 24px;
}
.contact-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

.contact-list [hidden] {
  display: none !important;
}
.contact-list dt {
  font-size: var(--step--1);
  color: var(--muted);
}
.contact-list dd {
  font-weight: 500;
}

/* ---------- Companies (/firmalarimiz/): one wide row per company ----------
   The site's cover on one side, sector / name / text on the other, sides
   alternating down the page. A company without a cover shows its logo. */
.companies {
  display: grid;
  gap: clamp(56px, 9vw, 128px);
}
.company {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 24px clamp(32px, 5vw, 88px);
}
.company:nth-child(even) {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.company:nth-child(even) .company__media {
  order: 2;
}
.company__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--wall-line);
  border-radius: 16px;
  background: var(--wall-raised);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.company__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.company__media:hover img {
  transform: scale(1.03);
}
/* logo instead of a cover: centred on a soft pool of light */
.company__media--logo {
  background: radial-gradient(closest-side, rgba(244, 245, 243, 0.07), transparent), var(--wall-raised);
}
.company__media--logo img {
  width: 58%;
  height: auto;
  object-fit: contain;
}
.company__media--logo:hover img {
  transform: none;
}
.company__initial {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 750;
  color: var(--lime);
}
.company__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.company__index {
  font-size: var(--step--1);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.company__desc {
  color: var(--muted);
  max-width: 46ch;
}
.company__body .btn {
  margin-top: 8px;
}
@media (max-width: 900px) {
  .company,
  .company:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .company:nth-child(even) .company__media {
    order: 0;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 72px 32px;
  font-size: 0.9375rem;
  border-top: 1px solid var(--wall-line);
  overflow: hidden;
}
.footer__cta {
  display: grid;
  justify-items: start;
  gap: 32px;
  padding-block: clamp(16px, 4vw, 56px) clamp(56px, 8vw, 104px);
  margin-bottom: 56px;
  border-bottom: 1px solid var(--wall-line);
}
.footer__cta .title-xl {
  max-width: 14ch;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}
.footer__brand {
  display: grid;
  gap: 16px;
  align-content: start;
  color: var(--muted);
}
.footer__logo {
  display: block;
  width: min(100%, 360px);
}
.footer__logo img {
  display: block;
  width: 100%;
  height: auto;
}
.footer__title {
  margin-bottom: 14px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.footer__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
}
.footer__list a {
  text-decoration: none;
}
.footer__list a:hover {
  color: var(--sign);
  text-decoration: underline;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  color: var(--muted);
  border-top: 1px solid var(--wall-line);
}
@media (max-width: 760px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Hero headline decode (js/motion.js) ----------
   The real letter stays in place, invisible; a random one is drawn over it. */
.scr.is-scrambling {
  position: relative;
  color: transparent;
}
.scr.is-scrambling::after {
  content: attr(data-s);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--scr-color);
  opacity: 0.55;
}

/* ---------- Manifesto (home): words light up as you read down ---------- */
.manifesto {
  padding-bottom: clamp(24px, 4vw, 48px);
}
.manifesto__text {
  max-width: 24ch;
  font-size: var(--step-4);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.manifesto .actions {
  margin-top: clamp(32px, 4vw, 48px);
}
@media (min-width: 1100px) {
  .manifesto__text {
    max-width: 28ch;
  }
}

/* ---------- Numbers ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 24px;
}
.stat dd {
  margin: 0;
  font-size: var(--step-5);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink-accent);
  font-variant-numeric: tabular-nums;
}
.stat dt {
  font-size: var(--step--1);
  color: var(--muted);
  letter-spacing: 0.008em;
}
@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }
}

/* ---------- Marquee band ---------- */
.marquee {
  overflow: hidden;
  padding-block: clamp(28px, 4vw, 48px);
  border-block: 1px solid var(--wall-line);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  width: max-content;
  font-size: clamp(2.75rem, 1.5rem + 5vw, 6.5rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.035em;
  white-space: nowrap;
  /* trailing gap so both halves are exactly the same width */
  padding-right: clamp(24px, 3vw, 48px);
  animation: marquee 38s linear infinite;
}
.marquee__track .accent {
  font-size: 1.12em;
}
/* separators: the sign's lime bar */
.marquee__track i {
  flex: none;
  width: 0.9em;
  height: 0.16em;
  background: var(--lime);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}

/* ---------- Testimonials: drag carousel ---------- */
.quotes {
  overflow: hidden;
}
.quotes__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.quotes__head .title-l {
  max-width: 16ch;
}
.quotes__nav {
  display: flex;
  gap: 8px;
}
.round-btn {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font: inherit;
  font-size: 1.25rem;
  color: var(--sign);
  background: transparent;
  border: 1.5px solid var(--wall-line);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.round-btn:hover {
  border-color: var(--lime);
}
.round-btn:active {
  transform: scale(0.94);
  transition-duration: 0.08s;
}
.round-btn[disabled] {
  opacity: 0.35;
  cursor: default;
}
.quotes__viewport {
  padding-inline: max(var(--gutter), (100% - var(--maxw)) / 2);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.quotes__viewport.is-dragging {
  cursor: grabbing;
}
.quotes__track {
  display: flex;
  gap: clamp(16px, 2vw, 24px);
  list-style: none;
  margin: 0;
  padding: 0;
  will-change: transform;
}
.quote {
  flex: none;
  width: min(440px, 82vw);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--wall-raised);
  border: 1px solid var(--wall-line);
  border-radius: var(--leaf-l);
}
.quote blockquote {
  margin: 0;
  font-size: var(--step-1);
  line-height: 1.45;
}
.quote__by {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--step--1);
  color: var(--muted);
}
.quote__by strong {
  color: var(--sign);
  font-weight: 600;
}
.quote__avatar {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-weight: 650;
  color: var(--wall);
  background: var(--mark-gradient);
  border-radius: 0 14px 0 14px;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: 40px clamp(40px, 6vw, 96px);
  align-items: start;
}
.faq__head {
  display: grid;
  gap: 20px;
  justify-items: start;
}
.faq__list {
  border-top: 1px solid var(--rule);
}
.faq__item {
  border-bottom: 1px solid var(--rule);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
  font-size: var(--step-1);
  font-weight: 550;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
/* plus that turns into a minus */
.faq__item summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.faq__item[open] summary::after {
  transform: rotate(90deg);
  background: linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
}
.faq__item p {
  max-width: 60ch;
  padding-bottom: 24px;
  color: var(--muted);
}
/* smooth open/close where the browser can animate to height:auto */
@supports (interpolate-size: allow-keywords) {
  .faq__item {
    interpolate-size: allow-keywords;
  }
  .faq__item::details-content {
    height: 0;
    overflow: clip;
    transition: height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), content-visibility 0.35s allow-discrete;
  }
  .faq__item[open]::details-content {
    height: auto;
  }
}
@media (max-width: 900px) {
  .faq {
    grid-template-columns: 1fr;
  }
}

/* ---------- Project gallery (Studio Mirage-style) ----------
   Static: a card grid. Live (.is-live, set by js/scene/gallery.js): the section
   pins for a few screens; the projects stand on a ring of curved screens in a dark
   room and turn past as you scroll. The list stays in the page for keyboards and
   screen readers. */
.gallery {
  position: relative;
  background: #0E1216;
}
.gallery__pin {
  position: relative;
  padding-block: clamp(72px, 10vw, 136px);
}
.gallery__canvas,
.gallery__stage,
.gallery__bottom,
.gallery__hint,
.gallery__count {
  display: none;
}
.gallery__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.gallery__list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 28px);
}
.gallery__card {
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  border-radius: var(--leaf-l);
}
.gallery__card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-radius: var(--leaf-l);
  background: var(--wall-raised);
}
.gallery__card-kind {
  margin-top: 6px;
  font-size: var(--step--1);
  color: var(--muted);
}
.gallery__card-title {
  font-size: var(--step-1);
  font-weight: 600;
}
.gallery__card-desc {
  color: var(--muted);
}
@media (max-width: 1000px) {
  .gallery__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .gallery__list {
    grid-template-columns: 1fr;
  }
}

/* live */
.gallery.is-live .gallery__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 0;
  overflow: hidden;
}
.gallery.is-live .gallery__canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: grab;
}
.gallery.is-live .gallery__canvas.is-dragging {
  cursor: grabbing;
}
.gallery.is-live .gallery__ui {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-block: calc(var(--header-h) + 16px) 28px;
  pointer-events: none;
}
.gallery.is-live .gallery__ui a,
.gallery.is-live .gallery__ui button {
  pointer-events: auto;
}
.gallery.is-live .gallery__top {
  justify-self: center;
  margin: 0;
  width: min(100% - 2 * var(--gutter), var(--maxw));
}
.gallery.is-live .gallery__top .title-l {
  font-size: var(--step-3);
}
.gallery.is-live .gallery__count {
  display: block;
  font-size: var(--step--1);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.gallery__count span {
  color: var(--sign);
}
.gallery.is-live .gallery__stage {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding-inline: var(--gutter);
  text-align: center;
}
/* a soft shade behind the title so it reads over bright screenshots */
.gallery.is-live .gallery__stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(900px, 90vw);
  height: 260px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(14, 18, 22, 0.62), rgba(14, 18, 22, 0.3) 55%, transparent);
  pointer-events: none;
}
.gallery.is-live .gallery__kind {
  padding: 4px 12px;
  background: rgba(14, 18, 22, 0.72);
  border-radius: 999px;
}
.gallery__kind {
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lime);
}
.gallery__title {
  max-width: 18ch;
  font-size: var(--step-5);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
}
.gallery__kind,
.gallery__title {
  transition: opacity 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}
.gallery__stage.is-swapping .gallery__kind,
.gallery__stage.is-swapping .gallery__title {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(6px);
}
.gallery.is-live .gallery__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 16px;
  justify-self: center;
  width: min(100% - 2 * var(--gutter), var(--maxw));
}
.gallery__visit {
  min-height: 46px;
  border-radius: 999px;
  border-color: rgba(244, 245, 243, 0.35);
  background: rgba(14, 18, 22, 0.45);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
}
.gallery__visit:hover {
  border-color: var(--lime);
  background: rgba(14, 18, 22, 0.6);
}
.gallery__step {
  justify-self: start;
  display: grid;
  gap: 2px;
  padding: 6px 0;
  font: inherit;
  text-align: left;
  color: var(--sign);
  background: none;
  border: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gallery__step:hover {
  opacity: 0.7;
}
.gallery__step:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}
.gallery__step--next {
  justify-self: end;
  text-align: right;
}
.gallery__step span {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.gallery__step strong {
  font-size: var(--step--1);
  font-weight: 600;
}
.gallery.is-live .gallery__hint {
  display: block;
  position: absolute;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: opacity 0.4s ease;
}
.gallery.is-live.has-moved .gallery__hint {
  opacity: 0;
}
/* the list stays reachable for keyboards and screen readers */
.gallery.is-live .gallery__list {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .gallery.is-live .gallery__bottom {
    grid-template-columns: 1fr 1fr;
  }
  .gallery.is-live .gallery__visit {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
  }
  .gallery.is-live .gallery__title {
    font-size: 2.25rem;
  }
  .gallery.is-live .gallery__hint {
    bottom: 140px;
  }
}

/* ---------- Card spotlight ----------
   js/main.js keeps --mx / --my on the card under the pointer. */
.project__cover,
.strip__end,
.gallery__card,
[data-spotlight] {
  position: relative;
  isolation: isolate;
}
.project__cover::after,
.strip__end::after,
.gallery__card::after,
[data-spotlight]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(184, 204, 0, 0.2), rgba(184, 204, 0, 0.06) 45%, transparent 70%);
  /* lit rim near the pointer, like light catching the edge of the sign */
  box-shadow: inset 0 0 0 2px rgba(184, 204, 0, 0.9);
  -webkit-mask: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), #000 20%, rgba(0, 0, 0, 0.35) 55%, transparent 80%);
  mask: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), #000 20%, rgba(0, 0, 0, 0.35) 55%, transparent 80%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project__cover--lime::after {
  /* white light on a lime ground */
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.3), transparent 70%);
  box-shadow: inset 0 0 0 2px rgba(31, 37, 43, 0.5);
}
@media (hover: hover) and (pointer: fine) {
  .project__cover:hover::after,
  .strip__end:hover::after,
  .gallery__card:hover::after,
  [data-spotlight]:hover::after {
    opacity: 1;
  }
}

/* ---------- Page transitions ----------
   Cross-document View Transitions (Chromium, Safari 18.2+; others just navigate).
   The header stays put; the page underneath fades and rises slightly. */
@view-transition {
  navigation: auto;
}
.site-header {
  view-transition-name: site-header;
}
::view-transition-old(root) {
  animation: vt-out 0.22s cubic-bezier(0.4, 0, 1, 1) both;
}
::view-transition-new(root) {
  animation: vt-in 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) 0.06s both;
}
::view-transition-group(site-header) {
  animation-duration: 0s;
}
@keyframes vt-out {
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}
@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* ---------- Motion preferences ----------
   Reduced motion still gets feedback: short cross-fades and colour changes,
   but nothing slides, scales or travels. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.15s !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .marquee__track,
  .status-dot::before {
    animation: none !important;
  }
  .nav,
  .nav.is-open,
  .btn:active:not([disabled]),
  .filter:active,
  .lang:active,
  .menu-btn:active,
  .strip__end:active,
  a.project__cover--img:active,
  .project__cover--img:hover img {
    transform: none !important;
  }
  /* page change: a plain cross-fade, no rise */
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: vt-fade 0.2s ease both !important;
  }
  ::view-transition-old(root) {
    animation-direction: reverse !important;
  }
}
@keyframes vt-fade {
  from {
    opacity: 0;
  }
}

/* ---------- Lenis smooth scroll (from vendor/lenis/lenis.css) ---------- */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* ---------- Preloader (first page of a visit, js/main.js) ----------
   Covers the page for a moment while the hero logo and the ribbons compile behind it.
   Only with the 3D effects on (.preload is set by the inline script in <head>). Its
   animations are transform/opacity only, so they keep running while the main thread
   is busy. Without JS it fades out on its own after 3.2 s. */
.preloader {
  display: none;
}
.preload .preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  background: linear-gradient(180deg, #2A3138 0%, var(--wall) 58%, #1B2126 100%);
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
  animation: preloader-safety 0.45s ease 3.2s forwards;
}
.preloader.is-done {
  opacity: 0;
  visibility: hidden;
}
.preloader.is-done img,
.preloader.is-done .preloader__bar::after {
  animation: none; /* stays in the DOM (React owns it), so stop its loops */
}
.preloader img {
  width: 36px;
  height: auto;
  animation: preloader-breathe 1.4s ease-in-out infinite;
}
.preloader__bar {
  position: relative;
  width: 120px;
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(244, 245, 243, 0.12);
}
.preloader__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  border-radius: inherit;
  background: var(--lime);
  animation: preloader-bar 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.preload-lock,
.preload-lock body {
  overflow: hidden;
}
.preload-lock {
  scrollbar-gutter: stable; /* the scrollbar's room stays: no jump when the lock comes off */
}
@keyframes preloader-bar {
  from { transform: translateX(-100%); }
  to { transform: translateX(250%); }
}
@keyframes preloader-breathe {
  50% { opacity: 0.55; transform: scale(0.96); }
}
@keyframes preloader-safety {
  to { opacity: 0; visibility: hidden; }
}

/* Next.js wraps the page in <div id="__next">: it takes no part in the layout */
#__next {
  display: contents;
}

/* Contact page: message form, then the phone numbers */
.contact-reach {
  display: grid;
  gap: 20px;
  justify-items: stretch;
}
.contact-reach + .contact-reach {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
}
.contact-reach .lead {
  max-width: 46ch;
}
.contact-reach .actions {
  margin-top: 8px;
}
