/* =====================================================================
   APEX EMPIRE — core stylesheet
   1. Tokens          8. Marquee         15. Quotes
   2. Reset/base      9. Reel            16. Contact + form
   3. Layout         10. Manifesto       17. Footer
   4. Buttons        11. Services        18. Lightbox
   5. Chrome (UI)    12. Work cards      19. Portfolio page
   6. Header/menu    13. Why grid        20. Case study page
   7. Hero           14. Process         21. Responsive
   ===================================================================== */

/* ---------- 1. TOKENS ---------------------------------------------- */
:root {
  --bg: #050505;
  --bg-2: #0a0a0a;
  --bg-3: #101010;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);

  --gold: #D4AF37;
  --gold-light: #F4D46A;
  --gold-pale: #F7E7A6;
  --gold-dark: #9D7D14;
  --grad-gold: linear-gradient(120deg, #9D7D14 0%, #D4AF37 28%, #F7E7A6 50%, #D4AF37 72%, #9D7D14 100%);

  --txt: #F5F5F5;
  --txt-dim: #A8A8A8;
  --txt-faint: #6E6E6E;
  --line: rgba(255, 255, 255, .09);
  --line-soft: rgba(255, 255, 255, .05);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, .05, .36, 1);
  --t: .45s var(--ease);

  --pad: clamp(20px, 5vw, 64px);
  --gap: clamp(20px, 3vw, 40px);
  --section: clamp(90px, 12vw, 190px);
  --max: 1360px;

  --shadow: 0 40px 90px -30px rgba(0, 0, 0, .85);
  --glow: 0 0 60px -12px rgba(212, 175, 55, .45);
}

/* ---------- 2. RESET / BASE ---------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* JS smooth-scroll takes over; keep native as the no-JS fallback */
html.has-smooth {
  scroll-behavior: auto;
}

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: .005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-loading,
body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--gold);
  color: #0b0b0b;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* All sprite icons are stroke-based by default */
svg use,
.btn__icon,
.wcell__icon svg,
.scard__icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 200;
  background: var(--gold);
  color: #000;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  transition: top .3s;
}

.skip-link:focus {
  top: 20px;
}

/* ---------- 3. LAYOUT ---------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

section {
  position: relative;
}

main>section {
  padding-block: var(--section);
}

/* Sections with their own rhythm — declared at the same specificity so
   they actually win over the default above. */
main>section.hero {
  padding-block: clamp(110px, 14vw, 160px) clamp(90px, 10vw, 130px);
}

main>section.reel {
  padding-block: clamp(60px, 9vw, 120px);
}

main>section.trust {
  padding-block: clamp(40px, 6vw, 70px);
}

main>section.industries {
  padding-block: clamp(50px, 8vw, 100px);
}

/* Headings ---------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.035em;
}

.section-title {
  font-size: clamp(2rem, 5.4vw, 4.4rem);
  max-width: 17ch;
  margin-bottom: clamp(36px, 5vw, 70px);
}

.section-title em {
  font-style: normal;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.section-label i {
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  display: block;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--txt-dim);
  padding: 9px 18px 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  backdrop-filter: blur(8px);
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(212, 175, 55, .7);
  animation: pulseDot 2.4s infinite;
}

/* ---------- 4. BUTTONS --------------------------------------------- */
.btn {
  --btn-pad: 17px 32px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: var(--btn-pad);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  will-change: transform;
}

.btn>span,
.btn>svg {
  position: relative;
  z-index: 2;
}

.btn__icon {
  width: 17px;
  height: 17px;
  transition: transform .4s var(--ease);
}

.btn:hover .btn__icon {
  transform: translateX(5px);
}

.btn--sm {
  --btn-pad: 12px 22px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
}

/* Gold fill button with sweeping shine */
.btn--gold {
  color: #0a0a0a;
  background: var(--grad-gold);
  background-size: 220% 100%;
  background-position: 0% 0;
  box-shadow: 0 12px 40px -14px rgba(212, 175, 55, .75);
  transition: background-position .7s var(--ease), box-shadow .4s var(--ease), transform .35s var(--ease);
}

.btn--gold:hover {
  background-position: 100% 0;
  box-shadow: 0 18px 55px -14px rgba(212, 175, 55, .95);
}

/* Ghost button with gold wipe */
.btn--ghost {
  color: var(--txt);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  backdrop-filter: blur(8px);
}

.btn--ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--grad-gold);
  transform: translateY(101%);
  transition: transform .55s var(--ease);
}

.btn--ghost:hover {
  color: #0a0a0a;
  border-color: transparent;
}

.btn--ghost:hover::before {
  transform: translateY(0);
}

.btn__play {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid currentColor;
}

.btn__play svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
  stroke: none;
  margin-left: 1px;
}

/* Text link with animated arrow + underline */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--txt);
  padding-bottom: 4px;
  position: relative;
  white-space: nowrap;
}

.link-arrow svg {
  width: 17px;
  height: 17px;
  transition: transform .4s var(--ease);
}

.link-arrow::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}

.link-arrow:hover {
  color: var(--gold);
}

.link-arrow:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.link-arrow:hover svg {
  transform: translateX(6px);
}

/* ---------- 5. CHROME: preloader, curtain, cursor, fx --------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--bg);
}

.preloader__inner {
  text-align: center;
  width: min(440px, 78vw);
}

.preloader__mark {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: .14em;
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
  gap: .35em;
  overflow: hidden;
}

.preloader__word {
  display: inline-block;
  transform: translateY(110%);
  animation: riseIn .9s var(--ease) .1s forwards;
}

.preloader__word--gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation-delay: .22s;
}

.preloader__bar {
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.preloader__bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--grad-gold);
  box-shadow: 0 0 18px rgba(212, 175, 55, .8);
}

.preloader__count {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .28em;
  color: var(--txt-faint);
}

.preloader.is-done {
  animation: fadeOutUp .8s var(--ease) forwards;
  pointer-events: none;
}

/* Page transition curtain */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 290;
  pointer-events: none;
  display: grid;
  place-items: center;
}

.curtain__panel {
  position: absolute;
  inset: 0;
  background: var(--bg-2);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .7s var(--ease-io);
}

.curtain__logo {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 2rem);
  letter-spacing: .2em;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .4s, transform .5s var(--ease);
}

.curtain__logo span {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.curtain.is-out .curtain__panel {
  transform: scaleY(1);
  transform-origin: bottom;
}

.curtain.is-out .curtain__logo {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .25s;
}

/* Custom cursor */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 280;
  pointer-events: none;
  mix-blend-mode: difference;
}

.cursor__dot,
.cursor__ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor__dot {
  width: 6px;
  height: 6px;
  background: #fff;
  transition: opacity .3s, width .3s var(--ease), height .3s var(--ease);
}

.cursor__ring {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .55);
  display: grid;
  place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), background-color .4s, border-color .4s;
}

.cursor__label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .18em;
  color: #000;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .3s, transform .4s var(--ease);
}

.cursor.is-link .cursor__ring {
  width: 62px;
  height: 62px;
  border-color: var(--gold);
  background: rgba(212, 175, 55, .12);
}

.cursor.is-link .cursor__dot {
  opacity: 0;
}

.cursor.is-view .cursor__ring,
.cursor.is-play .cursor__ring {
  width: 86px;
  height: 86px;
  background: var(--gold);
  border-color: transparent;
}

.cursor.is-view .cursor__label,
.cursor.is-play .cursor__label {
  opacity: 1;
  transform: scale(1);
}

.cursor.is-view .cursor__dot,
.cursor.is-play .cursor__dot {
  opacity: 0;
}

.cursor.is-hidden {
  opacity: 0;
}

/* Ambient background layers */
.fx-particles,
.fx-grid,
.fx-aurora,
.fx-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.fx-particles {
  z-index: 0;
  opacity: .55;
}

.fx-grid {
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, #000 5%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, #000 5%, transparent 75%);
}

.fx-aurora {
  z-index: 0;
  background:
    radial-gradient(46vw 46vw at 12% 8%, rgba(212, 175, 55, .16), transparent 62%),
    radial-gradient(38vw 38vw at 88% 22%, rgba(157, 125, 20, .13), transparent 60%),
    radial-gradient(50vw 40vw at 50% 105%, rgba(212, 175, 55, .10), transparent 62%);
  filter: blur(28px);
  animation: auroraDrift 22s var(--ease-io) infinite alternate;
}

.fx-grain {
  z-index: 1;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift .7s steps(2) infinite;
}

main,
.header,
.footer {
  position: relative;
  z-index: 2;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  background: rgba(255, 255, 255, .05);
}

.scroll-progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--grad-gold);
  box-shadow: 0 0 14px rgba(212, 175, 55, .7);
}

/* ---------- 6. HEADER / MENU --------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  transition: transform .6s var(--ease), background-color .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: clamp(72px, 8vw, 92px);
}

.header.is-stuck {
  background: rgba(6, 6, 6, .72);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--line-soft);
}

.header.is-hidden {
  transform: translateY(-102%);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.logo__mark {
  width: 28px;
  height: 28px;
  flex: none;
  transition: transform .6s var(--ease);
}

.logo:hover .logo__mark {
  transform: rotate(-12deg) scale(1.08);
}

.logo__text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -.01em;
}

.logo__text b {
  font-weight: 700;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  gap: clamp(18px, 2.4vw, 38px);
}

/* Roll-over label: JS clones the text into span[data-clone] */
.nav__link {
  position: relative;
  display: block;
  height: 1.5em;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--txt-dim);
  transition: color .3s;
}

.nav__link span {
  display: block;
  transition: transform .5s var(--ease);
}

.nav__link span[data-clone] {
  color: var(--gold);
}

.nav__link:hover span {
  transform: translateY(-100%);
}

.nav__link:hover {
  color: var(--gold);
}

.nav__link.is-current {
  color: var(--txt);
}

.nav__link.is-current::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--gold);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
}

.burger i {
  position: absolute;
  left: 50%;
  width: 17px;
  height: 1.5px;
  background: var(--txt);
  transform: translateX(-50%);
  transition: transform .4s var(--ease), opacity .3s;
}

.burger i:first-child {
  top: 18px;
}

.burger i:last-child {
  bottom: 18px;
}

.burger.is-open i:first-child {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.burger.is-open i:last-child {
  bottom: auto;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Fullscreen menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 105;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding-block: 100px 40px;
}

.menu__bg {
  position: absolute;
  inset: 0;
  background: var(--bg-2);
  clip-path: circle(0% at calc(100% - 46px) 46px);
  transition: clip-path .8s var(--ease-io);
}

.menu.is-open {
  visibility: visible;
}

.menu.is-open .menu__bg {
  clip-path: circle(150% at calc(100% - 46px) 46px);
}

.menu__nav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.6vw, 14px);
}

.menu__link {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 10vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -.04em;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s;
}

.menu__link i {
  font-family: var(--font-body);
  font-size: 13px;
  font-style: normal;
  color: var(--gold);
  letter-spacing: .1em;
}

.menu__link:hover {
  color: var(--gold);
}

.menu.is-open .menu__link {
  opacity: 1;
  transform: none;
}

.menu.is-open .menu__link:nth-child(1) {
  transition-delay: .28s;
}

.menu.is-open .menu__link:nth-child(2) {
  transition-delay: .35s;
}

.menu.is-open .menu__link:nth-child(3) {
  transition-delay: .42s;
}

.menu.is-open .menu__link:nth-child(4) {
  transition-delay: .49s;
}

.menu.is-open .menu__link:nth-child(5) {
  transition-delay: .56s;
}

.menu__foot {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--txt-dim);
  opacity: 0;
  transition: opacity .5s .65s;
}

.menu.is-open .menu__foot {
  opacity: 1;
}

.menu__social {
  display: flex;
  gap: 16px;
  font-family: var(--font-display);
  letter-spacing: .1em;
}

/* Shown only where the header CTA is hidden (see the 640px query) */
.menu__cta {
  display: none;
  order: -1;
  width: 100%;
  margin-bottom: 8px;
}

.menu__social a:hover {
  color: var(--gold);
}

/* ---------- 7. HERO ------------------------------------------------ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__video,
.hero__media .cine {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video {
  opacity: 0;
  transition: opacity 1s var(--ease);
}

.hero__video.is-ready {
  opacity: .58;
}

.hero__media .cine {
  opacity: .85;
  transition: opacity 1s var(--ease);
}

.hero__media.has-video .cine {
  opacity: 0;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(78% 68% at 46% 42%, transparent, rgba(5, 5, 5, .38) 72%),
    linear-gradient(180deg, rgba(5, 5, 5, .78) 0%, rgba(5, 5, 5, .14) 34%, rgba(5, 5, 5, .55) 76%, var(--bg) 100%),
    linear-gradient(90deg, rgba(5, 5, 5, .72) 0%, rgba(5, 5, 5, .18) 46%, transparent 72%);
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__title {
  font-size: clamp(2.3rem, 6.4vw, 5.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.045em;
  margin: 24px 0 26px;
  max-width: 19ch;
}

.hero__title .line {
  display: block;
  overflow: hidden;
}

.hero__title em {
  font-style: normal;
  background: var(--grad-gold);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: goldShift 7s linear infinite;
}

.hero__lead {
  max-width: 56ch;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  color: var(--txt-dim);
  margin-bottom: 40px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: clamp(50px, 7vw, 84px);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding-top: 34px;
  border-top: 1px solid var(--line);
  max-width: 860px;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--txt-faint);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  right: var(--pad);
  bottom: clamp(28px, 5vw, 54px);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
}

.scroll-cue__text svg {
  width: 96px;
  height: 96px;
  animation: spinSlow 14s linear infinite;
}

.scroll-cue__text text {
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: .22em;
  fill: var(--txt-dim);
}

.scroll-cue__arrow {
  position: absolute;
  width: 18px;
  height: 18px;
  color: var(--gold);
  animation: bobY 2s var(--ease-io) infinite;
}

/* ---------- 8. MARQUEE --------------------------------------------- */
.trust {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .012);
}

.trust__label {
  text-align: center;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--txt-faint);
  margin-bottom: 26px;
}

.marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.marquee__track {
  --m-gap: clamp(28px, 4vw, 60px);
  display: flex;
  align-items: center;
  gap: var(--m-gap);
  width: max-content;
  will-change: transform;
}

/* JS wraps the row into groups; the trailing pad makes -50% seamless */
.marquee__group {
  display: flex;
  align-items: center;
  gap: var(--m-gap);
  padding-right: var(--m-gap);
}

.marquee__track.is-grouped {
  gap: 0;
}

.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.6vw, 21px);
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--txt-faint);
  white-space: nowrap;
  transition: color .35s;
}

.marquee__item:hover {
  color: var(--gold);
}

.marquee__sep {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .5;
  flex: none;
}

.marquee--xl {
  padding-block: clamp(8px, 1.4vw, 16px);
}

.marquee__big {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -.04em;
  white-space: nowrap;
  line-height: 1.08;
}

.marquee__big--out {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .22);
}

.marquee__star {
  font-style: normal;
  color: var(--gold);
  font-size: clamp(1rem, 2.2vw, 1.8rem);
  flex: none;
}

.industries {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

/* ---------- 9. REEL ------------------------------------------------ */
.reel__frame {
  position: relative;
  width: min(100% - calc(var(--pad) * 2), var(--max));
  margin-inline: auto;
  aspect-ratio: 16 / 8.4;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  will-change: transform;
}

.reel__video,
.reel__frame .cine {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel__video {
  opacity: 0;
  transition: opacity 1s var(--ease);
}

.reel__video.is-ready {
  opacity: 1;
}

.reel__frame.has-video .cine {
  opacity: 0;
}

.reel__scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 50%, rgba(5, 5, 5, .12), rgba(5, 5, 5, .62));
}

.reel__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(74px, 9vw, 110px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(14px);
  color: #fff;
  transition: background-color .4s, color .4s, border-color .4s;
}

.reel__play svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  stroke: none;
  margin-left: 4px;
  position: relative;
  z-index: 2;
}

.reel__play:hover {
  background: var(--gold);
  color: #0a0a0a;
  border-color: transparent;
}

.reel__pulse {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  animation: ringPulse 2.6s var(--ease-io) infinite;
}

.reel__meta {
  position: absolute;
  left: clamp(18px, 2.4vw, 34px);
  bottom: clamp(16px, 2.2vw, 30px);
  display: flex;
  gap: 14px;
  align-items: center;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}

.reel__year {
  color: var(--gold);
}

/* ---------- 10. MANIFESTO ------------------------------------------ */
.manifesto__text {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.9vw, 3.15rem);
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: -.03em;
  max-width: 22ch;
  margin-bottom: clamp(44px, 6vw, 76px);
}

.manifesto__text .w {
  color: rgba(255, 255, 255, .14);
  transition: color .3s linear;
}

.manifesto__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.manifesto__sig {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--txt-dim);
  font-size: 15px;
}

.manifesto__sig b {
  color: var(--gold);
  font-weight: 500;
}

.manifesto__line {
  width: clamp(40px, 8vw, 90px);
  height: 1px;
  background: var(--grad-gold);
}

/* ---------- 11. SERVICES (pinned horizontal) ----------------------- */
.services {
  overflow: hidden;
}

.services__head {
  margin-bottom: clamp(36px, 5vw, 64px);
}

.services__pin {
  position: relative;
}

.services__track {
  display: flex;
  gap: var(--gap);
  padding-inline: var(--pad);
  width: max-content;
  will-change: transform;
}

/* Horizontal swipe strip: used on touch, on narrow screens, or if GSAP
   pinning is unavailable. main.js sets [data-native-scroll]. */
.services__pin[data-native-scroll] {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.services__pin[data-native-scroll]::-webkit-scrollbar {
  display: none;
}

.services__pin[data-native-scroll] .scard {
  scroll-snap-align: center;
}

.scard {
  position: relative;
  flex: none;
  width: clamp(280px, 31vw, 400px);
  min-height: clamp(400px, 48vw, 520px);
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015) 45%, rgba(255, 255, 255, 0));
  backdrop-filter: blur(10px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .55s var(--ease), border-color .45s, box-shadow .55s;
  will-change: transform;
}

.scard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(212, 175, 55, .16), transparent 62%);
  opacity: 0;
  transition: opacity .45s;
}

.scard:hover {
  transform: translateY(-10px);
  border-color: rgba(212, 175, 55, .42);
  box-shadow: 0 40px 90px -46px rgba(212, 175, 55, .55);
}

.scard:hover::before {
  opacity: 1;
}

.scard>* {
  position: relative;
  z-index: 2;
}

.scard__num {
  position: absolute;
  top: clamp(22px, 2.6vw, 32px);
  right: clamp(24px, 2.8vw, 34px);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--txt-faint);
  z-index: 3;
}

.scard__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(212, 175, 55, .07);
  color: var(--gold);
  margin-bottom: 26px;
  transition: transform .55s var(--ease), background-color .45s;
}

.scard__icon svg {
  width: 27px;
  height: 27px;
}

.scard:hover .scard__icon {
  transform: translateY(-4px) rotate(-6deg);
  background: rgba(212, 175, 55, .16);
}

.scard h3 {
  font-size: clamp(1.3rem, 2.1vw, 1.72rem);
  margin-bottom: 14px;
}

.scard p {
  color: var(--txt-dim);
  font-size: 15px;
  margin-bottom: 26px;
}

.scard__list {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.scard__list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--txt-faint);
}

.scard__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .62em;
  width: 9px;
  height: 1px;
  background: var(--gold);
}

.scard--cta {
  justify-content: center;
  background: linear-gradient(165deg, rgba(212, 175, 55, .16), rgba(212, 175, 55, .03));
  border-color: rgba(212, 175, 55, .28);
}

.scard--cta .btn {
  align-self: flex-start;
  margin-top: 10px;
}

.services__hint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--txt-faint);
}

.services__hint i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  max-width: 160px;
}

/* ---------- 12. WORK CARDS ----------------------------------------- */
.work__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.work__head .section-title {
  margin-bottom: clamp(30px, 4vw, 48px);
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.wcard {
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .45s, transform .6s var(--ease), box-shadow .6s;
  will-change: transform;
}

.wcard--wide {
  grid-column: 1 / -1;
}

.wcard:hover {
  border-color: rgba(212, 175, 55, .4);
  box-shadow: 0 50px 100px -50px rgba(212, 175, 55, .45);
}

.wcard__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-3);
}

.wcard--wide .wcard__media {
  aspect-ratio: 21 / 9;
}

.wcard__video,
.wcard__media .cine {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), opacity .8s;
}

.wcard__video {
  opacity: 0;
}

.wcard__video.is-ready {
  opacity: 1;
}

.wcard__media.has-video .cine {
  opacity: 0;
}

.wcard:hover .wcard__video,
.wcard:hover .wcard__media .cine {
  transform: scale(1.07);
}

.wcard__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 5, 5, .72));
  opacity: .85;
}

.wcard__badge {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  padding: 7px 15px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(5, 5, 5, .6);
  border: 1px solid rgba(212, 175, 55, .35);
  backdrop-filter: blur(10px);
}

.wcard__body {
  padding: clamp(22px, 2.6vw, 34px);
}

.wcard__body h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  margin-bottom: 10px;
}

.wcard__body h3 em {
  font-style: normal;
  color: var(--txt-dim);
  font-weight: 300;
}

.wcard__body p {
  color: var(--txt-dim);
  font-size: 15px;
  margin-bottom: 16px;
}

.wcard__meta {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--txt-faint);
}

/* ---------- 13. WHY GRID ------------------------------------------- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.wcell {
  position: relative;
  padding: clamp(28px, 3.2vw, 44px);
  background: var(--bg);
  transition: background-color .5s;
  overflow: hidden;
}

.wcell::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}

.wcell:hover {
  background: var(--bg-3);
}

.wcell:hover::before {
  transform: scaleX(1);
}

.wcell__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid var(--line);
  color: var(--gold);
  margin-bottom: 24px;
  transition: transform .6s var(--ease);
}

.wcell__icon svg {
  width: 25px;
  height: 25px;
}

.wcell:hover .wcell__icon {
  transform: rotate(-8deg) scale(1.07);
}

.wcell h3 {
  font-size: 1.22rem;
  margin-bottom: 12px;
}

.wcell p {
  color: var(--txt-dim);
  font-size: 14.5px;
}

/* ---------- 14. PROCESS TIMELINE ----------------------------------- */
.timeline {
  position: relative;
  display: grid;
  gap: clamp(30px, 4vw, 54px);
  padding-left: clamp(34px, 5vw, 62px);
}

.timeline__line {
  position: absolute;
  left: clamp(9px, 1.4vw, 17px);
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.timeline__line i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  height: 0%;
  background: var(--grad-gold);
  box-shadow: 0 0 14px rgba(212, 175, 55, .6);
}

.titem {
  position: relative;
}

.titem__dot {
  position: absolute;
  left: calc(clamp(34px, 5vw, 62px) * -1 + clamp(9px, 1.4vw, 17px) - 5px);
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--gold);
  transition: background-color .4s, box-shadow .4s;
}

.titem.is-live .titem__dot {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(212, 175, 55, .15);
}

.titem__step {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.titem h3 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}

.titem p {
  color: var(--txt-dim);
  max-width: 58ch;
}

/* ---------- 15. QUOTES --------------------------------------------- */
.quotes__stage {
  position: relative;
}

.quotes__viewport {
  position: relative;
  min-height: clamp(330px, 34vw, 380px);
}

.quote {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), visibility .7s;
  max-width: 860px;
}

.quote.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.quote__mark {
  width: 42px;
  height: 42px;
  color: var(--gold);
  opacity: .5;
  fill: currentColor;
  stroke: none;
  margin-bottom: 26px;
}

.quote__mark use {
  fill: currentColor;
  stroke: none;
}

.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 2.1rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.025em;
  margin-bottom: 34px;
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quote__avatar {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 50%;
  background: var(--grad-gold);
  color: #0a0a0a;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
}

.quote figcaption b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
}

.quote figcaption i {
  font-style: normal;
  font-size: 13.5px;
  color: var(--txt-faint);
}

.quotes__nav {
  display: flex;
  gap: 10px;
  margin-top: 34px;
}

.qdot {
  width: 30px;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  transition: background-color .4s, width .5s var(--ease);
}

.qdot.is-active {
  width: 56px;
  background: var(--gold);
}

/* ---------- 16. CONTACT + FORM ------------------------------------- */
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 55% at 20% 30%, rgba(212, 175, 55, .1), transparent 68%);
  pointer-events: none;
}

.contact__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.contact__title {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  margin-bottom: 22px;
}

.contact__lead {
  color: var(--txt-dim);
  max-width: 44ch;
  margin-bottom: 36px;
}

.contact__list {
  display: grid;
  gap: 18px;
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--txt-dim);
  font-size: 15px;
}

.contact__list svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--gold);
}

.contact__list a:hover {
  color: var(--gold);
}

.form {
  padding: clamp(26px, 3.2vw, 44px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  backdrop-filter: blur(12px);
  display: grid;
  gap: 20px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  position: relative;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 22px 16px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, .25);
  font-size: 15px;
  transition: border-color .35s, background-color .35s;
  resize: vertical;
}

.field select {
  padding-top: 24px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23D4AF37' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.field select option {
  background: var(--bg-3);
  color: var(--txt);
}

.field label {
  position: absolute;
  left: 17px;
  top: 17px;
  font-size: 15px;
  color: var(--txt-faint);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .3s var(--ease), color .3s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(212, 175, 55, .6);
  background: rgba(0, 0, 0, .4);
}

.field input:focus+label,
.field input:not(:placeholder-shown)+label,
.field textarea:focus+label,
.field textarea:not(:placeholder-shown)+label,
.field label.is-static {
  transform: translateY(-11px) scale(.74);
  color: var(--gold);
}

.field.has-error input,
.field.has-error textarea {
  border-color: #c0563f;
}

.form__note {
  font-size: 13.5px;
  color: var(--txt-faint);
  min-height: 1.2em;
}

.form__note.is-ok {
  color: var(--gold);
}

.form__note.is-err {
  color: #e08a72;
}

/* ---------- 17. FOOTER --------------------------------------------- */
.footer {
  padding-top: clamp(60px, 8vw, 100px);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: clamp(44px, 6vw, 70px);
}

.footer__brand p {
  color: var(--txt-dim);
  font-size: 14.5px;
  max-width: 36ch;
  margin: 18px 0 24px;
}

.footer__social {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--txt-faint);
}

.footer__social a {
  position: relative;
  transition: color .3s;
}

.footer__social a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}

.footer__social a:hover {
  color: var(--gold);
}

.footer__social a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col h4 {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--txt-faint);
  margin-bottom: 8px;
  font-weight: 500;
}

.footer__col a {
  font-size: 14.5px;
  color: var(--txt-dim);
  transition: color .3s, transform .35s var(--ease);
}

.footer__col a:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold) !important;
  margin-top: 6px;
}

.footer__cta svg {
  width: 15px;
  height: 15px;
}

.footer__wordmark {
  text-align: center;
  line-height: .8;
  user-select: none;
}

.footer__wordmark span {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 15vw, 13rem);
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(212, 175, 55, .22), transparent 78%);
  -webkit-background-clip: text;
  background-clip: text;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 28px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--txt-faint);
}

.footer__bottom a:hover {
  color: var(--gold);
}

.to-top {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--txt-dim);
  transition: border-color .4s, color .4s, transform .4s var(--ease);
}

.to-top svg {
  width: 17px;
  height: 17px;
  transform: rotate(180deg);
}

.to-top:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}

/* ---------- 18. LIGHTBOX ------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 270;
  display: grid;
  place-items: center;
  padding: var(--pad);
  background: rgba(3, 3, 3, .9);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__frame {
  position: relative;
  width: min(1120px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  transform: scale(.94);
  transition: transform .6s var(--ease);
}

.lightbox.is-open .lightbox__frame {
  transform: scale(1);
}

.lightbox__frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* YouTube / Vimeo embeds are injected here by main.js */
.lightbox__embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lightbox__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.lightbox__fallback .cine {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lightbox__fallback p {
  position: relative;
  text-align: center;
  color: var(--txt-dim);
  font-size: 14px;
  padding: 14px 22px;
  background: rgba(5, 5, 5, .68);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.lightbox__fallback code {
  color: var(--gold);
  font-size: 13px;
}

.lightbox__close {
  position: absolute;
  top: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--txt);
  transition: background-color .35s, color .35s, transform .4s var(--ease);
}

.lightbox__close svg {
  width: 20px;
  height: 20px;
}

.lightbox__close:hover {
  background: var(--gold);
  color: #0a0a0a;
  transform: rotate(90deg);
}

/* ---------- 19. PORTFOLIO PAGE ------------------------------------- */
.page-hero {
  position: relative;
  padding-top: clamp(150px, 18vw, 230px);
  padding-bottom: clamp(50px, 7vw, 80px);
  overflow: hidden;
}

.page-hero__title {
  font-size: clamp(2.8rem, 10vw, 8rem);
  line-height: .94;
  letter-spacing: -.05em;
  margin: 22px 0 26px;
}

.page-hero__title em {
  font-style: normal;
  background: var(--grad-gold);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: goldShift 7s linear infinite;
}

.page-hero__lead {
  max-width: 58ch;
  color: var(--txt-dim);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--txt-faint);
}

.crumbs a:hover {
  color: var(--gold);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: clamp(30px, 4vw, 46px);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: clamp(34px, 4.5vw, 56px);
}

.filter {
  position: relative;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--txt-dim);
  overflow: hidden;
  isolation: isolate;
  transition: color .35s, border-color .35s;
}

.filter::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad-gold);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}

.filter:hover {
  color: var(--gold);
  border-color: rgba(212, 175, 55, .45);
}

.filter.is-active {
  color: #0a0a0a;
  border-color: transparent;
}

.filter.is-active::before {
  transform: translateY(0);
}

.filter b {
  font-weight: 400;
  opacity: .55;
  margin-left: 7px;
  font-size: 11px;
}

.filter.is-empty {
  opacity: .32;
  cursor: not-allowed;
}

.filter.is-empty:hover {
  color: var(--txt-dim);
  border-color: var(--line);
}

.pgrid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: var(--gap);
}

/* Cards that carry their own play button link via a stretched anchor
   so the button stays clickable (no interactive element inside an <a>) */
.pitem__link {
  color: inherit;
}

.pitem__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}

.pitem>a.pitem__link {
  display: block;
}

.pitem {
  grid-column: span 6;
  display: block;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .45s, box-shadow .6s, opacity .45s var(--ease), transform .6s var(--ease);
  will-change: transform, opacity;
}

.pitem--tall {
  grid-column: span 6;
}

.pitem--full {
  grid-column: span 12;
}

.pitem--third {
  grid-column: span 4;
}

.pitem.is-hidden {
  display: none;
}

.pitem:hover {
  border-color: rgba(212, 175, 55, .45);
  box-shadow: 0 50px 110px -55px rgba(212, 175, 55, .5);
}

.pitem__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-3);
}

.pitem--full .pitem__media {
  aspect-ratio: 21 / 9;
}

.pitem--third .pitem__media {
  aspect-ratio: 1 / 1;
}

.pitem__video,
.pitem__media .cine {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity .8s;
}

.pitem__video {
  opacity: 0;
}

.pitem__video.is-ready {
  opacity: 1;
}

.pitem__media.has-video .cine {
  opacity: 0;
}

.pitem:hover .pitem__video,
.pitem:hover .pitem__media .cine {
  transform: scale(1.06);
}

.pitem__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, .1) 0%, transparent 35%, rgba(5, 5, 5, .8));
}

.pitem__tag {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(5, 5, 5, .62);
  border: 1px solid rgba(212, 175, 55, .32);
  backdrop-filter: blur(10px);
}

.pitem__play {
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: scale(.8);
  transition: opacity .4s, transform .5s var(--ease), background-color .35s, color .35s;
}

.pitem__play svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: none;
  margin-left: 2px;
}

.pitem:hover .pitem__play {
  opacity: 1;
  transform: scale(1);
}

.pitem__play:hover {
  background: var(--gold);
  color: #0a0a0a;
}

.pitem__body {
  padding: clamp(20px, 2.4vw, 30px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.pitem__body h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  margin-bottom: 7px;
}

.pitem__body p {
  font-size: 13.5px;
  color: var(--txt-faint);
}

.pitem__go {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--txt-dim);
  transition: transform .5s var(--ease), color .35s, border-color .35s, background-color .35s;
}

.pitem__go svg {
  width: 16px;
  height: 16px;
}

.pitem:hover .pitem__go {
  background: var(--gold);
  color: #0a0a0a;
  border-color: transparent;
  transform: rotate(-45deg);
}

.pempty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 70px 20px;
  color: var(--txt-faint);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}

/* ---------- 20. CASE STUDY PAGE ------------------------------------ */
.cs-hero {
  position: relative;
  min-height: 82svh;
  display: flex;
  align-items: flex-end;
  padding-top: clamp(140px, 16vw, 200px);
  padding-bottom: clamp(50px, 7vw, 80px);
  overflow: hidden;
}

.cs-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.cs-hero__media video,
.cs-hero__media .cine {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-hero__media video {
  opacity: 0;
  transition: opacity 1s;
}

.cs-hero__media video.is-ready {
  opacity: .6;
}

.cs-hero__media.has-video .cine {
  opacity: 0;
}

.cs-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, .82), rgba(5, 5, 5, .4) 45%, var(--bg));
}

.cs-hero__title {
  font-size: clamp(2.4rem, 8vw, 6.2rem);
  margin: 20px 0 24px;
  max-width: 16ch;
}

.cs-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.cs-meta div span {
  display: block;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--txt-faint);
  margin-bottom: 8px;
}

.cs-meta div b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
}

.cs-body {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}

.cs-body h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
}

.cs-body p {
  color: var(--txt-dim);
  margin-bottom: 20px;
}

.cs-block+.cs-block {
  margin-top: clamp(34px, 4.5vw, 56px);
}

.cs-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap);
}

.cs-shot {
  position: relative;
  grid-column: span 3;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
}

.cs-shot--wide {
  grid-column: span 6;
  aspect-ratio: 21 / 9;
}

.cs-shot--third {
  grid-column: span 2;
  aspect-ratio: 4 / 5;
}

.cs-shot .cine {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cs-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.cs-result {
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.cs-result b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.cs-result span {
  font-size: 14px;
  color: var(--txt-dim);
}

.cs-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: clamp(34px, 5vw, 60px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgba(212, 175, 55, .1), transparent 60%);
  transition: border-color .45s, background-color .45s;
}

.cs-next:hover {
  border-color: rgba(212, 175, 55, .45);
}

.cs-next span {
  display: block;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.cs-next h3 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
}

/* ---------- 21. UPLOADED MEDIA -------------------------------------
   Cover images, client logos and avatars supplied through the admin.
   They sit in the same boxes as the animated canvas fallback.        */
.hero__media img,
.reel__frame img,
.wcard__media img,
.pitem__media img,
.cs-hero__media img,
.cs-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), opacity .8s;
}

/* Once a real video is playing, fade the still poster out beneath it */
.has-video>img {
  opacity: 0;
}

.wcard:hover .wcard__media img,
.pitem:hover .pitem__media img {
  transform: scale(1.06);
}

.hero__media img {
  opacity: .5;
}

.cs-hero__media img {
  opacity: .55;
}

.marquee__logo {
  height: clamp(20px, 2.4vw, 30px);
  width: auto;
  object-fit: contain;
  opacity: .6;
  filter: grayscale(1);
  transition: opacity .35s, filter .35s;
}

.marquee__logo:hover {
  opacity: 1;
  filter: none;
}

.quote__avatar--img {
  object-fit: cover;
  padding: 0;
}

/* Rich-text output from the case-study editor */
.prose p {
  color: var(--txt-dim);
  margin-bottom: 18px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose ul,
.prose ol {
  color: var(--txt-dim);
  margin: 0 0 18px 20px;
  display: grid;
  gap: 8px;
}

.prose ul li {
  list-style: none;
  position: relative;
  padding-left: 18px;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .72em;
  width: 9px;
  height: 1px;
  background: var(--gold);
}

.prose ol li {
  list-style: decimal;
}

.prose a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.cs-subhead {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

/* Honeypot — off-screen for people, visible to naive bots */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- 22. RESPONSIVE ----------------------------------------- */
@media (max-width: 1100px) {
  .why__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .cs-meta,
  .cs-results {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .burger {
    display: block;
  }

  .cursor {
    display: none;
  }

  .contact__inner,
  .cs-body {
    grid-template-columns: 1fr;
  }

  .work__grid {
    grid-template-columns: 1fr;
  }

  .wcard--wide .wcard__media {
    aspect-ratio: 16 / 9;
  }

  .pitem,
  .pitem--tall,
  .pitem--third,
  .pitem--full {
    grid-column: span 6;
  }

  .cs-shot,
  .cs-shot--third {
    grid-column: span 3;
  }
}

@media (max-width: 640px) {

  /* The header CTA wraps at this width — the menu carries it instead */
  .header__actions>.btn {
    display: none;
  }

  .logo__text {
    white-space: nowrap;
  }

  .eyebrow {
    letter-spacing: .22em;
    font-size: 10px;
  }

  .menu__cta {
    display: inline-flex;
  }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }

  .scroll-cue {
    display: none;
  }

  .why__grid {
    grid-template-columns: 1fr;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr;
  }

  .pitem,
  .pitem--tall,
  .pitem--third,
  .pitem--full {
    grid-column: span 12;
  }

  .cs-shot,
  .cs-shot--wide,
  .cs-shot--third {
    grid-column: span 6;
  }

  .cs-meta,
  .cs-results {
    grid-template-columns: 1fr 1fr;
  }

  .pitem__body {
    flex-direction: column;
  }

  .btn {
    --btn-pad: 15px 26px;
  }

  .reel__frame {
    border-radius: var(--r-md);
    aspect-ratio: 4 / 3;
  }
}
