/* =========================================================
   1. TOKENS
   ========================================================= */
:root {
  --lime: #cdff3f;
  --lime-2: #b7ff2e;
  --lime-deep: #7f9f1d;
  --black: #000000;
  --gray-900: #0a0a0a;
  --gray-800: #161616;
  --gray-600: #2a2a2a;
  --white: #f5f5f5;
  --muted: rgba(245, 245, 245, 0.62);
  --faint: rgba(245, 245, 245, 0.38);

  --line: rgba(245, 245, 245, 0.09);
  --line-lime: rgba(205, 255, 63, 0.22);
  --glow: rgba(205, 255, 63, 0.35);

  --grad-lime: linear-gradient(135deg, #cdff3f 0%, #b7ff2e 40%, #7f9f1d 100%);

  --font-display: "Unbounded", "Space Grotesk", "Arial Black", system-ui, sans-serif;
  --font-body: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(88px, 11vw, 150px);

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

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

/* =========================================================
   2. BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--lime); color: var(--black); }

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

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--lime); color: var(--black); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* Grain + grid overlays (fixed, very subtle) */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.page-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(245,245,245,0.028) 1px, transparent 1px);
  background-size: calc((min(100vw, var(--container)) - 2 * var(--gutter)) / 12) 100%;
  background-position: center;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

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

/* =========================================================
   3. TYPE
   ========================================================= */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.section-label {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-body);
  font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--lime);
}
.section-label::before {
  content: ""; width: 34px; height: 1px; background: var(--lime);
  box-shadow: 0 0 12px var(--glow);
}

.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 58ch;
}

.body-copy p { color: var(--muted); max-width: 62ch; }
.body-copy p + p { margin-top: 1.1em; }
.body-copy strong { color: var(--white); font-weight: 600; }

/* =========================================================
   4. BUTTONS
   ========================================================= */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 10px 0 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.975rem; letter-spacing: 0.005em;
  white-space: nowrap;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
  will-change: transform;
}
.btn .btn-icon {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  transition: transform 0.45s var(--ease), background-color 0.35s var(--ease);
}
.btn .btn-icon svg { width: 14px; height: 14px; }
.btn:hover .btn-icon { transform: rotate(45deg); }

.btn-primary {
  background: var(--lime); color: var(--black);
  box-shadow: 0 0 0 0 rgba(205,255,63,0), inset 0 1px 0 rgba(255,255,255,0.5);
  overflow: hidden;
}
.btn-primary .btn-icon { background: var(--black); color: var(--lime); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.65) 45%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}
.btn-primary:hover {
  box-shadow: 0 10px 40px -8px var(--glow), 0 0 0 6px rgba(205,255,63,0.08), inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
  padding: 0 26px;
  border: 1px solid rgba(245,245,245,0.18);
  background: rgba(245,245,245,0.03);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--line-lime); background: rgba(205,255,63,0.06); color: var(--lime); box-shadow: 0 0 30px -10px var(--glow); }

.btn-sm { height: 44px; padding: 0 6px 0 20px; font-size: 0.9rem; gap: 10px; }
.btn-sm .btn-icon { width: 32px; height: 32px; }

/* =========================================================
   5. NAVBAR
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  height: var(--nav-h);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), height 0.4s var(--ease);
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0));
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
  transition: mask-image 0.4s;
}
.nav.is-scrolled {
  background: rgba(6, 6, 6, 0.78);
  border-bottom-color: var(--line);
}
.nav.is-scrolled::before { mask-image: none; }

.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; color: var(--white); transition: color 0.3s; }
.logo:hover { color: var(--lime); }
.logo svg { height: 40px; width: auto; }

.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); list-style: none; }
.nav-links a {
  position: relative; display: inline-block; padding: 6px 0;
  font-size: 0.925rem; font-weight: 500; color: var(--muted);
  transition: color 0.3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--lime); box-shadow: 0 0 10px var(--glow);
  transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--white); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 80;
  background: radial-gradient(circle at 80% 10%, rgba(205,255,63,0.16), transparent 40%), rgba(0,0,0,0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: calc(var(--nav-h) + 32px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.nav-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu ul { list-style: none; }
.mobile-menu li a {
  display: block; padding: 10px 0;
  font-family: var(--font-display); font-size: clamp(1.9rem, 8vw, 2.6rem); letter-spacing: -0.03em;
  border-bottom: 1px solid var(--line);
  transform: translateY(20px); opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), color 0.3s;
}
.mobile-menu li a:hover { color: var(--lime); }
.nav-open .mobile-menu li a { transform: none; opacity: 1; }
.mobile-menu li:nth-child(2) a { transition-delay: 0.04s; }
.mobile-menu li:nth-child(3) a { transition-delay: 0.08s; }
.mobile-menu li:nth-child(4) a { transition-delay: 0.12s; }
.mobile-menu li:nth-child(5) a { transition-delay: 0.16s; }
.mobile-menu li:nth-child(6) a { transition-delay: 0.2s; }

/* =========================================================
   6. HERO
   ========================================================= */
.hero {
  --px: 0; --py: 0;
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 120px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hero-glow {
  position: absolute; inset: -10%;
  background:
    radial-gradient(circle at 20% 20%, rgba(205,255,63,0.22), transparent 35%),
    radial-gradient(circle at 80% 30%, rgba(205,255,63,0.12), transparent 30%);
  animation: glow-drift 18s ease-in-out infinite alternate;
  transform: translate3d(calc(var(--px) * -12px), calc(var(--py) * -12px), 0);
}
@keyframes glow-drift {
  0%   { background-position: 0 0, 0 0; filter: hue-rotate(0deg); opacity: 0.85; }
  50%  { opacity: 1; }
  100% { background-position: 6vw 4vh, -5vw 3vh; filter: hue-rotate(-12deg); opacity: 0.8; }
}

.orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  background: var(--lime); opacity: 0.18;
}
.orb-1 { width: 380px; height: 380px; top: -120px; left: -80px; animation: orb 16s ease-in-out infinite alternate; }
.orb-2 { width: 260px; height: 260px; bottom: 10%; right: 6%; opacity: 0.12; animation: orb 20s ease-in-out infinite alternate-reverse; }
@keyframes orb { to { transform: translate(60px, 40px) scale(1.15); } }

/* Stage: perspective floor + portal */
.stage {
  position: absolute; inset: 0;
  perspective: 700px;
  perspective-origin: 50% 58%;
}
.floor {
  position: absolute; left: -60%; right: -60%;
  top: 60%; height: 120%;
  transform-origin: top center;
  transform: rotateX(78deg);
  background-image:
    linear-gradient(rgba(205,255,63,0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(205,255,63,0.55) 1px, transparent 1px);
  background-size: 90px 90px;
  background-position: center 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 60%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 60%, transparent 100%);
  opacity: 0.4;
  animation: floor-run 5s linear infinite;
}
@keyframes floor-run { to { background-position: center 90px; } }

.horizon {
  position: absolute; left: 0; right: 0; top: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(205,255,63,0.7) 30%, rgba(205,255,63,0.9) 72%, transparent);
  box-shadow: 0 0 30px 2px rgba(205,255,63,0.35);
}
.horizon::after {
  content: ""; position: absolute; left: 10%; right: 10%; top: -120px; height: 120px;
  background: radial-gradient(ellipse at 70% 100%, rgba(205,255,63,0.18), transparent 60%);
}

/* The portal: a glowing doorway standing on the horizon */
.portal-wrap {
  position: absolute;
  right: clamp(4%, 9vw, 12%);
  bottom: 40%;
  width: clamp(190px, 19vw, 280px);
  aspect-ratio: 3 / 4.2;
  transform-style: preserve-3d;
}
.arch {
  position: absolute; inset: 0;
  border-radius: 999px 999px 4px 4px;
}
.arch-frame {
  border: 1px solid rgba(205,255,63,0.9);
  box-shadow: 0 0 24px rgba(205,255,63,0.55), 0 0 80px rgba(205,255,63,0.25), inset 0 0 24px rgba(205,255,63,0.35);
  transform: translate3d(calc(var(--px) * 10px), calc(var(--py) * 6px), 0);
}
.arch-inner {
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 45% at 50% 100%, rgba(205,255,63,0.85), rgba(183,255,46,0.25) 45%, transparent 75%),
    radial-gradient(circle at 50% 30%, rgba(205,255,63,0.08), transparent 60%),
    #020302;
  transform: translate3d(calc(var(--px) * 10px), calc(var(--py) * 6px), 0);
}
.arch-inner::before { /* a second world inside the door */
  content: ""; position: absolute; left: -50%; right: -50%; top: 62%; height: 90%;
  transform-origin: top center; transform: perspective(220px) rotateX(70deg);
  background-image:
    linear-gradient(rgba(0,0,0,0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.55) 1px, transparent 1px);
  background-size: 22px 22px;
  animation: floor-run-sm 2.4s linear infinite;
}
@keyframes floor-run-sm { to { background-position: 0 22px; } }
.arch-inner::after { /* soft breathing light */
  content: ""; position: absolute; left: 50%; top: 58%; width: 60%; aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,255,220,0.9), rgba(205,255,63,0.4) 35%, transparent 70%);
  filter: blur(6px);
  animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.25); opacity: 0.75; } }

.arch-echo {
  border: 1px solid rgba(205,255,63,0.22);
}
.arch-echo.e1 { transform: translate3d(calc(var(--px) * -8px + 34px), calc(var(--py) * -4px - 22px), 0) scale(1.14); opacity: 0.8; }
.arch-echo.e2 { transform: translate3d(calc(var(--px) * -18px + 70px), calc(var(--py) * -8px - 46px), 0) scale(1.3); opacity: 0.45; }
.arch-echo.e3 { transform: translate3d(calc(var(--px) * -28px + 108px), calc(var(--py) * -12px - 72px), 0) scale(1.48); opacity: 0.2; }

.portal-reflect {
  position: absolute; left: -30%; right: -30%; top: 100%; height: 60px;
  background: radial-gradient(ellipse at 50% 0%, rgba(205,255,63,0.55), transparent 65%);
  filter: blur(10px);
}
.portal-beam {
  position: absolute; left: 50%; top: 100%; width: 70%; height: 38vh;
  translate: -50% 0;
  background: linear-gradient(to bottom, rgba(205,255,63,0.35), transparent 80%);
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
  filter: blur(8px); opacity: 0.6;
}

/* Floating badge */
.float-badge {
  position: absolute; z-index: 3;
  right: calc(100% - 44px); top: 46%;
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--line-lime);
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.9), 0 0 40px -18px var(--glow);
  white-space: nowrap;
  transform: translate3d(calc(var(--px) * 22px), calc(var(--py) * 16px), 0);
  animation: hover-float 7s ease-in-out infinite;
}
@keyframes hover-float { 50% { translate: 0 -10px; } }
.float-badge .fb-words { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: -0.01em; }
.float-badge .fb-words span { color: var(--lime); padding: 0 4px; }
.float-badge .fb-sub { font-size: 0.78rem; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.float-badge .fb-sub::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

/* Hero copy */
.hero-content { position: relative; z-index: 2; max-width: 60rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 16px 8px 10px;
  border: 1px solid var(--line-lime); border-radius: 999px;
  background: rgba(205,255,63,0.05);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em;
  color: var(--lime);
}
.eyebrow-dot { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(205,255,63,0.15); }
.eyebrow-dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }

.hero-title {
  margin-top: 28px;
  font-size: clamp(2.2rem, 5.1vw, 4.7rem);
  max-width: 11.5em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; }
.hero-title .glow-text {
  background: var(--grad-lime);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-text { margin-top: 28px; }

.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 32px; z-index: 2;
}
.hero-foot .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; font-size: 0.85rem; color: var(--faint); }
.scroll-cue .mouse { width: 22px; height: 34px; border: 1px solid rgba(245,245,245,0.3); border-radius: 12px; position: relative; }
.scroll-cue .mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: var(--lime); animation: wheel 2s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
.hero-micro { font-size: 0.85rem; color: var(--faint); }

/* Page-load orchestration (the one big entrance) */
.js .hero [data-load] { opacity: 0; transform: translateY(24px); }
.js .hero-title .line > span { transform: translateY(105%); }
.js .hero .stage { opacity: 0; }
.is-loaded .hero [data-load] { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
.is-loaded .hero-title .line > span { transform: none; transition: transform 1.1s var(--ease); }
.is-loaded .hero .stage { opacity: 1; transition: opacity 2s ease 0.2s; }
.is-loaded .hero-title .line:nth-child(2) > span { transition-delay: 0.08s; }
.is-loaded .hero-title .line:nth-child(3) > span { transition-delay: 0.16s; }
.is-loaded .hero [data-load="2"] { transition-delay: 0.35s; }
.is-loaded .hero [data-load="3"] { transition-delay: 0.5s; }
.is-loaded .hero [data-load="4"] { transition-delay: 0.9s; }

/* =========================================================
   7. SHARED SECTION
   ========================================================= */
.section { position: relative; padding-block: var(--section-y); }

.divider {
  height: 1px; max-width: var(--container); margin-inline: auto;
  background: linear-gradient(90deg, transparent, rgba(205,255,63,0.35) 50%, transparent);
}

.section-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 7vw, 88px); }
.section-title { font-size: clamp(2.1rem, 5vw, 4.2rem); max-width: 16em; }

/* Scroll reveal (subtle) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal-delay="1"] { transition-delay: 0.08s; }
.js [data-reveal-delay="2"] { transition-delay: 0.16s; }
.js [data-reveal-delay="3"] { transition-delay: 0.24s; }

/* =========================================================
   8. WHO WE ARE
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.about-sticky { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: 28px; }
.about-title { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.about-title em { font-style: normal; color: var(--faint); }

.about-copy .intro {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.5; color: var(--white);
  margin-bottom: 1.4em; max-width: 34ch;
}

.felt {
  margin-top: clamp(56px, 8vw, 96px);
  display: grid; gap: 4px;
}
.felt-line {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.9rem, 4.6vw, 3.9rem);
  line-height: 1.08; letter-spacing: -0.035em;
  color: rgba(245,245,245,0.14);
  transition: color 0.8s var(--ease), text-shadow 0.8s var(--ease);
}
.felt-line.is-lit { color: var(--white); }
.felt-line:last-child.is-lit { color: var(--lime); text-shadow: 0 0 40px rgba(205,255,63,0.3); }
.felt-coda { margin-top: 28px; color: var(--muted); font-size: 1.1rem; }
.felt-coda strong { color: var(--white); font-weight: 600; }

.disciplines {
  margin-top: clamp(64px, 9vw, 112px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(22,22,22,0.7), rgba(10,10,10,0.7));
  overflow: hidden;
}
.discipline {
  position: relative; padding: clamp(28px, 3.2vw, 44px);
  display: grid; gap: 14px; align-content: start;
}
.discipline + .discipline { border-left: 1px solid var(--line); }
.discipline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  opacity: 0; transition: opacity 0.5s;
}
.discipline:hover::before { opacity: 1; }
.discipline .d-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  border: 1px solid var(--line-lime); color: var(--lime);
  background: radial-gradient(circle at 30% 20%, rgba(205,255,63,0.18), transparent 70%);
}
.discipline .d-icon svg { width: 24px; height: 24px; }
.discipline h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; letter-spacing: -0.02em; margin-top: 10px; }
.discipline p { color: var(--muted); font-size: 0.98rem; max-width: 30ch; }

/* =========================================================
   9. WHAT WE DO
   ========================================================= */
.services-head {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 100px); align-items: end;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.services-head .body-copy p:first-child { color: var(--white); font-size: 1.15rem; }

.services {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px;
}
.service {
  --sx: 50%; --sy: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  grid-column: span 4;
  min-height: 300px;
  padding: clamp(26px, 2.8vw, 38px);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--gray-800), var(--gray-900));
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  transition: border-color 0.4s var(--ease), translate 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 0.9s var(--ease), transform 0.9s var(--ease);
  box-shadow: 0 30px 60px -40px rgba(0,0,0,0.9);
}
.service::before { /* cursor spotlight */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px circle at var(--sx) var(--sy), rgba(205,255,63,0.13), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.service:hover { border-color: var(--line-lime); translate: 0 -4px; box-shadow: 0 40px 80px -40px rgba(0,0,0,1), 0 0 0 1px rgba(205,255,63,0.06); }
.service:hover::before { opacity: 1; }

.service.wide { grid-column: span 7; }
.service.mid { grid-column: span 5; }
.service.full {
  grid-column: span 12; min-height: 0;
  flex-direction: row; align-items: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(205,255,63,0.16), transparent 45%),
    linear-gradient(180deg, var(--gray-800), var(--gray-900));
}
.service.full .s-body { max-width: 44ch; }

.s-icon { width: 46px; height: 46px; color: var(--lime); }
.s-icon svg { width: 100%; height: 100%; }
.s-icon svg * { vector-effect: non-scaling-stroke; }
.s-body h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem); letter-spacing: -0.025em; line-height: 1.15;
  margin-bottom: 12px;
}
.s-body p { color: var(--muted); max-width: 38ch; }

.s-visual { /* decorative only on wide card */
  position: absolute; right: -40px; top: -40px; width: 260px; height: 260px; z-index: -1;
  border-radius: 50%;
  border: 1px solid rgba(205,255,63,0.15);
  box-shadow: inset 0 0 60px rgba(205,255,63,0.06);
}
.s-visual::before, .s-visual::after {
  content: ""; position: absolute; inset: 30px; border-radius: 50%; border: 1px solid rgba(205,255,63,0.12);
}
.s-visual::after { inset: 70px; border-color: rgba(205,255,63,0.22); animation: spin 22s linear infinite; border-top-color: var(--lime); }
@keyframes spin { to { transform: rotate(360deg); } }

.services-statement {
  margin-top: clamp(64px, 9vw, 120px);
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px); align-items: end;
}
.services-statement .big {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem, 2.9vw, 2.5rem); line-height: 1.22; letter-spacing: -0.03em;
}
.services-statement .big mark { background: none; color: var(--lime); }
.services-statement .resp {
  padding-left: 24px; border-left: 1px solid var(--lime);
  font-size: 1.15rem; line-height: 1.55;
}
.services-statement .resp span { display: block; color: var(--muted); }

/* =========================================================
   10. PROCESS
   ========================================================= */
.process { overflow: hidden; }
.process::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 500px; translate: -50% -50%;
  background: radial-gradient(ellipse, rgba(205,255,63,0.08), transparent 65%);
  pointer-events: none;
}
.process-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(56px, 8vw, 100px); }

.timeline { --progress: 0; position: relative; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.timeline-track {
  position: absolute; left: 0; right: 0; top: 27px; height: 1px;
  background: var(--line);
}
.timeline-track::after {
  content: ""; position: absolute; inset: 0;
  background: var(--grad-lime);
  box-shadow: 0 0 16px var(--glow);
  transform: scaleX(var(--progress)); transform-origin: left;
}
.step { position: relative; padding-right: 8px; }
.step-node {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--black);
  border: 1px solid rgba(245,245,245,0.16);
  font-family: var(--font-display); font-size: 0.85rem; color: var(--faint);
  transition: all 0.6s var(--ease);
}
.step.is-active .step-node {
  border-color: var(--lime); color: var(--black); background: var(--lime);
  box-shadow: 0 0 0 8px rgba(205,255,63,0.08), 0 0 30px var(--glow);
}
.step h3 {
  margin-top: 30px;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.25rem, 1.7vw, 1.55rem); letter-spacing: -0.025em;
  color: var(--faint); transition: color 0.6s var(--ease);
}
.step.is-active h3 { color: var(--white); }
.step p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; max-width: 24ch; }

.process-close {
  margin-top: clamp(72px, 10vw, 130px);
  text-align: center;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.9rem); line-height: 1.2; letter-spacing: -0.035em;
}
.process-close span { display: block; }
.process-close span:last-child { color: var(--lime); }

/* =========================================================
   11. WHY CHOOSE US
   ========================================================= */
.why { background: linear-gradient(180deg, transparent, var(--gray-900) 20%, var(--gray-900) 80%, transparent); }
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.why-sticky { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: 28px; }
.why-title { font-size: clamp(2rem, 4.2vw, 3.7rem); }

.why-copy .first { color: var(--white); font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.55; }
.why-copy .pull {
  margin-block: 1.6em; padding: 18px 22px;
  border-radius: var(--r-sm);
  background: rgba(205,255,63,0.06); border: 1px solid var(--line-lime);
  color: var(--white); font-weight: 600;
}

.advantages {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.adv {
  position: relative; background: var(--gray-900);
  padding: 28px 26px 30px; display: grid; gap: 10px; align-content: start;
  transition: background-color 0.4s;
}
.adv:hover { background: #0f110a; }
.adv-bar { width: 28px; height: 3px; border-radius: 3px; background: var(--grad-lime); box-shadow: 0 0 12px var(--glow); transition: width 0.5s var(--ease); }
.adv:hover .adv-bar { width: 56px; }
.adv h3 { margin-top: 14px; font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; letter-spacing: -0.02em; line-height: 1.25; }
.adv p { color: var(--muted); font-size: 0.95rem; }

.quote {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: clamp(80px, 11vw, 140px);
  padding: clamp(44px, 7vw, 96px) clamp(28px, 6vw, 96px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-lime);
  background:
    radial-gradient(circle at 15% 0%, rgba(205,255,63,0.2), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(205,255,63,0.1), transparent 40%),
    var(--black);
}
.quote::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(205,255,63,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(205,255,63,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 20% 0%, #000, transparent 70%);
}
.quote-mark { width: 56px; height: 56px; color: var(--lime); margin-bottom: 28px; filter: drop-shadow(0 0 16px var(--glow)); }
.quote blockquote p {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 3.4rem); line-height: 1.12; letter-spacing: -0.035em;
  max-width: 20em;
}
.quote blockquote p span { color: var(--lime); }
.quote figcaption { margin-top: 28px; color: var(--faint); font-size: 0.95rem; }

/* =========================================================
   12. CTA
   ========================================================= */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(120px, 16vw, 220px);
  text-align: center;
}
.cta-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cta-bg .ring {
  position: absolute; left: 50%; top: 100%;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid rgba(205,255,63,0.14);
}
.cta-bg .ring:nth-child(1) { width: 60vw; height: 60vw; border-color: rgba(205,255,63,0.35); box-shadow: 0 0 80px rgba(205,255,63,0.15), inset 0 0 80px rgba(205,255,63,0.1); }
.cta-bg .ring:nth-child(2) { width: 90vw; height: 90vw; }
.cta-bg .ring:nth-child(3) { width: 125vw; height: 125vw; opacity: 0.6; }
.cta-bg .core {
  position: absolute; left: 50%; bottom: -30vw; width: 70vw; height: 50vw; translate: -50% 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(205,255,63,0.55), rgba(205,255,63,0.08) 45%, transparent 70%);
  filter: blur(30px);
  animation: breathe 7s ease-in-out infinite;
}

.cta-title {
  font-size: clamp(2.4rem, 7.6vw, 7rem);
  max-width: 11em; margin-inline: auto;
}
.cta-text { margin: 32px auto 0; text-align: center; }
.cta-actions { margin-top: 44px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cta-small {
  margin-top: 56px;
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.cta-small li {
  list-style: none;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(0,0,0,0.5);
  font-size: 0.85rem; color: var(--muted);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* =========================================================
   13. FOOTER
   ========================================================= */
.footer { border-top: 1px solid var(--line); background: var(--black); padding: clamp(64px, 8vw, 100px) 0 36px; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.55fr) minmax(0, 1.55fr);
  gap: clamp(32px, 5vw, 72px);
}
.footer-brand .logo svg { height: 118px; }
.footer-brand p { margin-top: 22px; color: var(--muted); max-width: 36ch; font-size: 0.98rem; }
.footer h4 { font-size: 0.85rem; font-weight: 600; color: var(--faint); margin-bottom: 18px; letter-spacing: 0.02em; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { position: relative; color: var(--white); font-size: 0.975rem; transition: color 0.3s; }
.footer ul a:hover { color: var(--lime); }

.footer-contact { display: grid; gap: 14px; align-content: start; }
.footer-contact h4 { margin-bottom: 4px; }
.fc-link {
  position: relative; display: grid; gap: 6px;
  padding: 18px 60px 18px 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.4s var(--ease);
}
.fc-link::after { /* arrow circle */
  content: ""; position: absolute; right: 0; top: 50%; width: 44px; height: 44px; translate: 0 -50%;
  border-radius: 50%; border: 1px solid var(--line);
  background: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 11L11 3M11 3H4.5M11 3v6.5' fill='none' stroke='%23cdff3f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: transform 0.45s var(--ease), background-color 0.35s, border-color 0.35s;
}
.fc-label { font-size: 0.8rem; font-weight: 600; color: var(--lime); letter-spacing: 0.02em; }
.fc-value {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.1rem, 1.65vw, 1.5rem); line-height: 1.2; letter-spacing: -0.03em;
  color: var(--white); overflow-wrap: normal; word-break: normal;
  transition: color 0.3s;
}
.fc-link:hover { border-color: var(--line-lime); }
.fc-link:hover .fc-value { color: var(--lime); }
.fc-link:hover::after { transform: rotate(45deg); border-color: var(--lime); background-color: rgba(205,255,63,0.08); }

.footer-wordmark {
  margin-top: clamp(64px, 9vw, 110px);
  color: rgba(245, 245, 245, 0.13);
  -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 95%);
          mask-image: linear-gradient(180deg, #000 10%, transparent 95%);
  user-select: none;
}
.footer-wordmark svg { width: 100%; height: auto; }
.footer-bottom {
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.875rem; color: var(--faint);
}
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); transition: color 0.3s; }
.to-top:hover { color: var(--lime); }
.to-top svg { width: 14px; height: 14px; transform: rotate(-90deg); }

/* =========================================================
   14. RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .portal-wrap { right: 4%; width: clamp(180px, 24vw, 260px); }
  .float-badge { right: auto; left: -30px; top: -64px; }
}

@media (max-width: 980px) {
  .about-grid, .why-grid, .services-head, .services-statement { grid-template-columns: 1fr; }
  .about-sticky, .why-sticky { position: static; }
  .service, .service.wide, .service.mid { grid-column: span 6; }
  .service.full { grid-column: span 12; }

  .timeline { grid-template-columns: 1fr; gap: 0; padding-left: 0; }
  .timeline-track { left: 27px; right: auto; top: 28px; bottom: 28px; width: 1px; height: auto; }
  .timeline-track::after { transform: scaleY(var(--progress)); transform-origin: top; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 24px; padding-bottom: 44px; }
  .step:last-child { padding-bottom: 0; }
  .step h3 { margin-top: 12px; }
  .step p { grid-column: 2; max-width: 40ch; }

  .footer-grid { grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .hero { align-items: flex-end; padding-bottom: 110px; }
  .stage { perspective-origin: 50% 40%; }
  .floor, .horizon { top: 36%; }
  .portal-wrap { right: 50%; translate: 50% 0; bottom: 64%; width: 140px; opacity: 0.9; }
  .portal-beam { opacity: 0.35; }
  .float-badge { display: none; }
  .hero-content { padding-top: 34vh; }
  .hero-title { margin-top: 22px; font-size: clamp(2.3rem, 10.4vw, 3.2rem); }
  .hero-foot .hero-micro { display: none; }

  .disciplines { grid-template-columns: 1fr; }
  .discipline + .discipline { border-left: 0; border-top: 1px solid var(--line); }

  .service, .service.wide, .service.mid, .service.full { grid-column: span 12; min-height: 0; }
  .service.full { flex-direction: column; align-items: flex-start; }
  .advantages { grid-template-columns: 1fr; }

  .btn { height: 52px; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; justify-content: space-between; }
  .hero-actions .btn-ghost, .cta-actions .btn-ghost { justify-content: center; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav .logo svg { height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .hero [data-load], .js .hero-title .line > span, .js .hero .stage { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   15. SHOWREEL
   ========================================================= */
.showreel { padding-top: clamp(40px, 6vw, 80px); }
.showreel-head {
  display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.showreel-head .lead { max-width: 36ch; }

.reel {
  --reel-scale: 0.9;
  position: relative;
  transform: scale(var(--reel-scale));
  transform-origin: center top;
  will-change: transform;
}
.reel::before { /* glow under the frame */
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -40px; height: 120px; z-index: -1;
  background: radial-gradient(ellipse at 50% 0%, rgba(205,255,63,0.35), transparent 70%);
  filter: blur(30px);
}
.reel-frame {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-lime);
  background:
    radial-gradient(circle at 70% 30%, rgba(205,255,63,0.18), transparent 45%),
    linear-gradient(135deg, #0d0f08, #000);
  box-shadow: 0 60px 120px -60px rgba(0,0,0,1), 0 0 0 1px rgba(205,255,63,0.05);
}
.reel-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.75) contrast(1.05) brightness(0.8);
  transform: scale(1.04);
  transition: transform 1.2s var(--ease), filter 0.8s var(--ease), opacity 0.6s;
}
.reel-poster:not([src]) { opacity: 0; }
.reel-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.85), transparent 45%),
    linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 30%),
    radial-gradient(circle at 50% 50%, transparent 30%, rgba(0,0,0,0.45) 100%);
  mix-blend-mode: normal;
}
.reel-frame:hover .reel-poster { transform: scale(1); filter: saturate(0.95) contrast(1.05) brightness(0.9); }

.reel-play {
  --mx: 0px; --my: 0px;
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: clamp(76px, 9vw, 116px); aspect-ratio: 1;
  translate: -50% -50%;
  transform: translate3d(var(--mx), var(--my), 0);
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lime); color: var(--black);
  box-shadow: 0 0 0 10px rgba(205,255,63,0.12), 0 0 60px rgba(205,255,63,0.45);
  transition: transform 0.35s var(--ease), box-shadow 0.4s var(--ease);
}
.reel-play svg { width: 34%; height: 34%; margin-left: 6%; }
.reel-play:hover { box-shadow: 0 0 0 16px rgba(205,255,63,0.14), 0 0 90px rgba(205,255,63,0.6); }
.reel-ring {
  position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid rgba(205,255,63,0.7);
  animation: ripple 2.8s var(--ease) infinite;
}
.reel-ring.r2 { animation-delay: 1.4s; }
@keyframes ripple { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.1); opacity: 0; } }

.reel-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; gap: 16px;
  padding: clamp(16px, 2.4vw, 28px) clamp(18px, 2.8vw, 34px);
  font-size: 0.875rem; color: var(--muted);
}
.reel-live { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-weight: 600; }
.reel-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: blink 2.4s ease-in-out infinite; }

.reel-corner { position: absolute; z-index: 2; width: 22px; height: 22px; border-color: var(--lime); border-style: solid; opacity: 0.8; }
.reel-corner.tl { top: 16px; left: 16px; border-width: 1px 0 0 1px; }
.reel-corner.tr { top: 16px; right: 16px; border-width: 1px 1px 0 0; }
.reel-corner.bl { bottom: 16px; left: 16px; border-width: 0 0 1px 1px; }
.reel-corner.br { bottom: 16px; right: 16px; border-width: 0 1px 1px 0; }

.reel-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.reel.is-playing .reel-play, .reel.is-playing .reel-meta, .reel.is-playing .reel-corner, .reel.is-playing .reel-shade { display: none; }

/* =========================================================
   16. PORTFOLIO (image-only gallery)
   ========================================================= */
.work-head {
  display: flex; justify-content: space-between; align-items: end; gap: 28px; flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.work-wrap { container-type: inline-size; }
.work-grid {
  --cols: 4; --gap: 14px;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  grid-auto-rows: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols));
  grid-auto-flow: dense;
  gap: var(--gap);
}
@supports not (width: 1cqw) { .work-grid { grid-auto-rows: 22vw; } }

.work-tile {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  border-radius: var(--r-md);
  background: var(--gray-800);
  border: 1px solid var(--line);
  cursor: none;
  transition: border-color 0.4s var(--ease), box-shadow 0.5s var(--ease), opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.t-big  { grid-column: span 2; grid-row: span 2; }
.t-wide { grid-column: span 2; }
.t-sq   { grid-column: span 1; }

.work-tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.01);
  filter: brightness(0.88) saturate(0.95);
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
}
.work-tile::after { /* lime rim light on hover */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(205,255,63,0), inset 0 -80px 80px -60px rgba(205,255,63,0);
  transition: box-shadow 0.5s var(--ease);
}
.work-tile:hover, .work-tile:focus-visible { border-color: var(--line-lime); box-shadow: 0 30px 70px -40px rgba(205,255,63,0.4); }
.work-tile:hover img, .work-tile:focus-visible img { transform: scale(1.07); filter: brightness(1.02) saturate(1.05); }
.work-tile:hover::after { box-shadow: inset 0 0 0 1px rgba(205,255,63,0.5), inset 0 -80px 80px -60px rgba(205,255,63,0.25); }

/* dim the siblings so the hovered tile pops */
@media (hover: hover) {
  .work-grid:hover .work-tile:not(:hover) img { filter: brightness(0.55) saturate(0.7); }
}

.work-zoom { /* small corner badge; also the only affordance on touch */
  position: absolute; right: 14px; bottom: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0,0,0,0.55); border: 1px solid var(--line-lime); color: var(--lime);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: scale(0.7);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.work-zoom svg { width: 14px; height: 14px; }
.work-tile:focus-visible .work-zoom { opacity: 1; transform: none; }
@media (pointer: coarse) { .work-tile { cursor: pointer; } .work-zoom { opacity: 1; transform: none; } }

/* staggered reveal */
.js .work-tile { opacity: 0; transform: translateY(24px); }
.js .work-tile.is-in { opacity: 1; transform: none; }

/* custom cursor (plus icon) */
.work-cursor {
  position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none;
  width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lime); color: var(--black);
  box-shadow: 0 0 40px rgba(205,255,63,0.5);
  transform: translate3d(var(--cx, -200px), var(--cy, -200px), 0) scale(0);
  transition: transform 0.35s var(--ease);
}
.work-cursor svg { width: 20px; height: 20px; }
.work-cursor.is-on { transform: translate3d(var(--cx), var(--cy), 0) scale(1); }
@media (pointer: coarse) { .work-cursor { display: none; } }

/* lightbox: image only */
.lightbox {
  width: 100vw; height: 100svh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(0,0,0,0.94); color: var(--white);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(0,0,0,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in 0.45s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
#lb-img {
  max-width: calc(100vw - 160px); max-height: calc(100svh - 96px);
  width: auto; height: auto; object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,1), 0 0 90px -40px var(--glow);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
#lb-img.is-swapping { opacity: 0; transform: scale(0.985); }
.lb-btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(245,245,245,0.16); background: rgba(10,10,10,0.6); color: var(--white);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}
.lb-btn svg { width: 16px; height: 16px; }
.lb-btn:hover { border-color: var(--lime); color: var(--lime); background: rgba(205,255,63,0.08); }
.lb-prev { left: 24px; top: 50%; translate: 0 -50%; }
.lb-next { right: 24px; top: 50%; translate: 0 -50%; }
.lb-close { top: calc(20px + env(safe-area-inset-top, 0px)); right: 24px; }
.lb-progress { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; width: min(240px, 50vw); height: 2px; background: rgba(245,245,245,0.12); border-radius: 2px; overflow: hidden; }
.lb-progress span { display: block; height: 100%; width: 0; background: var(--lime); box-shadow: 0 0 10px var(--glow); transition: width 0.4s var(--ease); }

@media (max-width: 760px) {
  .reel { --reel-scale: 1 !important; }
  .reel-frame { border-radius: var(--r-md); }
  .reel-meta span:last-child { display: none; }
  .reel-corner { display: none; }
  .work-grid { --cols: 2; --gap: 10px; }
  .work-head .btn { width: 100%; justify-content: center; }
  #lb-img { max-width: calc(100vw - 24px); max-height: calc(100svh - 170px); }
  .lb-prev, .lb-next { top: auto; bottom: 24px; translate: none; }
  .lb-prev { left: 16px; } .lb-next { right: 16px; }
  .lb-progress { bottom: 49px; }
}
.mobile-menu li:nth-child(7) a { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .reel { --reel-scale: 1 !important; } }
