:root {
  --bg: #07080b;
  --bg-2: #0d0f14;
  --ink: #f3efe6;
  --muted: #9a9790;
  --line: rgba(243, 239, 230, 0.1);
  --gold: #f2c230;
  --gold-2: #ffdd6e;
  --teal: #2ee6c8;
  --radius: 22px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .8s ease, visibility .8s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader__inner { text-align: center; }
.loader__count {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(64px, 14vw, 160px); line-height: 1;
  color: var(--gold);
}
.loader__label { color: var(--muted); letter-spacing: .3em; font-size: 12px; text-transform: uppercase; margin-top: 12px; }

/* ---------- cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width .25s, height .25s;
}
.cursor.big { width: 74px; height: 74px; }
.cursor span {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #000; opacity: 0;
}
.cursor.big span { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px clamp(16px, 4vw, 48px);
  mix-blend-mode: difference;
}
.nav__logo { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.nav__logo b { color: var(--gold); }
.nav__links { display: flex; gap: 28px; font-size: 14px; }
.nav__links a { opacity: .8; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }
@media (max-width: 640px) { .nav__links a:not(.nav__cta) { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .18;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 55%, transparent 0%, var(--bg) 72%),
    linear-gradient(180deg, rgba(7,8,11,.6) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
}
#scene { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.hero__copy {
  position: absolute; left: 0; right: 0; bottom: clamp(28px, 7vh, 80px);
  padding: 0 clamp(16px, 4vw, 48px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  pointer-events: none;
  text-shadow: 0 2px 30px rgba(7,8,11,.9);
}
.hero__copy::before {
  content: ""; position: absolute; inset: -80px 0 -80px; z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(7,8,11,.85) 55%);
}
.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px;
}
.hero__kicker::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.hero__title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(44px, 8.4vw, 132px); line-height: .92; letter-spacing: -.035em;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-style: normal; color: var(--gold); }
.hero__side { max-width: 420px; color: var(--muted); font-size: 14px; line-height: 1.5; pointer-events: auto; }
.hero__side p + p { margin-top: 10px; }
.hero__side strong { color: var(--ink); font-weight: 600; }
.hero__hint { margin-top: 18px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); opacity: .6; }
@media (max-width: 860px) {
  .hero { height: auto; min-height: 100svh; }
  #scene, .hero__bg { height: 64svh; bottom: auto; }
  .hero__copy { position: relative; bottom: auto; padding-top: 52svh; padding-bottom: 48px; flex-direction: column; align-items: flex-start; }
  .hero__side { max-width: none; }
}

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0;
  background: var(--bg-2);
}
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span {
  font-family: var(--display); font-size: clamp(22px, 3vw, 38px); font-weight: 500;
  white-space: nowrap; display: flex; align-items: center; gap: 48px;
}
.marquee__track span::after { content: "✦"; color: var(--gold); font-size: .6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 14vh, 160px) clamp(16px, 4vw, 48px); position: relative; }
.eyebrow { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.h2 {
  font-family: var(--display); font-weight: 600; letter-spacing: -.03em;
  font-size: clamp(36px, 5.6vw, 84px); line-height: 1;
}
.h2 em { font-style: normal; color: var(--gold); }
.lead { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); max-width: 620px; margin-top: 22px; }

/* intro */
.intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg); padding: 28px 24px; }
.stat b { font-family: var(--display); font-size: clamp(38px, 4.4vw, 60px); font-weight: 600; line-height: 1; color: var(--ink); display: block; }
.stat b i { font-style: normal; color: var(--gold); }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }

/* ---------- works ---------- */
.works__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(48px, 8vh, 96px); flex-wrap: wrap; }
.work {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px);
  align-items: center; min-height: 92vh; padding: 6vh 0;
  border-top: 1px solid var(--line);
}
.work:nth-child(even) .work__stage { order: 2; }
.work__stage { perspective: 1400px; display: grid; place-items: center; position: relative; }
.work__glow {
  position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--accent, var(--gold)) 0%, transparent 65%);
  opacity: .18; filter: blur(40px);
}
.phone {
  position: relative; width: min(340px, 72vw); aspect-ratio: 9 / 16;
  border-radius: 38px; padding: 10px;
  background: linear-gradient(145deg, #2a2c33, #0c0d10 60%);
  box-shadow: 0 60px 120px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08) inset;
  transform-style: preserve-3d; will-change: transform;
}
.phone::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.14) 0%, transparent 35%);
}
.phone__screen { width: 100%; height: 100%; border-radius: 29px; overflow: hidden; background: #000; position: relative; }
.phone__screen video, .phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.phone__notch { position: absolute; top: 20px; left: 50%; width: 84px; height: 22px; border-radius: 20px; background: #000; transform: translateX(-50%) translateZ(2px); z-index: 2; }
.phone__play {
  position: absolute; right: 18px; bottom: 18px; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(7,8,11,.72); backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 600; border: 1px solid rgba(255,255,255,.14);
  transform: translateZ(40px);
}
.phone__play::before { content: ""; border-left: 9px solid var(--gold); border-block: 6px solid transparent; }
.screen169 { width: min(760px, 88vw); aspect-ratio: 16 / 9; border-radius: 22px; padding: 8px; }
.screen169 .phone__screen { border-radius: 15px; }

.work__num { font-family: var(--display); font-size: 14px; color: var(--muted); letter-spacing: .1em; }
.work__num b { color: var(--gold); font-weight: 600; }
.work__title { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 4.4vw, 64px); line-height: 1; letter-spacing: -.03em; margin: 16px 0 18px; }
.work__desc { color: var(--muted); max-width: 520px; }
.work__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0; }
.chip { font-size: 13px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,.03); }
.chip--gold { border-color: rgba(242,194,48,.4); color: var(--gold-2); }
.work__list { list-style: none; display: grid; gap: 10px; }
.work__list li { display: flex; gap: 12px; align-items: baseline; }
.work__list li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--accent, var(--gold)); transform: rotate(45deg) translateY(-2px); }

.work--wide { grid-template-columns: 1fr; text-align: center; }
.work--wide .work__desc, .work--wide .lead { margin-inline: auto; }
.work--wide .work__meta { justify-content: center; }
.work--wide .work__stage { order: 0 !important; }

@media (max-width: 860px) {
  .work { grid-template-columns: 1fr; min-height: auto; padding: 64px 0; }
  .work:nth-child(even) .work__stage { order: 0; }
}

/* ---------- skills ---------- */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.skill {
  padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.035), transparent);
  transform-style: preserve-3d; transition: border-color .3s;
}
.skill:hover { border-color: rgba(242,194,48,.45); }
.skill__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(242,194,48,.12); color: var(--gold); margin-bottom: 22px; }
.skill h3 { font-family: var(--display); font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.skill p { color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .skills { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .skills { grid-template-columns: 1fr; } }

/* ---------- cta ---------- */
.cta { text-align: center; overflow: hidden; }
.cta__big {
  font-family: var(--display); font-weight: 600; letter-spacing: -.045em;
  font-size: clamp(56px, 13vw, 220px); line-height: .88;
}
.cta__big em { font-style: normal; color: var(--gold); }
.cta__letter {
  max-width: 900px; margin: 0 auto;
  font-family: var(--display); font-weight: 500; letter-spacing: -.02em;
  font-size: clamp(22px, 2.6vw, 36px); line-height: 1.3;
}
.cta__letter p + p { margin-top: .8em; }
.cta__letter p:not(:first-child) { color: var(--muted); }
.cta__letter p:last-child { color: var(--ink); }
.cta__letter em { font-style: normal; color: var(--gold); }
.cta__buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 48px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 30px; border-radius: 999px; font-weight: 600;
  border: 1px solid var(--line); transition: transform .25s, background .25s, color .25s;
}
.btn:hover { transform: translateY(-3px); }
.btn--gold { background: var(--gold); color: #0b0b0b; border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-2); }
.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  background: rgba(4,5,7,.9); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  padding: 16px;
}
.modal.open { opacity: 1; visibility: visible; }
.modal video { max-height: 88svh; max-width: 100%; border-radius: 18px; box-shadow: 0 40px 120px rgba(0,0,0,.7); background: #000; }
.modal::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; border: 3px solid rgba(242,194,48,.25); border-top-color: var(--gold);
  opacity: 0; pointer-events: none; transition: opacity .2s;
  animation: spin .8s linear infinite;
}
.modal.loading::after { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.modal__close {
  position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); font-size: 22px; background: rgba(255,255,255,.05);
}
.modal__title { position: absolute; top: 28px; left: 24px; font-family: var(--display); font-size: 18px; }

/* ---------- reveal helpers ---------- */
.reveal { opacity: 0; transform: translateY(40px); }
.no-js .reveal, .reduced .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}
