/* =============================================================
   VIRALI STUDIO — Brand-aligned stylesheet
   Tokens • Reset • Layout • Components • Motion • Responsive
   ============================================================= */

/* ------- Design tokens ------- */
:root {
  /* Brand palette (from Brand Identity System) */
  --void:        #0B0B0D;
  --slate:       #15161A;
  --slate-2:     #1c1d22;
  --pure:        #FFFFFF;
  --lime:        #C6FF00;
  --lime-soft:   #d6ff4a;
  --blue:        #0066FF;
  --purple:      #8A2BE2;

  /* Functional */
  --bg:          var(--void);
  --surface:     var(--slate);
  --text:        var(--pure);
  --text-dim:    rgba(255,255,255,.62);
  --text-mute:   rgba(255,255,255,.42);
  --line:        rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.22);

  /* Typography */
  --display: "Clash Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body:    "Inter", system-ui, -apple-system, sans-serif;

  /* Motion */
  --ease:        cubic-bezier(.2,.7,.2,1);
  --ease-out:    cubic-bezier(.16,1,.3,1);
  --ease-in:     cubic-bezier(.7,0,.84,0);

  /* Layout */
  --container: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 18px;

  /* Sizes */
  --header-h: 84px;
}

/* ------- Reset / base ------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { object-fit: cover; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--lime); color: var(--void); }

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

/* ------- Reusable type ------- */
.eyebrow {
  display: inline-block;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lime);
}

/* ============================================================= */
/* CUSTOM CURSOR (desktop only)                                  */
/* ============================================================= */
.cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  inset: 0;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  body, a, button { cursor: none; }
}
.cursor__dot, .cursor__ring {
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform, width, height, background;
  transition: width .25s var(--ease-out), height .25s var(--ease-out), background .25s, border-color .25s;
}
.cursor__dot {
  width: 6px; height: 6px;
  background: var(--lime);
}
.cursor__ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.45);
}
.cursor.is-hover .cursor__dot { width: 0; height: 0; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; background: rgba(198,255,0,.12); border-color: var(--lime); }
.cursor.is-down .cursor__ring { width: 28px; height: 28px; }

/* ============================================================= */
/* LOADER                                                         */
/* ============================================================= */
.loader {
  position: fixed;
  inset: 0;
  background: var(--void);
  z-index: 10000;
  display: grid;
  place-items: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__inner {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.02em;
}
.loader__spark { width: 18px; height: 18px; fill: var(--lime); animation: spinSpark 1.6s linear infinite; }
.loader__label { opacity: 0; animation: fadeIn .8s .2s var(--ease-out) forwards; }
.loader__bar {
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: 40px;
  height: 1px; background: rgba(255,255,255,.12); overflow: hidden;
}
.loader__bar span {
  position: absolute; inset: 0;
  background: var(--lime);
  transform-origin: left;
  animation: loadBar 1.6s var(--ease-out) forwards;
}
@keyframes spinSpark { to { transform: rotate(360deg); } }
@keyframes loadBar { 0% { transform: scaleX(0);} 100% { transform: scaleX(1); } }
@keyframes fadeIn { to { opacity: 1; } }

/* ============================================================= */
/* ATMOSPHERE (background glow + grain)                           */
/* ============================================================= */
.atmosphere {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.atmosphere__grain {
  position: absolute; inset: -10%;
  opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 1   0 0 0 0 1   0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.atmosphere__glow {
  position: absolute;
  width: 60vmax; height: 60vmax;
  filter: blur(120px);
  opacity: .14;
  border-radius: 50%;
  will-change: transform;
}
.atmosphere__glow--lime   { background: var(--lime);   top: -10%; left: -15%; animation: drift 22s var(--ease) infinite alternate; }
.atmosphere__glow--blue   { background: var(--blue);   top:  40%; right: -20%; opacity:.10; animation: drift 28s var(--ease) infinite alternate-reverse; }
.atmosphere__glow--purple { background: var(--purple); bottom:-25%; left:  30%; opacity:.10; animation: drift 26s var(--ease) infinite alternate; }
@keyframes drift {
  0%   { transform: translate3d(0,0,0)   scale(1); }
  100% { transform: translate3d(8vw,4vh,0) scale(1.15); }
}

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

/* ============================================================= */
/* HEADER                                                         */
/* ============================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding .35s var(--ease), background .35s var(--ease), backdrop-filter .35s var(--ease);
}
.header.is-scrolled {
  padding: 14px 0;
  background: rgba(11,11,13,.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}

/* Logo */
.logo {
  display: inline-flex; align-items: flex-end; gap: 6px;
  font-family: var(--display); font-weight: 600;
  letter-spacing: -.03em;
  position: relative;
}
.logo__word {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1;
}
.logo__spark {
  width: 12px; height: 12px;
  fill: var(--lime);
  margin-bottom: 14px;
  margin-left: -2px;
  animation: sparkPulse 3.6s var(--ease) infinite;
}
.logo__sub {
  font-family: var(--body); font-weight: 500;
  font-size: 10px; letter-spacing: .32em;
  color: var(--text);
  margin-bottom: 6px;
  margin-left: 4px;
}
.logo--sm .logo__word { font-size: 22px; }
.logo--sm .logo__spark { width: 10px; height: 10px; margin-bottom: 11px; }
.logo--sm .logo__sub { font-size: 9px; }

@keyframes sparkPulse {
  0%, 100% { transform: rotate(0deg)  scale(1); }
  50%      { transform: rotate(45deg) scale(1.15); }
}

/* Nav */
.nav { justify-self: center; }
.nav__list {
  display: flex; gap: clamp(20px, 3vw, 40px);
  list-style: none; margin: 0; padding: 0;
}
.nav__link {
  position: relative;
  font-size: 15px; font-weight: 400;
  letter-spacing: .01em;
  color: var(--text);
  padding: 8px 0;
  display: inline-block;
}
.nav__link::before, .nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform .5s var(--ease-out);
}
.nav__link:hover::before { transform-origin: left; transform: scaleX(1); }
.nav__link::after { background: var(--lime); }

/* Header CTA */
.header__cta { padding: 12px 18px; font-size: 14px; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px; background: var(--text);
  transition: transform .35s var(--ease), opacity .25s, top .35s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
body.menu-open .menu-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ============================================================= */
/* MOBILE MENU                                                    */
/* ============================================================= */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--void);
  z-index: 99;
  padding: calc(var(--header-h) + 24px) var(--gutter) var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
  display: flex; flex-direction: column; justify-content: space-between;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 10px; }
.mobile-menu__link {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 9vw, 72px);
  letter-spacing: -.03em;
  line-height: 1.05;
  display: flex; align-items: baseline; gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
body.menu-open .mobile-menu__link { opacity: 1; transform: translateY(0); }
body.menu-open .mobile-menu__link:nth-child(1){ transition-delay: .15s; }
body.menu-open .mobile-menu__link:nth-child(2){ transition-delay: .22s; }
body.menu-open .mobile-menu__link:nth-child(3){ transition-delay: .29s; }
body.menu-open .mobile-menu__link:nth-child(4){ transition-delay: .36s; }
.mobile-menu__num { font-family: var(--body); font-size: 12px; color: var(--lime); letter-spacing: .2em; }
.mobile-menu__foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 32px; border-top: 1px solid var(--line); color: var(--text-dim); font-size: 13px; }
.mobile-menu__socials { display: flex; gap: 18px; }

/* ============================================================= */
/* BUTTONS                                                        */
/* ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -.005em;
  position: relative; overflow: hidden;
  isolation: isolate;
  transition: color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }

/* Lime CTA — primary */
.btn--lime {
  background: var(--lime);
  color: var(--void);
}
.btn--lime::before {
  content: ""; position: absolute; inset: 0;
  background: var(--pure);
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
  z-index: -1;
}
.btn--lime:hover { color: var(--void); }
.btn--lime:hover::before { transform: translateY(0); }
.btn--lime:hover svg { transform: translate(3px,-3px); }

/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn--ghost::before {
  content: ""; position: absolute; inset: 0;
  background: var(--pure);
  transform: scaleX(0); transform-origin: right;
  transition: transform .55s var(--ease-out);
  z-index: -1;
}
.btn--ghost:hover { color: var(--void); border-color: var(--pure); }
.btn--ghost:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--ghost:hover svg { transform: translateX(3px); }

.btn--lg { padding: 18px 30px; font-size: 16px; }

/* ============================================================= */
/* HERO                                                           */
/* ============================================================= */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 48px) 0 80px;
  min-height: 100svh;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.hero__copy { position: relative; z-index: 2; }

/* Massive headline */
.hero__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(50px, 7.2vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 0 36px;
  color: var(--pure);
}
.line {
  display: block;
  overflow: hidden;
  padding-right: .12em;
}
.line:has(.spark--inline) {
  overflow: visible;
}
.line__inner {
  display: inline-block;
  white-space: nowrap;
  transform: translateY(110%);
  will-change: transform;
}
.is-loaded .line__inner {
  transform: translateY(0);
  transition: transform 1.05s var(--ease-out);
}
.is-loaded .hero__title .line:nth-child(1) .line__inner { transition-delay: .1s; }
.is-loaded .hero__title .line:nth-child(2) .line__inner { transition-delay: .18s; }
.is-loaded .hero__title .line:nth-child(3) .line__inner { transition-delay: .26s; }
.is-loaded .hero__title .line:nth-child(4) .line__inner { transition-delay: .34s; }

/* Inline sparkle in headlines */
.spark--inline {
  display: inline-block;
  width: .5em; height: .5em;
  fill: var(--lime);
  vertical-align: super;
  margin-left: .12em;
  animation: sparkPulse 3.4s var(--ease) infinite;
}

.hero__sub {
  max-width: 520px;
  font-size: clamp(15px, 1.15vw, 18px);
  color: var(--text-dim);
  margin: 0 0 32px;
  line-height: 1.55;
}

.hero__ctas {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 56px;
}

/* Trusted by */
.trusted__label {
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 18px;
}
.trusted__row {
  display: flex; flex-wrap: wrap;
  gap: clamp(16px, 2.4vw, 32px) clamp(20px, 3vw, 40px);
  align-items: center;
  color: rgba(255,255,255,.55);
}
.trusted__logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
  letter-spacing: .04em;
  font-size: 13px;
  transition: color .35s var(--ease), transform .35s var(--ease);
}
.trusted__logo:hover { color: var(--pure); transform: translateY(-2px); }

.trusted__logo--amg { font-style: italic; letter-spacing: .04em; font-size: 18px; font-weight: 800; }
.amg-stripes { display: inline-flex; gap: 2px; }
.amg-stripes i { display: block; width: 4px; height: 14px; background: currentColor; transform: skewX(-20deg); }
.trusted__logo--fs { gap: 6px; }
.trusted__logo--fs svg { width: 18px; height: 18px; }
.trusted__logo--fs span { font-family: serif; font-weight: 400; letter-spacing: .14em; font-size: 11px; }
.trusted__logo--tf { font-family: serif; font-weight: 400; letter-spacing: .25em; font-size: 13px; }
.trusted__logo--bo { font-weight: 500; letter-spacing: .12em; font-size: 12px; }
.trusted__logo--aesop { font-family: serif; font-style: italic; font-size: 18px; letter-spacing: 0; }

/* Image grid */
.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  aspect-ratio: 1 / 1.05;
  max-height: 86vh;
  position: relative;
}
.hero__tile {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--slate);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
/* Cinematic gradient backdrops per category — beautiful even if image fails to load */
[data-scene="auto"] {
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(80% 100% at 50% 100%, rgba(0,102,255,.12), transparent 60%),
    linear-gradient(180deg, #1a1a1f 0%, #0a0a0c 100%);
}
[data-scene="auto"]::before {
  /* Tunnel light strips */
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(255,255,255,.18) 18% 22%, transparent 22% 40%, rgba(255,255,255,.14) 40% 44%, transparent 44% 62%, rgba(255,255,255,.16) 62% 66%, transparent 66% 84%, rgba(255,255,255,.12) 84% 88%, transparent 88% 100%);
  height: 30%; top: 0;
  filter: blur(4px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
[data-scene="beauty"] {
  background:
    radial-gradient(60% 50% at 60% 30%, rgba(198,255,0,.08), transparent 70%),
    radial-gradient(80% 70% at 50% 80%, rgba(138,43,226,.18), transparent 70%),
    linear-gradient(180deg, #15161a 0%, #0a0a0c 100%);
}
[data-scene="hospo"] {
  background:
    radial-gradient(70% 50% at 50% 30%, rgba(255,170,80,.16), transparent 65%),
    radial-gradient(60% 80% at 50% 100%, rgba(0,102,255,.10), transparent 70%),
    linear-gradient(180deg, #1c1611 0%, #0a0a0c 100%);
}
[data-scene="lifestyle"] {
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(255,255,255,.10), transparent 65%),
    radial-gradient(80% 80% at 70% 80%, rgba(138,43,226,.15), transparent 70%),
    linear-gradient(180deg, #15161a 0%, #0a0a0c 100%);
}
.hero__tile img,
.case__media img {
  position: relative; z-index: 1;
}
.hero__tile img {
  width: 100%; height: 100%;
  transform: scale(1.05);
  transition: transform 1.4s var(--ease);
  filter: brightness(.92) contrast(1.05);
}
.hero__tile:hover img { transform: scale(1.12); }
.hero__tile-tag {
  position: absolute; left: 14px; bottom: 14px;
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(11,11,13,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--pure);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.hero__tile:hover .hero__tile-tag { opacity: 1; transform: translateY(0); }

.hero__tile--a { grid-column: 1; grid-row: 1; }
.hero__tile--b { grid-column: 2; grid-row: 1; }
.hero__tile--c { grid-column: 1; grid-row: 2; }
.hero__tile--d { grid-column: 2; grid-row: 2; }

/* Reveal pattern */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.is-loaded .reveal { opacity: 1; transform: translateY(0); }
.is-loaded .reveal[data-delay="0.6"] { transition-delay: .6s; }
.is-loaded .reveal[data-delay="0.8"] { transition-delay: .8s; }
.is-loaded .reveal[data-delay="1.0"] { transition-delay: 1s; }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--text-mute);
  opacity: 0;
  animation: fadeIn 1s 1.6s var(--ease) forwards;
}
.scroll-cue__line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--lime), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute; top: -50%; left: 0; right: 0;
  height: 50%; background: var(--lime);
  animation: cueDrip 2.2s linear infinite;
}
@keyframes cueDrip { 0% { top: -50%; } 100% { top: 100%; } }

/* ============================================================= */
/* SERVICES                                                       */
/* ============================================================= */
.services {
  padding: 70px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.4);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.service {
  position: relative;
  padding: 8px clamp(20px, 3vw, 36px);
  text-align: center;
}
.service + .service { border-left: 1px solid var(--line); }
.service__icon {
  width: 44px; height: 44px;
  margin: 0 auto 18px;
  color: var(--lime);
  transition: transform .5s var(--ease), color .35s var(--ease);
}
.service__icon svg { width: 100%; height: 100%; }
.service__icon svg * {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 1.2s var(--ease-out);
}
.service.is-in .service__icon svg * { stroke-dashoffset: 0; }
.service.is-in .service__icon svg *:nth-child(2) { transition-delay: .15s; }
.service.is-in .service__icon svg *:nth-child(3) { transition-delay: .3s; }
.service:hover .service__icon { transform: translateY(-4px) scale(1.08); }
.service h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}
.service p {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
  max-width: 220px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ============================================================= */
/* SELECTED WORK                                                  */
/* ============================================================= */
.work {
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
}
.work__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 40px;
  flex-wrap: wrap; gap: 12px;
}
.work__view-all {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .35s, color .35s;
}
.work__view-all svg { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.work__view-all:hover { border-color: var(--lime); color: var(--lime); }
.work__view-all:hover svg { transform: translateX(4px); }

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.case {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--slate);
  display: block;
  isolation: isolate;
  transition: transform .6s var(--ease);
}
.case__media {
  position: relative;
  aspect-ratio: 4 / 5.2;
  overflow: hidden;
}
.case__media img {
  width: 100%; height: 100%;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease), filter .6s var(--ease);
  filter: brightness(.85) contrast(1.05);
}
.case::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,11,13,.95) 0%, rgba(11,11,13,.55) 35%, rgba(11,11,13,0) 60%);
  pointer-events: none;
  z-index: 1;
}
.case__meta {
  position: absolute;
  left: 22px; right: 22px; bottom: 22px;
  display: flex; justify-content: space-between; align-items: end;
  z-index: 2;
}
.case__tag {
  display: inline-block;
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.case__meta h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 26px);
  margin: 0;
  letter-spacing: -.01em;
}
.case__arrow {
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background .35s var(--ease), border-color .35s, transform .4s var(--ease);
  flex-shrink: 0;
}
.case__arrow svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.case:hover { transform: translateY(-6px); }
.case:hover img { transform: scale(1.12); filter: brightness(1) contrast(1.08); }
.case:hover .case__arrow { background: var(--lime); border-color: var(--lime); color: var(--void); }
.case:hover .case__arrow svg { transform: translate(2px, -2px); }

/* ============================================================= */
/* ABOUT / METRICS                                                */
/* ============================================================= */
.about {
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.012) 100%);
}
.about__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.about__copy h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -.025em;
  margin: 16px 0 24px;
}
.about__copy h2 em {
  font-style: normal;
  color: var(--lime);
}
.about__copy p {
  color: var(--text-dim);
  font-size: clamp(15px, 1vw, 17px);
  max-width: 540px;
  margin: 0 0 14px;
  line-height: 1.65;
}
.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.5vw, 36px);
}
.stat {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--slate);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s, background .5s;
}
.stat::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--lime), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--ease-out);
}
.stat:hover { transform: translateY(-4px); border-color: rgba(198,255,0,.3); background: var(--slate-2); }
.stat:hover::before { transform: scaleX(1); }
.stat__num {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -.03em;
  display: inline;
}
.stat__value {
  display: flex;
  align-items: baseline;
  line-height: 1;
}
.stat__suffix {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2.5vw, 32px);
  color: var(--lime);
  margin-left: 2px;
  display: inline;
}
.stat__label {
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 6px;
}

/* ============================================================= */
/* CLOSING CTA                                                    */
/* ============================================================= */
.cta {
  position: relative;
  padding: clamp(100px, 14vw, 200px) 0 clamp(80px, 10vw, 140px);
  text-align: center;
  overflow: hidden;
}
.cta__silk {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: .9;
}
.cta__silk svg { width: 100%; height: 100%; }
.silk-path { animation: silkWave 14s var(--ease) infinite alternate; transform-origin: center; }
.silk-path--2 { animation-duration: 18s; animation-direction: alternate-reverse; }
@keyframes silkWave {
  0%   { transform: translateY(0) scaleX(1);   filter: hue-rotate(0deg); }
  100% { transform: translateY(-12px) scaleX(1.04); filter: hue-rotate(8deg); }
}
.cta__inner { position: relative; z-index: 1; }
.cta__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 0 auto 48px;
  max-width: 18ch;
  padding-bottom: 8px;
}
.cta__title .line { padding-right: 0; overflow: visible; }

/* ============================================================= */
/* FOOTER                                                         */
/* ============================================================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  background: var(--void);
  position: relative; z-index: 1;
}
.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.footer__copy {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-mute);
}
.footer__socials { display: flex; gap: clamp(16px, 2vw, 28px); }
.footer__socials a {
  font-size: 13px; color: var(--text-dim);
  position: relative;
  transition: color .3s;
}
.footer__socials a:hover { color: var(--lime); }
.footer__socials a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.footer__socials a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ============================================================= */
/* SCROLL REVEAL UTILITIES                                        */
/* ============================================================= */
/* Visible by default — only hidden when JS confirms it can animate them.
   This means no-JS users / edge browsers always see content. */
.reveal-up { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js-ready .reveal-up { opacity: 0; transform: translateY(36px); }
.js-ready .reveal-up.is-in { opacity: 1; transform: translateY(0); }
.reveal-up[data-delay="0.1"] { transition-delay: .1s; }
.reveal-up[data-delay="0.2"] { transition-delay: .2s; }
.reveal-up[data-delay="0.3"] { transition-delay: .3s; }

/* ============================================================= */
/* RESPONSIVE                                                     */
/* ============================================================= */

/* Tablet & smaller-laptops */
@media (max-width: 1100px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hero__grid {
    aspect-ratio: 5 / 4;
    max-height: none;
    order: -1;
  }
  .hero {
    padding-top: calc(var(--header-h) + 32px);
    padding-bottom: 60px;
    min-height: 0;
  }
  .scroll-cue { display: none; }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .work__grid .case:nth-child(3) { grid-column: 1 / -1; }
  .work__grid .case:nth-child(3) .case__media { aspect-ratio: 16 / 9; }
  .about__inner { grid-template-columns: 1fr; }
  .about__stats { max-width: 600px; }
}

/* Tablets */
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .nav, .header__cta { display: none; }
  .menu-toggle { display: block; justify-self: end; }
  .header__inner { grid-template-columns: 1fr auto; }
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .services { padding: 56px 0; }
  .service { padding: 0 20px; }
  .service:nth-child(odd) { border-left: 0; }
  .service:nth-child(2n) { border-left: 1px solid var(--line); }
  .service:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 40px; }
  .work__grid { grid-template-columns: 1fr; }
  .work__grid .case:nth-child(3) { grid-column: auto; }
  .work__grid .case:nth-child(3) .case__media { aspect-ratio: 4 / 5.2; }
  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

/* Mobile */
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .hero__title { font-size: clamp(44px, 12vw, 72px); margin-bottom: 28px; }
  .hero__sub { font-size: 15px; margin-bottom: 26px; }
  .hero__ctas { gap: 10px; margin-bottom: 44px; }
  .btn { padding: 12px 18px; font-size: 14px; }
  .hero__grid { aspect-ratio: 1 / 1; gap: 8px; }
  .trusted__row { gap: 18px 28px; }
  .work { padding: 70px 0; }
  .about__stats { grid-template-columns: 1fr; }
  .stat { padding: 22px; }
  .cta { padding: 80px 0 60px; }
  .footer__socials { gap: 18px; flex-wrap: wrap; justify-content: center; }
}

/* Reduce-motion: respect users */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .line__inner { transform: none; }
  .reveal, .reveal-up { opacity: 1; transform: none; }
}
