/* VIDI VICI STUDIOS — black and gold */
:root {
  --ink: #070608;
  --ink-2: #0d0b0e;
  --ink-3: #151216;
  --line: rgba(226, 179, 119, 0.16);
  --line-strong: rgba(226, 179, 119, 0.38);
  --gold-1: #f6ddae;
  --gold-2: #e2b377;
  --gold-3: #bf8a4e;
  --gold-4: #8e5f2c;
  --text: #ece4d8;
  --muted: #9c9389;
  --gold-grad: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 32%, var(--gold-3) 62%, var(--gold-4) 100%);
  --serif: "Cinzel", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold-3); color: var(--ink); }


.gold {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-2);
}

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--ink);
  display: grid; place-items: center; align-content: center; gap: 28px;
}
.loader-mark img { width: 92px; height: 92px; filter: drop-shadow(0 0 28px rgba(226,179,119,.35)); animation: breathe 2.4s var(--ease) infinite; }
.loader-bar { width: 160px; height: 1px; background: var(--line); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 0; background: var(--gold-grad); transition: width .4s var(--ease); }
@keyframes breathe { 0%,100%{opacity:.6; transform:scale(.97)} 50%{opacity:1; transform:scale(1)} }

/* ---------- cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 95; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid var(--gold-2); border-radius: 50%; pointer-events: none; opacity: 0;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s var(--ease), opacity .3s;
  mix-blend-mode: difference;
}
.cursor.is-on { opacity: .9; }
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(246,221,174,.9); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 76px; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: background .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(7,6,8,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-brand { white-space: nowrap; display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 15px; letter-spacing: .2em; }
.nav-brand em { font-style: normal; color: var(--gold-2); }
.nav-links { display: flex; gap: 36px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.nav-links a { position: relative; color: var(--muted); transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold-2); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; align-items: center; gap: 18px; }

.sound-toggle { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); padding: 8px 4px; }
.sound-toggle .bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound-toggle .bars i { width: 2px; height: 3px; background: var(--gold-2); transition: height .3s; }
.sound-toggle[aria-pressed="true"] { color: var(--text); }
.sound-toggle[aria-pressed="true"] .bars i { animation: eq 1s ease-in-out infinite; }
.sound-toggle[aria-pressed="true"] .bars i:nth-child(2) { animation-delay: -.3s; }
.sound-toggle[aria-pressed="true"] .bars i:nth-child(3) { animation-delay: -.6s; }
.sound-toggle[aria-pressed="true"] .bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%,100%{height:3px} 50%{height:14px} }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 30px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  transition: color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn svg { width: 20px; height: 20px; }
.btn-gold { background: var(--gold-grad); color: #1a1007; box-shadow: 0 10px 40px -12px rgba(226,179,119,.55); }
.btn-gold::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.btn-gold:hover::before { transform: translateX(120%); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold-grad); transform: translateY(101%); transition: transform .5s var(--ease); }
.btn-ghost:hover { color: #1a1007; border-color: transparent; }
.btn-ghost:hover::before { transform: translateY(0); }
.btn-lg { height: 62px; padding: 0 38px; font-size: 14px; }
.nav-cta { height: 42px; padding: 0 22px; font-size: 11px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: 0 var(--gutter) clamp(56px, 10vh, 120px); overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60vmax 40vmax at 62% 42%, rgba(191,138,78,.20), transparent 60%),
    radial-gradient(40vmax 30vmax at 20% 90%, rgba(142,95,44,.14), transparent 70%),
    var(--ink);
}
.hero-copy { position: relative; z-index: 2; max-width: 680px; pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.hero-title {
  margin: 0; font-family: var(--serif); font-weight: 500; line-height: .98; letter-spacing: -.01em;
  font-size: clamp(44px, 6.4vw, 108px);
}
.hero-title { font-size: clamp(40px, 5vw, 88px); }
.hero-title .l { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .l > span { display: block; }
.hero-title .rot { height: 1.06em; }
.rot-track { display: block; }
.rot-track > span { display: block; height: 1.06em; white-space: nowrap; }
.hero-services { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 600px; }
.hero-services li { padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-1); background: rgba(7,6,8,.45); backdrop-filter: blur(6px); }
.hero-sub { margin: 24px 0 0; max-width: 560px; color: #c9bfb2 !important; color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.scroll-cue { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(56px, 10vh, 120px); display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; }
.scroll-cue span { width: 1px; height: 64px; background: linear-gradient(var(--gold-2), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0%{transform:scaleY(0)} 50%{transform:scaleY(1); transform-origin: top} 51%{transform-origin: bottom} 100%{transform:scaleY(0); transform-origin: bottom} }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 26px 0; background: var(--ink-2); }
.marquee-track { display: flex; width: max-content; gap: 48px; align-items: center; animation: marquee 38s linear infinite; }
.marquee-track span { font-family: var(--serif); font-size: clamp(28px, 4vw, 54px); letter-spacing: .06em; color: transparent; -webkit-text-stroke: 1px var(--gold-3); }
.marquee-track span:nth-child(4n+1) { color: var(--gold-2); -webkit-text-stroke: 0; }
.marquee-track i { font-style: normal; color: var(--gold-2); font-size: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(96px, 14vw, 180px) var(--gutter); max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; }
.section-head { margin-bottom: clamp(48px, 7vw, 96px); max-width: 820px; }
.section-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 5.4vw, 80px); line-height: 1.04; }
.section-sub { margin: 22px 0 0; color: var(--muted); max-width: 560px; }

.manifesto { padding: clamp(110px, 16vw, 220px) var(--gutter); max-width: 1180px; margin: 0 auto; }
.manifesto-text { margin: 0; font-family: var(--serif); font-size: clamp(28px, 3.6vw, 54px); line-height: 1.3; letter-spacing: .005em; }
.manifesto-text .word { opacity: .14; transition: none; }

/* ---------- work ---------- */
.case { margin: 0; }
.case-wide { margin-bottom: clamp(64px, 9vw, 130px); }
.case-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); }
.case-row .case:nth-child(2) { margin-top: clamp(0px, 10vw, 160px); }
.case-media { position: relative; border-radius: 18px; overflow: hidden; background: var(--ink-3); border: 1px solid var(--line); transform-style: preserve-3d; will-change: transform; }
.case-media img, .case-media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease); }
.case:hover .case-media img, .case:hover .case-media video { transform: scale(1.02); }
.case-tall { aspect-ratio: 4 / 5; }
.case-tall video { object-fit: contain; transform: none !important; }  /* adverts carry text to the edges: never crop */
.case-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(246,221,174,.14), transparent 45%); opacity: 0; transition: opacity .4s; }
.case-media:hover::after { opacity: 1; }
.browser { aspect-ratio: 16 / 10; display: flex; flex-direction: column; }
.browser img { flex: 1; min-height: 0; object-position: top; transform: none !important; }
.browser-bar { flex: none; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: #141114; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3036; }
.browser-bar span { margin-left: 14px; font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.case-info { display: grid; grid-template-columns: 1fr; gap: 6px; padding-top: 26px; max-width: 560px; }
.case-tag { margin: 0; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-2); }
.case-info h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.6vw, 38px); }
.case-info p:last-child { margin: 4px 0 0; color: var(--muted); }

/* ---------- showroom ---------- */
.stage { position: relative; height: min(78vh, 760px); min-height: 440px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(70% 70% at 50% 45%, #1d171a 0%, #0c0a0c 60%, #070608 100%); cursor: grab; touch-action: pan-y; }
.stage:active { cursor: grabbing; }
.stage canvas { width: 100%; height: 100%; }
.stage-hint { white-space: nowrap; position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(7,6,8,.5); backdrop-filter: blur(8px); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); pointer-events: none; transition: opacity .6s; }
.stage-hint svg { width: 18px; height: 18px; color: var(--gold-2); animation: nudge 2s var(--ease) infinite; }
.stage-hint.is-gone { opacity: 0; }
@keyframes nudge { 0%,100%{transform:translateX(-4px)} 50%{transform:translateX(4px)} }
.stage-label { position: absolute; left: 32px; top: 28px; display: grid; gap: 2px; pointer-events: none; }
.stage-label span { font-size: 11px; letter-spacing: .3em; color: var(--gold-2); }
.stage-label strong { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.4vw, 34px); }
.stage-label em { font-style: normal; font-size: 13px; color: var(--muted); }
.stage-loading { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); pointer-events: none; opacity: 0; transition: opacity .3s; }
.stage-loading.is-on { opacity: 1; }
.picker { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.pick { height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); transition: color .3s, border-color .3s, background .3s; }
.pick:hover { color: var(--text); border-color: var(--line-strong); }
.pick.is-active { color: #1a1007; background: var(--gold-grad); border-color: transparent; }
.credit { margin: 22px auto 0; text-align: center; font-size: 12px; color: #6e665e; max-width: 640px; }

/* ---------- services ---------- */
.service-list { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.service { position: relative; padding: 40px 28px 48px; border-right: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.service:last-child { border-right: 0; }
.service::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(226,179,119,.10), transparent 70%); transform: translateY(-101%); transition: transform .7s var(--ease); }
.service:hover::before { transform: translateY(0); }
.service-num { font-size: 12px; letter-spacing: .2em; color: var(--gold-3); }
.service-icon { width: 38px; height: 38px; margin: 44px 0 26px; color: var(--gold-2); transition: transform .7s var(--ease); }
.service:hover .service-icon { transform: translateY(-6px) rotate(-6deg); }
.service h3 { margin: 0 0 12px; font-family: var(--serif); font-weight: 500; font-size: 22px; }
.service p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: s; }
.step { position: relative; padding-top: 34px; border-top: 1px solid var(--line); }
.step::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--gold-grad); transform: scaleX(var(--p, 0)); transform-origin: left; }
.step-n { font-family: var(--serif); font-size: 15px; color: var(--gold-2); letter-spacing: .1em; }
.step h3 { margin: 18px 0 12px; font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.2vw, 32px); }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- contact ---------- */
.contact { position: relative; padding: clamp(120px, 18vw, 240px) var(--gutter); text-align: center; overflow: hidden; border-top: 1px solid var(--line);
  background: radial-gradient(50% 60% at 50% 100%, rgba(191,138,78,.22), transparent 70%), var(--ink); }
.contact-inner { max-width: 980px; margin: 0 auto; }
.contact-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 7vw, 108px); line-height: 1.02; }
.contact-sub { margin: 26px 0 0; color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 44px; }

/* ---------- footer ---------- */
.footer { padding: 56px var(--gutter) 64px; border-top: 1px solid var(--line); display: grid; justify-items: center; gap: 6px; text-align: center; color: var(--muted); font-size: 14px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); letter-spacing: .2em; color: var(--text); }
.footer p { margin: 0; }
.footer-small { font-size: 12px; color: #6e665e; }

/* ---------- reveal defaults (JS sets the start state, so no-JS still shows everything) ---------- */

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .service { border-bottom: 1px solid var(--line); }
  .service:nth-child(2n) { border-right: 0; }
  .service:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
}
@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .nav { height: 64px; }
  .nav-brand { font-size: 13px; letter-spacing: .16em; gap: 10px; }
  .sound-toggle .sound-label { display: none; }
  .sound-toggle { padding: 10px; }
  .hero .eyebrow { letter-spacing: .2em; font-size: 10px; }
  .hero { align-items: end; padding-bottom: 72px; }
  .scroll-cue { display: none; }
  .case-row { grid-template-columns: 1fr; }
  .case-row .case:nth-child(2) { margin-top: 0; }
  .stage { height: 64vh; min-height: 380px; border-radius: 18px; }
  .stage-label { left: 20px; top: 18px; }
  body { font-size: 16px; }
}
@media (max-width: 380px) {
  .hero .eyebrow { letter-spacing: .12em; font-size: 9px; }
  .hero-title { font-size: 40px; }
}
@media (max-width: 560px) {
  .hero { padding-top: min(84vw, 360px); padding-bottom: 40px; }
  .hero-sub { display: none; }
  .hero-services { margin-top: 18px; gap: 6px; }
  .hero-services li { padding: 5px 11px; font-size: 10.5px; letter-spacing: .1em; }
  .hero-actions { margin-top: 24px; gap: 10px; flex-wrap: nowrap; }
  .hero-actions .btn { flex: 1 1 0; height: 48px; padding: 0 12px; font-size: 11px; letter-spacing: .1em; }
  .service-list { grid-template-columns: 1fr; }
  .service { border-right: 0; }
  .steps { grid-template-columns: 1fr; }
  .contact-actions .btn { width: 100%; }
  .btn-lg { padding: 0 24px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .manifesto-text .word { opacity: 1 !important; }
}
