/* ============================================================
   APEX.UZ , shared design system (multi-page rebuild)
   Navy-black editorial. Locked tokens, elevated polish.
   ============================================================ */
:root {
  /* Colors */
  --bg-primary:    #0A0F1A;
  --bg-raised:     #121827;
  --bg-deep:       #070A12;
  --text-primary:  #F5F0E8;
  --text-muted:    #CFC7BB;
  --border-subtle: rgba(245,240,232,0.10);
  --hairline:      rgba(245,240,232,0.16);
  --accent: #F0E4C8;

  /* Type */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(1.25rem, 5vw, 5rem);

  /* Motion */
  --t-fast: 180ms ease;
  --t-med:  320ms ease;
  --ease-out: cubic-bezier(.2,.7,.2,1);

  /* Shine / polish (new, restrained) */
  --sheen: linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.04) 42%, rgba(255,255,255,0) 60%);
  --card-shadow: 0 1px 0 rgba(245,240,232,0.05) inset, 0 24px 60px -34px rgba(0,0,0,0.85);
  --card-glow: 0 0 0 1px var(--hairline), 0 30px 70px -38px rgba(0,0,0,0.9), 0 0 60px -30px rgba(245,240,232,0.10);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  background: var(--bg-primary);
}
body {
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.0625rem, 0.5vw + 1rem, 1.125rem);
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; padding: 0; }
[hidden] { display: none !important; }

::selection { background: var(--text-primary); color: var(--bg-primary); }
:focus-visible { outline: 1px solid var(--text-primary); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--text-primary); color: var(--bg-deep);
  padding: 0.75rem 1.25rem; font-family: var(--font-mono); font-size: 0.8rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- texture overlays ---------- */
.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}
.vignette {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 45%, transparent 55%, rgba(0,0,0,0.42) 100%);
}
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 520px; height: 520px;
  margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(207,199,187,0.07) 0%, rgba(207,199,187,0.03) 35%, transparent 65%);
  opacity: 0; transition: opacity 500ms ease; will-change: transform;
}

/* ---------- type helpers ---------- */
.display { font-family: var(--font-display); font-weight: 300; line-height: 1.05; letter-spacing: -0.015em; font-optical-sizing: auto; }
.mono {
  font-family: var(--font-mono); font-weight: 400;
  font-size: clamp(0.75rem, 0.4vw + 0.65rem, 0.8125rem);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted);
}

/* ---------- surveying motifs ---------- */
.crossmark { position: relative; display: inline-block; width: 11px; height: 11px; flex: 0 0 auto; }
.crossmark::before, .crossmark::after { content: ""; position: absolute; background: var(--text-muted); }
.crossmark::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.crossmark::after  { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }
.survey-line { display: block; flex: 1 1 auto; height: 1px; background: var(--border-subtle); min-width: 24px; }

/* ---------- buttons (with subtle sheen) ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-body); font-weight: 500; font-size: 1rem; letter-spacing: 0.01em;
  padding: 0.95em 1.7em; border: 1px solid var(--text-primary); overflow: visible;
  transition: background var(--t-fast), color var(--t-fast), opacity var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--sheen); opacity: 0.9; mix-blend-mode: soft-light;
}
.btn--primary { background: var(--text-primary); color: var(--bg-deep); box-shadow: 0 10px 30px -18px rgba(245,240,232,0.55); }
.btn--primary:hover { background: transparent; color: var(--text-primary); transform: translateY(-2px); box-shadow: 0 14px 34px -20px rgba(245,240,232,0.4); }
.btn--ghost { background: transparent; color: var(--text-primary); border-color: var(--border-subtle); }
.btn--ghost::before { opacity: 0.35; }
.btn--ghost:hover { border-color: var(--text-primary); transform: translateY(-2px); }
.btn:disabled { opacity: 0.45; cursor: progress; transform: none; }

.link-phone {
  color: var(--text-primary); border-bottom: 1px solid var(--text-primary);
  transition: border-color var(--t-fast), opacity var(--t-fast); white-space: nowrap; text-decoration: none;
}
.nav__phone.link-phone { border-bottom: none; text-decoration: none; }
.link-phone:hover, .link-phone:focus-visible { border-color: var(--text-primary); opacity: 0.85; outline: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1rem var(--gutter);
  background: rgba(7,10,18,0.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: padding var(--t-med), background var(--t-med), border-color var(--t-med);
}
.nav.is-scrolled { padding: 0.6rem var(--gutter); background: rgba(7,10,18,0.9); border-bottom-color: var(--border-subtle); }
.nav__logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.nav__logo-text { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; letter-spacing: 0.02em; color: var(--text-primary); }
.nav__logo img { height: 72px; width: auto; display: block; transition: height var(--t-med); }
.nav.is-scrolled .nav__logo img { height: 56px; }

.nav__links { display: flex; gap: clamp(1.25rem, 2.5vw, 2.5rem); margin-left: auto; font-size: 0.95rem; font-weight: 400; }
.nav__links a { position: relative; color: var(--text-muted); transition: color var(--t-fast); padding-bottom: 2px; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--text-primary); transition: width var(--t-fast);
}
.nav__links a:hover { color: var(--text-primary); }
.nav__links a:hover::after { width: 100%; }
.nav__links a[aria-current="page"] { color: var(--text-primary); }
.nav__links a[aria-current="page"]::after { width: 100%; }

.nav__right { display: flex; align-items: center; gap: 1.25rem; }
.nav__phone { font-size: 0.78rem; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 0.5rem 0.95rem; margin: 0.25rem 0; border: 1px solid var(--border-subtle); border-radius: 999px; color: var(--text-primary); line-height: 1; transition: border-color var(--t-fast), background var(--t-fast); }
.nav__phone:hover, .nav__phone:focus-visible { border-color: var(--text-primary); background: rgba(245,240,232,0.04); }
.nav .nav__phone.link-phone { border-bottom: 1px solid var(--border-subtle); }

.lang { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; }
.lang__btn { color: var(--text-muted); padding: 0.2em 0.1em; transition: color var(--t-fast); }
.lang__btn.is-active { color: var(--text-primary); }
.lang__btn:hover { color: var(--text-primary); }
.lang__sep { color: var(--border-subtle); }

.nav__burger { display: none; width: 30px; height: 22px; position: relative; }
.nav__burger span { position: absolute; left: 0; height: 1.5px; width: 100%; background: var(--text-primary); transition: transform var(--t-med), opacity var(--t-med); }
.nav__burger span:nth-child(1) { top: 0; }
.nav__burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav__burger span:nth-child(3) { bottom: 0; }
body.menu-open .nav__burger span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }

/* ---------- mobile overlay ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 90; background: var(--bg-deep);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 2rem; padding: var(--gutter);
  transform: translateY(-100%); opacity: 0; visibility: hidden;
  transition: transform var(--t-med), opacity var(--t-med), visibility var(--t-med);
}
body.menu-open .overlay { transform: translateY(0); opacity: 1; visibility: visible; }
.overlay__links { display: flex; flex-direction: column; gap: 1.5rem; }
.overlay__links a { font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 9vw, 3rem); color: var(--text-primary); }
.overlay__links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }
.overlay__lang { font-size: 1rem; }

/* ============================================================
   FIXED ROTATING GLOBE BACKGROUND (desktop)
   ============================================================ */
.globe-bg {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1;
  pointer-events: none; background-color: var(--bg-primary); overflow: hidden;
}
.globe-bg__planet {
  position: absolute; top: 50%; left: 50%; width: 55vw; height: 55vw;
  margin-top: -27.5vw; margin-left: -27.5vw; transform-origin: center center; object-fit: cover;
  filter: brightness(0.85) contrast(1.05) saturate(0.85);
  -webkit-mask-image: radial-gradient(circle at center, #000 52%, transparent 78%);
  mask-image: radial-gradient(circle at center, #000 52%, transparent 78%);
  animation: spin 60s linear infinite;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
.globe-bg__light {
  position: absolute; top: 50%; left: 50%; width: 80vw; height: 80vw;
  margin-top: -45vw; margin-left: -40vw;
  background: radial-gradient(circle at 50% 30%, rgba(245,240,232,0.35) 0%, transparent 60%);
  mix-blend-mode: screen; pointer-events: none;
}

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section {
  position: relative;
  padding-block: clamp(3.5rem, 8.5vw, 7rem);
  padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  border-top: 1px solid var(--border-subtle);
}
.section.has-motif { position: relative; overflow: hidden; }
.section__inner { position: relative; z-index: 1; }

/* subtle translucent band colours so the globe reads through */
.section--tint-1 { background-color: rgba(10,15,26,0.82); }
.section--tint-2 { background-color: rgba(10,15,26,0.85); }
.section--tint-3 { background-color: rgba(10,15,26,0.88); }
.section--tint-4 { background-color: rgba(10,15,26,0.90); }
.section--feature { background-color: rgba(10,15,26,0.82); background-image: radial-gradient(70% 60% at 50% 0%, rgba(245,240,232,0.05), transparent 65%); }

/* desktop: decorative motif hidden, only shown on mobile */
.globe-motif { display: none; }

.section__head { display: flex; align-items: center; gap: 1rem; margin-bottom: clamp(2rem, 4.5vw, 3.5rem); position: relative; z-index: 1; }
.section__num { color: var(--text-muted); flex: 0 0 auto; }
.section__head .crossmark { margin-right: 0.25rem; }
.section__title { font-size: clamp(2rem, 5vw, 3.5rem); flex: 0 0 auto; white-space: nowrap; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 720ms var(--ease-out), transform 720ms var(--ease-out); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
html.no-js .reveal { opacity: 1; transform: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: rgba(10,15,26,0.35); }
.hero--page { min-height: auto; }
.hero__content {
  position: relative; z-index: 3; width: 100%; margin-inline: auto;
  padding: 8rem var(--gutter) 4rem;
  padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2));
}
.hero--page .hero__content { padding-block: clamp(7rem, 14vw, 9rem) clamp(2.5rem, 6vw, 4rem); }
.hero__inner { max-width: min(100%, 62ch); }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1.75rem; }
.hero__h1 { font-size: clamp(3rem, 9vw, 7rem); line-height: 1.02; max-width: 18ch; margin-bottom: 1.5rem; color: var(--accent); font-weight: 500; }
.hero--page .hero__h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
.hero__sub { font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--text-muted); font-weight: 400; margin-bottom: 2.5rem; max-width: 40ch; }
.hero__cta { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.hero__buttons { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.9rem 1rem; align-items: center; }
.hero__call { font-size: 0.95rem; color: var(--text-muted); }

/* hero entrance (js only, one orchestrated moment per page) */
html.js .hero__eyebrow, html.js .hero__h1, html.js .hero__sub, html.js .hero__cta { opacity: 0; transform: translateY(28px); }
html.js body.is-ready .hero__eyebrow,
html.js body.is-ready .hero__h1,
html.js body.is-ready .hero__sub,
html.js body.is-ready .hero__cta { opacity: 1; transform: none; transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
html.js body.is-ready .hero__eyebrow { transition-delay: 80ms; }
html.js body.is-ready .hero__h1      { transition-delay: 220ms; }
html.js body.is-ready .hero__sub     { transition-delay: 460ms; }
html.js body.is-ready .hero__cta     { transition-delay: 600ms; }

/* ---------- quick services strip (home) ---------- */
.qstrip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); }
.qstrip__item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.6rem; padding-top: 1.4rem;
  border-top: 1px solid var(--text-primary); color: var(--text-muted);
  transition: transform var(--t-med);
}
.qstrip__item:hover { transform: translateY(-3px); }
.qstrip__media { display: block; margin: 1.25rem auto 0; border: 1px solid var(--border-subtle); background: var(--bg-deep); overflow: hidden; border-radius: 4px; aspect-ratio: 1 / 1; width: 100%; max-width: 220px; }
.qstrip__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qstrip__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 1.9rem); color: var(--text-primary); }

/* ============================================================
   GENERIC CONTENT
   ============================================================ */
.lead {
  max-width: 60ch; font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.4;
}
.prose { max-width: 62ch; color: var(--text-muted); display: grid; gap: 1.2rem; }
.prose p { max-width: 62ch; }

/* ---------- why grid ---------- */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 5vw, 4rem) clamp(2rem, 6vw, 5rem); }
.why__card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 1.25rem; row-gap: 0.75rem; padding-top: 1.5rem; border-top: 1px solid var(--border-subtle); }
.why__num { grid-row: 1 / 3; color: var(--text-muted); padding-top: 0.35rem; }
.why__title { font-size: clamp(1.4rem, 2.5vw, 1.75rem); }
.why__body { color: var(--text-muted); grid-column: 2; max-width: 46ch; }

/* ============================================================
   SERVICES PILLARS
   ============================================================ */
.pillars { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.pillar {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start; padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border: 1px solid var(--border-subtle); background: var(--bg-raised);
  box-shadow: var(--card-shadow);
  transition: border-color var(--t-med), box-shadow var(--t-med);
}
.pillar:hover { border-color: var(--hairline); box-shadow: var(--card-glow); }
.pillar__aside { display: flex; flex-direction: column; gap: 0.9rem; position: sticky; top: 96px; }
.pillar__media { display: block; margin: 1.5rem auto 0; border: 1px solid var(--border-subtle); background: var(--bg-deep); overflow: hidden; border-radius: 4px; aspect-ratio: 3 / 2; width: 100%; max-width: 360px; }
.pillar__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pillar__num { font-size: 2.5rem; width: 3.75rem; height: 3.75rem; display: grid; place-items: center; border: 1px solid var(--border-subtle); }
.pillar__name { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.pillar__hook { color: var(--text-primary); font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.35; }
.pillar__body { color: var(--text-muted); display: grid; gap: 1.25rem; }
.pillar__label { color: var(--text-muted); margin: 0.5rem 0 0.25rem; }
.pillar__list { display: grid; gap: 0.75rem; }
.pillar__list li { position: relative; padding-left: 1.5rem; color: var(--text-muted); }
.pillar__list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 10px; height: 1px; background: var(--text-muted); }
.pillar__closing { color: var(--text-primary); font-family: var(--font-display); font-weight: 300; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.4; padding-top: 0.5rem; border-top: 1px solid var(--border-subtle); }

/* ============================================================
   INTAKE BOT BAND (secret weapon)
   ============================================================ */
.intake { position: relative; overflow: hidden; }
.intake .section__title { color: var(--accent); }
.intake .section__inner {
  border: 1px solid var(--hairline);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(245,240,232,0.08), transparent 55%),
    linear-gradient(180deg, rgba(18,24,39,0.9), rgba(7,10,18,0.9));
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--card-glow);
}
.intake__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.intake__grid > div:last-child { align-self: center; }
.intake__hook { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1.25rem; }
.intake__body { color: var(--text-muted); }
.intake__list { display: grid; gap: 0.9rem; }
.intake__list li { position: relative; padding-left: 1.75rem; color: var(--text-primary); }
.intake__list li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 12px; height: 12px;
  border: 1px solid var(--text-primary); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(245,240,232,0.9), transparent 70%);
}
.intake__closing { margin-top: 1.5rem; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.4; }
.intake__media { border: 1px solid var(--border-subtle); background: var(--bg-deep); overflow: hidden; box-shadow: var(--card-glow); border-radius: 4px; aspect-ratio: 1 / 1; max-width: 340px; margin-inline: auto; }
.intake__media--sm { max-width: 460px; margin-top: -1.5rem; }
.intake__facts { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.25rem 0; }
.intake__fact { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.05em; color: var(--text-primary); border: 1px solid var(--border-subtle); padding: 0.45rem 0.9rem; border-radius: 999px; }
.intake__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   WORK GRID + FILTER
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.filter {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.7em 1.15em; border: 1px solid var(--border-subtle); color: var(--text-muted);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.filter:hover { border-color: var(--text-primary); color: var(--text-primary); transform: translateY(-2px); }
.filter.is-active { background: var(--text-primary); color: var(--bg-deep); border-color: var(--text-primary); }

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.25rem); align-items: start; }
.cases--home { grid-template-columns: repeat(4, 1fr); }
.case {
  border: 1px solid var(--border-subtle); background: var(--bg-raised);
  display: flex; flex-direction: column; box-shadow: var(--card-shadow);
  transition: border-color var(--t-med), transform var(--t-med), box-shadow var(--t-med);
}
.case:hover { border-color: var(--hairline); transform: translateY(-4px); box-shadow: var(--card-glow); }
.case__link-wrap { display: flex; flex-direction: column; height: 100%; }
.case__media {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--bg-deep); border-bottom: 1px solid var(--border-subtle);
}
.case__media img, .case__media video { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform var(--t-med); }
.case:hover .case__media img { transform: scale(1.04); }
.case__play {
  position: absolute; inset: 0; margin: auto; width: 58px; height: 58px;
  display: grid; place-items: center; border: 1px solid var(--text-primary); border-radius: 50%;
  background: rgba(7,10,18,0.5); color: var(--text-primary); pointer-events: none;
}
.case__meta { display: flex; flex-direction: column; gap: 0.6rem; padding: clamp(1.25rem, 2.5vw, 1.6rem); }
.case__client { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; }
.cases--home .case__client { font-size: 1.3rem; }
.case__tag { color: var(--text-muted); }
.case__tagline { color: var(--text-muted); font-size: 0.98rem; }
.case__more { align-self: flex-start; margin-top: 1rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-primary); display: inline-flex; align-items: center; gap: 0.5em; padding: 0.7rem 1.1rem; border: 1px solid var(--border-subtle); border-radius: 999px; transition: border-color var(--t-fast), gap var(--t-fast), background var(--t-fast); }
.case:hover .case__more { gap: 0.8em; border-color: var(--text-primary); background: rgba(245,240,232,0.04); }

.work-more { margin-top: clamp(2rem, 4vw, 3rem); }

/* ============================================================
   CASE STUDY DETAIL PAGE
   ============================================================ */
.cs { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.cs__media {
  border: 1px solid var(--border-subtle); background: var(--bg-deep); overflow: hidden;
  box-shadow: var(--card-glow);
}
.cs__media img { width: 100%; height: auto; display: block; }
.cs__media video { width: 100%; height: auto; display: block; background: #000; }
.cs__media--portrait { max-width: 420px; margin-inline: auto; }
.cs__media--portrait video { aspect-ratio: 9 / 16; object-fit: contain; }
.cs__body { display: grid; gap: 1.4rem; max-width: 66ch; }
.cs__tagline { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35; }
.cs__text { color: var(--text-muted); }
.cs__deliverables { display: grid; gap: 0.85rem; margin-top: 0.5rem; }
.cs__deliverables li { position: relative; padding-left: 1.6rem; color: var(--text-muted); }
.cs__deliverables li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 10px; height: 1px; background: var(--text-muted); }
.cs__closing { color: var(--text-primary); font-family: var(--font-display); font-weight: 300; font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.4; padding-top: 1.25rem; border-top: 1px solid var(--border-subtle); }
.cs__cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 0.5rem; }
.cs__back { margin-top: 2rem; }
.cs__back a { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; transition: color var(--t-fast); }
.cs__back a:hover { color: var(--text-primary); }

/* ============================================================
   ABOUT / TEAM
   ============================================================ */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
.member {
  display: flex; flex-direction: column; gap: 0.5rem; padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border-subtle); background: var(--bg-raised); box-shadow: var(--card-shadow);
  transition: border-color var(--t-med), transform var(--t-med), box-shadow var(--t-med);
}
.member:hover { border-color: var(--hairline); transform: translateY(-4px); box-shadow: var(--card-glow); }
.member__mono { font-size: 2.75rem; width: 4rem; height: 4rem; display: grid; place-items: center; border: 1px solid var(--border-subtle); color: var(--text-primary); margin-bottom: 1rem; letter-spacing: 0; }
.member__name { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; }
.member__role { color: var(--text-muted); margin-bottom: 0.4rem; }
.member__bio { color: var(--text-muted); font-size: 0.98rem; }
.member__phone { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.75rem; display: inline-block; letter-spacing: 0.04em; transition: color var(--t-fast); }
.member__phone:hover { color: var(--text-primary); }

/* ============================================================
   CTA BAND
   ============================================================ */
.ctaband .section__inner { display: grid; gap: 1.75rem; justify-items: start; max-width: 60ch; }
.ctaband__text { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.3; }

/* ============================================================
   CONTACT / FORM
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: minmax(0, 640px); justify-content: center; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.booking__heading { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 1.25rem; }
.booking__text { color: var(--text-muted); max-width: 44ch; margin-bottom: 2rem; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; grid-column: 1 / -1; }
.field--half { grid-column: span 1; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--text-primary);
  background: var(--bg-raised); border: 1px solid var(--border-subtle); padding: 0.85em 1em;
  transition: border-color var(--t-fast); width: 100%;
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text-primary); }
.field input::placeholder, .field textarea::placeholder { color: #6f6a61; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.8); cursor: pointer; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #8a4a3a; }
.field__error { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: #c07a68; min-height: 0.8rem; }

.form__submit { grid-column: 1 / -1; justify-self: start; margin-top: 0.5rem; }
.form__status { grid-column: 1 / -1; font-size: 0.97rem; line-height: 1.5; min-height: 1.2rem; }
.form__status.is-success { color: var(--text-primary); }
.form__status.is-error { color: #c07a68; }

.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info__heading { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.contact__list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.5rem; }
.contact__row {
  display: flex; align-items: center; gap: 1rem; min-height: 56px; padding: 0.85rem 1.1rem;
  border: 1px solid var(--border-subtle); border-radius: 10px; background: rgba(255,255,255,0.02);
  color: var(--text-primary); text-decoration: none; width: 100%; box-sizing: border-box;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.contact__row:hover, .contact__row:focus-visible { border-color: var(--text-primary); background: rgba(255,255,255,0.05); outline: none; }
.contact__row:active { transform: translateY(1px); }
.contact__icon { color: var(--text-primary); display: inline-flex; flex: 0 0 auto; }
.contact__icon svg { display: block; }
.contact__label { color: var(--text-muted); min-width: 9rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.contact__value { font-size: 1.05rem; color: var(--text-primary); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  flex-shrink: 0;
  position: relative;
  padding-block: clamp(3rem, 6vw, 4.5rem);
  padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  border-top: 1px solid var(--border-subtle); background: rgba(10,15,26,0.92); overflow: hidden;
}
.footer__inner { position: relative; z-index: 1; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); padding-bottom: 2.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border-subtle); }
.footer__brand { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.footer__logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.footer__logo-text { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; letter-spacing: 0.02em; color: var(--text-primary); }
.footer__logo img { height: 60px; width: auto; display: block; }
.footer__tagline { color: var(--text-muted); max-width: 26ch; font-size: 0.95rem; }
.footer__phone { color: var(--text-primary); font-size: 0.9rem; }
.footer__col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__colhead { color: var(--text-muted); letter-spacing: 0.08em; font-size: 0.75rem; margin-bottom: 0.25rem; }
.footer__col a { color: var(--text-muted); transition: color var(--t-fast); font-size: 0.92rem; }
.footer__col a:hover { color: var(--text-primary); }
.footer__small { font-size: 0.78rem; opacity: 0.85; }
.footer__small span { opacity: 0.7; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer__copy { color: var(--text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
  .contact-grid { grid-template-columns: 1fr; justify-content: stretch; }
  .team { grid-template-columns: 1fr; }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .cases--home { grid-template-columns: repeat(2, 1fr); }
  .pillar { grid-template-columns: 1fr; }
  .pillar__aside { position: static; }
  .intake__grid { grid-template-columns: 1fr; }
  .qstrip { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  :root { --nav-h-mobile: calc(56px + 1.3rem + 1px); }

  html { scroll-padding-top: 64px; }

  /* NAV: grid layout [logo | centered lang | burger] */
  .nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.5rem; padding: 0.65rem var(--gutter); }
  .nav.is-scrolled { padding: 0.5rem var(--gutter); }
  .nav__logo { grid-column: 1; justify-self: start; }
  .nav__logo-text { display: none; }
  .nav__logo img { height: 56px; }
  .nav.is-scrolled .nav__logo img { height: 44px; }
  .nav__links { display: none; }
  .nav__right { display: contents; }
  .nav__right .nav__phone { display: none; }
  .nav__right .lang { display: inline-flex; grid-column: 2; justify-self: center; align-items: center; gap: 0.55rem; font-size: 0.92rem; min-height: 44px; padding: 0 0.35rem; }
  .nav__right .lang__btn { min-width: 30px; min-height: 32px; padding: 0.35em 0.4em; font-size: 0.92rem; }
  .nav__right .nav__burger { display: block; grid-column: 3; justify-self: end; width: 36px; height: 26px; }
  .nav__burger span { height: 2px; }
  .nav__burger::after { content: ""; position: absolute; inset: -10px -8px; }

  /* GLOBE: no fixed bg on mobile (iOS Safari), confined visual */
  .globe-bg { position: absolute; width: 100%; height: 100svh; }
  .globe-bg__planet { width: 95vw; height: 95vw; margin-top: -47.5vw; margin-left: -47.5vw; filter: brightness(1.05) contrast(1.05) saturate(0.9); }
  .globe-bg__light { width: 120vw; height: 120vw; margin-top: -65vw; margin-left: -60vw; }
  /* soften the light layer's hard top edge so the area under the nav is continuous */
  .globe-bg__light { -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%); mask-image: linear-gradient(to bottom, transparent 0%, #000 30%); }

  /* MOBILE DECORATIVE GLOBE MOTIFS , now on EVERY section */
  .globe-motif { display: block; position: absolute; pointer-events: none; z-index: 0; width: 78vw; height: 78vw; overflow: hidden; }
  .globe-motif img {
    width: 100%; height: 100%; object-fit: cover;
    -webkit-mask-image: radial-gradient(circle at center, #000 48%, transparent 76%);
    mask-image: radial-gradient(circle at center, #000 48%, transparent 76%);
    filter: brightness(0.7) contrast(1.05) saturate(0.8);
    animation: spin 90s linear infinite; transform-origin: center center;
  }
  /* alternating placement so it reads as a continuous atmosphere */
  .globe-motif--a { top: 6%; right: -30vw; opacity: 0.26; }
  .globe-motif--b { top: 12%; left: -32vw; width: 82vw; height: 82vw; opacity: 0.24; }
  .globe-motif--c { top: 50%; left: 50%; width: 92vw; height: 92vw; transform: translate(-50%, -50%); opacity: 0.22; }
  .globe-motif--d { bottom: -20vw; right: -26vw; width: 80vw; height: 80vw; opacity: 0.25; }

  .footer .globe-motif { display: block; bottom: -28vw; left: -30vw; width: 85vw; height: 85vw; opacity: 0.24; }

  /* HERO */
  .hero { min-height: auto; padding: 0; background: rgba(10,15,26,0.28); }
  .hero__content { padding-top: calc(var(--nav-h-mobile) + 0.5rem); padding-right: var(--gutter); padding-bottom: 4.5rem; padding-left: var(--gutter); }
  .hero--page .hero__content { padding-top: calc(var(--nav-h-mobile) + 0.5rem); }
  .hero__inner { max-width: 100%; }
  .hero__h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); line-height: 1.04; letter-spacing: -0.02em; max-width: 16ch; margin-bottom: 1.25rem; }
  .hero__sub { font-size: 1.1rem; line-height: 1.55; max-width: 34ch; margin-bottom: 2rem; }
  .hero__eyebrow { margin-bottom: 1.5rem; }
  .hero__buttons { flex-direction: column; align-items: stretch; gap: 0.75rem; width: 100%; }
  .hero__buttons .btn { width: 100%; justify-content: center; }
  .hero__cta .btn { min-height: 52px; padding: 0.95em 1.6em; font-size: 1rem; letter-spacing: 0.015em; }
  .hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
    background: linear-gradient(to bottom, transparent 0%, rgba(7,10,18,0.55) 80%, rgba(7,10,18,0.85) 100%);
    pointer-events: none; z-index: 1;
  }
  .hero__content { z-index: 3; }

  /* HOMEPAGE HERO: old single-page site values (inner pages keep the shared values above) */
  .home .globe-bg__planet { filter: brightness(0.6) contrast(1.05) saturate(0.85); opacity: 0.8; }
  .home .globe-bg__light { opacity: 0.5; }
  .home .hero { background: rgba(10,15,26,0.40); }
  .home .hero__h1 { max-width: 14ch; text-align: left; }
  .home .hero__sub { max-width: 28ch; text-align: left; }
  .home .hero__call { text-align: left; }
  .home .hero__h1,
  .home .hero__sub,
  .home .hero__call { text-shadow: 0 2px 18px rgba(7,10,18,0.9), 0 0 3px rgba(7,10,18,0.6); }

  /* SECTION spacing */
  .section { padding-block: clamp(3rem, 9vw, 4.5rem); }
  .section__head { flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.75rem; }
  .section__head .survey-line { display: none; }
  .section__title { white-space: normal; font-size: clamp(1.95rem, 7vw, 2.4rem); letter-spacing: -0.015em; }

  /* GRIDS collapse */
  .why, .cases, .cases--home, .team, .qstrip { grid-template-columns: 1fr; gap: 1.75rem; }
  .why__card { column-gap: 1rem; padding-top: 1.25rem; }
  .why__title { font-size: 1.4rem; letter-spacing: -0.005em; }
  .why__body { font-size: 1rem; line-height: 1.6; }

  .case__meta { padding: 1.4rem 1.25rem 1.5rem; gap: 0.7rem; }
  .case__client { font-size: 1.4rem; }
  .case__tagline { font-size: 1rem; line-height: 1.5; }

  .pillar { padding: 1.5rem 1.25rem; }
  .intake .section__inner { padding: 1.5rem 1.25rem; }
  .member { padding: 1.5rem 1.25rem; }
  .member__name { font-size: 1.3rem; }

  .booking__heading { font-size: 1.8rem; }
  .booking__text { font-size: 1rem; line-height: 1.55; }
  .form { grid-template-columns: 1fr; gap: 1rem; }
  .field--half { grid-column: 1 / -1; }
  .field label { font-size: 0.7rem; }
  .field input, .field select, .field textarea { min-height: 48px; font-size: 16px; padding: 0.9em 1em; }
  .field textarea { min-height: 7.5rem; }
  .form__submit { width: 100%; justify-self: stretch; min-height: 56px; font-size: 1.05rem; }

  .contact__row { flex-wrap: wrap; align-items: center; gap: 0.5rem 0.85rem; min-height: 64px; padding: 0.85rem 1rem; }
  .contact__label { min-width: 0; flex: 0 0 100%; order: 2; }
  .contact__icon { order: 0; }
  .contact__value { font-size: 1.05rem; flex: 1 1 auto; word-break: break-word; order: 1; }

  .overlay { padding: 6rem var(--gutter) 3rem; gap: 2.5rem; justify-content: flex-start; }
  .overlay__links { gap: 1.85rem; }
  .overlay__links a { font-size: clamp(2.4rem, 11vw, 3.5rem); letter-spacing: -0.02em; }

  .footer { padding-block: 2.5rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 0; padding-bottom: 0; border-bottom: 0; }
  .footer__brand { grid-column: 1 / -1; margin-bottom: 1.25rem; }
  .footer__logo img { height: 50px; }

  /* FOOTER ACCORDION (mobile only) */
  .footer__col { display: block; gap: 0; border-top: 1px solid var(--hairline); }
  .footer__col:last-of-type { border-bottom: 1px solid var(--hairline); }
  .footer__colhead {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 52px; margin-bottom: 0; cursor: pointer;
    -webkit-tap-highlight-color: transparent; user-select: none;
  }
  .footer__colhead::after {
    content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin-left: 1rem;
    border-right: 1px solid var(--text-muted); border-bottom: 1px solid var(--text-muted);
    transform: rotate(45deg) translateY(-2px); transition: transform var(--t-fast);
  }
  .footer__col.is-open .footer__colhead::after { transform: rotate(225deg) translateY(-2px); }
  .footer__col > a { display: none; }
  .footer__col.is-open > a { display: block; padding: 0.45rem 0; }
  .footer__col.is-open { padding-bottom: 0.75rem; }
  .footer__bottom { gap: 1rem; }
  .footer__copy { font-size: 0.78rem; }
}

@media (max-width: 380px) {
  :root { --gutter: 1.1rem; --nav-h-mobile: calc(48px + 1.3rem + 1px); }
  .hero__h1 { font-size: 2.5rem; }
  .nav__logo img { height: 48px; }
  .nav.is-scrolled .nav__logo img { height: 40px; }
}
@media (max-width: 359px) {
  .hero__h1 { font-size: 2.2rem; }
  .section__title { font-size: 1.75rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html.js .hero__eyebrow, html.js .hero__h1, html.js .hero__sub, html.js .hero__cta { opacity: 1 !important; transform: none !important; transition: none !important; }
  .globe-bg__planet { animation: none !important; }
  .globe-motif img { animation: none !important; }
  .cursor-glow { display: none !important; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- print ---------- */
@media print {
  :root { --bg-primary:#fff; --bg-raised:#fff; --bg-deep:#fff; --text-primary:#111; --text-muted:#555; --border-subtle:#ccc; --hairline:#ccc; }
  html { scroll-behavior: auto; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .nav, .overlay, .nav__burger, .lang, .grain, .vignette, .cursor-glow, .globe-motif, .globe-bg, .case__play { display: none !important; }
  .section, .footer, .hero { background: #fff !important; background-image: none !important; padding: 1.2rem 0; border-top: 1px solid #ccc; break-inside: avoid; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a { color: #111; }
  .link-phone { border: none; }
}

.nav .nav__phone.link-phone,
.nav .nav__phone.link-phone:hover,
.nav .nav__phone.link-phone:focus-visible {
  border: 1px solid var(--border-subtle) !important;
  text-decoration: none !important;
}
.nav .nav__phone.link-phone:hover,
.nav .nav__phone.link-phone:focus-visible {
  border-color: var(--text-primary) !important;
}

/* YouTube click-to-play */
.yt { position: relative; background: #000; width: 100%; }
.cs__media--portrait.yt { aspect-ratio: 9 / 16; }
.cs__media.yt:not(.cs__media--portrait) { aspect-ratio: 16 / 9; }
.yt .yt__btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; display: block; }
.yt .yt__btn img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.yt .yt__btn:hover .case__play, .yt .yt__btn:focus-visible .case__play { background: rgba(7,10,18,0.75); }
.yt .yt__btn:focus-visible { outline: 2px solid var(--text-primary); outline-offset: -4px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
