/* =========================================================
   HYPE STUDIO — Refined Editorial × Cinematic Dark
   v1.0 — full rebuild
   ========================================================= */

/* ---------- Fonts ---------- */
@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600;700&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap");

/* ---------- Tokens ---------- */
:root {
  /* color — deep warm charcoal */
  --bg: #161412;
  --bg-2: #1C1916;
  --bg-3: #231F1B;
  --surface: #2B2724;
  --surface-2: #353029;
  /* lines — warm white, barely perceptible */
  --line: rgba(255, 248, 235, 0.07);
  --line-2: rgba(255, 248, 235, 0.13);
  --line-3: rgba(255, 248, 235, 0.22);
  /* text — warm cream, never clinical white */
  --text-1: #F6F1E9;
  --text-2: rgba(246, 241, 233, 0.65);
  --text-3: rgba(238, 230, 216, 0.42);
  --text-4: rgba(228, 219, 203, 0.28);

  /* accent — warm gold */
  --accent: #C4A55E;
  --accent-2: #AD9050;
  --accent-3: #8E7340;
  --accent-soft: rgba(196, 165, 94, 0.1);
  --accent-glow: rgba(196, 165, 94, 0.2);

  /* royal purple */
  --purple: #5B21B6;
  --purple-2: #4C1D95;
  --purple-mid: #7C3AED;
  --purple-soft: rgba(91, 33, 182, 0.1);
  --purple-glow: rgba(91, 33, 182, 0.22);

  /* typography */
  --font-sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* sizing */
  --container: 1160px;
  --container-pad: clamp(16px, 3.5vw, 32px);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-2: cubic-bezier(0.65, 0, 0.35, 1);

  /* layout */
  --header-h: 64px;
}

@media (max-width: 720px) {
  :root {
    --header-h: 54px;
  }
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
img,
video {
  height: auto;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
p {
  margin: 0;
}
::selection {
  background: var(--accent);
  color: #0D0C0B;
}


/* Orb elements — disabled */
.fxOrbs { display: none; }
.fxOrb  { display: none; }

/* Ambient background lighting — warm gold radial glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    /* top-left amber bloom */
    radial-gradient(ellipse 65% 44% at 10% -8%,  rgba(220, 150, 40, 0.26) 0%, transparent 65%),
    /* top-right deep amber */
    radial-gradient(ellipse 55% 42% at 94% -5%,  rgba(180, 90,  15, 0.14) 0%, transparent 62%),
    /* bottom-left ember depth */
    radial-gradient(ellipse 52% 44% at 4%  108%, rgba(160, 80,  10, 0.10) 0%, transparent 58%),
    /* bottom-right warm gold rise */
    radial-gradient(ellipse 58% 40% at 90% 110%, rgba(200, 130, 30, 0.18) 0%, transparent 55%);
  animation: ambientBreathe 18s ease-in-out infinite alternate;
}
@keyframes ambientBreathe {
  from { opacity: 0.5; }
  to   { opacity: 1;   }
}

.fxNoise {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: noiseBreath 22s ease-in-out infinite alternate;
}
@keyframes noiseBreath {
  from { opacity: 0.16; }
  to   { opacity: 0.26; }
}

main,
header,
footer,
section {
  position: relative;
  z-index: 3;
}

/* ---------- Layout shell ---------- */
.page {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding-top: clamp(48px, 6vw, 96px);
  padding-bottom: clamp(48px, 6vw, 96px);
}
.section--tight {
  padding-top: clamp(32px, 4vw, 60px);
  padding-bottom: clamp(32px, 4vw, 60px);
}

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow--plain::before {
  display: none;
}

.heading-xl {
  font-size: clamp(34px, 6.5vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.heading-lg {
  font-size: clamp(26px, 4vw, 58px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.heading-md {
  font-size: clamp(20px, 2.8vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.heading-sm {
  font-size: clamp(17px, 1.8vw, 24px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 500;
}

.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(14px, 1.05vw, 16px);
  color: var(--text-2);
  line-height: 1.6;
  max-width: 64ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  border: 1px solid var(--line-2);
  position: relative;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--text-1);
  color: var(--bg);
  border-color: transparent;
  box-shadow: none;
}
.btn--primary:hover {
  background: #fff;
  box-shadow: 0 8px 28px -10px rgba(246, 241, 233, 0.25);
}
.btn--ghost {
  background: transparent;
  color: var(--text-1);
}
.btn--ghost:hover {
  background: rgba(255, 248, 235, 0.05);
  border-color: var(--line-3);
}
.btn--block {
  width: 100%;
  justify-content: center;
}
.btn__arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* ---------- Header / Nav ---------- */
.mast {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  /* NO backdrop-filter here — it would make .mast a "fixed containing block"
     which traps position:fixed children (mobile nav) inside the header bounds.
     The blur is applied via ::before instead. */
  transition: box-shadow 0.7s cubic-bezier(0.4,0,0.2,1);
  border-bottom: 1px solid transparent;
}
/* Frosted-glass backdrop — separate pseudo-element so .mast itself never
   gets backdrop-filter (avoids creating a fixed containing block). */
.mast::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(22, 20, 18, 0.92);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
  opacity: 0.28;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1);
}
.mast.is-scrolled::before,
body[data-capability] .mast::before,
body.is-meeting-open .mast::before {
  opacity: 1;
}
.mast.is-scrolled {
  box-shadow: 0 4px 40px rgba(0,0,0,0.28);
}

.mast__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.mastLogo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}
.mastLogo__img {
  height: 32px;
  width: auto;
  object-fit: contain;
}
.mastLogo__fallback {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: none;
}
.mastLogo__fallback em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
@media (max-width: 480px) {
  .mastLogo__img {
    height: 26px;
  }
}

.navToggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 2;
  background: rgba(20, 20, 30, 0.5);
}
.navToggle__bar {
  width: 18px;
  height: 1.5px;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease);
}
.navToggle[aria-expanded="true"] .navToggle__bar:nth-child(1) {
  transform: translateY(3.25px) rotate(45deg);
}
.navToggle[aria-expanded="true"] .navToggle__bar:nth-child(2) {
  transform: translateY(-3.25px) rotate(-45deg);
}

.mastNav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mastNav__link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mastNav__link:hover {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.05);
}
.mastNav__link--has-menu::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  display: inline-block;
  opacity: 0.6;
  transition: transform 0.3s var(--ease);
}
.mastNav__item {
  position: relative;
}
.mastNav__item.is-open .mastNav__link--has-menu::after {
  transform: translateY(1px) rotate(225deg);
}
.mastNav__cta {
  margin-left: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text-1);
  color: var(--bg);
  border-color: transparent;
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
  transition:
    background 0.3s var(--ease),
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.mastNav__cta:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: none;
}

.mastNav__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 300px;
  padding: 8px 10px 10px;
  background: rgba(13, 12, 11, 0.97);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.6),
    0 12px 24px -8px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s var(--ease),
    transform 0.22s var(--ease);
}
/* Mobile: click-toggled via is-open class */
.mastNav__item.is-open .mastNav__dropdown {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
/* Desktop: CSS :hover is the primary open mechanism — no JS timers, no flicker.
   An invisible ::after on the item extends below it to bridge any gap between
   the button's layout box and the dropdown panel, so hovering through the gap
   doesn't interrupt the :hover state. */
@media (min-width: 981px) {
  /* Stretch the item to full header height so top:100% on the dropdown
     lands at the header's bottom edge, not mid-bar */
  .mastNav__item--services {
    align-self: stretch;
    display: flex;
    align-items: center;
  }
  .mastNav__item--services::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
  }
  .mastNav__item--services:hover .mastNav__dropdown {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }
}
.mastNav__dropdownLink {
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: background 0.25s var(--ease);
}
.mastNav__dropdownLink:hover {
  background: rgba(255, 255, 255, 0.05);
}
.mastNav__dropdownLink.is-current {
  background: var(--accent-soft);
}
.mastNav__dropdownLink.is-current .mastNav__dropdownTitle {
  color: var(--accent);
}
.mastNav__dropdownLink.is-current .mastNav__dropdownSub {
  color: var(--text-2);
}
.mastNav__dropdownTitle {
  font-size: 14px;
  color: var(--text-1);
  font-weight: 500;
}
.mastNav__dropdownSub {
  font-size: 12px;
  color: var(--text-3);
}

@media (max-width: 980px) {
  /* --- Hamburger button --- */
  .navToggle {
    display: inline-flex;
  }

  /* --- Full-screen panel --- */
  .mastNav {
    position: fixed;
    inset: 0;
    background: rgba(10, 7, 18, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding-top: calc(var(--header-h) + 12px);
    padding-left: clamp(20px, 6vw, 40px);
    padding-right: clamp(20px, 6vw, 40px);
    padding-bottom: 40px;
    transform: translateY(-100%);
    transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 0;
  }
  .mastNav.is-open {
    transform: translateY(0);
  }

  /* --- Main nav links (Work, Projects, Contact) --- */
  .mastNav__link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: clamp(26px, 7vw, 36px);
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--text-1);
    padding: 18px 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    transition: color 0.2s var(--ease);
  }
  .mastNav__link:hover {
    background: transparent;
    color: var(--accent);
  }
  .mastNav__link::after { display: none; }  /* hide desktop chevron on mobile */

  /* --- Services item wrapper --- */
  .mastNav__item {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  /* Services button shares the same large-link look, but remove its own border */
  .mastNav__item .mastNav__link {
    border-bottom: 0;
  }

  /* Services chevron pill */
  .mastNav__link--has-menu {
    display: flex;
  }
  .mastNav__link--has-menu::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: 0.5;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .mastNav__item.is-open .mastNav__link--has-menu::after {
    transform: rotate(225deg) translateY(-2px);
    opacity: 1;
  }

  /* --- Services sub-menu --- */
  .mastNav__dropdown {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
    width: 100%;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .mastNav__item.is-open .mastNav__dropdown {
    max-height: 500px;
    /* Override the desktop transform that shifts the dropdown left by 50% */
    transform: none;
    opacity: 1;
  }

  /* Sub-menu links — clearly visible with frosted background */
  .mastNav__dropdownLink {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 6px;
    transition: background 0.2s var(--ease);
  }
  .mastNav__dropdownLink:first-child {
    margin-top: 10px;
  }
  .mastNav__dropdownLink:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  .mastNav__dropdownTitle {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-1);
  }
  .mastNav__dropdownSub {
    font-size: 12px;
    color: var(--text-2);
  }

  /* --- CTA button at bottom --- */
  .mastNav__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    margin-top: 24px;
    padding: 18px 24px;
    border-radius: 14px;
    background: var(--text-1);
    color: #0a0a14;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    border: 0;
    width: 100%;
    transform: none;
  }
  .mastNav__cta:hover {
    background: var(--accent);
    transform: none;
    box-shadow: none;
  }
}

/* ---------- Hero geometric 3D shapes ---------- */
.heroShapes {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.heroShape { position: absolute; }

/* Large rotating ring — right side */
.heroShape--ring {
  width: 400px; height: 400px;
  right: 5%; top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.18);
  box-shadow: 0 0 80px rgba(139, 92, 246, 0.07), inset 0 0 80px rgba(139, 92, 246, 0.04);
  animation: heroRingRotate 28s linear infinite;
}
.heroShape--ring::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.12);
  animation: heroRingRotate 18s linear infinite reverse;
}
.heroShape--ring::after {
  content: "";
  position: absolute;
  inset: 42%;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.08);
  box-shadow: 0 0 50px 10px rgba(139, 92, 246, 0.18);
}
@keyframes heroRingRotate {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* Floating glowing dots */
.heroShape--dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px 3px rgba(167, 139, 250, 0.8);
  animation: heroShapeDot var(--dur, 7s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.heroShape--dot:nth-child(2) { right: 16%; top: 24%; --dur: 6s; }
.heroShape--dot:nth-child(3) {
  right: 29%; top: 52%; --dur: 8s; --delay: -2s;
  background: var(--cyan);
  box-shadow: 0 0 14px 3px rgba(34, 211, 238, 0.8);
}
.heroShape--dot:nth-child(4) { right: 9%;  top: 70%; --dur: 7s; --delay: -4s; }
@keyframes heroShapeDot {
  0%, 100% { transform: translateY(0)   scale(1);   opacity: 0.55; }
  50%       { transform: translateY(-20px) scale(1.5); opacity: 1; }
}

/* Hero shapes hidden — clean professional look */
.heroShapes { display: none; }

/* ---------- Hero (full-bleed cinematic) ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
}
/* The reel IS the hero — full viewport height */
.heroReel {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--bg);
}
@media (max-width: 720px) {
  .heroReel {
    height: 100svh;
    min-height: 500px;
  }
}

/* Copy overlaid on the reel */
.hero__copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  /* strong gradient: top transparent → bottom dark for copy legibility */
  background: linear-gradient(
    175deg,
    rgba(13,12,11,0) 0%,
    rgba(13,12,11,0.1) 38%,
    rgba(13,12,11,0.78) 70%,
    rgba(13,12,11,0.98) 100%
  );
}
.hero__copy-inner {
  padding: clamp(20px, 3.5vw, 48px) clamp(16px, 3.5vw, 48px);
  padding-top: calc(var(--header-h) + 18px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
  pointer-events: auto;
}
.hero__eyebrow {
  opacity: 0;
  animation: heroRise 0.9s var(--ease) 0.1s forwards;
}
.hero__title {
  font-size: clamp(34px, 5.5vw, 68px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.hero__title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.hero__title-line span {
  display: inline-block;
  transform: translateY(110%);
  animation: heroRise 1s var(--ease) forwards;
}
.hero__title-line:nth-child(2) span {
  animation-delay: 0.12s;
}
.hero__title-line:nth-child(3) span {
  animation-delay: 0.22s;
}
@keyframes heroRise {
  to { transform: translateY(0); opacity: 1; }
}

.hero__sub {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 14px;
  position: relative;
  opacity: 0;
  animation: heroRise 1s var(--ease) 0.4s forwards;
}
.hero__sub::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0.25), transparent);
}
.hero__lead {
  max-width: 48ch;
  color: var(--text-2);
  font-size: clamp(13px, 0.9vw, 15px);
  line-height: 1.55;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .hero__sub {
    flex-direction: column;
    gap: 14px;
  }
  .hero__copy-inner {
    gap: 12px;
  }
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .hero__cta .btn {
    justify-content: center;
  }
}
@media (max-width: 400px) {
  .hero__title {
    font-size: 30px;
  }
}
.heroReel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.heroReel__slide.is-active {
  opacity: 1;
}
/* Dark tint over every slide so hero text stays legible */
.heroReel__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 12, 11, 0.45);
  pointer-events: none;
}
.heroReel__slide img,
.heroReel__slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
@keyframes heroPan {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
.heroReel__slide.is-active img,
.heroReel__slide.is-active video {
  animation: heroPan 9s linear forwards;
}
/* No separate shade needed — hero__copy provides the gradient */
.heroReel__shade {
  display: none;
}
.heroReel__overlay {
  position: absolute;
  right: clamp(20px, 3vw, 36px);
  bottom: clamp(20px, 3vw, 36px);
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 4;
  pointer-events: none;
}
.heroReel__overlay > * {
  pointer-events: auto;
}
.heroReel__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.heroReel__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.heroReel__kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.heroReel__title {
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.heroReel__desc {
  display: none; /* desc shown in main copy area */
}
.heroReel__nav {
  display: flex;
  gap: 8px;
  align-items: center;
}
.heroReel__dot {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.3s var(--ease), width 0.3s var(--ease);
  cursor: pointer;
  border: none;
}
.heroReel__dot.is-active {
  background: var(--accent);
  width: 44px;
}
@media (max-width: 640px) {
  /* Move overlay to top-right and hide text — dots only */
  .heroReel__overlay {
    top: calc(var(--header-h) + 12px);
    bottom: auto;
    right: 16px;
    gap: 12px;
  }
  .heroReel__meta {
    display: none;
  }
}

/* hero index/marker row */
.heroMarkers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.heroMarkers__inner {
  display: contents; /* let children participate in parent grid */
}
.heroMarkers__cell {
  background: var(--bg);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.heroMarkers__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-3);
  text-transform: uppercase;
}
.heroMarkers__val {
  font-size: 14px;
  color: var(--text-1);
  font-weight: 500;
}
@media (max-width: 720px) {
  .heroMarkers {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Section heads ---------- */
.sectionHead {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(16px, 3vw, 44px);
  align-items: end;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.sectionHead__left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sectionHead__right {
  color: var(--text-2);
  font-size: clamp(13px, 0.95vw, 15px);
  line-height: 1.55;
  max-width: 52ch;
  justify-self: end;
}
@media (max-width: 800px) {
  .sectionHead {
    grid-template-columns: 1fr;
  }
  .sectionHead__right {
    justify-self: start;
  }
}

/* ---------- Services mosaic ---------- */
.services {
  position: relative;
}

/* ---- Services bento grid ---- */
.svcBento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 230px;
  gap: 12px;
}

.svcCard {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 0 0 1px var(--line);
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  text-decoration: none;
  color: var(--text-1);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.svcCard::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-img);
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 1.2s var(--ease);
  transform: scale(1.04);
}
.svcCard:hover::before {
  transform: scale(1.09);
}

.svcCard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11,11,16,0.22) 0%,
    rgba(11,11,16,0.55) 52%,
    rgba(11,11,16,0.93) 100%
  );
  z-index: 1;
}

.svcCard--tall {
  grid-row: span 2;
}
.svcCard--wide {
  grid-column: span 2;
}

.svcCard__num {
  position: absolute;
  top: 20px;
  left: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  z-index: 2;
}

.svcCard__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-right: 16px;
}

.svcCard__title {
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.svcCard__desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  max-width: 36ch;
}

.svcCard__arrow {
  display: none;
}

.svcCard:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 2px var(--accent), 0 24px 50px -16px rgba(0, 0, 0, 0.45);
}

@media (max-width: 860px) {
  .svcBento {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }
  /* Reset span overrides so 2-col grid fills cleanly with no orphaned gaps */
  .svcCard--tall { grid-row: span 1; }
  .svcCard--wide { grid-column: span 1; }
}
@media (max-width: 540px) {
  .svcBento {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 138px;
    gap: 8px;
  }
  .svcCard--tall,
  .svcCard--wide {
    grid-row: span 1;
    grid-column: span 1;
  }
  .svcCard {
    padding: 12px;
    border-radius: var(--radius);
  }
  .svcCard__num {
    font-size: 10px;
    top: 11px;
    left: 13px;
  }
  .svcCard__title {
    font-size: 13px;
  }
  .svcCard__desc {
    display: none;
  }
  .svcCard__body {
    gap: 0;
  }
}

/* ---- Service Row (new compact list + stacked cards) ---- */
.servicesRow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.svcItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text-1);
  position: relative;
  transition: background 0.3s var(--ease);
}
.svcItem:first-child {
  border-top: 1px solid var(--line);
}
.svcItem:hover {
  background: rgba(91, 33, 182, 0.06);
}

.svcItem__left {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  flex: 1;
  min-width: 0;
  padding-left: 2px;
}

.svcItem__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-4);
  flex-shrink: 0;
  padding-top: 5px;
  min-width: 24px;
}

.svcItem__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.svcItem__title {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.svcItem__desc {
  color: var(--text-3);
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 46ch;
}

.svcItem__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.svcItem:hover .svcItem__cta {
  opacity: 1;
  transform: translateX(0);
}

/* Stacked intersecting image cards */
.svcItem__stack {
  position: relative;
  width: 260px;
  height: 148px;
  flex-shrink: 0;
}

.svcItem__card {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.svcItem__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.svcItem__card--back {
  width: 148px;
  height: 100px;
  bottom: 0;
  left: 0;
  transform: rotate(-5deg) translateY(8px);
  z-index: 1;
  opacity: 0.6;
}
.svcItem__card--mid {
  width: 156px;
  height: 108px;
  bottom: 6px;
  left: 52px;
  transform: rotate(1.5deg);
  z-index: 2;
}
.svcItem__card--front {
  width: 132px;
  height: 96px;
  bottom: 16px;
  right: 0;
  transform: rotate(-2deg);
  z-index: 3;
  border-color: rgba(91, 33, 182, 0.38);
}

.svcItem:hover .svcItem__card--back  { transform: rotate(-7deg) translateY(12px) translateX(-4px); }
.svcItem:hover .svcItem__card--mid   { transform: rotate(3deg) translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.6); }
.svcItem:hover .svcItem__card--front { transform: rotate(-3.5deg) translateX(4px) translateY(-8px); box-shadow: 0 20px 56px rgba(91, 33, 182, 0.42); }

@media (max-width: 860px) {
  .svcItem__stack { width: 200px; height: 120px; }
  .svcItem__card--back  { width: 116px; height: 80px; }
  .svcItem__card--mid   { width: 124px; height: 86px; }
  .svcItem__card--front { width: 104px; height: 76px; }
}
@media (max-width: 600px) {
  .svcItem { flex-direction: column; align-items: flex-start; gap: 18px; padding: 20px 0; }
  .svcItem__stack { width: 100%; height: 130px; align-self: stretch; }
  .svcItem__card--back  { width: 130px; height: 88px; }
  .svcItem__card--mid   { width: 140px; height: 96px; left: 60px; }
  .svcItem__card--front { width: 116px; height: 84px; right: 16px; }
}

/* keep old serviceCard styles for any capability pages using them */
.servicesGrid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.serviceCard {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  isolation: isolate;
  min-height: 320px;
  display: block;
  transition:
    border-color 0.45s var(--ease),
    transform 0.55s var(--ease);
}
.serviceCard:hover {
  border-color: var(--line-3);
}
.serviceCard--lg { grid-column: span 7; min-height: 460px; }
.serviceCard--md { grid-column: span 5; min-height: 460px; }
.serviceCard--sm { grid-column: span 4; min-height: 360px; }
.serviceCard--wide { grid-column: span 8; min-height: 360px; }

.serviceCard__media { position: absolute; inset: 0; z-index: 1; }
.serviceCard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); transform: scale(1.02); }
.serviceCard:hover .serviceCard__media img { transform: scale(1.07); }
.serviceCard__shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(11,11,16,0.15) 0%, rgba(11,11,16,0.55) 55%, rgba(11,11,16,0.92) 100%); }
.serviceCard__body { position: relative; z-index: 3; padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; height: 100%; justify-content: flex-end; }
.serviceCard__num { position: absolute; top: 24px; right: 24px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; color: var(--text-3); text-transform: uppercase; }
.serviceCard__title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.serviceCard__desc { color: var(--text-2); font-size: 14.5px; line-height: 1.5; max-width: 44ch; }
.serviceCard__arrow { position: absolute; bottom: 26px; right: 26px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(20,20,28,0.65); backdrop-filter: blur(8px); display: inline-flex; align-items: center; justify-content: center; transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease); color: var(--text-1); }
.serviceCard:hover .serviceCard__arrow { background: var(--accent); border-color: var(--accent); color: #0a0a14;
  transform: translate(-3px, 3px);
}

/* ---------- Project filter + grid ---------- */
.projectsBar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin-bottom: 28px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 20, 28, 0.45);
  backdrop-filter: blur(8px);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.projectsBar::-webkit-scrollbar {
  display: none;
}
.filterBtn {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease);
  font-weight: 500;
}
.filterBtn:hover {
  color: var(--text-1);
}
.filterBtn.is-active {
  background: var(--text-1);
  color: #0a0a14;
}
@media (max-width: 640px) {
  .projectsBar {
    width: 100%;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    overflow-x: scroll;
  }
  .filterBtn {
    padding: 8px 12px;
    font-size: 12px;
    flex-shrink: 0;
  }
}

.projectsHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}
.projectsHead__title {
  font-size: 14px;
  color: var(--text-3);
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.projectsHead__count {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
}

.projectGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 980px) {
  .projectGrid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}
@media (max-width: 640px) {
  .projectGrid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .projectCard__media {
    aspect-ratio: 16 / 10;
  }
  .projectCard__body {
    padding: 9px 11px 11px;
    gap: 2px;
  }
  .projectCard__title {
    font-size: 13px;
  }
  .projectCard__desc {
    display: none;
  }
  .projectCard__cat {
    font-size: 9px;
    letter-spacing: 0.12em;
    padding: 4px 8px;
    top: 8px;
    left: 8px;
  }
}

.projectCard {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  transition:
    box-shadow 0.4s var(--ease),
    transform  0.4s var(--ease);
}
.projectCard:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 2px var(--accent), 0 20px 50px -16px rgba(0, 0, 0, 0.5);
}
.projectCard__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #15151f;
}
.projectCard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.projectCard:hover .projectCard__media img {
  transform: scale(1.06);
}
.projectCard__cat {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(11, 11, 16, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--text-1);
  text-transform: uppercase;
}
.projectCard__body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.projectCard__title {
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 500;
  letter-spacing: -0.018em;
}
.projectCard__desc {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.5;
  text-align: left;
}

/* ---------- Clients section — static grid, all logos visible ---------- */
/* ---- Clients Constellation ---- */
.clients {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(32px, 4.5vw, 60px) 0;
  background: rgba(255,255,255,0.012);
  overflow: hidden;
}

.clientsConstellation {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
}

/* No stagger — all logos sit on the same baseline */
.clientItem--c1, .clientItem--c2, .clientItem--c3, .clientItem--c4,
.clientItem--c5, .clientItem--c6, .clientItem--c7, .clientItem--c8 {
  transform: none;
}

.clientItem {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.65;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  cursor: default;
}
.clientItem:hover {
  opacity: 1;
  transform: scale(1.08) translateY(-3px);
}

.clientItem img {
  height: clamp(28px, 3vw, 42px);
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
  filter: none;
  transition: filter 0.35s var(--ease);
}
.clientItem:hover img {
  filter: drop-shadow(0 0 10px rgba(91, 33, 182, 0.5));
}

@media (max-width: 860px) {
  .clientsConstellation {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}
@media (max-width: 480px) {
  .clientsConstellation { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .clientItem img { height: 28px; max-width: 90px; }
}

/* hide old marquee / clients__inner / clientItem__name styles */
.clients__inner { display: none; }
.clientItem__name { display: none; }
.clientsMarquee { display: none; }
.marquee__group { display: none; }
.clients__intro { display: none; }

/* ---------- Contact band ---------- */
.contact {
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: clamp(32px, 4vw, 60px);
}
.contactBand {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(
      900px 500px at 0% 0%,
      rgba(91, 33, 182, 0.08),
      transparent 60%
    ),
    radial-gradient(
      700px 500px at 100% 100%,
      rgba(196, 165, 94, 0.07),
      transparent 60%
    ),
    rgba(22, 20, 18, 0.55);
  padding: clamp(24px, 3.5vw, 52px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  position: relative;
  overflow: hidden;
}
@media (max-width: 880px) {
  .contactBand {
    grid-template-columns: 1fr;
  }
}
.contactBand__intro {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 32ch;
}
.contactBand__title {
  font-size: clamp(26px, 3.5vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1;
  font-weight: 500;
}
.contactBand__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.contactBand__lead {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.55;
}
.contactBand__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.contactBand__details {
  border-left: 1px solid var(--line);
  padding-left: clamp(20px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@media (max-width: 880px) {
  .contactBand__details {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 28px;
  }
}
.contactBand__heading {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}
.contactBand__officeGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) {
  .contactBand__officeGrid {
    grid-template-columns: 1fr;
  }
}
.contactBand__office {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contactBand__officeTitle {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.contactBand__officeCity {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.contactBand__officePhone {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 2px;
  transition: color 0.3s var(--ease);
}
.contactBand__officePhone:hover {
  color: var(--accent);
}

/* ---------- Contact links — editorial row list ---------- */
.contactLinks {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.contactLinks__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text-1);
  transition: color 0.25s var(--ease);
}
.contactLinks__row:first-child {
  border-top: 1px solid var(--line);
}
.contactLinks__row:hover {
  color: var(--accent);
}
.contactLinks__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  flex-shrink: 0;
  transition: color 0.25s var(--ease);
}
.contactLinks__row:hover .contactLinks__label {
  color: var(--accent);
}
.contactLinks__val {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: right;
}

/* ---------- Footer ---------- */
.footer {
  padding: 22px 0 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-3);
}
.footer__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__links a {
  transition: color 0.25s var(--ease);
}
.footer__links a:hover {
  color: var(--text-1);
}
.footer__brand {
  display: flex;
  align-items: center;
}
.footer__logo {
  height: 26px;
  width: auto;
  opacity: 0.55;
}
@media (max-width: 480px) {
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer__links {
    gap: 14px;
  }
}

/* ---------- Capability page ---------- */
.capabilityHero {
  padding-top: calc(var(--header-h) + 36px);
  padding-bottom: clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}
.capabilityHero__inner {
  display: grid;
  grid-template-columns: 0.58fr 1.42fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
}
@media (max-width: 900px) {
  .capabilityHero__inner {
    grid-template-columns: 1fr;
  }
}
.capabilityHero__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-left: 0;
  margin-left: -8px; /* hug the left edge */
}
.capabilityHero__title {
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.capabilityHero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.capabilityHero__lead {
  color: var(--text-2);
  font-size: clamp(15px, 1.2vw, 18px);
  max-width: 56ch;
  line-height: 1.55;
}

/* --- Hero image strip (3 panels, side by side) --- */
.capabilityHero__media {
  position: relative;
  width: 100%;
  height: clamp(300px, 36vw, 480px);
  overflow: hidden;
  background: transparent;
  border: none;
  border-radius: 0;
  aspect-ratio: unset;
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.capabilityHero__media img,
.capabilityHero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Base card — flex item, no rotation */
.heroCard {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55);
  background: var(--bg-2);
  transition:
    flex 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.heroCard:hover {
  flex: 1.55;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.68);
}
.heroCard img,
.heroCard video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.heroCard:hover img,
.heroCard:hover video {
  transform: scale(1.06);
}

/* Label overlay — unchanged */
.heroCard__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 18px 20px;
  background: linear-gradient(to top,
    rgba(6, 6, 14, 0.94) 0%,
    rgba(6, 6, 14, 0.55) 50%,
    transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}
.heroCard__labelTag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
}
.heroCard__labelName {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.93);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* Per-card accent differences */
.heroCard--back {
  border-color: rgba(255, 255, 255, 0.07);
  opacity: 0.92;
}
.heroCard--mid {
  border-color: rgba(255, 255, 255, 0.1);
}
.heroCard--front {
  border-color: rgba(91, 33, 182, 0.38);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55),
              0 0 0 1px rgba(91, 33, 182, 0.18);
}
.heroCard--front:hover {
  box-shadow: 0 28px 72px rgba(91, 33, 182, 0.35),
              0 0 0 1px rgba(91, 33, 182, 0.3);
}
.heroCard--back:hover,
.heroCard--mid:hover {
  opacity: 1;
}

.capabilityProjects {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 7vw, 96px);
  margin-top: clamp(40px, 6vw, 72px);
}
.capProject {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: clamp(24px, 3.5vw, 56px);
  align-items: start;
}
.capProject__header {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: -8px;
}
.capProject:nth-child(2n) {
  grid-template-columns: 1fr 1.8fr;
}
.capProject:nth-child(2n) .capProject__mediaWrap {
  order: 2;
}
@media (max-width: 880px) {
  .capProject,
  .capProject:nth-child(2n) {
    grid-template-columns: 1fr;
  }
  .capProject:nth-child(2n) .capProject__media {
    order: -1;
  }
}

.capProject__mediaWrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.capProject__stage {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.capProject__stage img,
.capProject__stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.capProject__thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.capProject__thumb {
  width: 96px;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  position: relative;
  flex-shrink: 0;
  background: var(--bg-2);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.capProject__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.capProject__thumb:hover {
  border-color: rgba(91, 33, 182, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.capProject__thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(91, 33, 182, 0.35);
}

.capProject__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.capProject__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
}
.capProject__title {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--text-1);
}
.capProject__lead {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 56ch;
}

.capProject__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
}
.capProject__meta > div {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.capProject__meta > div:last-child {
  border-right: 0;
}
.capProject__meta dt {
  font-size: 10.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  color: var(--text-3);
  text-transform: uppercase;
  margin: 0;
}
.capProject__meta dd {
  margin: 0;
  font-size: 14px;
  color: var(--text-1);
  font-weight: 500;
  text-transform: capitalize;
}
@media (max-width: 480px) {
  .capProject__meta {
    grid-template-columns: 1fr;
  }
  .capProject__meta > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .capProject__meta > div:last-child {
    border-bottom: 0;
  }
}

.capProject__details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}
.capProject__details li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.5;
}
.capProject__details li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 9px;
  flex-shrink: 0;
}

/* Live preview — floating pill on top-right of the image */
.capProject__liveOverlay {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(8, 8, 16, 0.52);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.72;
  transition: opacity 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  cursor: pointer;
}
.capProject__liveOverlay:hover {
  opacity: 1;
  background: rgba(8, 8, 16, 0.78);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Open in new tab — outlined button in the info body */
.capProject__newTab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text-1);
  font-size: 14px;
  font-weight: 500;
  align-self: flex-start;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.capProject__newTab:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-3);
}

.capEmpty {
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  color: var(--text-3);
}

/* ---------- Project modal ---------- */
.projModal {
  border: 0;
  padding: 0;
  background: transparent;
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
}
.projModal::backdrop {
  background: rgba(8, 8, 14, 0.78);
  backdrop-filter: blur(8px);
}
.projModal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.projModal__panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  position: relative;
  overflow: hidden;
}
@media (min-width: 920px) {
  .projModal__panel {
    border-radius: var(--radius-lg);
    margin: 0;
    width: min(1180px, calc(100vw - 60px));
    height: min(74vh, 720px);
    /* Desktop: wider image left | info right | bottom bar spans both */
    grid-template-columns: 1.65fr 1fr;
    grid-template-rows: 1fr auto;
  }
}
/* X close — top-right corner of the entire panel */
.projModal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(11, 11, 16, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-1);
  font-size: 18px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.projModal__close:hover {
  background: var(--accent);
  color: #0a0a14;
  transform: rotate(90deg);
}
.projModal__media {
  position: relative;
  background: #07070b;
  overflow: hidden;
}
/* ---- Mobile project modal ---- */
@media (max-width: 919px) {
  /* Floating card — backdrop visible on all sides */
  .projModal__panel {
    display: flex;
    flex-direction: column;
    width: calc(100vw - 32px);
    height: auto;
    max-height: calc(100svh - 48px);
    overflow: hidden;
    border-radius: 16px;
  }
  /* Close back to absolute — panel is bounded so it stays in view */
  .projModal__close {
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
    z-index: 10;
  }
  /* Image: fixed height — never depends on width */
  .projModal__media {
    height: clamp(160px, 38vh, 260px);
    flex-shrink: 0;
  }
  /* Info: the only scrollable zone.
     min-height:0 is the critical line — without it a flex child
     refuses to shrink below its content size and overflow-y never fires */
  .projModal__info {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 18px 20px;
    gap: 12px;
  }
  /* Thumbnails always pinned at the bottom */
  .projModal__bottom {
    flex-shrink: 0;
    grid-column: unset;
  }
  /* Tighter type on mobile */
  .projModal__title { font-size: clamp(18px, 5vw, 24px); }
  .projModal__desc  { font-size: 13.5px; }
  .projModal__actions { flex-wrap: wrap; }
  .projModal__actions .btn { flex: 1; justify-content: center; min-width: 120px; }
}
.projModal__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.projModal__stage img,
.projModal__stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: object-position 0.4s ease-out;
  will-change: object-position;
  user-select: none;
  -webkit-user-drag: none;
}
.projModal__nav { display: none; }
/* Bottom bar — spans both grid columns on desktop */
.projModal__bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  flex-shrink: 0;
  grid-column: 1 / -1;
}
.projModal__thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-width: 0;
}
.projModal__thumbs::-webkit-scrollbar {
  display: none;
}
.projModal__thumb {
  width: 92px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: var(--bg-3);
  transition: border-color 0.3s var(--ease);
}
.projModal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.projModal__thumb.is-active {
  border-color: var(--accent);
}
.projModal__info {
  padding: clamp(20px, 2.5vw, 36px) clamp(24px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
@media (min-width: 920px) {
  .projModal__info {
    border-top: none;
    border-left: 1px solid var(--line);
  }
}
.projModal__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
}
.projModal__title {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--text-1);
}
.projModal__desc {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
}
.projModal__metaGrid {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 4px;
}
.projModal__metaGrid > div {
  flex: 1;
  padding: 14px 12px;
  border-right: 1px solid var(--line);
}
.projModal__metaGrid > div:last-child {
  border-right: 0;
}
.projModal__metaGrid dt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0;
}
.projModal__metaGrid dd {
  font-size: 13.5px;
  margin: 6px 0 0;
  font-weight: 500;
  color: var(--text-1);
  text-transform: capitalize;
  line-height: 1.25;
}
.projModal__details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.projModal__details li {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.45;
  padding-left: 18px;
  position: relative;
}
.projModal__details li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 15px;
  line-height: 1.2;
}
.projModal__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

/* Live overlay button — top-right of the image */
.projModal__liveOverlay {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(8, 8, 16, 0.52);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1.5px dashed rgba(255, 255, 255, 0.45);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  cursor: pointer;
}
.projModal__liveOverlay:hover {
  opacity: 1;
  background: rgba(8, 8, 16, 0.78);
  border-color: rgba(255, 255, 255, 0.75);
}

/* Open in new tab button in info panel */
.projModal__newTab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text-1);
  font-size: 13.5px;
  font-weight: 500;
  align-self: flex-start;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.projModal__newTab:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-3);
}

/* ---------- Modal: stage fade transition ---------- */
@keyframes projStageFadeIn {
  from { opacity: 0; transform: scale(1.025); }
  to   { opacity: 1; transform: scale(1); }
}
.projModal__stage img,
.projModal__stage video {
  animation: projStageFadeIn 0.38s var(--ease) both;
}

/* ---------- Modal: slide-count + label overlays ---------- */
.projModal__slideCount {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.1em;
  color: rgba(250, 250, 250, 0.55);
  background: rgba(8, 8, 14, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 4;
  white-space: nowrap;
}
.projModal__slideCount em {
  font-style: normal;
  opacity: 0.45;
  margin: 0 4px;
}

.projModal__slideLabel {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font: 500 10px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.65);
  background: rgba(8, 8, 14, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
  z-index: 4;
  white-space: nowrap;
}

/* ---------- Modal: single-media mode (hide thumbs) ---------- */
.projModal.has-single-media .projModal__thumbs { display: none; }

/* ---------- Modal: category — real-estate / web ---------- */
.projModal[data-cat="real-estate"] .projModal__media {
  background: linear-gradient(155deg, #0e0d20 0%, #090810 100%);
}

/* ---------- Modal: category — kiosks / maquettes ---------- */
.projModal[data-cat="kiosks"] .projModal__media {
  background: linear-gradient(155deg, #0b0b1c 0%, #080810 100%);
}

/* ---------- Modal: category — AR / VR ---------- */
/* Subtle vignette for headset feel */
.projModal[data-cat="ar/vr"] .projModal__media {
  background: #040408;
}
.projModal[data-cat="ar/vr"] .projModal__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
  z-index: 2;
}

/* ---------- Modal: category — games / activations ---------- */
.projModal[data-cat="games"] .projModal__media {
  background: linear-gradient(155deg, #0b0810 0%, #06050a 100%);
}
.projModal[data-cat="games"] .projModal__stage {
  box-shadow: inset 0 0 100px rgba(91, 33, 182, 0.09);
}
.projModal[data-cat="games"] .projModal__thumbs {
  border-top-color: rgba(244, 63, 94, 0.18);
}

/* ---------- Live project iframe modal ---------- */
.liveModal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: stretch;
  justify-content: center;
}
.liveModal.is-open {
  display: flex;
}
.liveModal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 14, 0.85);
  backdrop-filter: blur(8px);
}
.liveModal__panel {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
}
@media (min-width: 980px) {
  .liveModal__panel {
    width: min(1440px, calc(100vw - 32px));
    height: min(94vh, 1000px);
    margin: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line-2);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
  }
}
/* No top bar — iframe fills the full panel */
.liveModal__head { display: none; }

/* Floating close button — top-right corner of the panel */
.liveModal__floatClose {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(8, 8, 16, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
  cursor: pointer;
}
.liveModal__floatClose:hover {
  background: rgba(8, 8, 16, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
}

.liveModal__body {
  flex: 1;
  position: relative;
  background: #fff;
}
.liveModal__body iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Meeting modal ---------- */
.meetingModal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  width: 100%;
  height: 100%;
  inset: 0;
  margin: 0;
}
.meetingModal::backdrop {
  background: rgba(8, 8, 14, 0.82);
  backdrop-filter: blur(10px);
  animation: meetingBackdropIn 0.5s cubic-bezier(0.4,0,0.2,1) both;
}
.meetingModal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.meetingModal[open] .meetingModal__panel {
  animation: meetingPanelIn 0.55s cubic-bezier(0.22,1,0.36,1) both;
}
.meetingModal.is-closing .meetingModal__panel {
  animation: meetingPanelOut 0.35s cubic-bezier(0.4,0,1,1) both;
}
.meetingModal.is-closing::backdrop {
  animation: meetingBackdropOut 0.35s cubic-bezier(0.4,0,1,1) both;
}
@keyframes meetingPanelIn {
  from { opacity: 0; transform: translateY(32px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
@keyframes meetingPanelOut {
  from { opacity: 1; transform: translateY(0)   scale(1); }
  to   { opacity: 0; transform: translateY(20px) scale(0.96); }
}
@keyframes meetingBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes meetingBackdropOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
.meetingModal__panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  padding: clamp(20px, 4vw, 44px);
  color: var(--text-1);
}
.meetingModal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-1);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  font-size: 16px;
}
.meetingModal__close:hover {
  background: var(--accent);
  color: #0a0a14;
  border-color: var(--accent);
  transform: rotate(90deg);
}
.meetingModal__title {
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin-top: 12px;
}
.meetingModal__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.meetingModal__lead {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.55;
  margin-top: 10px;
}
.meetingForm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}
@media (max-width: 600px) {
  .meetingModal__panel {
    width: calc(100vw - 20px);
    border-radius: var(--radius);
    padding: 18px;
  }
  .meetingModal__title {
    font-size: 22px;
    margin-top: 8px;
  }
  .meetingModal__lead {
    font-size: 13.5px;
    margin-top: 6px;
  }
  .meetingForm {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
  }
  .field--full {
    grid-column: 1;
  }
  .meetingModal__close {
    top: 12px;
    right: 12px;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field--full {
  grid-column: 1 / -1;
}
.field span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.field input,
.field textarea,
.field select {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text-1);
  font: inherit;
  font-size: 14.5px;
  padding: 12px 14px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  font-family: var(--font-sans);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}
.field textarea {
  resize: vertical;
  min-height: 80px;
}
.meetingForm__msg {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--text-2);
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  display: none;
}
.meetingForm__msg.is-success {
  border-color: rgba(91, 33, 182, 0.4);
  color: var(--accent);
  display: block;
}
.meetingForm__msg.is-error {
  border-color: rgba(255, 99, 132, 0.4);
  color: #fda4b5;
  display: block;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero__title-line span {
    transform: none;
  }
}

/* ---------- Page transition overlay ---------- */
.pageTransition {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.pageTransition.is-active {
  opacity: 1;
}

/* ---------- Body lock when modal open ---------- */
.is-modal-open,
.is-nav-open {
  overflow: hidden;
}

/* ---------- Scroll back to top ---------- */
.scrollBack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--text-1);
  color: #0a0a14;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  opacity: 0;
  transform: translateY(20px) scale(0.85);
  pointer-events: none;
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease),
    background 0.3s var(--ease);
  border: 0;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6);
}
.scrollBack.is-on {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.scrollBack:hover {
  background: var(--accent);
}

/* ---------- Misc ---------- */
.center-fade-in {
  opacity: 0;
  animation: fadeIn 1.2s var(--ease) 0.1s forwards;
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}


/* ================================================================
   CUSTOM CURSOR
   Single smooth-following ring — cream at rest, gold on hover
   ================================================================ */
body:has(.customCursor) {
  cursor: none;
}
body:has(.customCursor) a,
body:has(.customCursor) button,
body:has(.customCursor) [role="button"],
body:has(.customCursor) input,
body:has(.customCursor) textarea,
body:has(.customCursor) label {
  cursor: none;
}

.customCursor {
  position: fixed;
  top: 0; left: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(246, 241, 233, 0.55);
  pointer-events: none;
  z-index: 9999;
  /* centers the ring on the cursor hotspot */
  translate: -50% -50%;
  opacity: 0;
  transition:
    width        0.35s var(--ease),
    height       0.35s var(--ease),
    border-color 0.35s var(--ease),
    background   0.35s var(--ease),
    opacity      0.3s  var(--ease);
  will-change: left, top;
}
.customCursor.is-hovering {
  width: 34px;
  height: 34px;
  border-color: var(--accent);
  background: rgba(196, 165, 94, 0.08);
}
.customCursor.is-visible {
  opacity: 1;
}

/* Custom cursor is moved into the open dialog via JS so it joins
   the browser top layer alongside the dialog element. */

/* On touch / no-hover devices, keep the ring fully hidden */
@media (hover: none) {
  .customCursor { display: none !important; }
}

