:root {
  --bg: #0c0c0c;
  --bg-2: #151515;
  --ink: #f2f2ee;
  --muted: #8f8f88;
  --line: rgba(242, 242, 238, .14);
  /* design-exception: neon accent (acid green) — source: explicit client request, brand identity of the template */
  --lime: #d4ff3f;
  --display: Syne, system-ui, sans-serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --pad: clamp(1rem, 4vw, 4rem);
  --radius: 4px;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
::selection { background: var(--lime); color: var(--bg); }
h1, h2, h3 { text-wrap: balance; font-family: var(--display); font-weight: 700; letter-spacing: -.035em; line-height: .95; }
em { font-style: normal; color: var(--lime); }
.eyebrow { font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.6rem; }

.progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 2px; background: var(--lime); transform-origin: left; scale: var(--progress, 0) 1; }

/* Custom cursor — design-exception: round cursor dot (50% radius) — source: functional pointer, explicit request to keep the template identity */
.cursor { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor span {
  position: absolute; left: 0; top: 0; translate: -50% -50%; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink); color: var(--bg); font: 600 0/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; mix-blend-mode: difference;
  transition: width .4s var(--ease), height .4s var(--ease), font-size .3s, background-color .3s, opacity .3s;
}
.cursor.hover span { width: 44px; height: 44px; }
.cursor.label span { width: 88px; height: 88px; font-size: .78rem; background: var(--lime); mix-blend-mode: normal; }
.cursor.hide span { opacity: 0; }

/* Buttons: flat, small radius, colour change on hover only */
.btn {
  display: inline-flex; align-items: center; padding: .7rem 1.2rem; border-radius: var(--radius);
  background: var(--lime); color: var(--bg); font-weight: 600; font-size: .92rem; transition: background-color .25s;
}
.btn:hover { background: var(--ink); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem var(--pad); transition: background-color .4s, padding .4s var(--ease);
}
.nav.scrolled { background: var(--bg); border-bottom: 1px solid var(--line); padding-block: .8rem; }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.04em; }
.logo sup { font-size: .5em; color: var(--lime); }
.nav nav { display: flex; gap: 2.2rem; font-size: .92rem; }
/* Rolling link: the text slides up and a copy comes in from below */
.nav nav a { display: inline-block; overflow: hidden; height: 1.6em; }
.nav nav a span { display: inline-block; position: relative; transition: translate .5s var(--ease); }
.nav nav a span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; color: var(--lime); }
.nav nav a:hover span { translate: 0 -100%; }

/* Hero: typography + showreel frame, no decorative background */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 8rem var(--pad) 3rem; }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 8.4rem); font-weight: 800; }
@media (min-width: 901px) { .hero .line { white-space: nowrap; } }
.line { display: block; }
.roll { height: .95em; overflow: hidden; color: var(--lime); }
.roll-track { display: flex; flex-direction: column; transition: transform .8s cubic-bezier(.7, 0, .2, 1); }
.roll-track span { height: .95em; display: block; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 36rem); justify-content: space-between; align-items: end; gap: 2rem; margin-top: 3rem; }
.hero-foot p { color: var(--muted); font-size: 1.05rem; }
.reel { margin: 0; }
.reel-screen {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 1rem;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.reel-screen { overflow: hidden; }
.reel-slide { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.reel-slide.on { opacity: 1; }
.reel-tc { z-index: 1; background: var(--bg); padding: .25rem .45rem; }
.reel-ph { color: var(--muted); font-size: .9rem; text-align: center; }
.reel-tc { position: absolute; top: .8rem; left: .9rem; font-size: .72rem; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.reel-tc.end { left: auto; right: .9rem; color: var(--lime); }
.reel figcaption { margin-top: .6rem; font-size: .82rem; color: var(--muted); }

/* Client strip */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 1.6rem 0; }
.track { display: flex; align-items: center; gap: 2.4rem; width: max-content; animation: scroll 40s linear infinite; }
.track span { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.4rem); color: var(--muted); white-space: nowrap; }
.track i { color: var(--lime); font-style: normal; font-size: 1.4rem; }
@keyframes scroll { to { transform: translateX(calc(-50% - 1.2rem)); } }

/* Sections */
.section { padding: 8rem var(--pad); }
.head { margin-bottom: 4rem; }
.head h2 { font-size: clamp(2.6rem, 7vw, 6rem); max-width: 14ch; }

/* Work list */
.work { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.work li { border-bottom: 1px solid var(--line); }
.work a { display: grid; grid-template-columns: 1fr 14rem 5rem; align-items: center; gap: 1rem; padding: 2.2rem 0; transition: opacity .4s; }
.w-name { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 5.5vw, 4.6rem); letter-spacing: -.04em; line-height: 1; }
.w-cat, .w-year { color: var(--muted); font-size: .92rem; }
.w-year { text-align: right; }
.w-thumb { display: block; grid-column: 1 / -1; max-width: 30rem; border-radius: var(--radius); overflow: hidden; }
.w-thumb svg, .preview svg { display: block; width: 100%; height: auto; }
.work.dim a { opacity: .3; }
.work.dim a:hover { opacity: 1; }
/* Desktop with a mouse: thumbnails move into the cursor preview */
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .w-thumb { display: none; }
}
.preview {
  position: fixed; left: 0; top: 0; z-index: 40; width: 340px; margin: -110px 0 0 50px; pointer-events: none;
  border-radius: var(--radius); overflow: hidden; scale: .85; opacity: 0; transition: scale .4s var(--ease), opacity .25s;
}
.preview.show { scale: 1; opacity: 1; }

/* Services */
.svc { border-top: 1px solid var(--line); }
.svc details { border-bottom: 1px solid var(--line); }
.svc summary {
  display: flex; align-items: center; gap: 2rem; padding: 2rem 0; cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4.5vw, 3.4rem); letter-spacing: -.03em; line-height: 1; transition: color .3s;
}
.svc summary::-webkit-details-marker { display: none; }
.svc summary span { font: 500 .85rem var(--sans); color: var(--muted); letter-spacing: 0; }
.svc summary::after { content: '+'; margin-left: auto; font-family: var(--sans); font-weight: 400; transition: rotate .5s var(--ease), color .3s; }
.svc details[open] summary::after { rotate: 135deg; color: var(--lime); }
.svc summary:hover { color: var(--lime); }
.svc p { max-width: 38rem; color: var(--muted); padding-left: 3.2rem; }
.svc .deliv { color: var(--ink); font-size: .9rem; padding-block: 1rem 2.2rem; }

/* Process: pinned horizontal scroll on desktop, plain list on mobile */
.hscroll { position: relative; border-top: 1px solid var(--line); }
.hscroll-sticky { position: sticky; top: 0; height: 100vh; max-height: 56rem; display: flex; flex-direction: column; justify-content: center; gap: 3.5rem; overflow: hidden; padding: 0 var(--pad); }
.hs-head h2 { font-size: clamp(2.6rem, 7vw, 6rem); }
.hs-track { display: flex; width: max-content; list-style: none; padding: 0; will-change: transform; border-left: 1px solid var(--line); }
.hs-step { width: min(330px, 80vw); display: flex; flex-direction: column; padding: 0 2rem 0 1.5rem; border-right: 1px solid var(--line); }
.hs-step span { color: var(--lime); font-size: .85rem; font-weight: 500; }
.hs-step h3 { margin-top: 3.5rem; font-size: clamp(2rem, 3vw, 2.8rem); }
.hs-step p { color: var(--muted); margin-top: 1rem; }
.hs-step.accent h3 { color: var(--lime); }

/* Studio facts */
.facts { padding-block: 4rem 6rem; }
.facts dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.facts div { padding-top: 1.2rem; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .85rem; margin-bottom: .5rem; }
.facts dd { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.15; letter-spacing: -.02em; }

/* Quote */
.quote { border-top: 1px solid var(--line); }
.quote blockquote { font-family: var(--display); font-weight: 500; font-size: clamp(1.8rem, 4.2vw, 3.6rem); line-height: 1.1; letter-spacing: -.03em; max-width: 1150px; margin-bottom: 2rem; }
.quote p { color: var(--muted); }
.quote b { color: var(--ink); font-weight: 500; }

/* Contact */
.contact { padding: 6rem 0 5rem; overflow: hidden; }
.big-marquee { overflow: hidden; }
.big-track { display: flex; width: max-content; will-change: transform; }
.big-track span { font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 16vw, 15rem); line-height: 1; letter-spacing: -.05em; padding-right: 3rem; white-space: nowrap; }
.big-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.contact-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; padding: 3rem var(--pad) 0; }
.contact-row p { color: var(--muted); font-size: 1.15rem; max-width: 26rem; }
.cta {
  flex: none; padding: 1.4rem 2rem; border-radius: var(--radius); background: var(--lime); color: var(--bg);
  font-family: var(--display); font-weight: 700; font-size: clamp(1.2rem, 2.6vw, 2.2rem); letter-spacing: -.02em;
}
.cta:hover { background: var(--ink); }

.footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 2rem var(--pad); border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer div { display: flex; gap: 1.5rem; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--lime); }

@media (max-width: 900px) {
  .nav nav { display: none; }
  .hero { min-height: auto; padding-top: 7rem; }
  .hero-foot { grid-template-columns: 1fr; }
  .work a { grid-template-columns: 1fr auto; padding: 1.6rem 0; }
  .w-cat { display: none; }
  .hscroll-sticky { position: static; height: auto; max-height: none; padding-block: 6rem; }
  .hs-track { width: auto; flex-direction: column; border-left: 0; border-top: 1px solid var(--line); }
  .hs-step { width: 100%; padding: 1.5rem 0 2rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .hs-step h3 { margin-top: 1.2rem; }
  .facts dl { grid-template-columns: 1fr 1fr; }
  .contact-row { flex-direction: column; align-items: flex-start; }
  .cta { font-size: 1.15rem; padding: 1.1rem 1.4rem; }
}
