/* =========================================================
   basteez.media – stylesheet
   Gabarito only · light beige-white · pure green accent
   ========================================================= */

:root {
  --bg: #f5f4f0;
  --bg-2: #efede8;
  --surface: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #2f2f2c;
  --ink-mute: #8a8a84;
  --line: rgba(10, 10, 10, 0.08);
  --line-strong: rgba(10, 10, 10, 0.18);

  --accent: #00ff00;
  --accent-deep: #00d100;
  --accent-glow: rgba(0, 255, 0, 0.55);

  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-blur: 24px;
  --glass-inset: 0.45;

  --noise-opacity: 0.325;
  --noise-opacity-strong: 0.5;

  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 32px;
  --radius-xl: 48px;

  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-spring: cubic-bezier(0.5, 1.5, 0.5, 1);

  --noise-anim-speed: 0.3s;
  --noise-grain-size: 200px;
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-2: #111110;
  --surface: #161614;
  --ink: #f4f4f0;
  --ink-soft: #a8a8a2;
  --ink-mute: #6a6a64;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --glass-bg: rgba(20, 20, 18, 0.5);
  --glass-border: rgba(255, 255, 255, 0.12);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Gabarito", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.4s ease, color 0.4s ease;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
input, textarea, select { font-family: inherit; color: inherit; }
::selection { background: var(--accent); color: #000; }

/* ---------- noise background layer ---------- */
.noise-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: paint;
  isolation: isolate;
}
.noise-rect {
  position: absolute;
  border-radius: var(--radius-lg);
  opacity: var(--noise-opacity);
  overflow: hidden;
  mix-blend-mode: multiply;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.noise-rect[data-shape="rounded"] { border-radius: 32px; }
.noise-rect[data-shape="pill"]    { border-radius: 999px; }
.noise-rect[data-shape="sharp"]   { border-radius: 4px; }
/* mixed shape sets radius inline per-element */

/* green tint variant: noise rect gets green wash behind the noise texture */
.noise-rect[data-tint="green"] {
  background: var(--accent-deep);
  mix-blend-mode: multiply;
}
.noise-rect[data-tint="green"]::before {
  mix-blend-mode: screen;
  opacity: 0.6;
}
[data-theme="dark"] .noise-rect[data-tint="green"] {
  mix-blend-mode: screen;
  opacity: calc(var(--noise-opacity) * 0.8);
}
[data-theme="dark"] .noise-rect { mix-blend-mode: screen; }
.noise-rect::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise-img-1);
  background-size: var(--noise-grain-size) var(--noise-grain-size);
  filter: contrast(1.1);
  animation: noiseSwap var(--noise-anim-speed) steps(1) infinite;
}
@keyframes noiseSwap {
  0%   { background-image: var(--noise-img-1); }
  25%  { background-image: var(--noise-img-2); }
  50%  { background-image: var(--noise-img-3); }
  75%  { background-image: var(--noise-img-4); }
}

/* ---------- liquid glass ---------- */
.glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 1.5px 1.5px 2px 0 rgba(255, 255, 255, calc(var(--glass-inset) * 1)),
    inset -1.5px -1.5px 2px 0 rgba(255, 255, 255, calc(var(--glass-inset) * 0.6)),
    0 8px 28px rgba(10, 10, 10, 0.08),
    0 1px 1px rgba(10, 10, 10, 0.04);
}
[data-theme="dark"] .glass {
  box-shadow:
    inset 1.5px 1.5px 2px 0 rgba(255, 255, 255, calc(var(--glass-inset) * 0.4)),
    inset -1.5px -1.5px 2px 0 rgba(255, 255, 255, calc(var(--glass-inset) * 0.2)),
    0 14px 40px rgba(0, 0, 0, 0.5);
}

/* an extra layer behind .glass that gets the liquid displacement filter */
.glass-displace {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  filter: url(#liquid-glass-distort);
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
  pointer-events: none;
}

/* ---------- typography ---------- */
.eyebrow {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-block;
  width: max-content;
  max-width: 100%;
  align-self: flex-start;
  position: relative;
  padding: 4px 10px;
  isolation: isolate;
}
.eyebrow::before {
  content: "";
  position: absolute;
  inset: 0 -2px;
  background: var(--accent);
  z-index: -1;
  border-radius: 4px;
  transform: skewY(-1.5deg);
  box-shadow: 0 0 30px var(--accent-glow);
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-wrap: balance;
}
h1 { font-size: clamp(48px, 9.5vw, 156px); font-weight: 900; }
h2 { font-size: clamp(36px, 6vw, 88px); }
h3 { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.02em; line-height: 1.1; }

p { margin: 0; }
.lead {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 56ch;
  text-wrap: pretty;
}

/* ---------- shared layout ---------- */
main { position: relative; z-index: 1; }
section { position: relative; }
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section-pad { padding-block: clamp(60px, 8vw, 120px); }

/* ---------- header ---------- */
.header {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  width: calc(100% - 32px);
  max-width: 1280px;
  border-radius: 999px;
  padding: 10px 14px 10px 22px;
  display: flex;
  align-items: center;
  gap: 24px;
  /* mid-dark glass — matches footer tone */
  background: rgba(46, 46, 42, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f4f4f0;
  transition: padding 0.3s var(--ease-out), background 0.3s ease;
}
.header .nav a { color: rgba(244, 244, 240, 0.92); }
.header .nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.service-card.dark-card .btn-pill,
.service-card.span-12 .btn-pill {
  padding: 12px 18px 12px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  background: #000;
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.service-card.dark-card .btn-pill::before,
.service-card.span-12 .btn-pill::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,0,0.85) 0%, rgba(0,255,0,0.45) 35%, rgba(0,255,0,0) 70%);
  filter: blur(16px);
  transform: translate(var(--mx, 50%), var(--my, 50%)) translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: -1;
}
.service-card.dark-card .btn-pill:hover,
.service-card.span-12 .btn-pill:hover {
  transform: none;
  background: #fff;
  color: #000;
  box-shadow: 0 0 0 1px #000;
}
.service-card.dark-card .btn-pill:hover::before,
.service-card.span-12 .btn-pill:hover::before { opacity: 1; }

.header .btn-pill,
.btn-pill.spotlight,
main .btn-pill,
.cta-glow,
.btn-submit {
  background: #ffffff;
  color: #000;
  position: relative;
  overflow: hidden;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  isolation: isolate;
}
.header .btn-pill::before,
.btn-pill.spotlight::before,
main .btn-pill::before,
.cta-glow::before,
.btn-submit::before {
  /* green spotlight that follows the cursor */
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,0,0.85) 0%, rgba(0,255,0,0.45) 35%, rgba(0,255,0,0) 70%);
  filter: blur(14px);
  transform: translate(var(--mx, 50%), var(--my, 50%)) translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: -1;
}
.header .btn-pill:hover,
.btn-pill.spotlight:hover,
main .btn-pill:hover,
.cta-glow:hover,
.btn-submit:hover {
  transform: none;
  background: #000;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
}
.header .btn-pill:hover::before,
.btn-pill.spotlight:hover::before,
main .btn-pill:hover::before,
.cta-glow:hover::before,
.btn-submit:hover::before { opacity: 1; }

/* keep the cta-glow's inner ::after spin ring + arrow visually intact on dark hover */
.cta-glow:hover .arrow { background: var(--accent); color: #000; }
.btn-submit:hover .arrow { background: var(--accent); color: #000; }

/* hero CTA — black by default, inverts to white on hover; keeps original generous size */
.cta-glow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 14px 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 999px;
  background: #000;
  color: #fff;
}
.cta-glow:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 0 0 1px #000;
}
.header .menu-toggle span { background: #f4f4f0; }
.header.scrolled { padding-block: 8px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 18px;
}
.brand-logo {
  height: 22px;
  width: auto;
  display: block;
  transition: filter 0.3s ease;
}
[data-theme="dark"] .brand-logo {
  /* invert black→white; hue-rotate keeps the green dot green */
  filter: invert(100%) hue-rotate(180deg);
}
.footer .brand-logo { height: 28px; }
.nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
  margin-right: 6px;
}
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--ink); background: rgba(0,0,0,0.04); }
[data-theme="dark"] .nav a:hover { background: rgba(255,255,255,0.06); }

.btn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform 0.2s var(--ease-out), background 0.2s;
}
.btn-pill:hover { transform: translateY(-1px); }
[data-theme="dark"] .btn-pill { background: var(--accent); color: #000; }

.menu-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: background 0.2s;
}
.menu-toggle:hover { background: rgba(0,0,0,0.04); }
[data-theme="dark"] .menu-toggle:hover { background: rgba(255,255,255,0.06); }
.menu-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-spring), opacity 0.2s;
}
body.menu-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(3.25px) rotate(45deg);
}
body.menu-open .menu-toggle-bar:nth-child(2) {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ---------- mobile fullscreen menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: stretch;
}
[data-theme="dark"] .mobile-menu { background: var(--bg); }
body.menu-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-inner {
  width: 100%;
  padding: clamp(100px, 16vh, 140px) var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
}
.mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-block: 14px;
  font-size: clamp(34px, 9vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, padding-left 0.3s var(--ease-out);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), color 0.2s, padding-left 0.3s var(--ease-out);
}
.mobile-nav a:first-child { border-top: 1px solid var(--line); }
.mobile-nav a:hover, .mobile-nav a:active {
  color: var(--accent-deep);
  padding-left: 8px;
}
.mobile-nav a .num {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  font-family: "Gabarito", sans-serif;
}
body.menu-open .mobile-nav a {
  opacity: 1;
  transform: translateY(0);
}
body.menu-open .mobile-nav a:nth-child(1) { transition-delay: 0.10s; }
body.menu-open .mobile-nav a:nth-child(2) { transition-delay: 0.15s; }
body.menu-open .mobile-nav a:nth-child(3) { transition-delay: 0.20s; }
body.menu-open .mobile-nav a:nth-child(4) { transition-delay: 0.25s; }
body.menu-open .mobile-nav a:nth-child(5) { transition-delay: 0.30s; }
body.menu-open .mobile-nav a:nth-child(6) { transition-delay: 0.35s; }

.mobile-menu-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease-out) 0.4s, transform 0.4s var(--ease-out) 0.4s;
}
body.menu-open .mobile-menu-foot {
  opacity: 1;
  transform: translateY(0);
}
.mobile-mail {
  color: var(--ink-soft);
  font-weight: 500;
}
.mobile-mail:hover { color: var(--accent-deep); }

/* prevent body scroll while menu open */
body.menu-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: clamp(120px, 14vh, 180px);
  padding-bottom: clamp(60px, 8vh, 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: clamp(28px, 4vw, 44px);
  position: relative;
}
.hero .eyebrow { margin: 0 auto; }
.hero h1 {
  font-size: clamp(48px, 9vw, 152px);
  max-width: 16ch;
}
.hero .lead {
  max-width: 52ch;
  margin: 0 auto;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.45;
  color: var(--ink-soft);
}
.hero > .cta-glow { margin: 0 auto; }
.hero h1 .word-noise {
  position: relative;
  display: inline-block;
  color: var(--ink);
}
.hero h1 .word-noise::before {
  content: "";
  position: absolute;
  inset: -0.04em -0.06em -0.02em -0.06em;
  background: var(--accent);
  z-index: -1;
  border-radius: 6px;
  transform: skewY(-1deg);
  box-shadow: 0 0 60px var(--accent-glow);
}
.hero h1 .word-noise::after {
  /* animated TV-static over the green block — runs continuously, independent of the word reveal */
  content: "";
  position: absolute;
  inset: -0.04em -0.06em -0.02em -0.06em;
  background-image: var(--noise-img);
  background-size: 100px;
  mix-blend-mode: multiply;
  opacity: 0.55;
  border-radius: 6px;
  transform: skewY(-1deg);
  animation: noiseSwap var(--noise-anim-speed) steps(1) infinite;
  pointer-events: none;
}

/* glowing CTA arrow (base style + spotlight hover handled in shared block above) */
.cta-glow .arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  transition: transform 0.3s var(--ease-spring), background 0.25s ease, color 0.25s ease;
}
.cta-glow:hover .arrow { transform: rotate(-45deg); }

.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: var(--gutter);
  display: flex; align-items: center; gap: 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.scroll-indicator .line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, transparent, var(--ink-soft));
  animation: scrollLine 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- about agency ---------- */
.about-agency {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.about-agency .num {
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}
.about-agency h2 { letter-spacing: -0.04em; }
.about-agency .body {
  color: var(--ink-soft);
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.55;
  display: flex; flex-direction: column; gap: 18px;
  max-width: 48ch;
}
.about-agency .body strong { color: var(--ink); font-weight: 600; }

.stats {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.stat:last-child { border-right: none; }
.stat .v { font-size: clamp(32px, 4vw, 56px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat .v .accent { color: var(--ink); position: relative; }
.stat .v .plus { color: var(--accent-deep); }
.stat .l { color: var(--ink-soft); font-size: 14px; margin-top: 8px; }

/* ---------- services ---------- */
.services-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 40px; margin-bottom: 60px;
}
.services-head .lead { max-width: 32ch; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.service-card {
  position: relative;
  grid-column: span 4;
  min-height: 360px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: default;
  transition: transform 0.5s var(--ease-spring), border-color 0.3s;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.service-card.span-6 { grid-column: span 6; }
.service-card.span-8 { grid-column: span 8; }
.service-card.span-12 { grid-column: span 12; min-height: 280px; }
.service-card.dark-card {
  background: var(--ink);
  color: var(--bg);
  border-color: transparent;
}
.service-card.dark-card .s-label { color: var(--ink-mute); }
.service-card .s-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.service-card .s-label .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.service-card h3 { letter-spacing: -0.025em; }
.service-card p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 36ch;
}
.service-card.dark-card p { color: rgba(255,255,255,0.65); }

.service-card .visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.95;
}

/* visual: animated reel */
.viz-reel {
  position: absolute;
  right: -40px; bottom: -40px;
  width: 200px; height: 280px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), #008f00);
  transform: rotate(8deg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  overflow: hidden;
}
.viz-reel::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 12px;
  background-image: var(--noise-img);
  background-size: 120px;
  mix-blend-mode: multiply;
  opacity: 0.7;
}
.viz-reel::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  color: #000;
  font-size: 40px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* visual: bars chart */
.viz-bars {
  position: absolute; right: 28px; bottom: 28px;
  display: flex; align-items: end; gap: 8px;
}
.viz-bars span {
  width: 18px;
  background: var(--accent);
  border-radius: 4px;
  animation: barGrow 2.4s ease-in-out infinite;
}
.viz-bars span:nth-child(1) { height: 40px;  animation-delay: 0.0s; }
.viz-bars span:nth-child(2) { height: 72px;  animation-delay: 0.15s; }
.viz-bars span:nth-child(3) { height: 56px;  animation-delay: 0.30s; }
.viz-bars span:nth-child(4) { height: 110px; animation-delay: 0.45s; }
.viz-bars span:nth-child(5) { height: 80px;  animation-delay: 0.6s; }
@keyframes barGrow {
  0%, 100% { transform: scaleY(0.65); }
  50% { transform: scaleY(1); }
}

/* visual: orbit */
.viz-orbit {
  position: absolute;
  right: -80px; top: 50%;
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transform: translateY(-50%);
}
.viz-orbit::before, .viz-orbit::after {
  content: "";
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 1px dashed var(--line);
  animation: orbitSpin 22s linear infinite;
}
.viz-orbit::after {
  inset: 60px;
  border-style: solid;
  border-color: transparent;
  border-top-color: var(--accent);
  animation: orbitSpin 6s linear infinite reverse;
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.viz-orbit .planet {
  position: absolute;
  top: 50%; left: -8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-50%);
}

/* visual: marquee — runs as a horizontal band below the text/CTA */
.viz-marquee {
  position: relative;
  margin-top: clamp(28px, 4vw, 48px);
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  padding-block: 8px;
  border-top: 1px solid var(--line);
  padding-top: clamp(20px, 3vw, 36px);
}
.viz-marquee .track {
  display: inline-flex;
  gap: 32px;
  animation: marquee 18s linear infinite;
  padding-left: 32px;
}
.viz-marquee .tag {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-mute);
}
.viz-marquee .tag.on { color: var(--ink); }
.viz-marquee .tag.green { color: var(--accent-deep); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

.service-card.span-12 .body-row {
  display: flex; justify-content: space-between; align-items: end;
  gap: 32px; position: relative; z-index: 1;
}

/* ---------- references intro ---------- */
.ref-intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: end;
  margin-bottom: 80px;
}

/* ============================================================
   References Reels — Desktop: Sticky Phone + Mobile: Reels Feed
   ============================================================ */
.refs-stage {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 50px 1fr 1fr;
  gap: clamp(30px, 4vw, 80px);
  position: relative;
}

/* Left column: progress dots (sticky) */
.refs-dots {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
}
.refs-dot {
  background: transparent; border: none; padding: 0;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer;
  font-family: inherit; color: var(--ink-mute);
  transition: color 0.3s var(--ease-out);
}
.refs-dot .num {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  opacity: 0.4;
  transition: opacity 0.3s var(--ease-out);
}
.refs-dot .line {
  width: 30px; height: 2px;
  background: var(--line-strong); border-radius: 2px;
  transition: width 0.4s var(--ease-out), background 0.3s var(--ease-out);
}
.refs-dot.active { color: var(--ink); }
.refs-dot.active .num { opacity: 1; }
.refs-dot.active .line { width: 60px; background: var(--accent); }
.refs-dot:hover .line { background: var(--accent-deep); }

/* Middle column: cases (desktop text) */
.refs-feed { display: flex; flex-direction: column; }
.refs-item {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  gap: 20px;
  opacity: 0.25;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.refs-item.active { opacity: 1; transform: translateY(0); }
.refs-item .ref-num {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute);
}
.refs-item .ref-num .pill {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: 999px; background: var(--accent); color: #000;
  font-weight: 700; font-size: 11px; letter-spacing: 0.04em;
}
.refs-item h3 {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  text-wrap: balance;
}
.refs-item p {
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--ink-soft);
  max-width: 44ch; line-height: 1.55;
  text-wrap: pretty;
}
.refs-item .metrics {
  display: flex; gap: 32px; margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.refs-item .metric { display: flex; flex-direction: column; gap: 4px; }
.refs-item .metric .v { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.refs-item .metric .l { font-size: 11px; color: var(--ink-soft); letter-spacing: 0.06em; text-transform: uppercase; }

/* Mobile-only video container — hidden on desktop */
.refs-mvideo { display: none; }

/* Right column: sticky phone stack */
.refs-phone-col {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex; align-items: center; justify-content: center;
}
.refs-phone-stack {
  position: relative;
  aspect-ratio: 9 / 16;
  width: min(360px, 100%);
  border-radius: 28px;
  background: #000;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(10, 10, 10, 0.18),
    0 6px 16px rgba(10, 10, 10, 0.08),
    inset 0 0 0 1px rgba(255,255,255,0.05);
  transform: rotateY(-3deg) rotateX(2deg);
  transform-style: preserve-3d;
}
.refs-phone-stack::before {
  content: "";
  position: absolute; inset: -40px; z-index: -1;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  filter: blur(40px);
  opacity: 0.6;
  pointer-events: none;
}
/* Instagram-Reels-style vertical slide between videos on desktop.
   Default state (not yet shown) sits BELOW the frame (translateY(100%)); the active
   slot sits AT the frame (translateY(0)); slots already shown sit ABOVE the frame
   (translateY(-100%) via .is-before — set by JS for slots whose index < activeIdx).
   When the active case changes downward, the leaving slot slides UP (0 → -100%)
   and the entering slot slides UP from below (100% → 0). On reverse-scroll the
   classes flip and both slides reverse direction. The phone-stack has overflow:hidden
   so the off-frame slots are clipped — no visible bleed. */
.refs-phone-slot {
  position: absolute; inset: 0;
  transform: translateY(100%);
  transition: transform 0.55s var(--ease-out);
  will-change: transform;
}
.refs-phone-slot.is-before { transform: translateY(-100%); }
.refs-phone-slot.active { transform: translateY(0); }
.refs-phone-slot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.refs-phone-slot .fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(0,255,0,0.4), transparent 60%),
    radial-gradient(120% 80% at 80% 100%, rgba(0,180,0,0.3), transparent 60%),
    linear-gradient(180deg, #1a1a1a, #0a0a0a);
  display: flex; align-items: flex-end; padding: 28px;
  color: #fff; font-weight: 700; font-size: 20px; letter-spacing: -0.02em;
  text-shadow: 0 4px 18px rgba(0,0,0,0.45); line-height: 1.15;
}
.refs-phone-slot .duration {
  position: absolute; top: 18px; left: 18px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(0,0,0,0.55);
  color: #fff; font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.refs-phone-slot .duration .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent-glow);
}

/* Info sheet & mobile feed — hidden by default (only on mobile) */
.refs-sheet { display: none; }
.refs-mobile-feed { display: none; }

/* ============================================================
   MOBILE — Native scroll-snap reels feed (<1024px)
   Each .refs-mobile-item is a 100dvh snap target stacked sequentially.
   The browser handles smooth snapping natively — no JS scrub.
   ============================================================ */
@media (max-width: 1023px) {
  /* Activate scroll snapping only when reels-snap-active class is present on html */
  html.reels-snap-active {
    scroll-snap-type: y mandatory;
  }

  /* Hide the entire desktop refs stage on mobile */
  .refs-stage { display: none; }

  /* The feed is a sequence of full-viewport snap targets. */
  .refs-mobile-feed {
    display: block;
    position: relative;
  }

  /* Each reel — a viewport-height snap target.
     --reel-vh is set by JS from window.innerHeight at load + on resize/orientationchange,
     NOT on every scroll. That keeps snap targets a stable px value even while iOS Safari
     animates its URL bar — otherwise 100dvh fluctuates mid-gesture and snap breaks. */
  .refs-mobile-item {
    position: relative;
    height: var(--reel-vh, 100dvh);
    width: 100%;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #000;
    isolation: isolate;
    touch-action: pan-y;
  }

  /* Inside an item: blur background video + foreground (contained) video */
  .refs-bg, .refs-fg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    display: block;
  }
  .refs-bg {
    object-fit: cover;
    filter: blur(40px) saturate(1.4) brightness(0.6);
    transform: scale(1.18);   /* hide blur edge bleed */
    z-index: 1;
  }
  .refs-fg {
    object-fit: contain;
    z-index: 2;
  }
  .refs-mobile-item .fallback {
    position: absolute; inset: 0;
    background:
      radial-gradient(120% 80% at 20% 0%, rgba(0,255,0,0.4), transparent 60%),
      radial-gradient(120% 80% at 80% 100%, rgba(0,180,0,0.3), transparent 60%),
      linear-gradient(180deg, #1a1a1a, #0a0a0a);
    display: flex; align-items: flex-end; padding: 28px;
    color: #fff; font-weight: 700; font-size: 24px;
    text-shadow: 0 4px 18px rgba(0,0,0,0.45); line-height: 1.15;
    z-index: 2;
  }

  /* Top + bottom gradient for UI legibility (sit on top of video) */
  .refs-mobile-item::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 160px;
    background: linear-gradient(180deg, rgba(0,0,0,0.55), transparent);
    z-index: 3; pointer-events: none;
  }
  .refs-mobile-item::after {
    content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 260px;
    background: linear-gradient(0deg, rgba(0,0,0,0.72), transparent);
    z-index: 3; pointer-events: none;
  }

  /* First reel — scroll-driven growing card.
     During zoom-in, .refs-fg and .refs-bg become fixed-positioned and follow the
     --card-x/y/w/h/r vars set by JS. The FG is `contain` so the 9:16 video is fully
     visible; the BG sits behind it (same coords) blurred, so as the card aspect
     exceeds 9:16 the letterbox bars show the blurred video — visible from the start.
     Overlays (UI, gradients) stay hidden until the card has reached full size. */
  .refs-mobile-item.is-first {
    background: var(--bg, #fff);
  }

  /* Lift the growing first-reel card above all section text. Sections stay
     TRANSPARENT (no var(--bg) bg) so the .noise-layer behind <main> and the
     .word-noise::before green block in the hero (which sits at z-index: -1)
     remain visible — earlier we forced an opaque bg here to mask the rising
     card, but the explicit z-index: 50 below now handles that properly. */
  .refs-mobile-item.is-first.zooming {
    z-index: 50;
    background: transparent;
  }
  .refs-mobile-item.is-first.zooming .refs-fg {
    position: fixed;
    inset: auto;
    top: var(--card-y, 0);
    left: var(--card-x, 0);
    width: var(--card-w, 100vw);
    height: var(--card-h, 100dvh);
    border-radius: var(--card-r, 0);
    object-fit: contain;
    background: #000;
    z-index: 5;
    box-shadow: 0 24px 60px -12px rgba(0,0,0,0.45), 0 8px 24px -8px rgba(0,0,0,0.25);
    will-change: top, left, width, height, border-radius;
  }
  .refs-mobile-item.is-first.zooming .refs-bg {
    position: fixed;
    inset: auto;
    top: var(--card-y, 0);
    left: var(--card-x, 0);
    width: var(--card-w, 100vw);
    height: var(--card-h, 100dvh);
    border-radius: var(--card-r, 0);
    object-fit: cover;
    filter: blur(40px) saturate(1.4) brightness(0.6);
    transform: none;
    opacity: 1;
    z-index: 4;
    clip-path: inset(0 round var(--card-r, 0));
    will-change: top, left, width, height;
  }
  .refs-mobile-item.is-first.zooming .refs-mui,
  .refs-mobile-item.is-first.zooming .refs-tap-area,
  .refs-mobile-item.is-first.zooming .refs-mui-counter {
    opacity: var(--late-opacity, 0);
  }
  .refs-mobile-item.is-first.zooming::before,
  .refs-mobile-item.is-first.zooming::after {
    opacity: var(--late-opacity, 0);
  }

  /* Invisible tap-area that covers the video — toggles mute when tapped */
  .refs-tap-area {
    position: absolute; inset: 0;
    z-index: 4;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  /* UI overlay — sits on top of the tap area; only its concrete children catch clicks */
  .refs-mui {
    position: absolute; inset: 0; z-index: 5;
    display: flex; flex-direction: column;
    pointer-events: none; color: #fff;
  }
  .refs-mui > * { pointer-events: auto; }

  .refs-mui-spacer { flex: 1; pointer-events: none; }

  .refs-mui-bottom {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 12px;
    padding: 16px 16px calc(env(safe-area-inset-bottom) + 24px);
    /* Empty space in the bottom row passes taps through to the tap-area below;
     * the buttons re-enable pointer-events on themselves. */
    pointer-events: none;
  }
  .refs-mui-meta { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; pointer-events: none; }
  .refs-mui-meta .pill-row {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(255,255,255,0.85);
  }
  .refs-mui-meta .pill-row .pill {
    display: inline-flex; padding: 3px 8px;
    border-radius: 999px; background: var(--accent); color: #000;
    font-weight: 700; font-size: 10px;
  }
  .refs-mui-meta .title {
    font-size: 18px; font-weight: 700;
    letter-spacing: -0.02em; line-height: 1.2;
    text-wrap: balance;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  }

  /* Bottom-row action stack: mute (round, glassy) + info (pill) */
  .refs-mui-actions {
    display: flex; align-items: center; gap: 10px;
    flex-shrink: 0;
    pointer-events: auto;
  }
  .refs-mui-mute {
    width: 42px; height: 42px;
    border-radius: 999px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    display: grid; place-items: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s var(--ease-spring), border-color 0.2s;
    flex-shrink: 0;
  }
  .refs-mui-mute:active { transform: scale(0.92); }
  .refs-mui-mute svg { width: 18px; height: 18px; }
  .refs-mui-mute .ico-unmuted { display: none; }
  .refs-mui-mute.is-unmuted .ico-muted { display: none; }
  .refs-mui-mute.is-unmuted .ico-unmuted { display: block; }
  .refs-mui-mute.is-unmuted {
    background: var(--accent); color: #000; border-color: transparent;
    box-shadow: 0 4px 16px rgba(0,255,0,0.3);
  }

  .refs-mui-info {
    flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.95); color: #000;
    border: none; font-family: inherit;
    font-weight: 700; font-size: 13px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.2s var(--ease-spring);
  }
  .refs-mui-info:active { transform: scale(0.94); }
  .refs-mui-info svg { width: 14px; height: 14px; }

  .refs-mui-counter {
    position: absolute;
    /* push below sticky header (header is top:16px + ~50px = ~70px on mobile) */
    top: calc(env(safe-area-inset-top) + 84px);
    left: 16px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    z-index: 5;
    pointer-events: none;
  }
  .refs-mui-counter b { color: var(--accent); }

  .refs-mui-hint {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    font-size: 13px; font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 5;
    white-space: nowrap;
  }
  .refs-mui-hint.show { opacity: 1; }

  /* Bottom Sheet Modal */
  .refs-sheet {
    display: flex;
    position: fixed; inset: 0;
    z-index: 200;
    align-items: flex-end;
    visibility: hidden;
    pointer-events: none;
  }
  .refs-sheet.open { visibility: visible; pointer-events: auto; }
  .refs-sheet-bg {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
  }
  .refs-sheet.open .refs-sheet-bg { opacity: 1; }
  .refs-sheet-inner {
    position: relative;
    width: 100%;
    max-height: 82dvh;
    background: var(--bg);
    color: var(--ink);
    border-radius: 24px 24px 0 0;
    padding: 28px 24px calc(env(safe-area-inset-bottom) + 32px);
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.35s var(--ease-out);
    box-shadow: 0 -20px 60px rgba(0,0,0,0.4);
  }
  .refs-sheet.open .refs-sheet-inner { transform: translateY(0); }
  .refs-sheet-grip {
    width: 44px; height: 5px;
    border-radius: 999px;
    background: var(--line-strong);
    margin: 0 auto 18px;
  }
  .refs-sheet-close {
    position: absolute; top: 18px; right: 18px;
    width: 36px; height: 36px;
    border-radius: 999px;
    background: rgba(0,0,0,0.06);
    border: none;
    display: grid; place-items: center;
    color: var(--ink);
    cursor: pointer;
  }
  .refs-sheet-close svg { width: 16px; height: 16px; }
  .refs-sheet-content .ref-num {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 14px;
  }
  .refs-sheet-content .ref-num .pill {
    display: inline-flex; padding: 4px 9px;
    border-radius: 999px; background: var(--accent); color: #000;
    font-weight: 700; font-size: 10px;
  }
  .refs-sheet-content h3 {
    font-size: 26px; font-weight: 800;
    letter-spacing: -0.02em; line-height: 1.1;
    text-wrap: balance;
    margin-bottom: 14px;
  }
  .refs-sheet-content p {
    font-size: 15px; line-height: 1.55;
    color: var(--ink-soft);
    margin-bottom: 18px;
  }
  .refs-sheet-content .metrics {
    display: flex; gap: 24px; flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    margin-top: 8px;
  }
  .refs-sheet-content .metric { display: flex; flex-direction: column; gap: 4px; }
  .refs-sheet-content .metric .v { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
  .refs-sheet-content .metric .l { font-size: 10px; color: var(--ink-soft); letter-spacing: 0.08em; text-transform: uppercase; }
}

/* ---------- about basti ---------- */
.about-basti {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.basti-image {
  position: relative;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
}
.basti-image::before {
  /* big punchy green disc behind subject */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10%;
  width: 125%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    var(--accent-deep) 0%,
    rgba(0, 209, 0, 0.85) 35%,
    rgba(0, 209, 0, 0.45) 60%,
    rgba(0, 209, 0, 0.15) 78%,
    transparent 90%
  );
  filter: blur(36px);
  transform: translateX(-50%);
  z-index: 0;
  animation: bastiGlow 8s ease-in-out infinite;
}
.basti-image::after {
  /* animated TV-static overlay — driven by the same Tweaks as the background noise */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Inherit the parent's rounding so the noise frame's corners are clipped
     reliably. Without this, iOS Safari renders the mix-blend-mode layer as a
     hard rectangle that breaks out of the parent's overflow:hidden box and
     visually "un-rounds" the corners. */
  border-radius: inherit;
  background-image: var(--noise-img);
  background-size: var(--noise-grain-size) var(--noise-grain-size);
  mix-blend-mode: screen;
  opacity: var(--noise-opacity-strong, 1);
  animation: noiseSwap var(--noise-anim-speed) steps(1) infinite;
  pointer-events: none;
}
.basti-image img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
@keyframes bastiGlow {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.95; }
  50%      { transform: translateX(-50%) scale(1.04); opacity: 1; }
}
.basti-text { display: flex; flex-direction: column; gap: 22px; }
.basti-text .signature {
  font-size: clamp(60px, 6vw, 96px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.basti-text .signature .green { color: var(--accent-deep); }
.basti-text p { color: var(--ink-soft); max-width: 50ch; line-height: 1.6; font-size: 17px; }
.basti-text p strong { color: var(--ink); font-weight: 600; }
.basti-facts {
  margin-top: 12px;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.fact {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.fact .v { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.fact .l { color: var(--ink-soft); font-size: 13px; margin-top: 4px; }

/* ---------- faq ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.faq-grid h2 { letter-spacing: -0.04em; }
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--line);
  padding-block: 22px;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  letter-spacing: -0.015em;
  width: 100%; text-align: left;
  cursor: pointer;
}
.faq-q .plus {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  position: relative;
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s, transform 0.4s var(--ease-spring);
}
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), background 0.25s;
}
.faq-q .plus::before { width: 12px; height: 1.5px; }
.faq-q .plus::after { width: 1.5px; height: 12px; }
.faq-item.open .faq-q .plus {
  background: var(--accent);
  border-color: transparent;
  transform: rotate(180deg);
}
.faq-item.open .faq-q .plus::after { transform: scaleY(0); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  max-width: 64ch;
  transition: max-height 0.4s var(--ease-out), padding 0.4s;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding-top: 14px;
}

/* ---------- contact ---------- */
.contact {
  position: relative;
  padding-block: clamp(80px, 12vw, 160px);
  overflow: hidden;
}
.contact-glass {
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  position: relative;
  overflow: hidden;
}
.contact-glass h2 { letter-spacing: -0.04em; }
.contact-side { display: flex; flex-direction: column; gap: 28px; }
.contact-side .lead { color: var(--ink-soft); }
.contact-meta {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: auto;
}
.contact-meta a {
  display: flex; align-items: center; gap: 12px;
  font-weight: 500;
  font-size: 17px;
  transition: color 0.2s;
}
.contact-meta a:hover { color: var(--accent-deep); }
.contact-meta .ico {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.5);
  border-radius: var(--radius-sm);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea {
  background: rgba(255,255,255,0.04);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 4px rgba(0, 255, 0, 0.12);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  align-self: flex-start;
  padding: 10px 18px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.btn-submit:hover {
  background: #fff;
  color: #000;
  border-color: #000;
  box-shadow: none;
}
.btn-submit:hover .arrow {
  background: #000;
  color: var(--accent);
}
.btn-submit .arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  transition: transform 0.3s var(--ease-spring), background 0.25s ease, color 0.25s ease;
}
.btn-submit:hover .arrow { transform: rotate(-45deg); }

.form-status {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  min-height: 18px;
}
.form-status.success { color: var(--accent-deep); }

/* ---------- footer ---------- */
.footer {
  padding-block: 60px;
  background: #2e2e2a;
  color: #f4f4f0;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  /* full-bleed: break out of any parent max-width */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: none;
}
.footer-wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer .brand { font-size: 22px; }
.footer .tagline {
  margin-top: 12px;
  color: rgba(244,244,240,0.65) !important;
  font-size: 14px;
  max-width: 36ch;
}
.footer h4 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244,244,240,0.55) !important;
  font-weight: 600;
  margin-bottom: 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { color: #f4f4f0 !important; font-size: 14px; transition: color 0.2s; }
.footer ul a:hover { color: var(--accent) !important; }
.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(244,244,240,0.55);
}
/* socials — shared row layout */
.socials {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f4f4f0;
  flex: 0 0 auto;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, color 0.2s;
}
.socials a svg { width: 16px; height: 16px; display: block; }
.socials a:hover {
  background: var(--accent);
  border-color: transparent;
  color: #000;
  transform: translateY(-2px);
}
.socials a:hover svg { color: #000; }

/* mobile menu socials sit on light background — adapt border + colour */
.mobile-menu-foot .socials a {
  border-color: rgba(0,0,0,0.14);
  color: var(--ink);
}
.mobile-menu-foot .socials a:hover {
  background: var(--ink);
  color: var(--accent);
  border-color: transparent;
}
.mobile-menu-foot .socials a:hover svg { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 2px; margin-right: 4px; }
  .nav a { padding: 8px 12px; font-size: 13px; }
  .header-cta { padding: 8px 14px; font-size: 13px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .header { padding: 8px 8px 8px 16px; gap: 12px; }
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .brand-logo { height: 20px; }

  .section-pad { padding-block: clamp(48px, 10vw, 80px); }

  /* hero */
  .hero { padding-top: clamp(100px, 16vh, 140px); padding-bottom: clamp(50px, 8vh, 90px); min-height: 100vh; min-height: 100dvh; gap: 26px; }
  .hero h1 { font-size: clamp(48px, 13vw, 84px); line-height: 1; }
  .hero .lead { font-size: 17px; }
  .scroll-indicator { display: none; }

  /* about + ref intro + about-basti + faq + contact */
  .about-agency, .ref-intro, .about-basti, .faq-grid, .contact-glass {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .services-head { flex-direction: column; align-items: start; gap: 24px; }
  .service-card, .service-card.span-6, .service-card.span-8, .service-card.span-12 {
    grid-column: span 12;
    min-height: 280px;
  }
  .service-card.span-12 .body-row { flex-direction: column; align-items: start; gap: 20px; }
  .service-card.span-12 .body-row .btn-pill { width: auto; }
  .viz-orbit { display: none; }

  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
  .stat { padding: 24px 18px; }
  .stat .v { font-size: clamp(28px, 8vw, 40px); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }

  /* about basti */
  .basti-image { aspect-ratio: 4 / 5; max-width: 480px; }
  .basti-text .signature { font-size: clamp(48px, 12vw, 72px); }
  .basti-facts { grid-template-columns: 1fr 1fr; }

  /* faq */
  .faq-q { font-size: 17px; }
  .faq-q .plus { width: 26px; height: 26px; }

  /* contact */
  .contact { padding-block: clamp(60px, 12vw, 100px); }
  .contact-glass { padding: 28px 24px; }
  .field-row { grid-template-columns: 1fr; }
  .btn-submit { width: 100%; justify-content: center; padding: 14px 22px; font-size: 16px; }

  /* footer */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 40px; }

  /* hide some scattered noise rects on small screens */
  .noise-rect:nth-child(n+7) { display: none; }
}

@media (max-width: 520px) {
  :root { --gutter: 22px; }
  .header { top: 10px; width: calc(100% - 20px); padding: 6px 6px 6px 14px; }
  .brand-logo { height: 18px; }
  .menu-toggle { width: 38px; height: 38px; }

  h1 { letter-spacing: -0.03em; }
  .hero h1 { font-size: clamp(44px, 14vw, 64px); }

  .eyebrow { font-size: 13px; }
  h2 { font-size: clamp(32px, 9vw, 48px); }

  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }

  .footer-inner { grid-template-columns: 1fr; }

  .basti-facts { grid-template-columns: 1fr; }
}

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

/* ---------- noise-intensity tweak ---------- */
[data-noise="0"] .noise-rect, [data-noise="0"] .word-noise::after { opacity: 0 !important; }
[data-noise="0"] .basti-image .frame-noise { opacity: 0 !important; }
