/* =========================================================
   Polypix Studios — landing page
   Visual language modelled on huly.io: void-black canvas, volumetric
   light, halftone "particle" glows and light-leak buttons.
   ========================================================= */
:root {
  /* Colors */
  --void: #090a0c;
  --ink: #111111;
  --card: #0c0d10;
  --card-2: #15161a;
  --slate: #4a4b50;
  --iron: #6b6c6d;
  --smoke: #95979e;
  --ash: #a9a9aa;
  --frost: #d1d1d1;
  --light: #f6f6f6;
  --text-dark: #090a0c;
  --text-dim-dark: #4a4b50;
  --iris: #5683da;
  --iris-hot: #4a7bff;
  --ember: #ff8964;
  --ember-hot: #ff6a2b;
  --molasses: #5a250a;

  /* Fonts — Sora stands in for huly's proprietary display face */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Sora', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --page-max: 1200px;
  --gutter: 24px;
  --section-y: 144px;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --intro-scale: 1;

  /* Halftone dot mask used by every "particle" glow */
  --dots: radial-gradient(circle at center, #000 1.15px, transparent 1.75px);
  --dots-size: 5px 5px;
}
.intro-quick { --intro-scale: .35; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--iris); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(255, 137, 100, .35); }

.container { width: 100%; max-width: calc(var(--page-max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; margin-top: 56px; }

/* ---------- Type ---------- */
.display, .display-lg, .display-md, .display-sm { font-family: var(--font-display); margin: 0; font-weight: 500; }
.display    { font-size: clamp(46px, 7.2vw, 92px); line-height: .96; letter-spacing: -0.05em; }
.display-lg { font-size: clamp(40px, 6vw, 80px);   line-height: 1;   letter-spacing: -0.048em; }
.display-md { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.02; letter-spacing: -0.04em; }
.display-sm { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.05; letter-spacing: -0.035em; }

.kicker {
  display: inline-block; margin-bottom: 18px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ember);
}
.kicker--dark { color: var(--iris); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 12px; margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
  background: rgba(255,255,255,.04); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 500; color: var(--frost);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--iris); display: inline-block; box-shadow: 0 0 10px var(--iris); }
.dot--ember { background: var(--ember); box-shadow: 0 0 10px var(--ember); }

.tag {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: 999px; font-size: 11px; font-weight: 500; line-height: 1.38; white-space: nowrap;
}
.tag--iris  { color: #8fb0f0; background: rgba(86,131,218,.16); }
.tag--ember { color: var(--ember); background: rgba(255,137,100,.14); }

/* =========================================================
   BUTTONS
   ========================================================= */

/* Light-leak button — a faithful rebuild of huly's "SEE IN ACTION".
   Two blurred gradient pills bleed ember light past the edge; a white-hot
   light blob inside the face follows the cursor (script.js). */
.lbtn {
  position: relative; z-index: 1; display: inline-flex; align-items: center;
  padding: 0; border: 0; background: none; text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.lbtn__blur {
  position: absolute; left: 50%; top: 50%; width: calc(100% + 9px); height: calc(100% + 9px);
  transform: translate(-50%, -50%); border: 3px solid transparent; border-radius: 999px;
  pointer-events: none; will-change: transform, opacity; transition: opacity .3s ease;
}
.lbtn__blur--mirror { transform: translate(-50%, -50%) scaleX(-1); opacity: 0; }
.lbtn__blur::before, .lbtn__blur::after {
  content: ""; position: absolute; box-sizing: content-box; width: 100%; height: 100%;
  border-style: solid; border-color: transparent; border-radius: 999px;
}
.lbtn__blur::before {
  left: -2px; top: -2px; z-index: 1; border-width: 2px; filter: blur(2px);
  background: linear-gradient(97.68deg, rgba(255,177,153,0) 38.1%, rgba(255,177,153,.2) 82.47%, #ff7950 93.3%) border-box;
}
.lbtn__blur::after {
  left: -3px; top: -3px; z-index: 2; border-width: 3px; filter: blur(15px);
  background: linear-gradient(91.88deg, rgba(255,137,100,.2) 46.45%, #cd3100 98.59%) border-box;
}
.lbtn__ring {
  position: relative; display: block; width: 100%; height: 100%;
  border: 1px solid transparent; border-radius: 999px;
  background: linear-gradient(103.7deg, rgba(188,155,143,.1) 38.66%, rgba(233,132,99,.1) 68.55%, #e98463 85.01%, #fff 92.12%) border-box;
}
.lbtn__ring::before {
  content: ""; position: absolute; left: -2px; top: -2px; z-index: 3; box-sizing: content-box;
  width: 100%; height: 100%; border: 2px solid transparent; border-radius: 999px; filter: blur(7px);
  background: linear-gradient(91.96deg, rgba(255,177,153,0) 6.11%, rgba(255,177,153,.2) 53.57%, #ff7950 93.6%) border-box;
}
.lbtn__face {
  position: relative; z-index: 10; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 58px 0 62px; width: 100%;
  border: 1px solid rgba(255,255,255,.6); border-radius: 999px; background: #d1d1d1;
  color: var(--molasses); font: 700 12px/18px var(--font-sans); letter-spacing: -0.015em; text-transform: uppercase;
  white-space: nowrap;
}
.lbtn__light {
  position: absolute; z-index: -1; left: 50%; top: 50%; width: 204px; height: 0; margin-left: -102px;
  transform: translate3d(var(--lx, 0px), 0, 0); transition: transform .35s var(--ease-out);
  pointer-events: none;
}
.lbtn__light i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.lbtn__light i:first-child {
  width: 121px; height: 121px;
  background: radial-gradient(50% 50% at 50% 50%, #fffff5 3.5%, #ffaa81 26.5%, #ffda9f 37.5%, rgba(255,170,129,.5) 49%, rgba(210,106,58,0) 92.5%);
}
.lbtn__light i:last-child {
  width: 204px; height: 103px; filter: blur(5px);
  background: radial-gradient(43.3% 44.23% at 50% 49.51%, #fffff7 29%, #fffacd 48.5%, #f4d2bf 60.71%, rgba(214,211,210,0) 100%);
}
.lbtn__arrow { width: 17px; height: 9px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
.lbtn:hover .lbtn__arrow { transform: translateX(3px); }
.lbtn:active .lbtn__face { transform: scale(.985); }
.lbtn--block { display: flex; width: 100%; }

/* Grey outline pill — huly's SIGN IN / SIGN UP */
.gbtn {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 24px; border: 0; border-radius: 999px; background: none;
  color: #fff; font: 700 12px/1 var(--font-sans); letter-spacing: -0.015em; text-transform: uppercase; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.gbtn::before, .gbtn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid transparent; border-radius: inherit;
  transition: opacity .2s ease;
}
.gbtn::before { background: linear-gradient(var(--void), var(--void)) padding-box, linear-gradient(rgba(255,255,255,.3), rgba(255,255,255,.15)) border-box; }
.gbtn::after  { opacity: 0; background: linear-gradient(#17171a, #17171a) padding-box, linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.25)) border-box; }
.gbtn:hover::before { opacity: 0; }
.gbtn:hover::after  { opacity: 1; }
.gbtn--sm { height: 32px; padding: 0 16px; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  border-bottom: 1px solid transparent;
  transition: transform .5s var(--ease-out), background-color .3s ease, border-color .3s ease;
}
.nav.is-scrolled {
  background: rgba(9,10,12,.72); border-bottom-color: rgba(255,255,255,.06);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
}
.nav.is-hidden { transform: translate3d(0, -100%, 0); }
.nav__inner { max-width: 1288px; height: 64px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 40px; }
.nav__brand { display: flex; align-items: center; gap: 10px; flex: none; }
.nav__name { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.nav__name em { font-style: normal; font-weight: 400; color: rgba(255,255,255,.78); }
.nav__logo { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; mix-blend-mode: screen; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.86); transition: color .2s; }
.nav__links a:hover { color: #fff; }
.nav__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav__star { display: inline-flex; align-items: center; gap: 7px; margin-right: 10px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.86); }
.nav__star svg { width: 17px; height: 17px; fill: currentColor; }
.nav__star:hover { color: #fff; }
.nav__toggle {
  display: none; position: relative; width: 40px; height: 40px; padding: 0;
  background: none; border: 1px solid rgba(255,255,255,.18); border-radius: 50%;
}
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease-out); }
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 22px; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(3px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* =========================================================
   INTRO — first-open sequence (driven by html.is-ready from script.js;
   hero-beam.js strikes the frame on the same clock)
   ========================================================= */
.js .intro { opacity: 0; transform: translate3d(0, 22px, 0); filter: blur(8px); }
.js.is-ready .intro {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * var(--intro-scale) * 1s);
}
.js.intro-done .intro { filter: none; }
.js .nav__inner { opacity: 0; transform: translate3d(0, -14px, 0); }
.js.is-ready .nav__inner {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(1.1s * var(--intro-scale));
}
.js .hero__frame { opacity: 0; transform: translate3d(0, 56px, 0) scale(.98); }
.js.is-ready .hero__frame {
  opacity: 1; transform: none;
  transition: opacity 1.2s var(--ease-out), transform 1.6s var(--ease-out);
  transition-delay: calc(.9s * var(--intro-scale));
}

/* Split headings: each word rises out of its own mask */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .12em; margin: 0 -.02em -.12em; }
[data-split] .w > span { display: inline-block; }
.js [data-split] .w > span {
  transform: translate3d(0, 112%, 0) rotate(5deg); transform-origin: 0 100%;
  transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--i) * 70ms + var(--split-delay, 0ms));
}
.js [data-split].is-in .w > span { transform: none; }
.hero__title { --split-delay: calc(300ms * var(--intro-scale)); }

/* Scroll reveals */
.js .reveal { opacity: 0; transform: translate3d(0, 36px, 0); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--void); padding: 168px 0 0; }
.hero__fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.beam-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* CSS fallback beam when WebGL is unavailable */
.beam-fallback { position: absolute; inset: 0; display: none; }
.no-webgl .beam-fallback { display: block; }
.no-webgl .beam-canvas { display: none; }
.beam {
  position: absolute; top: -10%; left: var(--hit-x, 62%); width: 180px; height: var(--hit-y, 70%); margin-left: -90px;
  background: radial-gradient(50% 100% at 50% 100%, rgba(120,140,255,.7), rgba(70,90,255,.18) 50%, transparent 75%);
  filter: blur(20px);
}
.beam--thin { width: 3px; margin-left: -1.5px; filter: blur(.6px); background: linear-gradient(180deg, transparent, rgba(190,205,255,.9) 40%, #fff); box-shadow: 0 0 18px 4px rgba(90,120,255,.7); }
.sunburst {
  position: absolute; left: var(--hit-x, 62%); top: var(--hit-y, 70%); width: 900px; height: 300px; transform: translate(-50%, -60%);
  background: radial-gradient(closest-side, rgba(255,255,255,.85), rgba(150,140,255,.35) 30%, transparent 70%);
}

/* Cursor-revealed wireframe mesh (desktop pointers only). A small square follows
   the cursor; its background is counter-shifted so the grid stays pinned to the hero. */
.hero__mesh {
  position: absolute; left: 0; top: 0; width: 560px; height: 560px;
  opacity: 0; transition: opacity .5s ease; will-change: transform;
  background-image:
    linear-gradient(rgba(170,190,255,.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170,190,255,.28) 1px, transparent 1px),
    linear-gradient(45deg, transparent calc(50% - .7px), rgba(170,190,255,.17) 50%, transparent calc(50% + .7px));
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(closest-side, #000 12%, rgba(0,0,0,.45) 52%, transparent);
          mask-image: radial-gradient(closest-side, #000 12%, rgba(0,0,0,.45) 52%, transparent);
  mix-blend-mode: screen;
}
.hero.is-pointer .hero__mesh { opacity: 1; }
.hero__coords {
  position: absolute; left: calc(50% + 18px); top: calc(50% + 18px); white-space: pre;
  padding: 5px 9px; border-radius: 6px; border: 1px solid rgba(170,190,255,.22); background: rgba(9,10,12,.7);
  font: 500 10.5px/1.45 var(--font-mono); letter-spacing: 0; color: rgba(205,215,255,.9);
}

.hero__inner { position: relative; }
.hero__copy { max-width: 660px; }
.hero__title { margin-bottom: 26px; color: #fff; }
/* Per-word gradient: background-clip:text on the h1 would skip the transformed word spans */
.hero__title .w > span { background: linear-gradient(180deg, #fff 30%, #d6d6ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lede { font-size: 18px; line-height: 1.5; letter-spacing: -0.02em; color: rgba(255,255,255,.82); max-width: 500px; margin: 0 0 40px; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }

.hero__frame {
  position: relative; margin: 118px 0 0; width: 100%;
  border-radius: 12px; background: #0e0f12; border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 50px 140px rgba(0,0,0,.75);
}
.no-webgl .hero__frame::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; z-index: 5; pointer-events: none;
  background: linear-gradient(90deg, transparent 5%, rgba(160,150,255,.6) 35%, #fff 62%, rgba(160,150,255,.6) 88%, transparent);
}
.frame__bar {
  display: flex; align-items: center; gap: 14px; padding: 11px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06); border-radius: 12px 12px 0 0;
  font-size: 12px; color: var(--smoke);
  background: radial-gradient(60% 280% at 62% 0%, rgba(170,160,255,.16), transparent 70%);
}
.frame__dots { display: flex; gap: 6px; flex: none; }
.frame__dots i { width: 10px; height: 10px; border-radius: 50%; background: #2d2e33; }
.frame__path { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame__path b { color: #fff; font-weight: 500; }
.frame__chip {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(17,17,17,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.1); box-shadow: 0 4px 16px rgba(0,0,0,.35);
  font-size: 12px; font-weight: 500;
  animation: float 6s ease-in-out infinite;
}
.frame__chip--a { left: -28px; bottom: 22%; }
.frame__chip--b { right: -18px; top: 26%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Carousel inside the frame */
.showcase {
  position: relative; aspect-ratio: 16 / 8.4; overflow: hidden; outline: none;
  border-radius: 0 0 12px 12px; background: #0b0c0e; touch-action: pan-y;
}
.showcase__slides, .showcase__slide { position: absolute; inset: 0; margin: 0; }
.showcase__slide { opacity: 0; transition: opacity 1s ease; }
.showcase__slide.is-active { opacity: 1; z-index: 1; }
.showcase__slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08); transition: transform 7s cubic-bezier(.2,.6,.3,1);
}
.showcase__slide.is-active img { transform: scale(1); }
.showcase__slide--crop img { transform-origin: 50% 22%; transform: scale(1.34); }
.showcase__slide--crop.is-active img { transform: scale(1.26); }
.showcase::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 42%; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(9,10,12,.8));
}
.showcase__nav {
  position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px;
  display: grid; place-items: center; padding: 0; border-radius: 50%;
  background: rgba(17,17,17,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.14);
  opacity: 0; transition: opacity .25s, background .2s, transform .2s;
}
.showcase__nav svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.showcase__nav--prev { left: 16px; }
.showcase__nav--next { right: 16px; }
.showcase:hover .showcase__nav, .showcase:focus-within .showcase__nav { opacity: 1; }
.showcase__nav:hover { background: rgba(255,255,255,.95); transform: scale(1.06); }
.showcase__nav:hover svg { stroke: var(--void); }
.showcase__bar {
  position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.showcase__title { font-family: var(--font-display); font-size: clamp(17px, 2.1vw, 26px); font-weight: 500; letter-spacing: -0.03em; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.showcase__dots { display: flex; gap: 6px; flex: none; }
.showcase__dots button {
  position: relative; width: 22px; height: 4px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.28); overflow: hidden; transition: width .4s var(--ease-out);
}
.showcase__dots button::before { content: ""; position: absolute; inset: -10px -2px; } /* bigger tap target */
.showcase__dots button.is-active { width: 44px; }
.showcase__dots button.is-active::after {
  content: ""; position: absolute; inset: 0; transform-origin: left; border-radius: inherit;
  background: linear-gradient(90deg, var(--iris), var(--ember));
  animation: dotFill 5.5s linear forwards;
}
.showcase.is-paused .showcase__dots button.is-active::after { animation-play-state: paused; }
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero__tags {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  margin: 0; padding: 40px 0 72px; font-size: 14px; color: rgba(255,255,255,.62);
}
.hero__tags b { color: #fff; font-weight: 600; }
.hero__tags i { font-style: normal; color: var(--slate); }

/* =========================================================
   PROOF — stats + clients
   ========================================================= */
.proof { background: var(--void); border-top: 1px solid rgba(255,255,255,.06); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 36px 24px; border-left: 1px solid rgba(255,255,255,.06); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: var(--font-display); font-size: 34px; font-weight: 500; letter-spacing: -0.045em; line-height: 1; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.stat span { color: var(--smoke); font-size: 13px; }
.clients { padding: 40px 0 52px; border-top: 1px solid rgba(255,255,255,.06); }
.clients__label { text-align: center; margin: 0 0 24px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--iron); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__dup { display: flex; }
.client {
  display: flex; align-items: center; justify-content: center;
  min-width: 190px; height: 64px; padding: 0 34px; color: var(--smoke);
  border-right: 1px solid rgba(255,255,255,.06);
}
.client img { max-height: 48px; max-width: 140px; width: auto; filter: brightness(0) invert(.58); transition: filter .25s; }
.client:hover img { filter: brightness(0) invert(.92); }
.client img.is-square { max-height: 60px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { position: relative; padding: var(--section-y) 0; overflow: hidden; }
.section--dark  { background: var(--void); }
.section--ink   { background: var(--ink); }
.section--light { background: var(--light); color: var(--text-dark); }
.section__head { max-width: 760px; margin-bottom: 64px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section__lede { font-size: 18px; line-height: 1.5; letter-spacing: -0.02em; color: var(--smoke); margin: 24px 0 0; max-width: 540px; }
.section--light .section__lede { color: var(--text-dim-dark); }
.section__head--center .section__lede { margin-inline: auto; }
.section__head--row .section__lede { margin: 0; max-width: 420px; }

/* =========================================================
   HALFTONE GLOW BOX — huly's "Sync with GitHub" card.
   Two lights orbit the card edge: a crisp rim, a soft haze and a
   dotted particle halo. Orbs are positioned by script.js.
   ========================================================= */
.glowbox { position: relative; isolation: isolate; --gi: 120px; --gr: 24px; }
.glowbox > :not(.glow) { position: relative; z-index: 1; border-radius: var(--gr); }
.glow { position: absolute; inset: 0; pointer-events: none; }
.glow > div { position: absolute; }
.glow i { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.glow__dots {
  inset: calc(var(--gi) * -1); z-index: 0; overflow: hidden;
  -webkit-mask-image: var(--dots), linear-gradient(90deg, transparent, #000 var(--gi), #000 calc(100% - var(--gi)), transparent), linear-gradient(transparent, #000 var(--gi), #000 calc(100% - var(--gi)), transparent);
          mask-image: var(--dots), linear-gradient(90deg, transparent, #000 var(--gi), #000 calc(100% - var(--gi)), transparent), linear-gradient(transparent, #000 var(--gi), #000 calc(100% - var(--gi)), transparent);
  -webkit-mask-size: var(--dots-size), 100% 100%, 100% 100%;
          mask-size: var(--dots-size), 100% 100%, 100% 100%;
  -webkit-mask-composite: source-in, source-in;
          mask-composite: intersect;
}
.glow__dots i { width: 620px; height: 620px; margin: -310px 0 0 -310px; }
.glow__dots i:first-child { background: radial-gradient(closest-side, #ff9a62, rgba(255,110,50,.8) 30%, rgba(255,90,40,.32) 60%, transparent); }
.glow__dots i:last-child  { background: radial-gradient(closest-side, #7aa8ff, rgba(60,110,255,.8) 30%, rgba(50,90,255,.3) 60%, transparent); }
.glow__haze { inset: 0; z-index: 0; }
.glow__haze i { width: 360px; height: 360px; margin: -180px 0 0 -180px; }
.glow__haze i:first-child { background: radial-gradient(closest-side, #ffd2b8, rgba(255,130,70,.75) 28%, rgba(255,100,50,.25) 58%, transparent); }
.glow__haze i:last-child  { background: radial-gradient(closest-side, #d8e4ff, rgba(90,130,255,.75) 28%, rgba(60,100,255,.25) 58%, transparent); }
.glow__rim {
  inset: 0; z-index: 2; overflow: hidden; border-radius: var(--gr); padding: 2px;
  background: rgba(255,255,255,.1);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
.glow__rim i { width: 460px; height: 460px; margin: -230px 0 0 -230px; }
.glow__rim i:first-child { background: radial-gradient(closest-side, #fff 4%, #ffd9c4 16%, #ff8a55 40%, rgba(255,106,43,0) 100%); }
.glow__rim i:last-child  { background: radial-gradient(closest-side, #fff 4%, #d4e2ff 16%, #5b8cff 40%, rgba(74,123,255,0) 100%); }

/* =========================================================
   SERVICES — bento of dark cards on light, each with its own light
   ========================================================= */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bcard {
  position: relative; overflow: hidden; isolation: isolate; min-height: 460px;
  border-radius: 16px; background: var(--card); color: #fff;
  box-shadow: 0 30px 60px -30px rgba(9,10,12,.45);
}
.bcard--wide { grid-column: span 2; }
.bcard::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 42%; z-index: 4; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,13,16,0), var(--card) 78%);
}
.bcard__text { position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 5; margin: 0; max-width: 470px; font-size: 16px; line-height: 1.45; letter-spacing: -0.015em; color: #8f9199; }
.bcard__text b { color: #fff; font-weight: 600; }
/* Effects idle until the card is on screen */
.bcard [class*="fx-"] *, .bcard [class*="fx-"] { animation-play-state: paused; }
.bcard.is-live [class*="fx-"] *, .bcard.is-live [class*="fx-"] { animation-play-state: running; }

/* Environments — a beam of ember light strikes the viewport */
.fx-strike { position: absolute; inset: 0; }
.fx-strike__dots {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease .7s;
  background:
    radial-gradient(55% 60% at 50% 32%, rgba(255,120,60,.95), rgba(255,95,40,.4) 40%, transparent 72%),
    radial-gradient(22% 45% at 50% 0%, rgba(255,160,110,.6), transparent 80%);
  -webkit-mask: var(--dots) 0 0 / var(--dots-size); mask: var(--dots) 0 0 / var(--dots-size);
}
.fx-strike__beam {
  position: absolute; left: 50%; top: 0; width: 2px; height: 30%; margin-left: -1px; z-index: 2;
  background: linear-gradient(180deg, rgba(255,170,120,0), rgba(255,190,150,.8) 55%, #fff);
  box-shadow: 0 0 10px 1px rgba(255,130,70,.9), 0 0 36px 8px rgba(255,100,40,.4);
  transform: scaleY(0); transform-origin: top; transition: transform .75s cubic-bezier(.55,0,.8,.3) .15s;
}
.fx-strike__beam::before {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 260px; height: 140%; transform: translateX(-50%);
  background: radial-gradient(50% 100% at 50% 100%, rgba(255,120,60,.5), transparent 70%); filter: blur(8px);
}
.fx-strike__beam::after {
  content: ""; position: absolute; left: 50%; bottom: -12px; width: 360px; height: 24px; transform: translateX(-50%);
  background: radial-gradient(closest-side, #fff, rgba(255,205,170,.85) 22%, rgba(255,110,60,.3) 60%, transparent);
}
.fx-strike__win {
  position: absolute; left: 50%; top: 30%; width: min(80%, 660px); height: 82%; z-index: 1; transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.12); border-bottom: 0; border-radius: 12px 12px 0 0; background: #111; overflow: hidden;
}
.fx-strike__win::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(255,138,90,.7) 22%, #fff 50%, rgba(255,138,90,.7) 78%, transparent);
  transform: scaleX(0); transition: transform 1.1s var(--ease-out) .85s;
}
.fx-strike__bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; background: #121316; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 11px; color: var(--smoke); }
.fx-strike__bar .tag { margin-left: auto; }
.fx-strike__win img { width: 100%; height: calc(100% - 34px); object-fit: cover; opacity: .9; transform: scale(1.08); transition: transform 1.2s var(--ease-out); }
.bcard.is-in .fx-strike__beam { transform: scaleY(1); }
.bcard.is-in .fx-strike__dots { opacity: 1; }
.bcard.is-in .fx-strike__win::before { transform: scaleX(1); }
.bcard:hover .fx-strike__win img { transform: scale(1.12); }

/* Props — rotating halftone light ring */
.fx-ring { position: absolute; inset: 0; }
.fx-ring__dots, .fx-ring__glow, .fx-ring__hole { position: absolute; left: 50%; top: 40%; border-radius: 50%; transform: translate(-50%, -50%); }
.fx-ring__dots {
  width: 150%; aspect-ratio: 1; overflow: hidden;
  -webkit-mask-image: var(--dots), radial-gradient(closest-side, transparent 22%, #000 36%, #000 52%, transparent 88%);
          mask-image: var(--dots), radial-gradient(closest-side, transparent 22%, #000 36%, #000 52%, transparent 88%);
  -webkit-mask-size: var(--dots-size), 100% 100%; mask-size: var(--dots-size), 100% 100%;
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.fx-ring__dots i {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 200deg, #ff6a2b, #ffc09a 40deg, rgba(255,106,43,.15) 110deg, rgba(40,80,255,.15) 170deg, #3d6bff 220deg, #9ab8ff 262deg, rgba(61,107,255,.15) 320deg, #ff6a2b);
  animation: spin 16s linear infinite;
}
.fx-ring__glow {
  width: 44%; aspect-ratio: 1;
  background: conic-gradient(from 200deg, rgba(255,120,60,.9), rgba(255,200,170,.9) 50deg, rgba(255,106,43,0) 130deg, rgba(61,107,255,0) 160deg, rgba(80,120,255,.9) 230deg, rgba(160,190,255,.9) 270deg, rgba(61,107,255,0) 330deg, rgba(255,120,60,.9));
  filter: blur(14px); opacity: .85; animation: spin 16s linear infinite;
}
.fx-ring__hole {
  width: 33%; aspect-ratio: 1; overflow: hidden; background: #000;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 0 0 7px rgba(9,10,12,.92), 0 24px 60px rgba(0,0,0,.7);
}
.fx-ring__hole img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.bcard:hover .fx-ring__hole img { transform: scale(1.1); }
.fx-ring__badge {
  position: absolute; left: calc(50% + 11%); top: calc(40% - 16%); z-index: 2;
  padding: 3px 7px; border-radius: 999px; background: #ff5a3c; box-shadow: 0 0 0 3px var(--card), 0 0 16px rgba(255,90,60,.8);
  font-size: 11px; font-weight: 700; line-height: 1.2;
}

/* Materials — a shaded material ball rolling its texture */
.fx-sphere { position: absolute; inset: 0; }
.fx-sphere__dots {
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 40% at 50% 38%, #9dbaff, rgba(70,110,255,.75) 40%, transparent 78%),
    radial-gradient(70% 60% at 50% 38%, rgba(60,95,255,.35), transparent 80%);
  -webkit-mask: var(--dots) 0 0 / var(--dots-size); mask: var(--dots) 0 0 / var(--dots-size);
}
.fx-sphere__ball {
  position: absolute; left: 50%; top: 38%; width: min(46%, 220px); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; overflow: hidden;
  background: #2a2522 url("assets/portfolio/stone-cliff.jpg") 0 50% / 220% 100% repeat-x;
  box-shadow: 0 30px 60px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.06);
  animation: roll 26s linear infinite;
}
.fx-sphere__ball i {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 33% 28%, rgba(255,255,255,.5), rgba(255,255,255,0) 26%),
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 46%, rgba(0,0,0,.55) 70%, rgba(0,0,0,.9) 100%),
    radial-gradient(circle at 80% 84%, rgba(90,140,255,.6), rgba(90,140,255,0) 38%);
  box-shadow: inset -12px -14px 30px rgba(86,131,218,.35), inset 10px 12px 26px rgba(255,255,255,.12);
}
/* 220%-wide tile: shifting by one tile = 220 / (220 - 100) = 183.33% */
@keyframes roll { from { background-position: 0% 50%; } to { background-position: 183.333% 50%; } }
.fx-sphere__maps { position: absolute; top: 20px; right: 20px; margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; justify-items: end; }
.fx-sphere__maps li {
  padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04);
  font: 500 10.5px/1.4 var(--font-mono); color: var(--smoke);
  animation: mapLit 6s linear infinite;
}
.fx-sphere__maps li:nth-child(2) { animation-delay: 1.5s; }
.fx-sphere__maps li:nth-child(3) { animation-delay: 3s; }
.fx-sphere__maps li:nth-child(4) { animation-delay: 4.5s; }
@keyframes mapLit {
  0%, 22% { color: #fff; border-color: rgba(120,160,255,.6); background: rgba(86,131,218,.22); }
  28%, 100% { color: var(--smoke); border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.04); }
}

/* ArchViz & animation — camera viewport with a running timeline */
.fx-timeline { position: absolute; inset: 0; padding: 28px 28px 0; }
.fx-timeline__view { position: relative; height: 58%; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); }
.fx-timeline__view img { width: 100%; height: 100%; object-fit: cover; animation: dolly 14s ease-in-out infinite alternate; }
@keyframes dolly { from { transform: scale(1.14) translate3d(-3%, 1.5%, 0); } to { transform: scale(1.03) translate3d(2%, -1%, 0); } }
.fx-timeline__rec {
  position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px; border-radius: 999px; background: rgba(9,10,12,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font: 500 10.5px/1.4 var(--font-mono); color: #fff;
}
.fx-timeline__rec i { width: 7px; height: 7px; border-radius: 50%; background: #ff5a4f; box-shadow: 0 0 8px #ff5a4f; animation: blink 1.4s ease-in-out infinite; }
.fx-timeline__track { position: relative; height: 46px; margin-top: 14px; border-radius: 10px; background: var(--card-2); border: 1px solid rgba(255,255,255,.06); overflow: hidden; }
.fx-timeline__ruler { position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 1px, transparent 1px 22px); }
.kf { position: absolute; left: var(--x); top: 58%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; transform: rotate(45deg); border-radius: 2px; background: #3a3b41; animation: kfLit 7s linear infinite; animation-delay: calc(var(--t) * 7s); }
@keyframes kfLit {
  0% { background: #fff; box-shadow: 0 0 12px 2px rgba(255,137,100,.9); }
  10% { background: var(--ember); box-shadow: 0 0 6px rgba(255,137,100,.5); }
  30%, 100% { background: #3a3b41; box-shadow: none; }
}
.fx-timeline__head { position: absolute; inset: 0; animation: playhead 7s linear infinite; }
.fx-timeline__head::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 10px 1px rgba(255,137,100,.9); }
@keyframes playhead { from { transform: translateX(0); } to { transform: translateX(100%); } }

@keyframes spin { to { transform: rotate(360deg); } }
.fx-ring__glow { animation-name: spinCentered; }
@keyframes spinCentered { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes blink { 50% { opacity: .3; } }

/* =========================================================
   WORK
   ========================================================= */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 36px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14); background: transparent;
  font-size: 13px; font-weight: 500; color: var(--frost);
  transition: background .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.chip.is-active { background: #fff; border-color: #fff; color: var(--void); }

/* Production credit (Giganto Club) sits inside a glowbox */
#work .glowbox { margin-bottom: 20px; }
.credit {
  display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden;
  background: #0c0d10; color: #fff; isolation: isolate;
}
.credit::before {
  content: ""; position: absolute; z-index: -1; left: -120px; bottom: -220px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,150,110,.22), rgba(255,218,159,.06) 40%, transparent 70%);
}
.credit__body { padding: 44px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.credit__body p { margin: 0; color: var(--ash); font-size: 15px; max-width: 480px; }
.credit__body p b { color: #fff; font-weight: 600; }
.credit__meta { display: flex; gap: 32px; flex-wrap: wrap; margin: 4px 0 6px; }
.credit__meta span { display: flex; flex-direction: column; font-size: 12px; color: var(--smoke); }
.credit__meta b { font-family: var(--font-display); font-size: 26px; font-weight: 500; color: #fff; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.credit__art { position: relative; padding: 28px; display: grid; align-content: center; background: radial-gradient(120% 90% at 70% 20%, rgba(86,131,218,.3), transparent 60%); }

/* YouTube click-to-play */
.yt, .yt__frame {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 6px 25px rgba(0,0,0,.5); display: block; background: #000;
}
.yt { position: relative; overflow: hidden; padding: 0; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out), filter .3s; filter: saturate(1.05) brightness(.82); }
.yt:hover img { transform: scale(1.04); filter: brightness(1); }
.yt__play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; transform: translate(-50%, -50%);
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.95); box-shadow: 0 0 0 10px rgba(255,255,255,.14), 0 0 44px rgba(255,137,100,.6);
  transition: transform .3s var(--ease-out);
}
.yt:hover .yt__play { transform: translate(-50%, -50%) scale(1.08); }
.yt__play svg { width: 26px; height: 26px; fill: var(--void); margin-left: 4px; }
.yt__label {
  position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px;
  background: rgba(9,10,12,.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 12px; font-weight: 500; color: #fff;
}

.gallery {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 230px;
  grid-auto-flow: dense; gap: 12px;
}
.shot {
  position: relative; overflow: hidden; border-radius: 12px; border: 0; padding: 0; text-align: left;
  background: #16171b; cursor: zoom-in; isolation: isolate;
}
.shot--wide { grid-column: span 2; }
.shot--big { grid-column: span 2; grid-row: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease-out), opacity .6s ease; }
.js .shot { opacity: 0; transform: translate3d(0, 40px, 0); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--sd, 0s); }
.js .shot img { transform: scale(1.18); }
.js .shot.is-in { opacity: 1; transform: none; }
.js .shot.is-in img { transform: scale(1); }
.shot:hover img, .js .shot.is-in:hover img { transform: scale(1.05); }
.shot__meta {
  position: absolute; inset: auto 0 0 0; padding: 44px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(5,5,6,.88));
  color: #fff; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px;
  opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease;
}
.shot:hover .shot__meta, .shot:focus-visible .shot__meta { opacity: 1; transform: none; }
.shot__meta b { font-weight: 500; font-size: 14px; }
.shot__meta .tag { background: rgba(255,255,255,.14); color: #fff; }
.shot.is-hidden { display: none; }

/* =========================================================
   FOUNDERS — dark cards on light
   ========================================================= */
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.founder {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 24px; padding: 32px;
  border-radius: 16px; background: var(--card); color: #fff;
  box-shadow: 0 30px 60px -30px rgba(9,10,12,.45);
}
.founder::before {
  content: ""; position: absolute; z-index: -1; right: -160px; top: -200px; width: 460px; height: 460px; pointer-events: none;
  background: radial-gradient(circle, rgba(255,150,110,.22), transparent 65%);
  -webkit-mask: var(--dots) 0 0 / var(--dots-size); mask: var(--dots) 0 0 / var(--dots-size);
}
.founder--iris::before { background: radial-gradient(circle, rgba(86,131,218,.34), transparent 65%); }
.founder__head { display: flex; align-items: center; gap: 20px; }
.founder__head .tag { margin-bottom: 10px; }
.founder__photo { flex: none; width: 92px; height: 92px; overflow: hidden; background: #000; border-radius: 20px; border: 1px solid rgba(255,255,255,.12); }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: grayscale(1) contrast(1.05); transition: filter .6s, transform .9s var(--ease-out); }
.founder:hover .founder__photo img { filter: grayscale(0); transform: scale(1.05); }
.founder__body { display: flex; flex-direction: column; gap: 18px; }
.founder__body > p { margin: 0; color: var(--ash); font-size: 15px; line-height: 1.6; }
.founder__list { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.07); display: grid; gap: 10px; }
.founder__list li { padding-left: 20px; position: relative; color: var(--frost); font-size: 14px; }
.founder__list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px rgba(255,137,100,.7); }
.founder--iris .founder__list li::before { background: var(--iris); box-shadow: 0 0 8px rgba(86,131,218,.8); }
.founder__list b { color: #fff; font-weight: 600; }
.founder__links { display: flex; gap: 8px; flex-wrap: wrap; }
.founder__links a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); font-size: 13px; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.founder__links a:hover { background: #fff; color: var(--void); border-color: #fff; }

/* =========================================================
   PRESS
   ========================================================= */
.press { border-top: 1px solid rgba(255,255,255,.06); }
.press__videos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 16px; margin-bottom: 16px; }
.press__video { background: var(--card); border: 1px solid #1c1d22; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.press__video--lead { grid-row: span 2; }
.press__video .yt, .press__video .yt__frame { border: 0; border-radius: 0; box-shadow: none; }
.press__meta { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.press__meta h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.press__video--lead .press__meta h3 { font-family: var(--font-display); font-size: 28px; font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; }
.press__meta p { margin: 0; color: var(--ash); }
.press__outlet { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ember); }
.press__outlet time { color: var(--iron); font-weight: 600; }
.press__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.press__card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  border-radius: 14px; background: var(--card); border: 1px solid #1c1d22;
  transition: border-color .3s, transform .4s var(--ease-out);
}
.press__card:hover { border-color: #34353b; transform: translateY(-4px); }
.press__thumb { margin: 0; aspect-ratio: 40 / 21; overflow: hidden; background: #1a1b1f; border-bottom: 1px solid #1c1d22; }
.press__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.press__card:hover .press__thumb img { transform: scale(1.05); }
.press__thumb--brand {
  display: flex; align-items: center; justify-content: center; gap: 18px; padding: 24px;
  background: radial-gradient(120% 120% at 80% 0%, rgba(86,131,218,.35), transparent 60%), linear-gradient(160deg, #15171d, #0e0e10);
}
.press__thumb--brand img { width: auto !important; height: auto !important; max-width: 38%; max-height: 44px; filter: brightness(0) invert(1); }
.press__thumb--brand span { color: var(--smoke); font-size: 20px; }
.press__thumb img.is-portrait { object-position: center 25%; filter: grayscale(1); }
.press__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.press__card h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.press__card p { margin: 0; color: var(--ash); font-size: 14px; }
.press__read { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 500; color: var(--frost); }

/* =========================================================
   VENTURES
   ========================================================= */
.ventures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: 16px; }
.venture {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  background: var(--card); color: #fff; border-radius: 16px;
  box-shadow: 0 30px 60px -30px rgba(9,10,12,.45);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.venture:hover { transform: translateY(-5px); box-shadow: 0 40px 70px -30px rgba(9,10,12,.6); }
.venture::before {
  content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -160px; top: -160px; opacity: .7; transition: opacity .4s;
  -webkit-mask: var(--dots) 0 0 / var(--dots-size); mask: var(--dots) 0 0 / var(--dots-size);
}
.venture:hover::before { opacity: 1; }
.venture--iris::before { background: radial-gradient(circle, rgba(86,131,218,.95), transparent 65%); }
.venture--ember::before { background: radial-gradient(circle, #ffaa81 0%, rgba(255,137,100,.45) 35%, transparent 65%); }
.venture p { margin: 0; color: var(--ash); max-width: 440px; }
.venture__who { font-size: 12px; font-weight: 600; color: var(--smoke); text-transform: uppercase; letter-spacing: .06em; }
.venture .display-sm { margin-top: 0; }
.venture__link { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 500; color: var(--frost); }
.venture--xl { grid-column: span 2; grid-row: span 2; }
.venture--xl .display-sm { font-size: clamp(40px, 5vw, 64px); }
.venture--xl p { font-size: 16px; }
.venture--xl-h { grid-column: span 2; }
.venture__media { position: relative; height: 170px; margin: -24px -24px 8px; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.06); }
.venture__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.venture:hover .venture__media img { transform: scale(1.05); }
.venture--xl-h .venture__media { height: 200px; }
.venture__media--fill { flex: 1; min-height: 260px; height: auto; margin: 16px -24px -24px; border-bottom: 0; border-top: 1px solid rgba(255,255,255,.06); }
.venture__media--fill img { position: absolute; inset: -8% 0; height: 116%; }
/* Banner art with baked-in text: show it whole over a blurred copy of itself */
.venture__media--contain { background: #1a1714; }
.venture__media--contain::before {
  content: ""; position: absolute; inset: -40px;
  background: var(--bg) center / cover; filter: blur(30px) saturate(1.1) brightness(.8);
}
.venture__media--contain img { inset: 0; height: 100%; object-fit: contain; z-index: 1; }
.venture__media--contain figcaption { z-index: 2; }
.venture__media figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: 6px 12px; border-radius: 999px;
  background: rgba(9,10,12,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 12px; font-weight: 500; color: #fff;
}

/* =========================================================
   CONTACT — halftone portal behind the final CTA
   ========================================================= */
.contact { padding-bottom: 150px; }
.contact__fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
/* Ring sits behind the form (right side), never behind the copy */
.portal { position: absolute; right: -120px; top: 50%; width: 860px; aspect-ratio: 1; transform: translateY(-50%); opacity: .55; }
.contact__copy { position: relative; z-index: 1; }
.contact__copy .section__lede { color: #c4c6cc; }
.contact__info dd { color: #eceef2; }
.portal > div { position: absolute; border-radius: 50%; }
.portal__dots {
  inset: 0; overflow: hidden;
  -webkit-mask-image: var(--dots), radial-gradient(closest-side, transparent 30%, #000 42%, #000 56%, transparent 90%);
          mask-image: var(--dots), radial-gradient(closest-side, transparent 30%, #000 42%, #000 56%, transparent 90%);
  -webkit-mask-size: var(--dots-size), 100% 100%; mask-size: var(--dots-size), 100% 100%;
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.portal__dots i, .portal__rim i {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 210deg, #ff6a2b, #ffc6a6 36deg, rgba(255,106,43,.1) 120deg, rgba(40,80,255,.1) 170deg, #3d6bff 225deg, #a8c2ff 262deg, rgba(61,107,255,.1) 330deg, #ff6a2b);
  animation: spin 22s linear infinite;
}
.portal__rim {
  inset: 29%; padding: 2px; overflow: hidden;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
.portal__core { inset: 29%; background: radial-gradient(closest-side, rgba(9,10,12,.9) 70%, rgba(9,10,12,0)); }
.contact.is-live .portal i { animation-play-state: running; }
.contact .portal i { animation-play-state: paused; }

.contact__inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.contact__copy .display { margin-bottom: 4px; }
.contact__info { margin: 44px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.contact__info dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--smoke); margin-bottom: 6px; }
.contact__info dd { margin: 0; color: var(--frost); font-size: 15px; overflow-wrap: anywhere; }
.contact__info a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.socials { display: flex; flex-wrap: wrap; gap: 6px 14px; }

.contact__form {
  display: grid; gap: 16px; padding: 32px;
  background: #0c0d10;
}
.contact__form label { display: grid; gap: 8px; font-size: 13px; font-weight: 500; color: var(--frost); }
.contact__form input, .contact__form select, .contact__form textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; min-height: 46px;
  background: #07080a; border: 1px solid #2a2b30; color: #fff;
  font: 400 16px/1.4 var(--font-sans); transition: border-color .2s, box-shadow .2s;
}
.contact__form textarea { resize: vertical; }
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus {
  outline: none; border-color: var(--iris); box-shadow: 0 0 0 3px rgba(86,131,218,.25);
}
.contact__form .lbtn { margin-top: 8px; }
.form__note { margin: 0; text-align: center; font-size: 13px; color: var(--smoke); }
.form__note.is-ok { color: #7fe0a8; }
.form__note.is-err { color: #ffb199; }
.form__note a { text-decoration: underline; }
.contact__form .lbtn[disabled] { opacity: .6; cursor: progress; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--void); border-top: 1px solid rgba(255,255,255,.06); padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand b { display: block; font-weight: 600; }
.footer__brand span { font-size: 12px; color: var(--smoke); }
.footer__links { display: flex; gap: 24px; }
.footer__links a, .footer__copy { font-size: 13px; color: var(--smoke); }
.footer__links a:hover { color: #fff; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: rgba(9,10,12,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fadeIn .3s ease;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); animation: lbIn .5s var(--ease-out); }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 12px; box-shadow: 0 6px 25px rgba(0,0,0,.5); }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; font-weight: 500; }
.lightbox figcaption a { color: var(--ember); flex: none; }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: 24px; line-height: 1; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes lbIn { from { opacity: 0; transform: scale(.96) translateY(10px); } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav__links { gap: 22px; }
  .nav__inner { gap: 28px; }
  .nav__star { display: none; }
}

@media (max-width: 1024px) {
  :root { --section-y: 112px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bcard--wide { grid-column: span 2; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ventures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .venture--xl-h { grid-column: auto; }
  .contact__inner { grid-template-columns: 1fr; gap: 56px; }
  .credit { grid-template-columns: 1fr; }
  .credit__art { padding: 0 32px 32px; }
  .press__videos { grid-template-columns: 1fr 1fr; }
  .press__video--lead { grid-column: span 2; grid-row: auto; }
  .press__grid { grid-template-columns: 1fr 1fr; }
  .portal { left: 50%; right: auto; top: auto; bottom: 0; width: 760px; transform: translate(-50%, 30%); opacity: .45; }
}

@media (max-width: 900px) {
  .nav__inner { gap: 16px; height: 60px; }
  .nav__toggle { display: block; }
  .nav__actions .gbtn { display: none; }
  .nav__links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: flex-start; gap: 0;
    padding: calc(84px + env(safe-area-inset-top)) var(--gutter) 40px;
    background: rgba(9,10,12,.99);
    opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s;
  }
  .nav__links a {
    padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.07);
    font-family: var(--font-display); font-size: 30px; font-weight: 500; letter-spacing: -0.04em; color: #fff;
    opacity: 0; transform: translate3d(0, 18px, 0);
    transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
  }
  .nav.is-open { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transition: opacity .35s ease; }
  .nav.is-open .nav__links a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 45ms + 80ms); }

  .frame__chip { display: none; }
  .hero__frame { margin-top: 88px; }
  .showcase { aspect-ratio: 4 / 3; }
  .showcase__nav { opacity: 1; width: 38px; height: 38px; margin-top: -19px; }
  .showcase__bar { left: 16px; right: 16px; bottom: 16px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.06); }
  .founders { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  :root { --gutter: 20px; --section-y: 88px; --dots-size: 4px 4px; }
  body { font-size: 15px; }
  .hero { padding-top: 120px; }
  .eyebrow { font-size: 12px; margin-bottom: 22px; }
  .hero__title { margin-bottom: 20px; }
  .hero__lede, .section__lede { font-size: 16px; }
  .hero__lede { margin-bottom: 32px; }
  .hero__ctas { flex-direction: column; align-items: stretch; gap: 14px; }
  .hero__ctas .lbtn { display: flex; }
  .hero__ctas .gbtn { height: 44px; }
  .lbtn__face { height: 44px; }
  .hero__frame { margin-top: 72px; }
  .frame__bar { padding: 10px 12px; gap: 10px; }
  .frame__bar .tag { display: none; }
  .hero__tags { padding: 28px 0 56px; font-size: 13px; }
  .section__head { margin-bottom: 44px; }
  .section__head--row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + var(--gutter) * 2); margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }

  .bento { grid-template-columns: 1fr; gap: 12px; }
  .bcard--wide { grid-column: auto; }
  .bcard { min-height: 400px; border-radius: 14px; }
  .bcard__text { left: 22px; right: 22px; bottom: 22px; font-size: 15px; }
  .fx-strike__win { width: 86%; top: 28%; }
  .fx-timeline { padding: 20px 20px 0; }
  .fx-timeline__view { height: 52%; }

  .glowbox { --gi: 64px; --gr: 18px; }
  .credit__body { padding: 28px 22px; }
  .credit__art { padding: 0 16px 16px; }
  .credit__meta { gap: 24px; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 8px; }
  .shot { border-radius: 10px; }
  .shot__meta { opacity: 1; transform: none; padding: 30px 10px 9px; }
  .shot__meta b { font-size: 12px; }
  .shot__meta .tag { display: none; }

  .founder { padding: 22px; gap: 20px; }
  .founder__head { gap: 16px; }
  .founder__photo { width: 76px; height: 76px; border-radius: 16px; }

  .press__videos, .press__grid { grid-template-columns: 1fr; }
  .press__video--lead { grid-column: auto; }
  .press__video--lead .press__meta h3 { font-size: 22px; }

  .ventures { grid-template-columns: 1fr; gap: 12px; }
  .venture--xl, .venture--xl-h { grid-column: auto; grid-row: auto; }

  .contact { padding-bottom: 104px; }
  .portal { width: 560px; opacity: .4; }
  .contact__info { grid-template-columns: 1fr; margin-top: 36px; }
  .contact__form { padding: 22px; }

  .client { min-width: 150px; padding: 0 22px; height: 56px; }
  .client img { max-height: 40px; max-width: 120px; }
  .client img.is-square { max-height: 50px; }
  .stat { padding: 26px 16px; }
  .stat b { font-size: 28px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .lightbox { padding: 16px; }
}

@media (max-width: 380px) {
  .nav__name { font-size: 13px; letter-spacing: .04em; }
  .lbtn__face { padding: 0 40px; }
}

/* Touch screens: no hover-only affordances */
@media (hover: none) {
  .showcase__nav { opacity: 1; }
  .venture:hover, .press__card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .intro, .js .reveal, .js .shot, .js .hero__frame, .js .nav__inner { opacity: 1; transform: none; filter: none; }
  .js [data-split] .w > span, .js .shot img { transform: none; }
  html { scroll-behavior: auto; }
}
