/* =========================================================
   FAMIN FJS — Video Editor & Filmmaker
   ========================================================= */
:root {
  --bg: #0b0a09;
  --bg-2: #141210;
  --ink: #f1e9de;
  --muted: #9b9184;
  --line: rgba(241, 233, 222, 0.14);
  --accent: #ff5a1f;
  --accent-2: #ffb38a;
  --display: "Anton", Impact, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.mono { font-family: var(--mono); letter-spacing: 0.08em; font-size: 0.75rem; }
em { font-style: normal; color: var(--accent); }
::selection { background: var(--accent); color: #000; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: #0b0a09;
  display: grid; place-items: center; align-content: center; gap: 24px;
  transition: clip-path 1s var(--ease);
  clip-path: inset(0 0 0 0);
}
.loader.done { clip-path: inset(0 0 100% 0); }
.leader { position: relative; width: min(46vw, 220px); aspect-ratio: 1; }
.leader-ring { width: 100%; height: 100%; }
.leader-ring circle, .leader-ring line { fill: none; stroke: rgba(241,233,222,.35); stroke-width: 1.5; }
.leader-ring .sweep {
  stroke: var(--accent); stroke-width: 88; opacity: .18;
  stroke-dasharray: 277; stroke-dashoffset: 277;
  transform: rotate(-90deg); transform-origin: center;
  r: 44;
  animation: sweep 0.7s linear infinite;
}
@keyframes sweep { to { stroke-dashoffset: 0; } }
.leader-num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-size: clamp(4rem, 14vw, 7rem); color: var(--ink);
}
.loader-label { color: var(--muted); }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 900; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0) } 20% { transform: translate(-5%,3%) } 40% { transform: translate(3%,-6%) }
  60% { transform: translate(-7%,2%) } 80% { transform: translate(4%,5%) } 100% { transform: translate(0,0) }
}

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 950; pointer-events: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), background .3s;
}
.cursor span { font: 600 .7rem var(--mono); letter-spacing: .1em; color: #000; opacity: 0; transition: opacity .2s; }
.cursor.hover { width: 54px; height: 54px; }
.cursor.play { width: 92px; height: 92px; background: var(--ink); mix-blend-mode: normal; }
.cursor.play span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  transition: padding .4s var(--ease), background .4s, transform .5s var(--ease);
}
.nav.scrolled { padding: 14px var(--gutter); background: rgba(11,10,9,.72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav.hide { transform: translateY(-100%); }
.logo { font-family: var(--display); font-size: 1.7rem; letter-spacing: .04em; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 34px; font-size: .9rem; }
.nav-links a { position: relative; color: var(--muted); transition: color .3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.rec { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.rec i, .rec-dot { color: var(--accent); }
.rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .15; } }
.burger { display: none; width: 34px; height: 20px; position: relative; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 4px; } .burger span:last-child { top: 14px; }
.burger.open span:first-child { top: 9px; transform: rotate(45deg); }
.burger.open span:last-child { top: 9px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; border-radius: 100px; font-weight: 600; font-size: .92rem;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn-solid { background: var(--accent); color: #000; }
.btn-solid::before { background: var(--ink); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost::before { background: var(--accent); }
.btn:hover::before { transform: translateY(0); }
.btn-ghost:hover { color: #000; border-color: var(--accent); }

/* ---------- Common ---------- */
section { position: relative; }
.eyebrow { color: var(--accent); margin-bottom: 22px; display: block; }
.section-title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 6rem); line-height: .95; letter-spacing: .01em;
}
.section-head { padding: 0 var(--gutter); }

/* reveal animations */
.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-up.in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split.in .w > span { transform: none; }
/* A cover panel slides away to reveal the element. (Clipping the element itself made Chrome's
   IntersectionObserver treat it as invisible, so the reveal never fired.) */
.reveal-clip::after {
  content: ""; position: absolute; inset: 0; z-index: 2; background: var(--bg);
  transform-origin: 50% 0%; transition: transform 1.4s var(--ease);
}
.reveal-clip.in::after { transform: scaleY(0); }

/* ---------- Hero ---------- */
.hero-pin { position: relative; height: 320vh; }
.hero {
  position: sticky; top: 0;
  height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; background: #050404;
}
.hero-stage {
  position: absolute; inset: 0;
  display: grid; align-items: center;
  padding: 0 var(--gutter);
  background: radial-gradient(ellipse at 70% 40%, #2a1d14 0%, var(--bg) 60%);
  clip-path: circle(var(--r, 150%) at 50% 50%);
  will-change: clip-path, transform;
  transform-origin: 50% 50%;
}

/* behind the iris: "CUT TO — SCENE 01" */
.hero-cut {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center;
  text-align: center; gap: 14px; padding: 0 var(--gutter);
}
.cut-to { color: var(--accent); font-size: .85rem; letter-spacing: .3em; opacity: var(--c1, 0); transform: translateY(calc((1 - var(--c1, 0)) * 20px)); }
.cut-scene {
  font-family: var(--display); text-transform: uppercase; line-height: .85;
  font-size: clamp(4.5rem, 17vw, 16rem); white-space: nowrap;
  opacity: var(--c2, 0); transform: scale(calc(1.3 - var(--c2, 0) * .3)); letter-spacing: calc((1 - var(--c2, 0)) * .3em);
}
.cut-num { color: transparent; -webkit-text-stroke: 2px var(--accent); }
.cut-sub { color: var(--muted); opacity: var(--c3, 0); transform: translateY(calc((1 - var(--c3, 0)) * 20px)); }
.clap {
  order: -1; width: min(280px, 60vw); height: 34px; margin-bottom: 10px; position: relative;
  opacity: var(--c1, 0);
}
.clap::before, .clap i {
  content: ""; position: absolute; left: 0; right: 0; height: 16px; border-radius: 2px;
  background: repeating-linear-gradient(-55deg, var(--ink) 0 18px, #111 18px 36px);
}
.clap::before { bottom: 0; }
.clap i { top: 0; transform-origin: 2px 100%; transform: rotate(var(--clap, -24deg)); transition: transform .12s ease-in; }

/* lens focus ring that follows the iris edge */
.lens-ring {
  position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; pointer-events: none;
  transform: translate(-50%, -50%) rotate(0deg); opacity: 0; z-index: 6;
}
.lens-ring svg { width: 100%; height: 100%; overflow: visible; }
.lr-outer { fill: none; stroke: rgba(241,233,222,.55); stroke-width: .6; vector-effect: non-scaling-stroke; }
.lr-ticks { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: .6 3.2; }
.lens-ring text { fill: rgba(241,233,222,.7); font: 500 5px var(--mono); letter-spacing: .12em; }

.flash { position: absolute; inset: 0; background: #fff6ec; opacity: 0; pointer-events: none; z-index: 8; mix-blend-mode: screen; }
.flash.go { animation: flash .55s ease-out; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: .8; } 100% { opacity: 0; } }
.hero-bg-text {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
}
.outline {
  font-family: var(--display); font-size: clamp(9rem, 34vw, 32rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(241,233,222,.16);
  letter-spacing: -.01em;
}
.hero-lights { position: absolute; inset: 0; pointer-events: none; }
.hero-lights i {
  position: absolute; top: -10%; width: 2px; height: 75%;
  background: linear-gradient(to bottom, transparent, #fff3e3 30%, #fff3e3 70%, transparent);
  box-shadow: 0 0 18px 3px rgba(255,220,180,.45);
  opacity: .55;
}
.hero-lights i:nth-child(1) { left: 54%; height: 60%; }
.hero-lights i:nth-child(2) { left: 80%; top: 5%; }
.hero-lights i:nth-child(3) { left: 91%; height: 55%; }
.hero-lights i:nth-child(4) { left: 97%; top: 20%; height: 50%; }

.hero-photo {
  position: absolute; right: calc(var(--gutter) + 6vw); bottom: -4vh;
  width: min(36vw, 520px); aspect-ratio: 2/3;
}
.hero-photo-inner {
  width: 100%; height: 100%; overflow: hidden; border-radius: 4px;
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.6s var(--ease) .3s;
}
.ready .hero-photo-inner { clip-path: inset(0 0 0 0); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); transition: transform 2.2s var(--ease) .3s; }
.ready .hero-photo img { transform: scale(1.05); }

.hero-copy { position: relative; z-index: 4; max-width: 760px; }
.hero-title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(3.4rem, 7.6vw, 8rem); line-height: .9; margin-bottom: 26px;
  text-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.3s var(--ease); }
.hero-title .line:nth-child(2) > span { transition-delay: .12s; }
.ready .hero-title .line > span { transform: none; }
.hero-sub { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.2rem); margin-bottom: 36px; max-width: 440px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .reveal-up { transition-delay: .6s; }

/* viewfinder */
.viewfinder { position: absolute; inset: clamp(70px, 9vh, 96px) var(--gutter) clamp(24px, 4vh, 40px); pointer-events: none; z-index: 3; }
.viewfinder .c { position: absolute; width: 28px; height: 28px; border: 2px solid rgba(241,233,222,.7); }
.c.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.c.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.c.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.c.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.vf-top, .vf-bottom { position: absolute; left: 44px; right: 44px; display: flex; justify-content: space-between; color: rgba(241,233,222,.75); }
.vf-top { top: 6px; } .vf-bottom { bottom: 6px; }
.rec-dot { animation: blink 1.2s infinite; }
.vf-cross { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%,-50%); opacity: .35; }
.vf-cross::before, .vf-cross::after { content: ""; position: absolute; background: var(--ink); }
.vf-cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.vf-cross::after { top: 50%; left: 0; right: 0; height: 1px; }

.scroll-hint {
  position: absolute; left: 50%; bottom: clamp(50px, 8vh, 80px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); z-index: 4;
}
.scroll-hint span { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; background: var(--accent); color: #000;
  padding: 18px 0; transform: rotate(-2deg) scale(1.05); margin: 40px 0 0;
  position: relative; z-index: 5;
}
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee span { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2.4rem); white-space: nowrap; letter-spacing: .03em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 7vw, 120px); align-items: center;
  padding: clamp(70px, 10vh, 120px) var(--gutter);
}
.about-photo { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 4px; }
.about-photo-inner { position: absolute; inset: -15% 0; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: grayscale(.25) contrast(1.05); }
.about-art {
  display: grid; place-items: center;
  background:
    radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%),
    repeating-linear-gradient(0deg, rgba(241,233,222,.025) 0 1px, transparent 1px 4px),
    var(--bg-2);
}
.about-art .perf {
  position: absolute; top: 0; bottom: 0; width: 22px;
  background: repeating-linear-gradient(180deg, transparent 0 14px, rgba(241,233,222,.12) 14px 30px, transparent 30px 44px);
  background-size: 10px 44px; background-repeat: repeat-y; background-position: center;
}
.about-art .perf-l { left: 12px; }
.about-art .perf-r { right: 12px; }
.slate { width: min(78%, 360px); transform: rotate(-6deg); filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
.slate-sticks { position: relative; height: 54px; }
.slate-sticks i {
  position: absolute; left: 0; right: 0; height: 26px; border-radius: 3px;
  background: repeating-linear-gradient(135deg, var(--ink) 0 22px, #111 22px 44px);
}
.slate-base { bottom: 0; }
.slate-top { top: 0; transform-origin: 6% 100%; transform: rotate(-16deg); transition: transform .5s var(--ease); }
.about-photo:hover .slate-top { transform: rotate(0deg); }
.slate-board { background: #111; border: 2px solid rgba(241,233,222,.85); border-radius: 4px; color: var(--ink); }
.slate-row { border-bottom: 1.5px solid rgba(241,233,222,.5); padding: 10px 14px; }
.slate-row:last-child { border-bottom: 0; }
.slate-row span { display: block; color: var(--muted); font-size: .58rem; }
.slate-row b { font-family: var(--display); font-weight: 400; font-size: clamp(1.1rem, 2vw, 1.6rem); line-height: 1.1; letter-spacing: .02em; }
.slate-prod b { color: var(--accent); }
.slate-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 0; }
.slate-grid > div { padding: 10px 14px; border-right: 1.5px solid rgba(241,233,222,.5); }
.slate-grid > div:last-child { border-right: 0; }
.slate-foot { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .6rem; }
.slate-foot span { display: inline; font-size: inherit; }
.about-photo .tag { position: absolute; left: 16px; bottom: 16px; background: rgba(0,0,0,.6); padding: 6px 10px; backdrop-filter: blur(6px); }
.about-copy .section-title { margin-bottom: 32px; }
.about-copy p { color: var(--muted); margin-bottom: 18px; max-width: 560px; font-size: 1.05rem; }
.about-copy strong { color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; border-top: 1px solid var(--line); padding-top: 32px; }
.stat b { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; }
.stat sup { font-family: var(--display); color: var(--accent); font-size: 1.6rem; }
.stat span { display: block; color: var(--muted); font-size: .85rem; margin-top: 6px; }

/* ---------- Warp (3D tunnel) ---------- */
.warp { height: 380vh; background: #050404; }
.warp-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  perspective: 900px; perspective-origin: 50% 50%;
  background: radial-gradient(circle at 50% 50%, #1d130c 0%, #050404 65%);
}
.warp-stage::after { /* vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 35%, rgba(0,0,0,.85) 100%);
}
.warp-world {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform-style: preserve-3d; will-change: transform;
}
.wf { /* a floating video frame */
  position: absolute; left: 0; top: 0;
  width: var(--fw, 340px); aspect-ratio: 16/9;
  margin-left: calc(var(--fw, 340px) / -2); margin-top: calc(var(--fw, 340px) * -9 / 32);
  border-radius: 3px; overflow: hidden;
  background:
    var(--img, none) center 25%/cover,
    radial-gradient(circle at 30% 30%, var(--a), transparent 60%),
    radial-gradient(circle at 80% 80%, color-mix(in srgb, var(--a) 50%, #000), transparent 55%),
    #0d0b09;
  box-shadow: 0 0 0 1px rgba(241,233,222,.25), 0 20px 60px rgba(0,0,0,.6);
  backface-visibility: hidden;
}
.wf::before { /* film sprockets top & bottom */
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(241,233,222,.85) 10px 18px, transparent 18px 28px) top / 100% 7px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(241,233,222,.85) 10px 18px, transparent 18px 28px) bottom / 100% 7px no-repeat,
    linear-gradient(#000, #000) top / 100% 13px no-repeat,
    linear-gradient(#000, #000) bottom / 100% 13px no-repeat;
  opacity: .9;
}
.wf::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 2px, transparent 2px 4px); }
.wf .lbl { position: absolute; left: 10px; top: 18px; z-index: 1; font: 500 10px var(--mono); letter-spacing: .1em; color: #fff; text-shadow: 0 1px 4px #000; }
.wf .lbl i { color: var(--accent); font-style: normal; }
.wf .tc { position: absolute; right: 10px; bottom: 18px; z-index: 1; font: 500 10px var(--mono); color: rgba(255,255,255,.8); }
.wf .pl { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 1; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); display: grid; place-items: center; font-size: 12px; padding-left: 3px; color: #fff; background: rgba(0,0,0,.25); }

.ww { /* giant word in space */
  position: absolute; left: 0; top: 0; translate: -50% -50%;
  font-family: var(--display); text-transform: uppercase; white-space: nowrap; line-height: .9;
  font-size: clamp(5rem, 16vw, 15rem); color: var(--ink);
  text-shadow: 0 0 40px rgba(255,90,31,.35);
}
.ww.out { color: transparent; -webkit-text-stroke: 2px var(--accent); text-shadow: none; }
.ww small { display: block; text-align: center; font: 500 clamp(.7rem, 1.2vw, .95rem) var(--mono); letter-spacing: .35em; color: var(--accent); margin-top: 12px; -webkit-text-stroke: 0; }

.wd { position: absolute; left: 0; top: 0; width: 3px; height: 3px; border-radius: 50%; background: #ffd9bf; box-shadow: 0 0 6px #ff9a66; }

.portal { /* final frame you fly through into Services */
  position: absolute; left: 0; top: 0; width: 960px; aspect-ratio: 16/9; margin: -270px 0 0 -480px;
  border: 2px solid var(--accent); border-radius: 6px;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle, rgba(255,90,31,.14), rgba(5,4,4,.55) 70%);
  box-shadow: 0 0 80px rgba(255,90,31,.35), inset 0 0 80px rgba(255,90,31,.2);
}
.portal p { font-family: var(--display); font-size: 9rem; line-height: .9; text-transform: uppercase; }
.portal span { font: 500 1rem var(--mono); letter-spacing: .4em; color: var(--accent); display: block; margin-top: 14px; }
.portal i { position: absolute; width: 40px; height: 40px; border: 3px solid var(--ink); }
.portal i:nth-of-type(1) { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.portal i:nth-of-type(2) { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.portal i:nth-of-type(3) { bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.portal i:nth-of-type(4) { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }

.warp-hud { position: absolute; inset: clamp(80px, 11vh, 110px) var(--gutter) clamp(24px, 4vh, 40px); pointer-events: none; z-index: 5; color: rgba(241,233,222,.75); }
.warp-hud > div { position: absolute; line-height: 1.7; }
.warp-hud b { color: var(--ink); font-weight: 500; font-size: 1rem; letter-spacing: .15em; }
.hud-tl { top: 0; left: 0; } .hud-tr { top: 0; right: 0; text-align: right; }
.hud-bl { bottom: 0; left: 0; color: var(--accent); font-size: .9rem; letter-spacing: .3em; }
.hud-br { bottom: 0; right: 0; display: flex; align-items: center; gap: 12px; }
.hud-meter { width: clamp(80px, 14vw, 180px); height: 2px; background: rgba(241,233,222,.2); }
.hud-meter i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.hud-ret { left: 50%; top: 50%; width: 70px; height: 70px; translate: -50% calc(-50% - clamp(80px, 11vh, 110px) / 2 + clamp(24px, 4vh, 40px) / 2); border: 1px solid rgba(241,233,222,.25); border-radius: 50%; }
.hud-ret::before, .hud-ret::after { content: ""; position: absolute; background: rgba(241,233,222,.4); }
.hud-ret::before { left: 50%; top: -12px; bottom: -12px; width: 1px; }
.hud-ret::after { top: 50%; left: -12px; right: -12px; height: 1px; }

/* ---------- Services ---------- */
.services { padding: clamp(70px, 10vh, 120px) 0 clamp(60px, 8vh, 100px); }
.services .section-title { margin-bottom: 40px; max-width: 900px; }
.service-list { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 80px 1fr 1.2fr 60px; align-items: center; gap: 24px;
  padding: 38px var(--gutter); border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden; isolation: isolate;
}
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease);
}
.service h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: 1; transition: transform .6s var(--ease), color .4s; }
.service p { color: var(--muted); transition: color .4s; }
.service .num { color: var(--accent); transition: color .4s; }
.service .arrow { font-size: 2rem; justify-self: end; transition: transform .6s var(--ease); }
.service:hover::before { transform: scaleY(1); }
.service:hover h3 { transform: translateX(16px); color: #000; }
.service:hover p, .service:hover .num, .service:hover .arrow { color: #000; }
.service:hover .arrow { transform: rotate(45deg); }

/* ---------- Work (horizontal) ---------- */
.work { height: 300vh; background: var(--bg-2); }
.work-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.work-head { position: absolute; top: clamp(80px, 13vh, 130px); left: var(--gutter); right: var(--gutter); display: flex; align-items: flex-end; gap: 30px; }
.work-head .eyebrow { position: absolute; top: -34px; margin: 0; }
.work-counter { margin-left: auto; color: var(--muted); font-size: 1rem; }
.work-counter span:first-child { color: var(--ink); }
.work-track { display: flex; gap: clamp(20px, 3vw, 44px); padding: 0 var(--gutter); margin-top: clamp(90px, 12vh, 140px); will-change: transform; width: max-content; align-items: center; }
.work-card { flex: 0 0 auto; width: clamp(280px, 38vw, 600px); }
.work-card .thumb { aspect-ratio: 16/10; overflow: hidden; border-radius: 4px; position: relative; }
.thumb-inner { /* parallax layer, moved by JS every frame, so it must NOT have a CSS transition */
  position: absolute; inset: 0 -12%; will-change: transform;
}
.thumb-media { /* hover-zoom layer */
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, var(--a), transparent 55%),
    radial-gradient(circle at 80% 80%, color-mix(in srgb, var(--a) 60%, #000), transparent 50%),
    var(--b);
  transition: transform .9s var(--ease);
}
.thumb-media img { width: 100%; height: 100%; object-fit: cover; }
.thumb-media::after { /* scanlines */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 2px, transparent 2px 4px);
}
.play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 1;
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; padding-left: 4px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.35);
  font-size: 1.3rem; transition: transform .5s var(--ease), background .4s, color .4s;
}
.work-card:hover .play { transform: scale(1.18); background: var(--ink); color: #000; }
.work-card:hover .thumb-media { transform: scale(1.06); }
.work-card .meta { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.work-card .meta span { color: var(--muted); }
.work-card h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.5rem, 2.6vw, 2.4rem); line-height: 1; }
.work-end { flex: 0 0 auto; width: clamp(260px, 30vw, 440px); display: flex; flex-direction: column; gap: 26px; align-items: flex-start; padding-left: 20px; }
.work-end p { font-family: var(--display); text-transform: uppercase; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; }
.work-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(30px, 6vh, 60px); height: 2px; background: var(--line); }
.work-progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------- Process (timeline) ---------- */
.process { height: 220vh; }
.process-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(26px, 5vh, 50px); overflow: hidden; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding: 0 var(--gutter); }
.step { border-top: 2px solid var(--line); padding-top: 14px; opacity: .35; transition: opacity .5s, border-color .5s; }
.step span { color: var(--accent); }
.step b { display: block; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.1rem, 2vw, 1.7rem); margin: 4px 0; }
.step p { color: var(--muted); font-size: .85rem; line-height: 1.4; }
.step.active { opacity: 1; border-color: var(--accent); }

.timeline {
  position: relative; margin: 0 var(--gutter);
  background: #161412; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 14px 14px; --lab: 44px;
}
.ruler { height: 22px; margin-left: var(--lab); position: relative; color: var(--muted); font-size: .62rem; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.ruler i { position: absolute; bottom: 0; width: 1px; height: 6px; background: var(--line); }
.ruler i.big { height: 12px; background: rgba(241,233,222,.35); }
.ruler em { position: absolute; top: 0; color: var(--muted); transform: translateX(-50%); font-style: normal; }
.track { display: flex; align-items: center; height: clamp(34px, 6vh, 50px); margin-bottom: 6px; }
.track .label { width: var(--lab); flex: 0 0 var(--lab); color: var(--muted); }
.lane { position: relative; flex: 1; height: 100%; background: rgba(255,255,255,.025); border-radius: 4px; }
.clip {
  position: absolute; top: 3px; bottom: 3px; left: var(--l); width: var(--w);
  border-radius: 4px; font: 500 .62rem var(--mono); letter-spacing: .06em; font-style: normal;
  display: flex; align-items: center; padding: 0 10px; white-space: nowrap; overflow: hidden;
  transform: scaleX(0); transform-origin: left; opacity: 0;
  transition: transform .8s var(--ease), opacity .4s;
}
.clip.on { transform: scaleX(1); opacity: 1; }
.clip.v { background: linear-gradient(#3d6bff, #2a4fd0); color: #fff; border: 1px solid #6c8fff; }
.clip.t { background: linear-gradient(#c56cff, #9a3fd8); color: #fff; border: 1px solid #dd9dff; }
.clip.a { background: linear-gradient(#1fbf75, #128a53); border: 1px solid #4fe39b; padding: 0; }
.clip.g { background: linear-gradient(90deg, #ff5a1f, #ffb38a, #4cc9f0); color: #000; border: 1px solid rgba(255,255,255,.4); }
.wave { width: 100%; height: 100%; }
.wave path { fill: rgba(0,0,0,.35); }
.playhead {
  position: absolute; top: 6px; bottom: 8px; width: 2px; background: var(--accent);
  left: calc(14px + var(--lab)); z-index: 3; box-shadow: 0 0 12px var(--accent);
}
.playhead span {
  position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #000; padding: 2px 6px; border-radius: 3px; font-size: .62rem; white-space: nowrap;
}

/* ---------- Toolkit ---------- */
.tools { padding: clamp(70px, 10vh, 120px) 0 clamp(50px, 8vh, 90px); }
.tools .section-title { margin-bottom: 40px; max-width: 900px; }
.tool-grid {
  list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin: 0 var(--gutter);
}
.tool {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 260px;
  padding: 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; isolation: isolate; transition: background .5s var(--ease);
}
.tool::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--tc) 22%, transparent), transparent 70%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.tool-badge {
  display: block; width: 72px; height: 72px; margin-bottom: auto;
  transition: transform .6s var(--ease), filter .4s;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.45));
}
.tool-badge img { width: 100%; height: 100%; object-fit: contain; }
.tool h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1; margin-top: 30px; }
.tool p { color: var(--muted); font-size: .92rem; line-height: 1.4; }
.tool-num { position: absolute; top: 28px; right: 24px; color: var(--muted); }
.tool:hover::before { opacity: 1; }
.tool:hover .tool-badge { transform: translateY(-6px) rotate(-6deg) scale(1.06); filter: drop-shadow(0 14px 24px color-mix(in srgb, var(--tc) 45%, transparent)); }

/* ---------- Band ---------- */
.band { padding: clamp(40px, 7vh, 80px) 0; overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
.band-row { white-space: nowrap; will-change: transform; }
.band-row span { font-family: var(--display); font-size: clamp(3.4rem, 10vw, 10rem); line-height: 1; text-transform: uppercase; display: inline-block; }
.band-row:first-child span { color: var(--ink); }
.outline-row span { color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.band-row:last-child span { color: #2c2722; }

/* ---------- Quote ---------- */
.quote { padding: clamp(30px, 5vh, 60px) var(--gutter) clamp(40px, 6vh, 70px); max-width: 1300px; margin: 0 auto; text-align: center; }
.quote blockquote { font-family: var(--display); text-transform: uppercase; font-size: clamp(2rem, 5vw, 4.4rem); line-height: 1.05; margin-bottom: 30px; }
.quote .who { color: var(--muted); }
.quote .eyebrow { margin-bottom: 30px; }

/* ---------- Contact ---------- */
.contact {
  padding: clamp(70px, 11vh, 130px) var(--gutter) clamp(70px, 10vh, 110px);
  overflow: hidden; text-align: center; display: flex; flex-direction: column; align-items: center;
}
.contact-bg {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  font-family: var(--display); font-size: clamp(8rem, 30vw, 28rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255,90,31,.18); pointer-events: none; white-space: nowrap;
}
.contact-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(3rem, 9vw, 8.5rem); line-height: .92; max-width: 1100px; margin-bottom: 40px; position: relative; }
.contact-mail {
  font-size: clamp(1.3rem, 3.6vw, 2.6rem); font-weight: 300; position: relative;
  border-bottom: 1px solid var(--accent); padding-bottom: 6px; margin-bottom: 44px; display: inline-block;
  transition: color .3s;
}
.contact-mail:hover { color: var(--accent); }
.contact-links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; position: relative; }

/* ---------- Footer ---------- */
.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px var(--gutter); border-top: 1px solid var(--line); color: var(--muted); }
.footer a:hover { color: var(--accent); }
.footer-credit { color: var(--ink); border-bottom: 1px solid var(--accent); transition: color .3s; }


/* ---------- Laravel additions ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
ol.steps { list-style: none; }
.quote-item + .quote-item { margin-top: 56px; }

.contact-grid {
  position: relative; width: 100%; max-width: 1100px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: start; text-align: left;
}
.contact-info { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-top: 6px; }
.contact-info .contact-mail { margin-bottom: 0; font-size: clamp(1.2rem, 2.4vw, 1.9rem); word-break: break-all; }
.contact-info .contact-links { justify-content: flex-start; }
.contact-loc { color: var(--muted); font-size: .85rem; }
.contact-form {
  display: grid; gap: 16px; padding: clamp(20px, 3vw, 34px);
  background: rgba(20,18,16,.75); border: 1px solid var(--line); border-radius: 10px; backdrop-filter: blur(10px);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; font-size: .82rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #0e0c0b; border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,90,31,.18); }
.contact-form .btn { justify-self: start; }
.err { color: #ff7b7b; font-size: .78rem; }
.form-ok { background: rgba(128,237,153,.12); border: 1px solid rgba(128,237,153,.4); color: #b6f5c4; padding: 12px 14px; border-radius: 6px; font-size: .9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* project detail page */
.page-project .nav { background: rgba(11,10,9,.85); }
.project-page { max-width: 1200px; margin: 0 auto; padding: clamp(110px, 16vh, 150px) var(--gutter) clamp(60px, 10vh, 100px); }
.crumbs { color: var(--muted); margin-bottom: 26px; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--ink); }
.project-head .section-title { margin-bottom: 34px; }
.project-player { display: grid; gap: 18px; justify-items: start; }
.project-player iframe, .project-player img, .project-placeholder {
  width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 8px; object-fit: cover;
  box-shadow: 0 30px 90px rgba(0,0,0,.6), 0 0 0 1px var(--line);
}
.project-placeholder {
  display: grid; place-items: center; color: var(--ink);
  background: radial-gradient(circle at 30% 30%, var(--a), transparent 60%), color-mix(in srgb, var(--a) 14%, #050404);
}
.project-body { max-width: 760px; margin-top: 40px; color: var(--muted); font-size: 1.08rem; }
.project-body p + p { margin-top: 16px; }
.project-cta { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.project-cta p { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.6rem, 3.6vw, 2.8rem); line-height: 1; }
.project-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; color: var(--muted); }
.project-nav a:hover { color: var(--accent); }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links {
    position: fixed; inset: 0; background: var(--bg); flex-direction: column; justify-content: center; align-items: center; gap: 26px;
    font-family: var(--display); font-size: 2.6rem; text-transform: uppercase;
    clip-path: circle(0% at calc(100% - 40px) 36px); transition: clip-path .8s var(--ease); z-index: -1;
  }
  .nav-links a { color: var(--ink); }
  .nav-links.open { clip-path: circle(150% at calc(100% - 40px) 36px); }
  .burger { display: block; }
  .rec { display: none; }

  .hero-stage { align-items: end; padding-bottom: 16vh; }
  .hero-photo { right: 50%; translate: 50% 0; top: 13vh; bottom: auto; width: min(64vw, 380px); opacity: .55; }
  .hero-copy { text-align: left; }
  .hero-lights i:nth-child(n+3) { display: none; }
  .vf-top span:nth-child(n+2):not(.batt) { display: none; }
  .scroll-hint { display: none; }

  .about { grid-template-columns: 1fr; }
  .about { gap: 28px; padding-top: 48px; padding-bottom: 40px; }
  .about-photo { width: 100%; max-width: 420px; aspect-ratio: 1 / 1.1; justify-self: center; }
  .about-copy .section-title { margin-bottom: 20px; }
  .stats { margin-top: 28px; padding-top: 22px; }
  .marquee { margin-top: 16px; }
  .service { grid-template-columns: 50px 1fr 40px; }
  .service p { grid-column: 2 / 3; grid-row: 2; }
  .service .arrow { grid-row: 1; grid-column: 3; }

  .steps { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; }
  .step p { display: none; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool { min-height: 220px; }
  .timeline { --lab: 30px; padding: 8px; }
  .clip { font-size: .5rem; padding: 0 5px; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .stat span { font-size: .72rem; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 18px; min-height: 0; padding: 20px; }
  .tool-badge { width: 52px; height: 52px; margin-bottom: 0; }
  .tool h3 { margin-top: 0; flex: 1; }
  .tool p { flex-basis: 100%; }
  .tool-num { top: 20px; right: 20px; }
  .work-card { width: 78vw; }
  .work-head { flex-wrap: wrap; }
  .footer { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .hero-pin { height: auto; }
  .hero { position: relative; }
  .hero-cut, .lens-ring, .flash { display: none; }
  .warp { height: 100vh; }
}
