/* =========================================================
   gayrat.motion — brand site
   Palette: #F2F2F2 · #EAE4D5 · #B6B09F · #000000
   ========================================================= */

:root {
  --ink: #000000;
  --ink-2: #0c0c0b;
  --paper: #F2F2F2;
  --cream: #EAE4D5;
  --stone: #B6B09F;

  --on-dark: var(--paper);
  --on-dark-mute: rgba(242, 242, 242, .62);
  --on-light: var(--ink);
  --on-light-mute: rgba(0, 0, 0, .62);
  --line-dark: rgba(242, 242, 242, .14);
  --line-light: rgba(0, 0, 0, .12);

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.25, .1, .2, 1);          /* Slides framework easing */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 24px;

  --z-canvas: 0;
  --z-content: 1;
  --z-nav: 50;
  --z-menu: 60;
  --z-lightbox: 80;
  --z-grain: 90;
  --z-loader: 100;
  --z-cursor: 110;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
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 {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { list-style: none; padding: 0; }
em { font-style: italic; }
::selection { background: var(--cream); color: var(--ink); }

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

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 99px;
  background: var(--cream); color: var(--ink); font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }

/* =========================================================
   Reveal — ported from Slides 4 framework (themewagon slides-portfolio)
   .ae-N elements start 50px lower & transparent; when their
   .reveal container becomes active they slide in with
   cubic-bezier(.25,.1,.2,1) over .8s, staggered 150ms per step.
   ========================================================= */
.js [class^="ae-"], .js [class*=" ae-"] {
  opacity: 0;
  transform: translate3d(0, 50px, 0);
  backface-visibility: hidden;
  transition-property: opacity, transform, filter;
  transition-duration: .5s;
  transition-timing-function: var(--ease);
}
.js .fromCenter[class*="ae-"] { transform: scale(.9); }
.js .fromLeft[class*="ae-"]   { transform: translate3d(-50px, 0, 0); }
.js .fromRight[class*="ae-"]  { transform: translate3d(50px, 0, 0); }
.js .fadeIn[class*="ae-"]     { transform: none; }
.js .fromBlur[class*="ae-"]   { transform: none; filter: blur(10px); }

.js .is-in [class^="ae-"], .js .is-in [class*=" ae-"] {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: none;
  transition-duration: .8s;
}
.is-in .ae-1  { transition-delay: 10ms; }
.is-in .ae-2  { transition-delay: 160ms; }
.is-in .ae-3  { transition-delay: 310ms; }
.is-in .ae-4  { transition-delay: 460ms; }
.is-in .ae-5  { transition-delay: 610ms; }
.is-in .ae-6  { transition-delay: 760ms; }
.is-in .ae-7  { transition-delay: 910ms; }
.is-in .ae-8  { transition-delay: 1.06s; }
.is-in .ae-9  { transition-delay: 1.21s; }
.is-in .ae-10 { transition-delay: 1.36s; }
.is-in .slow[class*="ae-"] { transition-duration: 1s; }

/* =========================================================
   Loader
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  background: var(--ink); color: var(--cream);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--gutter);
  transition: transform 1s cubic-bezier(.76, 0, .24, 1);
}
.loader.is-done { transform: translate3d(0, -100%, 0); }
html:not(.js) .loader { display: none; }
.loader__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.loader__tc { font-size: clamp(.8rem, 1.2vw, 1rem); letter-spacing: .2em; color: var(--stone); font-variant-numeric: tabular-nums; }
.loader__pct { font-size: clamp(4rem, 16vw, 14rem); font-weight: 800; line-height: .8; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.loader__bar { margin-top: 24px; height: 2px; background: var(--line-dark); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--cream); transform-origin: left; transform: scaleX(0); }

/* =========================================================
   Cursor — rico.supply style
   ========================================================= */
.cursor { display: none; }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor .cursor {
  display: block;
  position: fixed; top: 0; left: 0; z-index: var(--z-cursor);
  pointer-events: none;
  will-change: transform;
  opacity: 0;
  transition: opacity .3s;
}
.has-cursor .cursor.is-visible { opacity: 1; }
.cursor__body {
  --c-bg: var(--cream);
  --c-fg: var(--ink);
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  border-radius: 120px;
  background: var(--c-bg);
  color: var(--c-fg);
  transform: translate(-50%, -50%);
  transition:
    width .45s var(--ease-out),
    height .45s var(--ease-out),
    padding .45s var(--ease-out),
    background-color .3s, color .3s, border-color .3s;
  white-space: nowrap;
  overflow: hidden;
  will-change: width, height;
}
.cursor.on-light .cursor__body { --c-bg: var(--ink); --c-fg: var(--paper); }
.cursor.is-link .cursor__body { width: 44px; height: 44px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--c-bg); }
.cursor.is-down .cursor__body { width: 10px; height: 10px; }
.cursor.is-label .cursor__body { width: var(--lw, 120px); height: 40px; }
.cursor__label {
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  opacity: 0; transform: scale(.6);
  transition: opacity .2s, transform .45s var(--ease-out);
}
.cursor.is-label .cursor__label { opacity: 1; transform: scale(1); transition-delay: .08s; }

/* =========================================================
   Grain + progress
   ========================================================= */
.grain {
  position: fixed; inset: -50%; z-index: var(--z-grain); pointer-events: none;
  opacity: .07;
  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='.9' numOctaves='3' 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% { 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); }
}
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: var(--z-nav); pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--stone); transform-origin: left; transform: scaleX(0); }

/* =========================================================
   Buttons / type helpers
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 99px;
  font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  transition: background-color .3s, color .3s, box-shadow .3s, transform .3s var(--ease-out);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn svg.fill, .btn .fill { fill: currentColor; stroke: none; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: var(--paper); }
.btn--ghost { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px var(--line-dark); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--cream); }
.btn:active { transform: scale(.96); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--stone);
}
.eyebrow--dark { color: var(--on-light-mute); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 20%, transparent); }

.h2 {
  font-size: clamp(2.4rem, 6.4vw, 6.5rem);
  font-weight: 800; line-height: .98; letter-spacing: -.045em;
  margin-top: 18px;
}
/* Outline text: stroke painted under a background-coloured fill hides the
   overlapping contours of Montserrat's variable glyphs (R, A, K…). */
.outline, .outline-dark { font-style: italic; paint-order: stroke fill; -webkit-text-stroke-width: 3px; }
.outline { color: var(--fill, var(--ink)); -webkit-text-stroke-color: var(--cream); font-weight: 800; }
.outline-dark { color: var(--fill, var(--paper)); -webkit-text-stroke-color: var(--ink); }
.accent { color: var(--stone); }

.section-head { margin-bottom: clamp(40px, 7vw, 96px); }

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  mix-blend-mode: difference;
  color: var(--paper);
  transition: transform .6s var(--ease-out);
}
.nav.is-hidden { transform: translate3d(0, -110%, 0); }
.menu-open .nav { z-index: calc(var(--z-menu) + 1); mix-blend-mode: normal; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: -.04em; display: inline-flex; align-items: center; min-height: 44px; }
.logo span { font-weight: 400; }
.logo__key {
  width: 8px; height: 8px; margin: 0 5px 0 3px; background: currentColor;
  transform: rotate(45deg); animation: key 3.2s var(--ease) infinite;
}
@keyframes key { 0%, 60% { transform: rotate(45deg); } 80%, 100% { transform: rotate(225deg); } }
.nav__links { display: flex; gap: 6px; }
.nav__links a {
  position: relative; padding: 10px 14px; font-size: 14px; font-weight: 500;
}
.nav__links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { background: var(--paper); color: var(--ink); }
.burger { display: none; width: 48px; height: 48px; border-radius: 50%; position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: currentColor; transition: transform .4s var(--ease-out); }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 27px; }
.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px var(--gutter) 40px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s cubic-bezier(.76, 0, .24, 1);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-size: clamp(2.6rem, 12vw, 4.5rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.1; padding: 4px 0; }
.menu__foot { margin-top: 40px; color: var(--stone); font-weight: 500; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 120px; overflow: hidden;
  background: radial-gradient(120% 80% at 80% 0%, #1a1916 0%, var(--ink) 60%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: var(--z-canvas); }
.hero__content { position: relative; z-index: var(--z-content); padding-bottom: clamp(24px, 5vh, 56px); }
.hero__title {
  margin: 22px 0 clamp(28px, 4vw, 48px);
  font-size: clamp(3.2rem, 12.5vw, 12.5rem);
  font-weight: 600; line-height: .92; letter-spacing: -.05em;
}
.hero__title .line, .contact__title .line { display: block; }
.hero__title .outline, .contact__title .outline { font-weight: inherit; -webkit-text-stroke-width: 3px; padding-right: .08em; }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.hero__lead { max-width: 46ch; color: var(--on-dark-mute); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hud {
  position: relative; z-index: var(--z-content);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 18px; border-top: 1px solid var(--line-dark);
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--stone);
}
.hud b { font-weight: 600; color: var(--paper); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.hud__rec { display: inline-flex; align-items: center; gap: 8px; }
.hud__rec i { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.hud__scroll { display: inline-flex; align-items: center; gap: 10px; }
.hud__scroll i { width: 1px; height: 28px; background: var(--line-dark); position: relative; overflow: hidden; }
.hud__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--cream); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* =========================================================
   Marquee
   ========================================================= */
.marquee { --fill: var(--cream); background: var(--cream); color: var(--ink); padding: clamp(28px, 5vw, 64px) 0; overflow: hidden; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__group span {
  font-size: clamp(3.5rem, 11vw, 10.5rem); font-weight: 900; letter-spacing: -.05em; line-height: 1;
  padding-inline: .18em; white-space: nowrap;
}
.marquee__group .outline-dark { -webkit-text-stroke-width: 4px; }
.marquee__group i { font-style: normal; font-size: clamp(1.4rem, 3.5vw, 3rem); color: var(--stone); padding-inline: .3em; }

/* =========================================================
   Showreel
   ========================================================= */
.reel { --fill: var(--cream); position: relative; height: 240vh; background: var(--cream); color: var(--ink); }
.reel__sticky {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  overflow: hidden;
}
.reel__head { position: absolute; top: clamp(80px, 12vh, 120px); left: 0; right: 0; z-index: 1; transition: opacity .3s; }
.reel__frame {
  position: relative; display: block;
  width: 100vw; height: 100vh; height: 100dvh;
  transform: scale(var(--s, .55)) translateY(var(--y, 12%));
  border-radius: calc(var(--r, 28) * 1px / var(--s, .55));
  overflow: hidden;
  background: var(--ink);
  will-change: transform;
  z-index: 2;
}

/* Composition (AE-like viewport) */
.comp { position: absolute; inset: 0; display: block; color: var(--cream); overflow: hidden;
  background: radial-gradient(90% 70% at 50% 50%, #1b1a17 0%, var(--ink) 75%); }
.comp__bar {
  position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between;
  padding: 18px 24px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--stone);
}
.comp__live { display: inline-flex; align-items: center; gap: 8px; }
.comp__live i { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; animation: blink 1.2s steps(2) infinite; }
.comp__safe { position: absolute; inset: 10% 10%; border: 1px dashed rgba(182, 176, 159, .35); }
.comp__safe::before { content: ""; position: absolute; inset: 6% 6%; border: 1px dashed rgba(182, 176, 159, .2); }
.comp__cross { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%); }
.comp__cross::before, .comp__cross::after { content: ""; position: absolute; background: rgba(182, 176, 159, .45); }
.comp__cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.comp__cross::after { top: 50%; left: 0; right: 0; height: 1px; }
.comp__word {
  position: absolute; left: 50%; font-size: clamp(5rem, 22vw, 22rem); font-weight: 900; letter-spacing: -.06em; line-height: .8;
  white-space: nowrap;
}
.comp__word--a { top: 22%; animation: slideA 6s var(--ease) infinite; }
.comp__word--b { bottom: 20%; color: #121110; -webkit-text-stroke: 4px var(--cream); paint-order: stroke fill; font-style: italic; animation: slideB 6s var(--ease) infinite; }
@keyframes slideA { 0% { transform: translateX(-130%); } 30%, 70% { transform: translateX(-62%); } 100% { transform: translateX(10%); } }
@keyframes slideB { 0% { transform: translateX(30%); } 30%, 70% { transform: translateX(-38%); } 100% { transform: translateX(-150%); } }
.comp__ring {
  position: absolute; left: 50%; top: 50%; width: 180px; height: 180px; margin: -90px 0 0 -90px;
  border-radius: 50%; border: 1px solid rgba(234, 228, 213, .4);
  animation: ringPulse 2.4s var(--ease-out) infinite;
}
@keyframes ringPulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.comp__play {
  position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--cream); color: var(--ink);
  transition: transform .5s var(--ease-out);
}
.comp__play svg { width: 36px; height: 36px; fill: currentColor; margin-left: 4px; }
.reel__frame:hover .comp__play { transform: scale(1.12); }
.comp__timeline { position: absolute; left: 24px; right: 24px; bottom: 24px; height: 3px; background: rgba(234, 228, 213, .18); border-radius: 3px; }
.comp__head { position: absolute; top: -5px; left: 0; width: 2px; height: 13px; background: var(--cream); animation: head 6s linear infinite; }
@keyframes head { from { left: 0; } to { left: 100%; } }

/* =========================================================
   Works — horizontal scroll
   ========================================================= */
.works { position: relative; background: var(--paper); color: var(--ink); }
.works__sticky { position: sticky; top: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-block: 96px 48px; }
.works__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.works__count { font-size: 14px; font-weight: 600; color: var(--on-light-mute); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.works__count b { color: var(--ink); font-size: 2.2rem; letter-spacing: -.04em; }
.works__track {
  display: flex; gap: clamp(14px, 2vw, 28px);
  padding-inline: var(--gutter);
  width: max-content;
  will-change: transform;
}

.card {
  --card-bg: var(--cream); --card-fg: var(--ink); --art: var(--ink); --art-2: var(--stone);
  position: relative; flex-shrink: 0;
  width: clamp(240px, 22vw, 340px); aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  background: var(--card-bg); color: var(--card-fg);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 20px;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
  isolation: isolate;
}
.card:nth-child(even) { margin-top: clamp(24px, 5vh, 64px); }
.card:hover { transform: translateY(-10px) rotate(-1deg); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45); }
.card--dark { --card-bg: var(--ink); --card-fg: var(--paper); --art: var(--cream); --art-2: var(--stone); }
.card--stone { --card-bg: var(--stone); --card-fg: var(--ink); --art: var(--ink); --art-2: var(--cream); }
.card__meta, .card__title { position: relative; z-index: 2; }
.card__meta { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.card__title { font-size: clamp(1.25rem, 1.6vw, 1.55rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; display: flex; flex-direction: column; gap: 6px; }
.card__title small { font-size: 12px; font-weight: 600; letter-spacing: .12em; opacity: .75; }
.card__art { position: absolute; inset: 0; z-index: 1; display: block; transition: transform .8s var(--ease-out); }
.card:hover .card__art { transform: scale(1.06); }
.card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

.card--cta { --card-bg: var(--ink); --card-fg: var(--cream); justify-content: space-between; flex-direction: column-reverse; }
.card__cta { font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 900; letter-spacing: -.05em; line-height: 1; position: relative; z-index: 2; }
.card__cta em { color: var(--ink); -webkit-text-stroke: 3px var(--cream); paint-order: stroke fill; }

/* Motion compositions (CSS-only placeholders for real work) */
.card__art i, .card__art b, .card__art span { display: block; position: absolute; }
.works:not(.is-playing) .card__art *, .works:not(.is-playing) .card__art { animation-play-state: paused !important; }

.art-orbit i { left: 50%; top: 45%; border-radius: 50%; border: 1.5px solid var(--art); animation: spin 8s linear infinite; }
.art-orbit i:nth-child(1) { width: 60%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.art-orbit i:nth-child(2) { width: 40%; aspect-ratio: 1; transform: translate(-50%, -50%); animation-duration: 5s; animation-direction: reverse; }
.art-orbit i:nth-child(3) { width: 80%; aspect-ratio: 1; transform: translate(-50%, -50%); border-style: dashed; animation-duration: 14s; }
.art-orbit i::after { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--art); }
.art-orbit b { left: 50%; top: 45%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: var(--art); transform: translate(-50%, -50%); animation: pulse 2s var(--ease) infinite; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes pulse { 50% { transform: translate(-50%, -50%) scale(.7); } }

.art-bars { display: flex !important; align-items: center; justify-content: center; gap: 6%; padding: 0 16%; }
.art-bars i { position: relative !important; flex: 1; height: 38%; border-radius: 99px; background: var(--art); transform-origin: center; animation: eq 1.2s var(--ease) infinite alternate; }
.art-bars i:nth-child(2n) { background: var(--art-2); }
.art-bars i:nth-child(1) { animation-delay: -.2s; } .art-bars i:nth-child(2) { animation-delay: -.5s; } .art-bars i:nth-child(3) { animation-delay: -.9s; }
.art-bars i:nth-child(4) { animation-delay: -.1s; } .art-bars i:nth-child(5) { animation-delay: -.7s; } .art-bars i:nth-child(6) { animation-delay: -.35s; } .art-bars i:nth-child(7) { animation-delay: -1s; }
@keyframes eq { from { transform: scaleY(.15); } to { transform: scaleY(1); } }

.art-type { display: flex !important; flex-direction: column; justify-content: center; overflow: hidden; padding-bottom: 28%; }
.art-type span { position: relative !important; font-size: 3.4rem; font-weight: 900; letter-spacing: -.06em; line-height: .88; white-space: nowrap; animation: typeSlide 3s var(--ease) infinite alternate; }
.art-type span:nth-child(even) { color: var(--card-bg); -webkit-text-stroke: 3px var(--art); paint-order: stroke fill; font-style: italic; animation-direction: alternate-reverse; }
@keyframes typeSlide { from { transform: translateX(-8%); } to { transform: translateX(-52%); } }

.art-grid { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 10%; padding: 34% 18%; align-content: center; }
.art-grid i { position: relative !important; aspect-ratio: 1; background: var(--art); border-radius: 6px; animation: flip 2.4s var(--ease) infinite; }
.art-grid i:nth-child(odd) { background: var(--art-2); }
.art-grid i:nth-child(1) { animation-delay: 0s; } .art-grid i:nth-child(2), .art-grid i:nth-child(4) { animation-delay: .12s; }
.art-grid i:nth-child(3), .art-grid i:nth-child(5), .art-grid i:nth-child(7) { animation-delay: .24s; }
.art-grid i:nth-child(6), .art-grid i:nth-child(8) { animation-delay: .36s; } .art-grid i:nth-child(9) { animation-delay: .48s; }
@keyframes flip { 0%, 20% { transform: rotate(0) scale(1); border-radius: 6px; } 50% { transform: rotate(90deg) scale(.55); border-radius: 50%; } 80%, 100% { transform: rotate(180deg) scale(1); border-radius: 6px; } }

.art-ripple i { left: 50%; top: 45%; width: 90%; aspect-ratio: 1; margin-left: -45%; margin-top: -45%; border-radius: 50%; border: 1.5px solid var(--art); animation: ripple 3.2s var(--ease-out) infinite; opacity: 0; }
.art-ripple i:nth-child(2) { animation-delay: .8s; } .art-ripple i:nth-child(3) { animation-delay: 1.6s; } .art-ripple i:nth-child(4) { animation-delay: 2.4s; border-color: var(--art-2); }
@keyframes ripple { from { transform: scale(.05); opacity: 1; } to { transform: scale(1); opacity: 0; } }

.art-split span { left: 0; right: 0; height: 50%; display: flex !important; align-items: center; justify-content: center; font-size: 6rem; font-weight: 900; letter-spacing: -.06em; overflow: hidden; }
.art-split span:first-child { top: 0; align-items: flex-end; background: var(--ink); color: var(--cream); animation: splitA 3s var(--ease) infinite; }
.art-split span:last-child { bottom: 0; align-items: flex-start; color: var(--ink); animation: splitB 3s var(--ease) infinite; }
@keyframes splitA { 0%, 15% { transform: translateY(-100%); } 40%, 75% { transform: translateY(0); } 100% { transform: translateY(-100%); } }
@keyframes splitB { 0%, 15% { transform: translateY(100%); } 40%, 75% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* =========================================================
   Services
   ========================================================= */
.services { background: var(--paper); color: var(--ink); padding: clamp(96px, 14vw, 180px) 0; }
.svc { border-top: 1px solid var(--line-light); }
.svc__row { border-bottom: 1px solid var(--line-light); }
.svc__link {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 80px 1.1fr 1fr 64px; align-items: center; gap: 24px;
  padding: clamp(28px, 3.5vw, 48px) 12px;
  transition: color .5s var(--ease-out);
}
.svc__link::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); border-radius: 18px;
  clip-path: inset(100% 0 0 0 round 18px);
  transition: clip-path .6s var(--ease-out);
}
.svc__link:hover, .svc__link:focus-visible { color: var(--cream); }
.svc__link:hover::before, .svc__link:focus-visible::before { clip-path: inset(0 0 0 0 round 18px); }
.svc__no { font-size: 14px; font-weight: 600; letter-spacing: .1em; opacity: .55; font-variant-numeric: tabular-nums; }
.svc__name { display: block; font-size: clamp(2rem, 5vw, 4.6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; transition: transform .6s var(--ease-out); }
.svc__name em { display: block; margin-top: .12em; font-size: .42em; font-weight: 400; letter-spacing: -.02em; color: var(--on-light-mute); transition: color .5s; }
.svc__link:hover .svc__name { transform: translateX(16px); }
.svc__link:hover .svc__name em { color: var(--stone); }
.svc__desc { max-width: 42ch; color: var(--on-light-mute); transition: color .5s; }
.svc__link:hover .svc__desc { color: rgba(234, 228, 213, .7); }
.svc__arrow { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-light); transition: transform .6s var(--ease-out), background-color .4s, box-shadow .4s; }
.svc__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc__link:hover .svc__arrow { transform: rotate(45deg); background: var(--cream); color: var(--ink); box-shadow: none; }

/* =========================================================
   Process — timeline
   ========================================================= */
.process { position: relative; height: 260vh; background: var(--ink); color: var(--paper); }
.process__sticky { position: sticky; top: 0; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; padding-block: 96px 48px; }
.tl { position: relative; }
.tl__ruler {
  display: flex; justify-content: space-between; padding-bottom: 12px; margin-bottom: 18px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--stone); font-variant-numeric: tabular-nums;
  background: repeating-linear-gradient(90deg, var(--line-dark) 0 1px, transparent 1px calc(100% / 40)) bottom / 100% 8px no-repeat;
}
.tl__tracks { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tl__clip {
  position: relative; min-height: 240px;
  padding: 22px; border-radius: 18px;
  background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-dark);
  transition: background-color .6s var(--ease-out), color .6s, box-shadow .6s, transform .6s var(--ease-out);
}
.tl__clip:nth-child(even) { transform: translateY(40px); }
.tl__clip.is-on { background: var(--cream); color: var(--ink); box-shadow: none; }
.tl__no { display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: .1em; background: var(--line-dark); }
.tl__clip.is-on .tl__no { background: var(--ink); color: var(--cream); }
.tl__clip h3 { margin: 48px 0 10px; font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.tl__clip p { color: var(--on-dark-mute); font-size: 15px; transition: color .6s; }
.tl__clip.is-on p { color: var(--on-light-mute); }
.tl__head {
  position: absolute; top: 0; bottom: -52px; left: 0; width: 2px; background: var(--cream);
  transform: translateX(calc(var(--p, 0) * var(--tl-w, 0px)));
  pointer-events: none; z-index: 3;
}
.tl__head::before { content: ""; position: absolute; top: -6px; left: -7px; width: 16px; height: 16px; background: var(--cream); clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); }
.tl__head span {
  position: absolute; bottom: 0; left: 10px; padding: 5px 10px; border-radius: 8px;
  background: var(--cream); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* =========================================================
   About
   ========================================================= */
.about { --fill: var(--cream); background: var(--cream); color: var(--ink); padding: clamp(96px, 14vw, 180px) 0; }
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 8vw, 140px); align-items: center; }
.about__quote {
  margin: 20px 0 28px;
  font-size: clamp(1.8rem, 3.1vw, 2.9rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.15;
  text-wrap: balance;
}
.about__quote em { font-style: italic; font-weight: 600; }
.about__quote .soft { font-weight: 500; color: rgba(0, 0, 0, .55); }

/* Portrait with rotating caption ring */
.portrait { position: relative; margin: 0 auto; width: min(100%, 520px); aspect-ratio: 1; }
.portrait__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: ring 28s linear infinite; }
.portrait__ring text { font-family: var(--font); font-size: 9.2px; font-weight: 600; letter-spacing: .12em; fill: var(--ink); }
@keyframes ring { to { transform: rotate(360deg); } }
.portrait__img {
  position: absolute; inset: 13%; display: block; border-radius: 50%; overflow: hidden;
  background: #d9d9d9;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .45);
}
.portrait__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease-out), filter 1.2s var(--ease-out); }
.portrait:hover .portrait__img img { transform: scale(1.08); }
.portrait__badge {
  position: absolute; right: 19%; bottom: 20%;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px;
  background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; letter-spacing: .14em;
}
.portrait__badge i { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; animation: blink 1.2s steps(2) infinite; }
.about__right p:not(.eyebrow) { color: var(--on-light-mute); font-size: 1.05rem; }
.about__right p:not(.eyebrow) + p { margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips li { padding: 8px 16px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .18); font-size: 14px; font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line-light); }
.facts dt { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.facts dd { margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--on-light-mute); }

/* =========================================================
   Contact + footer
   ========================================================= */
.contact { position: relative; background: var(--ink); color: var(--paper); padding-top: clamp(110px, 16vw, 200px); overflow: hidden; }
.contact__title { margin: 22px 0 clamp(40px, 6vw, 72px); font-size: clamp(3rem, 10.5vw, 10.5rem); font-weight: 600; line-height: .92; letter-spacing: -.05em; }
.contact__row { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-bottom: clamp(64px, 10vw, 128px); }
.contact__phone { font-size: clamp(1.6rem, 3.6vw, 3.2rem); font-weight: 700; letter-spacing: -.03em; position: relative; font-variant-numeric: tabular-nums; }
.contact__phone::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--stone); transform-origin: right; transition: transform .6s var(--ease-out); }
.contact__phone:hover::after { transform: scaleX(0); }
.contact__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-block: 24px 32px; border-top: 1px solid var(--line-dark);
  font-size: 13px; font-weight: 500; color: var(--stone);
}
.footer b { color: var(--paper); font-weight: 600; font-variant-numeric: tabular-nums; }
.footer__top { min-height: 44px; display: inline-flex; align-items: center; }
.footer__top:hover { color: var(--paper); }
.footer__credit {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 99px;
  box-shadow: inset 0 0 0 1.5px var(--line-dark);
  transition: background-color .3s, color .3s, box-shadow .3s, transform .3s var(--ease-out);
}
.footer__credit svg { width: 16px; height: 16px; fill: currentColor; }
.footer__credit:hover { background: var(--cream); color: var(--ink); box-shadow: none; }
.footer__credit:hover b { color: var(--ink); }

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox);
  display: grid; place-items: center; padding: var(--gutter);
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(12px);
  opacity: 0; transition: opacity .4s;
}
.lightbox.is-open { opacity: 1; }
.lightbox__stage { width: min(1200px, 100%); aspect-ratio: 16 / 9; display: grid; place-items: center; transform: scale(.94); transition: transform .6s var(--ease-out); }
.lightbox.is-open .lightbox__stage { transform: none; }
.lightbox video { width: 100%; height: 100%; border-radius: 18px; background: #000; object-fit: contain; }
.lightbox__empty { text-align: center; display: grid; justify-items: center; gap: 20px; }
.lightbox__msg { font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
.lightbox__close { position: absolute; top: 18px; right: var(--gutter); width: 52px; height: 52px; border-radius: 50%; background: var(--cream); color: var(--ink); font-size: 18px; z-index: 1; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .svc__link { grid-template-columns: 56px 1fr 56px; }
  .svc__desc { grid-column: 2 / 3; grid-row: 2; }
  .svc__arrow { grid-column: 3; grid-row: 1; }
  .about__grid { grid-template-columns: 1fr; }
  .portrait { width: min(80%, 380px); }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .nav { mix-blend-mode: normal; }
  .nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(0,0,0,.7), transparent); pointer-events: none; }

  .hud__scroll { display: none; }

  .reel { height: auto; }
  .reel__sticky { position: relative; height: auto; padding: 96px 0 56px; }
  .reel__head { position: static; margin-bottom: 28px; }
  .reel__frame { width: calc(100% - 2 * var(--gutter)); height: auto; aspect-ratio: 4 / 5; transform: none; border-radius: 20px; }
  .comp__word { font-size: 7.5rem; }

  .works__sticky { position: relative; padding-block: 96px 72px; }
  .works__track { width: auto; display: grid; grid-template-columns: 1fr 1fr; transform: none !important; }
  .card { width: auto; padding: 14px; }
  .card:nth-child(even) { margin-top: 32px; }
  .card:nth-child(odd):not(:first-child) { margin-top: -32px; }
  .works__count { display: none; }
  .art-type span { font-size: 2.2rem; }
  .art-split span { font-size: 3.6rem; }

  .process { height: auto; }
  .process__sticky { position: relative; min-height: 0; padding-block: 96px; }
  .tl__ruler, .tl__head { display: none; }
  .tl__tracks { grid-template-columns: 1fr; }
  .tl__clip, .tl__clip:nth-child(even) { transform: none; min-height: 0; }
  .tl__clip h3 { margin-top: 28px; }

  .svc__link { gap: 14px 16px; padding-inline: 8px; }
  .svc__arrow { width: 44px; height: 44px; }
  .facts { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .hero__ctas, .hero__ctas .btn { width: 100%; justify-content: center; }
  .hud__spec { display: none; }
  .svc__link { grid-template-columns: 1fr 44px; }
  .svc__no { grid-column: 1 / -1; }
  .svc__name { grid-column: 1; grid-row: 2; }
  .svc__arrow { grid-column: 2; grid-row: 2; }
  .svc__desc { grid-column: 1 / -1; grid-row: 3; }
  .contact__btns, .contact__btns .btn { width: 100%; justify-content: center; }
  .card__title { font-size: 1.05rem; }
  .card__meta { font-size: 10px; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [class^="ae-"], .js [class*=" ae-"] { opacity: 1; transform: none; filter: none; }
  .grain { display: none; }
  .reel__frame { --s: 1 !important; --y: 0 !important; }
}
