/* ==========================================================================
   EFF LOON PRODUCTIONS — Premium cinematic theme
   ========================================================================== */

:root {
  --bg: #050608;
  --bg-2: #0a0c10;
  --text: #f4f5f7;
  --muted: #9aa1ad;
  --dim: #5b616d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --accent: #4f9cff;
  --accent-2: #9cc8ff;
  --violet: #7c6cff;
  --amber: #ff8a4c;

  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.025) 100%);
  --glass-blur: blur(22px) saturate(160%);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 30px 60px -24px rgba(0, 0, 0, 0.7);

  --radius-lg: 32px;
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);

  --font-display: "Inter Tight", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-body: "Jost", system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; padding-block: clamp(90px, 12vw, 170px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Ambient background ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { width: 46vw; height: 46vw; left: -12vw; top: -10vw; background: #1f4fd1; }
.aurora span:nth-child(2) { width: 38vw; height: 38vw; right: -10vw; top: 30vh; background: #5b3fd6; animation-duration: 32s; animation-delay: -8s; }
.aurora span:nth-child(3) { width: 30vw; height: 30vw; left: 30vw; bottom: -14vw; background: #b4521f; opacity: 0.18; animation-duration: 38s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8vw, 6vh) scale(1.15); }
  100% { transform: translate(-6vw, 10vh) scale(0.95); }
}
.grain {
  position: fixed; inset: -50%; z-index: 200; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- Glass ---------- */
.glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius);
  isolation: isolate;
}
/* Gradient hairline border */
.glass::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255,255,255,0.35), rgba(255,255,255,0.04) 40%, rgba(255,255,255,0.02) 60%, rgba(156,200,255,0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
.glass-dark { background: linear-gradient(135deg, rgba(14,16,22,0.7), rgba(8,9,12,0.45)); }
/* Glass that sits on photos needs a darker tint to stay readable on bright images */
.member-plate.glass, .story-quote.glass, .svc-float.glass, .tile-panel.glass, .featured-panel.glass, .collage .c3.glass {
  background: linear-gradient(135deg, rgba(14,16,22,0.62), rgba(8,9,12,0.38));
}

/* Spotlight that follows the pointer (set --mx/--my in JS) */
.spot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(124,170,255,0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 0;
}
.spot:hover::after { opacity: 1; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: #d9e6ff;
}
/* Dot uses ::after so it doesn't clash with the .glass ::before border */
.eyebrow::after {
  content: ""; order: -1; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 14px var(--accent);
}
.h-xl, .h-lg, .h-md {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}
.h-xl { font-size: clamp(52px, 10.5vw, 168px); }
.h-lg { font-size: clamp(40px, 6.4vw, 96px); line-height: 1; }
.h-md { font-size: clamp(30px, 4vw, 56px); line-height: 1.05; }
.h-xl em, .h-lg em, .h-md em, .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent-2);
}
.lead { color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); max-width: 560px; line-height: 1.7; }
.muted { color: var(--muted); }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; flex-wrap: wrap;
  margin-bottom: clamp(44px, 6vw, 80px);
}
.section-head .h-lg, .section-head .h-md { margin-top: 22px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* Word split reveal */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.04em 0.12em 0; margin-bottom: -0.12em; }
.split .wi { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: left bottom; transition: transform 1.1s var(--ease); }
.split.in .wi { transform: none; }

/* Scroll-highlighted statement */
.statement {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 62px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.03em;
}
.statement .sw { opacity: 0.14; transition: opacity 0.3s; }
.statement .sw.lit { opacity: 1; }
.statement em { font-family: var(--font-serif); font-style: italic; color: var(--accent-2); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 54px; padding: 0 10px 0 26px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  transition: background 0.4s, color 0.4s, box-shadow 0.4s;
}
.btn .arrow {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  transition: transform 0.5s var(--ease), background 0.4s;
}
.btn .arrow svg { width: 15px; height: 15px; }
.btn:hover .arrow { transform: rotate(-45deg); }
.btn-light { background: var(--text); color: #07080b; }
.btn-light .arrow { background: #07080b; color: #fff; }
.btn-light:hover { background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,0.08), 0 20px 50px -10px rgba(79,156,255,0.5); }
.btn-glass { background: rgba(255,255,255,0.06); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-glass .arrow { background: rgba(255,255,255,0.1); }
.btn-glass:hover { background: rgba(255,255,255,0.12); }
.btn-glass:hover .arrow { background: var(--accent); }
.btn-sm { height: 46px; padding-left: 20px; font-size: 14px; }
.btn-sm .arrow { width: 30px; height: 30px; }
.btn-plain { padding: 0 26px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-2); font-weight: 500; }
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.4s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.play-btn {
  position: relative;
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
  flex: none;
}
.play-btn svg { width: 20px; height: 20px; margin-left: 3px; }
.play-btn::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { from { transform: scale(0.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }

/* ---------- Preloader & page transition ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 300;
  background: #030405;
  display: grid; place-items: center;
  transition: transform 1.1s var(--ease-io);
}
.preloader.done { transform: translateY(-100%); }
.preloader-inner { display: grid; justify-items: center; gap: 22px; }
.preloader-logo { height: 120px; width: auto; animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(0.92); opacity: 0.7; } }
.preloader-bar { width: 180px; height: 2px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.preloader-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.2s; }
.preloader-count { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.3em; color: var(--muted); }

.page-curtain {
  position: fixed; inset: 0; z-index: 250;
  background: #030405;
  pointer-events: none;
  transform: translateY(0);
  animation: curtainOut 0.9s var(--ease-io) 0.05s forwards;
}
@keyframes curtainOut { to { transform: translateY(-100%); } }
.page-curtain.leave { animation: curtainIn 0.6s var(--ease-io) forwards; transform: translateY(100%); }
@keyframes curtainIn { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ---------- Custom cursor ---------- */
.cursor, .cursor-dot { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; display: none; }
.cursor {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  display: grid; place-items: center;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), background 0.4s, border-color 0.4s;
}
.cursor span { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #07080b; opacity: 0; transition: opacity 0.3s; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; }
.cursor.hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }
.cursor.label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: #fff; border-color: #fff; }
.cursor.label span { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor, .has-cursor .cursor-dot { display: grid; }
  .has-cursor .cursor-dot { display: block; }
}

/* ---------- Header ---------- */
.header {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 100;
  padding-inline: var(--gutter);
  transition: transform 0.6s var(--ease);
}
.header.hidden { transform: translateY(-140%); }
.header-bar {
  max-width: var(--container);
  margin-inline: auto;
  height: 66px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 10px 0 26px;
  border-radius: 999px;
  transition: background 0.5s, box-shadow 0.5s;
}
.header:not(.scrolled) .header-bar { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.header:not(.scrolled) .header-bar::before { opacity: 0; }
.header-bar::before { transition: opacity 0.5s; }

.logo { display: inline-flex; align-items: center; flex: none; transition: opacity 0.3s; }
.logo:hover { opacity: 0.85; }
.logo img { height: 52px; width: auto; }
.footer-about .logo img { height: 92px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative;
  padding: 9px 16px; border-radius: 999px;
  font-size: 14.5px; color: #c6ccd6;
  transition: color 0.3s, background 0.3s;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav a.active { color: #fff; background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }

.menu-toggle {
  display: none;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 0 0 1px var(--line-2);
  position: relative; z-index: 2;
}
.menu-toggle span { position: absolute; left: 15px; right: 15px; height: 1.5px; background: #fff; transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.menu-toggle span:nth-child(1) { top: 20px; }
.menu-toggle span:nth-child(2) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { top: 23.5px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 23.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  padding: 120px var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: rgba(5,6,8,0.82);
  backdrop-filter: blur(30px) saturate(150%); -webkit-backdrop-filter: blur(30px) saturate(150%);
  clip-path: circle(0% at calc(100% - 50px) 48px);
  transition: clip-path 0.9s var(--ease-io);
  overflow-y: auto;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 50px) 48px); }
.mobile-menu nav { display: grid; }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: clamp(34px, 9vw, 54px); font-weight: 500; letter-spacing: -0.03em;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.3s;
}
.mobile-menu nav a small { font-family: var(--font-body); font-size: 12px; color: var(--dim); letter-spacing: 0.1em; }
.mobile-menu nav a.active { color: var(--accent-2); }
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.menu-open .mobile-menu nav a:nth-child(1) { transition-delay: 0.25s; }
.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: 0.3s; }
.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: 0.35s; }
.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: 0.4s; }
.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: 0.45s; }
.menu-open .mobile-menu nav a:nth-child(6) { transition-delay: 0.5s; }
.mobile-menu-foot { display: grid; gap: 6px; margin-top: 32px; color: var(--muted); font-size: 15px; }

/* ---------- Hero (home) ---------- */
.hero {
  min-height: 100svh;
  padding: calc(var(--header-h) + 60px) 0 36px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg img, .hero-bg video { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,6,8,0.6) 0%, rgba(5,6,8,0.05) 30%, rgba(5,6,8,0.35) 60%, var(--bg) 100%),
    linear-gradient(90deg, rgba(5,6,8,0.7) 0%, transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.hero h1 { max-width: 11ch; }
.hero-side { display: grid; gap: 14px; width: 330px; }

.reel-card { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: var(--radius); cursor: pointer; }
.reel-thumb { position: relative; width: 120px; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; flex: none; }
.reel-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.reel-card:hover .reel-thumb img { transform: scale(1.08); }
.reel-thumb .play-btn { position: absolute; inset: 0; margin: auto; width: 42px; height: 42px; }
.reel-thumb .play-btn svg { width: 13px; height: 13px; }
.reel-thumb .play-btn::after { display: none; }
.reel-card strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.reel-card span { font-size: 13px; color: var(--muted); }

.mini-stats { display: grid; grid-template-columns: 1fr 1fr; padding: 18px 6px; border-radius: var(--radius); }
.mini-stats div { padding: 0 16px; }
.mini-stats div + div { border-left: 1px solid var(--line); }
.mini-stats b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 32px; letter-spacing: -0.04em; line-height: 1.1; }
.mini-stats div > span { font-size: 12.5px; color: var(--muted); }

.hero-foot {
  margin-top: 48px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.hero-foot p { max-width: 430px; color: #c4cad4; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.scroll-cue { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.scroll-cue i { width: 22px; height: 36px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.35); position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

.live-chip {
  position: absolute; top: calc(var(--header-h) + 34px); right: var(--gutter);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-radius: 999px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
}
.live-chip i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 12px #ff3b30; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: calc(var(--header-h) + clamp(80px, 12vw, 150px)) 0 clamp(60px, 8vw, 110px);
  overflow: hidden;
}
.page-hero.has-bg { min-height: 88svh; display: flex; align-items: flex-end; isolation: isolate; }
.page-hero .hero-bg::after {
  background: linear-gradient(180deg, rgba(5,6,8,0.7) 0%, rgba(5,6,8,0.35) 45%, var(--bg) 100%);
}
.page-hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.page-hero h1 { margin-top: 24px; }
.page-hero .lead { margin-top: 0; }
.breadcrumbs { display: flex; gap: 10px; font-size: 13px; color: var(--muted); margin-top: 28px; }
.breadcrumbs a:hover { color: #fff; }

.chip-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.chip {
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px; color: #d0d5de;
  background: rgba(255,255,255,0.05);
  box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.chip:hover { background: rgba(255,255,255,0.1); color: #fff; }
.chip.active, .chip[aria-pressed="true"] { background: var(--text); color: #07080b; box-shadow: none; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding-block: 28px;
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 36px; padding-right: 36px;
  font-family: var(--font-display); font-size: clamp(22px, 3vw, 40px); font-weight: 400; letter-spacing: -0.03em;
  color: rgba(255,255,255,0.35); white-space: nowrap;
}
.marquee-track span:nth-child(even) { font-family: var(--font-serif); font-style: italic; color: rgba(156,200,255,0.55); }
.marquee-track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--violet)); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro ---------- */
.intro-grid { display: grid; grid-template-columns: 220px 1fr; gap: clamp(32px, 6vw, 96px); }
.intro-grid .eyebrow { align-self: start; }
.intro-foot { display: flex; align-items: center; gap: 28px; margin-top: 56px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); margin-left: -12px; }
.avatars img:first-child { margin-left: 0; }
.intro-foot p { font-size: 14px; color: var(--muted); max-width: 260px; }

/* ---------- Services bento (home) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 290px;
  gap: 16px;
}
.tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px;
  background: #0d0f14;
}
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease), filter 0.8s; filter: saturate(0.85) brightness(0.8); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,6,8,0.1) 30%, rgba(5,6,8,0.85) 100%); }
.tile:hover > img { transform: scale(1.07); filter: saturate(1.05) brightness(0.9); }
.tile-1 { grid-column: span 7; grid-row: span 2; }
.tile-2 { grid-column: span 5; }
.tile-3 { grid-column: span 5; }
.tile-4 { grid-column: span 4; }
.tile-5 { grid-column: span 4; }
.tile-6 { grid-column: span 4; }
.tile-top { display: flex; justify-content: space-between; align-items: center; }
.tile-num { padding: 7px 14px; border-radius: 999px; font-size: 12px; letter-spacing: 0.14em; }
.tile-go {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
  transition: background 0.4s, transform 0.6s var(--ease);
}
.tile-go svg { width: 16px; height: 16px; }
.tile:hover .tile-go { background: #fff; color: #07080b; transform: rotate(-45deg); }
.tile-panel { padding: 20px 22px; border-radius: var(--radius); }
.tile-panel h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.03em; line-height: 1.1; }
.tile-panel p { color: #c4cad4; font-size: 14.5px; margin-top: 6px; }
.tile-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.6s var(--ease), opacity 0.5s, margin 0.6s var(--ease); }
.tile:hover .tile-tags { max-height: 80px; opacity: 1; margin-top: 14px; }
.tag {
  padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; color: #dbe1ea;
  background: rgba(255,255,255,0.07);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}

/* ---------- Horizontal work rail ---------- */
.hscroll { padding: 0; }
.hscroll-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hscroll-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.hscroll-progress { width: 200px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.hscroll-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.rail { display: flex; gap: 22px; padding-inline: var(--gutter); width: max-content; will-change: transform; }
.project {
  position: relative;
  width: clamp(300px, 38vw, 560px);
  flex: none;
}
.project-media { position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; background: #0d0f14; }
.project.wide { width: clamp(340px, 52vw, 780px); }
.project.wide .project-media { aspect-ratio: 16/11; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.project:hover .project-media img { transform: scale(1.06); }
.project-badge { background: linear-gradient(135deg, rgba(14,16,22,0.6), rgba(8,9,12,0.35)); color: #fff; }
.project-badge { position: absolute; top: 16px; left: 16px; padding: 8px 14px; border-radius: 999px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.project-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 6px 0; }
.project-meta h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.03em; }
.project-meta span { font-size: 14px; color: var(--muted); }
.rail-end { width: clamp(260px, 26vw, 380px); flex: none; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; padding: 40px; border-radius: var(--radius-lg); }
.rail-end h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3vw, 42px); letter-spacing: -0.03em; line-height: 1.05; }

/* ---------- Stats band ---------- */
.stats-band { overflow: hidden; isolation: isolate; }
.stats-band .hero-bg::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(5,6,8,0.55) 30%, rgba(5,6,8,0.55) 70%, var(--bg) 100%); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 34px 28px; border-radius: var(--radius); }
.stat-num { font-family: var(--font-display); font-size: clamp(46px, 5.5vw, 82px); font-weight: 400; line-height: 1; letter-spacing: -0.05em; }
.stat-num sup { font-family: var(--font-serif); font-style: italic; font-size: 0.5em; color: var(--accent-2); vertical-align: top; margin-left: 4px; }
.stat-label { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 30px 26px 30px; border-radius: var(--radius); min-height: 300px; display: flex; flex-direction: column; }
.step-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; }
.step-num { font-family: var(--font-serif); font-style: italic; font-size: 54px; line-height: 1; color: var(--accent-2); }
.step-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(79,156,255,0.12); color: var(--accent-2); }
.step-ico svg { width: 21px; height: 21px; }
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: 23px; letter-spacing: -0.02em; margin-top: 48px; }
.step p { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* ---------- CTA ---------- */
.cta-wrap { padding-block: clamp(40px, 6vw, 80px) clamp(90px, 12vw, 160px); }
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: clamp(28px, 4vw, 48px);
  padding: clamp(48px, 9vw, 130px) clamp(24px, 6vw, 90px);
  text-align: center;
}
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(5,6,8,0.45), rgba(5,6,8,0.85)); }
.cta .h-xl { font-size: clamp(46px, 9vw, 140px); }
.cta .lead { margin: 26px auto 0; color: #ccd2dc; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }

/* ---------- Footer ---------- */
.footer { position: relative; padding: 0 0 28px; overflow: hidden; }
.footer-card { padding: clamp(32px, 5vw, 64px); border-radius: var(--radius-lg); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: #c4cad4; transition: color 0.3s; width: fit-content; }
.footer-links a:hover { color: #fff; }
.footer-about p { color: var(--muted); margin-top: 20px; max-width: 320px; font-size: 15px; }
.socials { display: flex; gap: 10px; margin-top: 26px; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.05); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background 0.3s, transform 0.4s var(--ease);
}
.socials a:hover { background: var(--accent); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }
.footer-word {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(64px, 17vw, 270px);
  line-height: 0.82; letter-spacing: -0.06em;
  text-align: center;
  padding-top: clamp(30px, 5vw, 60px);
  background: linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13.5px; }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); transition: color 0.3s; }
.to-top:hover { color: #fff; }
.to-top svg { width: 14px; height: 14px; }

/* ---------- About page ---------- */
.collage { position: relative; height: clamp(380px, 46vw, 600px); }
.collage figure { position: absolute; overflow: hidden; border-radius: var(--radius-lg); box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8); }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage .c1 { width: 62%; height: 72%; right: 0; top: 0; }
.collage .c2 { width: 46%; height: 52%; left: 0; bottom: 0; }
.collage .c3 { position: absolute; left: 30%; bottom: 8%; padding: 18px 22px; border-radius: var(--radius); display: flex; gap: 14px; align-items: center; z-index: 2; }
.collage .c3 b { font-family: var(--font-display); font-weight: 500; font-size: 30px; letter-spacing: -0.04em; line-height: 1; }
.collage .c3 span { font-size: 13px; color: var(--muted); line-height: 1.3; }

.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.story-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; }
.story-media img { width: 100%; height: 115%; object-fit: cover; }
.story-quote { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 22px 24px; }
.story-quote p { font-family: var(--font-serif); font-style: italic; font-size: clamp(20px, 2vw, 26px); line-height: 1.3; }
.story-quote span { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
.story-copy p { color: var(--muted); margin-top: 22px; }
.story-copy .btn { margin-top: 36px; }

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vm-card { padding: clamp(30px, 4vw, 52px); border-radius: var(--radius-lg); min-height: 340px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.vm-card .label { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-2); }
.vm-card .label svg { width: 22px; height: 22px; }
.vm-card p { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.25; letter-spacing: -0.025em; margin-top: 60px; }
.vm-card .orb { position: absolute; width: 300px; height: 300px; border-radius: 50%; right: -100px; top: -120px; filter: blur(60px); opacity: 0.4; z-index: -1; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value { padding: 28px 26px; border-radius: var(--radius); }
.value .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(79,156,255,0.12); color: var(--accent-2); margin-bottom: 36px; }
.value .ico svg { width: 20px; height: 20px; }
.value h3 { font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: -0.02em; }
.value p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.value.feature { grid-column: span 2; background: linear-gradient(135deg, rgba(79,156,255,0.22), rgba(124,108,255,0.08)); }

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.member { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4; background: #0d0f14; }
.member img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(0.9); transition: filter 0.8s var(--ease), transform 1.4s var(--ease); }
.member:hover img { filter: grayscale(0) brightness(1); transform: scale(1.05); }
.member-plate { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.member-plate h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: -0.02em; }
.member-plate span { font-size: 13px; color: var(--accent-2); }
.member-plate a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.1); flex: none; transition: background 0.3s; }
.member-plate a:hover { background: var(--accent); }
.member-plate svg { width: 16px; height: 16px; }

/* ---------- Services page ---------- */
.svc { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; padding-block: clamp(50px, 7vw, 100px); border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.svc:nth-child(even) .svc-media { order: 2; }
.svc-media { position: relative; aspect-ratio: 5/4; border-radius: var(--radius-lg); overflow: hidden; }
.svc-media img { width: 100%; height: 115%; object-fit: cover; }
.svc-float { position: absolute; left: 18px; bottom: 18px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.svc-float .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); flex: none; }
.svc-float .ico svg { width: 18px; height: 18px; }
.svc-float b { display: block; font-weight: 500; }
.svc-float span { color: var(--muted); font-size: 13px; }
.svc-num { font-family: var(--font-serif); font-style: italic; font-size: 24px; color: var(--accent-2); }
.svc h2 { margin-top: 10px; }
.svc-copy > p { color: var(--muted); margin-top: 20px; max-width: 520px; }
.deliverables { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 30px; }
.deliverables li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #d6dbe3; }
.deliverables svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.svc-copy .btn { margin-top: 36px; }

.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.industry { padding: 26px 22px; border-radius: var(--radius); display: flex; align-items: center; gap: 16px; }
.industry .ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--accent-2); flex: none; transition: background 0.4s, color 0.4s; }
.industry .ico svg { width: 19px; height: 19px; }
.industry:hover .ico { background: var(--accent); color: #fff; }
.industry span { font-size: 15.5px; line-height: 1.3; }

.faq { max-width: 880px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { border-radius: var(--radius); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 26px; text-align: left; font-family: var(--font-display); font-weight: 500; font-size: clamp(17px, 1.6vw, 20px); letter-spacing: -0.01em; position: relative; z-index: 2; }
.faq-q i { width: 36px; height: 36px; border-radius: 50%; flex: none; position: relative; background: rgba(255,255,255,0.08); transition: background 0.4s, transform 0.5s var(--ease); }
.faq-q i::before, .faq-q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: #fff; }
.faq-q i::after { transform: rotate(90deg); transition: transform 0.4s var(--ease); }
.faq-item.open .faq-q i { background: var(--accent); }
.faq-item.open .faq-q i::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 26px 26px; color: var(--muted); max-width: 720px; }

/* ---------- Work page ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 20px; }
.work-grid .project { width: auto; }
.work-grid .project:nth-child(4n+1), .work-grid .project:nth-child(4n+4) { }
.work-grid .project-media { aspect-ratio: 16/11; }
.work-grid .project:nth-child(odd) { transform: translateY(0); }
.work-grid .project.hide { display: none; }
.project-meta .cat { color: var(--accent-2); }
.featured-project { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21/9; min-height: 420px; isolation: isolate; display: flex; align-items: flex-end; padding: clamp(18px, 3vw, 36px); margin-bottom: 56px; cursor: pointer; }
.featured-project > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.6s var(--ease); }
.featured-project:hover > img { transform: scale(1.04); }
.featured-project::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,6,8,0.75), transparent 70%); }
.featured-panel { padding: 28px 30px; max-width: 520px; display: grid; gap: 14px; }
.featured-panel .h-md { font-size: clamp(30px, 3.4vw, 48px); }
.featured-panel-row { display: flex; align-items: center; gap: 18px; }
.featured-panel-row .meta { font-size: 14px; color: var(--muted); }

/* ---------- Gallery ---------- */
.masonry { columns: 3 300px; column-gap: 16px; }
.g-item { position: relative; margin-bottom: 16px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: #0d0f14; }
.g-item img { width: 100%; height: auto; transition: transform 1.2s var(--ease), filter 0.6s; }
.g-item:hover img { transform: scale(1.05); }
.g-item figcaption { position: absolute; left: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.g-item:hover figcaption { opacity: 1; transform: none; }
.g-item.hide { display: none; }
.masonry.dim:hover .g-item:not(:hover) img { filter: brightness(0.55) saturate(0.7); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.c-card { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--radius); transition: transform 0.5s var(--ease); }
a.c-card:hover { transform: translateY(-3px); }
.c-card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(79,156,255,0.14); color: var(--accent-2); flex: none; }
.c-card .ico svg { width: 20px; height: 20px; }
.c-card small { display: block; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.c-card b { font-weight: 400; font-size: 16.5px; line-height: 1.45; }

.form-card { padding: clamp(26px, 4vw, 48px); border-radius: var(--radius-lg); }
.form-card h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.03em; }
.form-card > p { color: var(--muted); margin-top: 6px; }
.form { display: grid; gap: 22px; margin-top: 34px; position: relative; z-index: 2; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label.lbl, .form .lbl { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; letter-spacing: 0.02em; }
.field input, .field textarea {
  width: 100%;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  border: 0;
  background: rgba(0,0,0,0.28);
  box-shadow: inset 0 0 0 1px var(--line-2);
  outline: none;
  font-size: 15.5px;
  transition: box-shadow 0.3s, background 0.3s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px rgba(79,156,255,0.15); background: rgba(0,0,0,0.4); }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice .chip { font-size: 13.5px; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-foot small { color: var(--dim); font-size: 13px; }
.form-status { font-size: 14px; color: var(--accent-2); min-height: 1em; }

.map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: clamp(320px, 40vw, 480px);
  isolation: isolate;
}
.map iframe { width: 100%; height: 100%; border: 0; filter: invert(0.92) hue-rotate(185deg) saturate(0.6) brightness(0.9); }
.map-card { position: absolute; left: 18px; top: 18px; padding: 20px 22px; max-width: 320px; z-index: 2; }
.map-card b { font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: -0.02em; }
.map-card p { color: var(--muted); font-size: 14px; margin: 6px 0 14px; }

/* ---------- Modal & lightbox ---------- */
.modal, .lightbox {
  position: fixed; inset: 0; z-index: 260;
  display: grid; place-items: center;
  padding: 80px 16px;
  background: rgba(3,4,6,0.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.modal.open, .lightbox.open { opacity: 1; visibility: visible; }
.modal-frame { width: min(1200px, 100%); aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; transform: scale(0.94); transition: transform 0.6s var(--ease); box-shadow: 0 50px 100px -30px rgba(0,0,0,0.9); }
.modal.open .modal-frame { transform: none; }
.modal-frame video, .modal-frame iframe { width: 100%; height: 100%; border: 0; }
.lightbox img { max-width: min(1400px, 100%); max-height: 100%; border-radius: var(--radius-sm); object-fit: contain; transform: scale(0.95); transition: transform 0.6s var(--ease); }
.lightbox.open img { transform: none; }
.ctl {
  position: absolute;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.08); box-shadow: inset 0 0 0 1px var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s;
}
.ctl:hover { background: var(--accent); }
.ctl svg { width: 18px; height: 18px; }
.ctl-close { top: 20px; right: 20px; }
.ctl-prev { left: 20px; top: 50%; margin-top: -26px; }
.ctl-next { right: 20px; top: 50%; margin-top: -26px; }
.lb-count { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-size: 13px; letter-spacing: 0.24em; color: var(--muted); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; clip-path: inset(12% 8% 12% 8% round var(--radius-lg)); transition: clip-path 1.4s var(--ease), opacity 0.8s; }
.reveal-scale.in { opacity: 1; clip-path: inset(0 0 0 0 round var(--radius-lg)); }
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }

/* Hero intro animation (after preloader) */
.intro-up { opacity: 0; transform: translateY(30px); }
.loaded .intro-up { opacity: 1; transform: none; transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.loaded .intro-up[data-delay="1"] { transition-delay: 0.5s; }
.loaded .intro-up[data-delay="2"] { transition-delay: 0.65s; }
.loaded .intro-up[data-delay="3"] { transition-delay: 0.8s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .header-bar { padding-left: 14px; padding-right: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { width: 100%; grid-template-columns: 1fr 1fr; }
  .page-hero-grid, .story, .vm-grid, .contact-grid { grid-template-columns: 1fr; }
  .intro-grid { grid-template-columns: 1fr; }
  .bento { grid-auto-rows: 260px; }
  .tile-1 { grid-column: span 12; }
  .tile-2, .tile-3, .tile-4, .tile-5, .tile-6 { grid-column: span 6; }
  .tile-6 { grid-column: span 12; }
  .tile-tags { max-height: 80px; opacity: 1; margin-top: 12px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .svc { grid-template-columns: 1fr; }
  .svc:nth-child(even) .svc-media { order: 0; }
  .team { grid-template-columns: repeat(3, minmax(260px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .team::-webkit-scrollbar { display: none; }
  .member { scroll-snap-align: start; }
  .work-grid { gap: 40px 16px; }
  .featured-project { aspect-ratio: auto; min-height: 520px; }

  /* Rail becomes a native swipe row */
  .hscroll { padding-block: 90px; height: auto !important; }
  .hscroll-sticky { position: static; height: auto; overflow: visible; }
  .rail { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; transform: none !important; padding-bottom: 6px; }
  .rail::-webkit-scrollbar { display: none; }
  .project { width: 78vw; scroll-snap-align: center; }
  .project.wide { width: 86vw; }
  .rail-end { width: 70vw; }
  .hscroll-progress { display: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 76px; }
  section { padding-block: 80px; }
  .header { top: 10px; }
  .header-bar { height: 60px; }
  .logo img { height: 46px; }
  .live-chip { top: calc(var(--header-h) + 18px); }
  .hero { padding-bottom: 24px; }
  .hero h1 { font-size: clamp(50px, 15vw, 72px); }
  .hero-side { grid-template-columns: 1fr; }
  .hero-foot { margin-top: 28px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .scroll-cue { display: none; }
  .bento { grid-auto-rows: 280px; gap: 12px; }
  .tile-2, .tile-3, .tile-4, .tile-5, .tile-6 { grid-column: span 12; }
  .stats-grid { gap: 10px; }
  .stat { padding: 24px 18px; }
  .process { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .step h3 { margin-top: 30px; }
  .values { grid-template-columns: 1fr; }
  .value.feature { grid-column: auto; }
  .industries { grid-template-columns: 1fr; }
  .deliverables { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .featured-project { min-height: 560px; padding: 12px; }
  .featured-panel { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .collage { height: 420px; }
  .collage .c1 { width: 78%; height: 66%; }
  .collage .c2 { width: 58%; height: 46%; }
  .collage .c3 { left: auto; right: 0; bottom: 4%; }
  .masonry { columns: 2 140px; column-gap: 10px; }
  .g-item { margin-bottom: 10px; border-radius: var(--radius-sm); }
  .ctl-prev, .ctl-next { top: auto; bottom: 16px; margin-top: 0; }
  .lb-count { bottom: 34px; }
  .map-card { left: 10px; right: 10px; top: 10px; max-width: none; }
  .cta-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-scale, .intro-up { opacity: 1; transform: none; clip-path: none; }
  .split .wi { transform: none; }
  .statement .sw { opacity: 1; }
  .page-curtain { display: none; }
}
