/* =========================================================
   Creativ Grid — Version 7
   Artboard values from the .ai file + version 1 header & motion.
   ========================================================= */
/* Inter 18pt — the client's font files (SIL Open Font License) */
@font-face { font-family: "Inter CG"; src: url(../assets/fonts/Inter-Light.ttf) format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Inter CG"; src: url(../assets/fonts/Inter-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter CG"; src: url(../assets/fonts/Inter-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter CG"; src: url(../assets/fonts/Inter-ExtraBold.ttf) format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --pink: #dd1764;
  --purple: #603b92;
  --navy: #0a1240;
  --green: #82fba7;
  --line: #282148;      /* grid lines + contact box */
  --white: #ffffff;
  --white-70: rgba(255,255,255,.72);
  --white-20: rgba(255,255,255,.2);
  --font: "Inter CG", Inter, Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-display: "Space Grotesk", Arial, sans-serif;
  --font-pixel: "Silkscreen", "Courier New", monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 104px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: linear-gradient(180deg in srgb, var(--pink) 26.5%, var(--purple) 100%);
  color: var(--white);
  font-family: var(--font);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: none; user-select: none; -webkit-user-drag: none; }
.svg-definitions { position: absolute; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
::selection { background: var(--green); color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; font-family: var(--font-display); font-weight: 600; font-size: 14px;
  overflow: hidden; isolation: isolate; white-space: nowrap; transition: color .35s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); }
.btn:hover::before { transform: scaleY(1); }
.btn--green { background: var(--green); color: var(--navy); }
.btn--green::before { background: var(--white); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 42%, #32162f, #100b17 72%);
  color: var(--white); clip-path: inset(0% 0 0% 0);
}
.preloader__inner { width: min(280px, 80vw); text-align: center; }
.preloader__logo {
  display: grid; justify-items: center; gap: 12px; margin-bottom: 24px;
  font-family: var(--font-pixel); font-size: 22px;
}
.preloader__bar { height: 10px; border: 1px solid var(--white-20); padding: 2px; }
.preloader__bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(105deg, var(--pink), var(--purple));
  box-shadow: 0 0 14px #dd176480;
}
.preloader__count { margin-top: 12px; font-family: var(--font-pixel); font-size: 14px; color: #ffabd0; }
.preloader__crt { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #ffabd0; transform: scaleX(0); opacity: 0; box-shadow: 0 0 30px var(--pink); }

/* ---------- Custom cursor (version 1) ---------- */
.cursor { position: fixed; inset: 0 auto auto 0; z-index: 150; pointer-events: none; transition: opacity .3s; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; }
.cursor__dot { width: 8px; height: 8px; background: var(--green); }
.cursor__ring { width: 38px; height: 38px; border: 1.5px solid var(--green); display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), background-color .35s var(--ease); }
.cursor__label { font-family: var(--font-pixel); font-size: 11px; color: var(--navy); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-hover .cursor__ring { width: 84px; height: 84px; background: var(--green); }
.cursor.is-hover .cursor__label { opacity: 1; }
.cursor.is-hidden { opacity: 0; }
@media (hover: hover) and (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; } }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Header (version 1) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h); display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gutter); color: var(--white);
}
.brand { display: inline-flex; align-items: center; gap: 12px; background: var(--pink); border-radius: 9px; }
.brand__logo { display: block; height: clamp(54px, 7.4vh, 82px); width: auto; transition: transform .4s var(--ease); }
.brand:hover .brand__logo { transform: scale(1.04); }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav__link { position: relative; font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--white-70); transition: color .3s; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: var(--white); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.sound-toggle { display: inline-flex; align-items: flex-end; justify-content: center; gap: 3px; width: 40px; height: 40px; padding: 11px 9px; border: 1px solid var(--white-20); transition: border-color .3s; }
.sound-toggle:hover { border-color: var(--green); }
.sound-toggle span { width: 3px; height: 4px; background: var(--white-70); }
.sound-toggle.is-on span { background: var(--green); animation: eq .9s ease-in-out infinite; }
.sound-toggle.is-on span:nth-child(2) { animation-delay: -.3s; }
.sound-toggle.is-on span:nth-child(3) { animation-delay: -.6s; }
.sound-toggle.is-on span:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--white); transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: var(--header-h) var(--gutter) 40px; background: var(--purple); color: var(--white);
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease);
}
.mobile-menu a { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 11vw, 56px); line-height: 1.15; }
.mobile-menu a:hover { color: var(--green); }
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); }

/* =========================================================
   STAGE — the artboard, scaled to fit
   ========================================================= */
.stage {
  position: fixed; left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  transform: translate(-50%, -50%) scale(var(--s, 0.5));
  transform-origin: 50% 50%;
  touch-action: none;
  overflow: visible clip;
}

/* 1 unit = 1 artboard pixel, from the TV group's top-left (370, 369) */
.rig {
  position: absolute; left: 370px; top: 369px; width: 1178px; aspect-ratio: 1178 / 337;
  transform: translateY(calc(var(--rig-rise, 0px) * var(--rig-progress, 0)));
  container-type: inline-size; perspective: 1600px;
}
.u { position: absolute; inset: 0; --u: calc(100cqw / 1178); transform-style: preserve-3d; }
.u > *, .bg > *, .hover-cells > *, .hand-wrap > * { position: absolute; left: calc(var(--x, 0) * var(--u)); top: calc(var(--y, 0) * var(--u)); }
.bg { --x: 0; --y: 0; width: 100%; height: 100%; z-index: 1; }

.grid-band {
  --x: calc(-370 - var(--grid-overhang, 0)); --y: -72;
  width: calc((1920 + 2 * var(--grid-overhang, 0)) * var(--u)); height: calc(486 * var(--u));
  background-image:
    linear-gradient(to right, var(--line) calc(2 * var(--u)), transparent calc(2 * var(--u))),
    linear-gradient(to bottom, var(--line) calc(2 * var(--u)), transparent calc(2 * var(--u)));
  background-size: calc(56.4706 * var(--u)) calc(53.7778 * var(--u));
  /* closing line at the bottom of the band (y = 782 in the artboard), so the grid is always closed */
  border-bottom: calc(2 * var(--u)) solid var(--line);
}
.hover-cells { --x: 0; --y: 0; width: 100%; height: 100%; }
.hcell { width: calc(54.5 * var(--u)); height: calc(51.8 * var(--u)); background: var(--green); opacity: 0; animation: hcell 1.4s ease-out forwards; }
@keyframes hcell { 0% { opacity: var(--o, .85); } 100% { opacity: 0; } }
.cell { width: calc(53.8 * var(--u)); height: calc(53.8 * var(--u)); background: var(--green); }

.tv { width: calc(var(--w) * var(--u)); z-index: 3; display: block; will-change: transform; }
.tv__float { display: block; position: relative; will-change: transform; }
.tv img { width: 100%; height: auto; }
.tv__opening, .sg--opening { filter: url("#blue-tv-palette"); }
.tv__lit { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.tv--center { z-index: 4; }

/* static, clipped to each TV's own screen */
.screen-static { position: absolute; overflow: hidden; border-radius: 12% / 14%; pointer-events: none; z-index: 1; }
.screen-static { opacity: 0; visibility: hidden; z-index: 2; }
.screen-static canvas { width: 100%; height: 100%; display: block; }

/* Two Illustrator poses, with the upper edge anchored at the artboard top. */
.hand-wrap { width: 100%; height: 100%; z-index: 7; pointer-events: none; }
.hand { width: calc(var(--w) * var(--u)); height: auto; opacity: 0; visibility: hidden; }
.sparks { width: calc(var(--w) * var(--u)); height: calc(138 * var(--u)); overflow: visible; }
.sparks polygon { fill: var(--white); transform-box: fill-box; transform-origin: center; opacity: 0; }
.ring { --x: 270; --y: -134; width: calc(300 * var(--u)); height: calc(300 * var(--u)); border: calc(4 * var(--u)) solid var(--green); border-radius: 50%; z-index: 8; opacity: 0; pointer-events: none; }

/* ---------- Screen-only glitch ---------- */
.sg { position: absolute; overflow: hidden; border-radius: 12% / 14%; pointer-events: none; z-index: 3; visibility: hidden; }
.sg--opening, .tv.is-opening-glitch .sg { display: none; }
.tv.is-opening-glitch .sg--opening { display: block; }
.sg img { position: absolute; height: auto; }
.sg .sg-r { mix-blend-mode: screen; filter: hue-rotate(-70deg) saturate(5) brightness(1.15); opacity: 0; }
.sg .sg-b { mix-blend-mode: screen; filter: hue-rotate(150deg) saturate(5) brightness(1.15); opacity: 0; }
.sg .sg-s { opacity: 0; }
.sg::after {
  content: ""; position: absolute; inset: 0; opacity: 0; mix-blend-mode: screen;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.12) 0 1px, transparent 1px 3px),
              linear-gradient(180deg, transparent 0 40%, rgba(130,250,167,.35) 40% 44%, transparent 44%);
  background-size: 100% 100%, 100% 300%;
}
.tv.is-glitching .sg { visibility: visible; }
.tv.is-glitching .sg-r { animation: sg-a .42s steps(4) both; }
.tv.is-glitching .sg-b { animation: sg-b .42s steps(4) both; }
.tv.is-glitching .sg-s { animation: sg-slice .42s steps(3) both; }
.tv.is-glitching .sg::after { animation: sg-scan .42s steps(6) both; }
.tv.is-glitching.is-hard .sg-r, .tv.is-glitching.is-hard .sg-b, .tv.is-glitching.is-hard .sg-s, .tv.is-glitching.is-hard .sg::after { animation-duration: .8s; }
.tv.is-glitching.is-soft .sg { opacity: .48; }
.tv.is-glitching.is-soft .sg-r, .tv.is-glitching.is-soft .sg-b, .tv.is-glitching.is-soft .sg-s, .tv.is-glitching.is-soft .sg::after { animation-duration: .36s; }
@keyframes sg-a {
  0% { opacity: .95; clip-path: inset(12% 0 64% 0); transform: translate(-7%, 0); }
  25% { opacity: .95; clip-path: inset(52% 0 22% 0); transform: translate(6%, 0); }
  50% { opacity: .9; clip-path: inset(30% 0 46% 0); transform: translate(-4%, 0); }
  75% { opacity: .9; clip-path: inset(70% 0 8% 0); transform: translate(3%, 0); }
  100% { opacity: 0; clip-path: inset(0); transform: none; }
}
@keyframes sg-b {
  0% { opacity: .9; clip-path: inset(60% 0 14% 0); transform: translate(6%, 0); }
  25% { opacity: .9; clip-path: inset(18% 0 58% 0); transform: translate(-6%, 0); }
  50% { opacity: .85; clip-path: inset(44% 0 34% 0); transform: translate(4%, 0); }
  75% { opacity: .85; clip-path: inset(6% 0 80% 0); transform: translate(-2%, 0); }
  100% { opacity: 0; clip-path: inset(0); transform: none; }
}
@keyframes sg-slice {
  0% { opacity: 1; clip-path: inset(38% 0 40% 0); transform: translate(9%, 0) skewX(-8deg); filter: brightness(1.6); }
  33% { opacity: 1; clip-path: inset(8% 0 76% 0); transform: translate(-10%, 0); filter: brightness(1.3); }
  66% { opacity: 1; clip-path: inset(66% 0 16% 0); transform: translate(5%, 0) skewX(6deg); }
  100% { opacity: 0; clip-path: inset(0); transform: none; filter: none; }
}
@keyframes sg-scan { 0% { opacity: 1; background-position: 0 0, 0 0%; } 100% { opacity: 0; background-position: 0 0, 0 100%; } }

/* ---------- Scroll cue (artboard 1) ---------- */
.cue { position: absolute; left: 880px; top: 940px; width: 160px; height: 110px; color: var(--white); }
.cue__arrow { position: absolute; left: 35.4px; top: 8.5px; width: 89.2px; height: 44.6px; fill: none; stroke: currentColor; stroke-width: 2; overflow: visible; animation: cue 1.8s ease-in-out infinite; }
.cue__text { font-family: Arial, sans-serif; position: absolute; left: 0; right: 0; top: calc(97px - 16.4px); font-size: 19px; line-height: 1; white-space: nowrap; text-align: center; }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- Final artboard ---------- */
.info {
  --contact-height: 112px;
  --contact-bottom: 8px;
  position: absolute; inset: 0; pointer-events: none;
}
.copy {
  --crawl-height: calc(536px - var(--contact-height) - var(--contact-bottom));
  position: absolute; left: 0; right: 0; top: 509px;
  text-align: center; color: var(--green);
}
.copy__window {
  height: var(--crawl-height); overflow: clip;
  mask-image: linear-gradient(transparent, #000 22%, #000 88%, transparent);
}
.copy__plane {
  height: 100%;
  transform: perspective(calc(var(--crawl-height) * 2.1)) rotateX(40deg);
  transform-origin: center bottom;
  clip-path: inset(-150% 0 0);
}
.copy__track {
  width: min(90%, 1760px); margin-inline: auto;
  font-size: 70px; font-weight: 500; line-height: 1.097;
  letter-spacing: .031em; white-space: nowrap;
  transform: translateY(var(--crawl-height));
}
.copy__pass { padding-bottom: calc(var(--crawl-height) * .44); }
.copy__pass > * { margin: 0; font: inherit; }
.copy__pass > * + * { margin-top: .84em; }
.copy__pass h1 { font-weight: 800; letter-spacing: .022em; }
.contact strong { font-weight: 800; }
.stage.is-done .copy__track {
  animation: copy-enter var(--crawl-entry, 7s) linear,
    copy-crawl var(--crawl-duration, 24s) linear var(--crawl-entry, 7s) infinite;
}
.stage.is-done .copy.is-paused .copy__track { animation-play-state: paused; }
@keyframes copy-enter {
  from { transform: translateY(var(--crawl-height)); }
  to { transform: translateY(calc(-100% / 3)); }
}
@keyframes copy-crawl {
  from { transform: translateY(calc(-100% / 3)); }
  to { transform: translateY(calc(-200% / 3)); }
}
.copy__controls { display: flex; justify-content: flex-end; margin: -3px 38px 0 0; }
.copy__control {
  position: relative; min-height: 36px; padding: 0 12px; border-radius: 4px;
  color: var(--white); font-size: 20px;
}
.stage.is-done .copy__control { pointer-events: auto; }
.copy__control:hover { text-decoration: underline; }

.contact {
  position: absolute; left: 0; right: 0; bottom: var(--contact-bottom); height: var(--contact-height);
  display: grid; grid-template-rows: repeat(2, minmax(0, 1fr));
  justify-items: center; color: var(--white);
  font-size: 16.8px; font-weight: 500; line-height: 1;
}
:root:not(.is-mobile) .contact::before,
:root:not(.is-mobile) .contact::after {
  content: "";
  position: absolute; left: 50%; transform: translateX(-50%);
  width: calc(100vw / var(--s, .5)); box-sizing: border-box;
}
:root:not(.is-mobile) .contact::before {
  top: 0; height: 50%;
  border-block: 2px solid var(--line);
}
:root:not(.is-mobile) .contact::after {
  bottom: 0;
  border-bottom: 2px solid var(--line);
}
.contact__details, .contact__address { border: 2px solid var(--line); }
.contact__details {
  display: grid; grid-template-columns: 550px 57px 410px 520px;
}
.contact__link, .contact__tagline { display: flex; align-items: center; justify-content: center; }
.contact__link { gap: 4.6px; white-space: nowrap; }
.contact__tagline {
  margin: 0; border-right: 2px solid var(--line);
  color: var(--green); font-size: 23.74px; font-weight: 800;
}
.contact__arrow { width: 20px; height: 36px; align-self: center; justify-self: center; fill: none; stroke: var(--white); stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) {
  .stage.is-done .contact__arrow { animation: contact-blink 2.25s ease-in-out infinite; }
}
@keyframes contact-blink {
  0%, 25%, 100% { opacity: 1; }
  60% { opacity: .22; }
}
.contact__link { border-left: 2px solid var(--line); }
.contact__address {
  display: flex; align-items: center; justify-content: center;
  padding: 0 40px; border-top: 0;
  font-style: normal; text-align: center;
}
.stage.is-done .contact__link, .stage.is-done .contact__address { pointer-events: auto; }
.contact__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact__link:focus-visible { outline-offset: -3px; }

.flash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 20; }

/* =========================================================
   Small screens: same design stacked
   ========================================================= */
.is-mobile { --header-h: 76px; }
.is-mobile .nav, .is-mobile .site-header > .btn { display: none; }
.is-mobile .menu-toggle { display: block; margin-left: 6px; }
.is-mobile .sound-toggle { margin-left: auto; }

.is-mobile .stage { left: 0; top: 0; width: 100%; height: 100%; transform: none; overflow: hidden; }
.is-mobile .stage.is-done { overflow-y: auto; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.is-mobile .rig { left: 3vw; width: 94vw; top: var(--rigTop, 40vh); }
.is-mobile .grid-band { --grid-overhang: 0; }
.is-mobile .stage.is-done .bg, .is-mobile .hand-wrap { left: -3vw; width: 100vw; overflow-x: clip; }
.is-mobile .stage.is-done .bg > *, .is-mobile .hand-wrap > * { margin-left: 3vw; }
.is-mobile .hand { scale: 1.16 1; transform-origin: left top; }
.is-mobile .cue { left: 50%; top: auto; bottom: 6vh; width: 140px; height: 90px; margin-left: -70px; }
.is-mobile .cue__arrow { left: 46px; top: 0; width: 48px; height: 24px; }
.is-mobile .cue__text { left: 0; right: 0; top: 44px; font-size: 14px; text-align: center; }
.is-mobile .site-header { background: linear-gradient(var(--pink) 76%, transparent); }
.is-mobile .brand__logo { height: 52px; }
.is-mobile .info { inset: auto 20px auto; top: var(--infoTop, 60vh); padding-bottom: 24px; }
.is-mobile .copy {
  --crawl-height: clamp(230px, 37svh, 380px);
  position: static; margin-inline: -12px; container-type: inline-size;
}
.is-mobile .copy__track { width: 100%; font-size: min(1.75rem, 4.1cqi); }
.is-mobile .copy__controls { margin: 0; }
.is-mobile .copy__control { min-height: 44px; font-size: 14px; }
.is-mobile .contact {
  position: static; display: block; height: auto; margin-top: 4px;
  font-size: 0.95rem; line-height: 1.45;
}
.is-mobile .contact__details { display: block; border-width: 1px; }
.is-mobile .contact__arrow { display: none; }
.is-mobile .contact__link, .is-mobile .contact__tagline, .is-mobile .contact__address {
  display: block; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--line);
  white-space: normal; overflow-wrap: anywhere; text-align: center;
}
.is-mobile .contact__tagline { font-size: 1rem; }
.is-mobile .contact__link:last-child { border-bottom: 0; }
.is-mobile .contact__address { border: 1px solid var(--line); border-top: 0; font-size: .875rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .copy__control[aria-controls="copy-window"], .copy__pass[aria-hidden] { display: none; }
  .stage.is-done .copy__window { overflow-y: auto; scrollbar-width: thin; mask-image: none; pointer-events: auto; }
  .copy__window:focus-visible { outline-offset: -3px; }
  .copy__plane { height: auto; transform: none; clip-path: none; }
  .stage.is-done .copy__track { animation: none; transform: none; }
  .copy .copy__track { padding-block: 12px 24px; }
  .copy__pass { padding-bottom: 0; }
}
