/* ==========================================================
   Abdelrahman Tarek — Videographer & Video Editor (Option 2)
   Concept: the site is an edit suite. Hero = camera viewfinder,
   sections = scenes on a timeline, scroll = the playhead.
   ========================================================== */

:root {
  --bg: #0a0a0b;
  --bg-2: #121214;
  --bg-3: #1a1a1d;
  --ink: #f2f2f0;
  --ink-2: #a8a8a6;
  --ink-3: #6a6a68;
  --line: rgba(242, 242, 240, 0.12);
  --line-2: rgba(242, 242, 240, 0.22);
  --rec: #ff3b2f;
  --amber: #ffcc33;
  --violet: #6c7cff;
  --mint: #3ddc97;
  --orange: #ff8a3d;
  --scene: var(--rec);

  --f-display: "Anton", "Impact", sans-serif;
  --f-sans: "Inter Tight", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --tl-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-cut: cubic-bezier(.85, 0, .15, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--tl-h);
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; display: block; }
::selection { background: var(--rec); color: #fff; }

.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 12px var(--rec); animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { opacity: .15; } }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  pointer-events: none; z-index: 120; opacity: 0;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s;
  background:
    linear-gradient(var(--ink), var(--ink)) top left / 9px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) top left / 1.5px 9px no-repeat,
    linear-gradient(var(--ink), var(--ink)) top right / 9px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) top right / 1.5px 9px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom left / 9px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom left / 1.5px 9px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom right / 9px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom right / 1.5px 9px no-repeat;
  mix-blend-mode: difference;
}
.cursor::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px; background: var(--ink); border-radius: 50%; }
.cursor__label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 10px; color: var(--ink); opacity: 0; white-space: nowrap; transition: opacity .2s; }
.cursor.is-on { opacity: 1; }
.cursor.is-link { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
.cursor.is-play { width: 86px; height: 86px; margin: -43px 0 0 -43px; }
.cursor.is-play::after { opacity: 0; }
.cursor.is-play .cursor__label { opacity: 1; }
@media (hover: hover) and (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; } }

/* ---------- Film leader intro ---------- */
.leader {
  position: fixed; inset: 0; z-index: 200; background: #0d0d0e;
  display: grid; place-items: center; align-content: center; gap: 28px;
  transition: clip-path .7s var(--ease-cut);
  clip-path: inset(0 0 0 0);
}
.leader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.leader__ring { position: relative; width: min(56vw, 280px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--line-2); }
.leader__ring::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px solid var(--line); }
.leader__ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.leader__sweep { fill: none; stroke: rgba(242,242,240,.13); stroke-width: 160; stroke-dasharray: 503; stroke-dashoffset: 503; animation: sweep .62s linear infinite; }
@keyframes sweep { to { stroke-dashoffset: 0; } }
.leader__num { font-family: var(--f-display); font-size: clamp(90px, 22vw, 160px); line-height: 1; position: relative; z-index: 2; }
.leader__cross { position: absolute; background: var(--line-2); }
.leader__cross--h { left: -12%; right: -12%; height: 1px; top: 50%; }
.leader__cross--v { top: -12%; bottom: -12%; width: 1px; left: 50%; }
.leader__meta { color: var(--ink-3); }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; gap: 24px;
  padding: 16px var(--gutter);
  transition: background .4s, padding .4s;
}
.topbar.is-solid { background: rgba(10,10,11,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark { width: 38px; height: 38px; display: grid; place-items: center; font-family: var(--f-display); font-size: 17px; letter-spacing: .02em; background: var(--ink); color: var(--bg); border-radius: 3px; position: relative; }
.brand__mark::after { content: ""; position: absolute; right: -3px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 10px var(--rec); }
.brand__name { display: flex; flex-direction: column; font-weight: 600; font-size: 15px; line-height: 1.15; }
.brand__name small { color: var(--ink-3); font-size: 9.5px; margin-top: 3px; }
.nav { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: rgba(18,18,20,.5); }
.nav a { padding: 7px 14px; border-radius: 4px; font-size: 13.5px; color: var(--ink-2); transition: color .25s, background .25s; }
.nav a:hover, .nav a.is-active { color: var(--ink); background: var(--bg-3); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 6px; font-weight: 600; font-size: 14.5px; transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn--rec { border: 1px solid var(--line-2); font-size: 13.5px; padding: 9px 16px; }
.btn--rec:hover { border-color: var(--rec); background: rgba(255,59,47,.1); }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--rec); color: #fff; }
.btn--ghost { border: 1px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }

/* ---------- Hero / viewfinder ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; padding: 120px var(--gutter) 96px; overflow: hidden; isolation: isolate; }
.hero__light { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 30% 60%, transparent 0%, rgba(10,10,11,.55) 55%, var(--bg) 100%); }

.vf { position: absolute; inset: 86px calc(var(--gutter) - 8px) 30px; pointer-events: none; z-index: 0; }
.vf__c { position: absolute; width: 34px; height: 34px; border: 0 solid var(--ink); opacity: .7; }
.vf__c--tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.vf__c--tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.vf__c--bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.vf__c--br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.vf__thirds { position: absolute; inset: 0; opacity: .07;
  background:
    linear-gradient(90deg, transparent calc(33.33% - .5px), var(--ink) calc(33.33% - .5px), var(--ink) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), var(--ink) calc(66.66% - .5px), var(--ink) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
    linear-gradient(0deg, transparent calc(33.33% - .5px), var(--ink) calc(33.33% - .5px), var(--ink) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), var(--ink) calc(66.66% - .5px), var(--ink) calc(66.66% + .5px), transparent calc(66.66% + .5px));
}
.vf__hud { position: absolute; left: 50px; right: 50px; display: flex; gap: 22px; align-items: center; color: var(--ink-2); }
.vf__hud--top { top: 10px; }
.vf__hud--top span:first-child { color: var(--ink); display: flex; align-items: center; gap: 8px; margin-right: auto; }
.vf__hud--top em { font-style: normal; }
.vf__hud--bottom { bottom: 10px; justify-content: flex-end; }
.vf__hud--bottom span:first-child { margin-right: auto; }
.batt { width: 26px; height: 12px; border: 1.5px solid var(--ink-2); border-radius: 2px; position: relative; }
.batt::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; background: var(--ink-2); }
.batt i { position: absolute; inset: 1.5px; right: 30%; background: var(--mint); }
.meter { display: flex; gap: 2px; align-items: flex-end; height: 12px; }
.meter i { width: 3px; background: var(--mint); animation: meter 0.9s ease-in-out infinite alternate; }
.meter i:nth-child(n+6) { background: var(--amber); }
.meter i:nth-child(n+8) { background: var(--rec); }
.meter i:nth-child(1) { animation-delay: -.2s } .meter i:nth-child(2) { animation-delay: -.5s } .meter i:nth-child(3) { animation-delay: -.1s } .meter i:nth-child(4) { animation-delay: -.7s }
.meter i:nth-child(5) { animation-delay: -.3s } .meter i:nth-child(6) { animation-delay: -.6s } .meter i:nth-child(7) { animation-delay: -.4s } .meter i:nth-child(8) { animation-delay: -.8s }
@keyframes meter { from { height: 2px; } to { height: 12px; } }
.vf__focus { position: absolute; width: 90px; height: 64px; left: 30%; top: 40%; border: 1.5px solid var(--amber); opacity: 0; transform: translate(-50%, -50%) scale(1.25); transition: left .6s var(--ease), top .6s var(--ease), opacity .3s, transform .4s var(--ease); }
.vf__focus.is-on { opacity: .85; transform: translate(-50%, -50%) scale(1); }

.hero__inner { position: relative; z-index: 2; max-width: 1100px; min-width: 0; }
.eyebrow { color: var(--ink-2); margin: 0 0 22px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--rec); }
.hero__title { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(64px, 11.2vw, 200px); line-height: .86; letter-spacing: -.005em; margin: 0 0 34px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .02em; }
.hero__amp { font-family: var(--f-sans); font-weight: 500; font-size: .2em; text-transform: none; color: var(--ink-2); margin-left: .5em; vertical-align: .45em; letter-spacing: -.01em; white-space: nowrap; }
.hero__row { display: flex; gap: 40px; align-items: flex-end; flex-wrap: wrap; }
.hero__lede { max-width: 470px; margin: 0; color: var(--ink-2); font-size: 17px; }
.hero__lede strong { color: var(--ink); font-weight: 600; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.monitor { position: relative; z-index: 2; margin: 0 0 6px; width: clamp(190px, 17vw, 260px); }
.monitor__screen { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); background: #111; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 6px rgba(242,242,240,.03); }
.monitor__screen::before { content: ""; position: absolute; inset: 0; background: var(--mon-bg, #222); background-size: cover; background-position: center; }
.monitor__screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.85)); pointer-events: none; }
.monitor__screen.is-cut::before { animation: cut .32s steps(3) 1; }
@keyframes cut { 0% { filter: hue-rotate(80deg) contrast(2); transform: translateX(-6px); } 50% { transform: translateX(5px) scaleY(1.04); } 100% { filter: none; transform: none; } }
.monitor__slate { position: absolute; inset: auto 14px 18px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.monitor__slate strong { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 24px; line-height: .95; }
.monitor__sub { font-size: 15px; font-weight: 500; color: rgba(242,242,240,.85); line-height: 1.2; }
.monitor__tag { align-self: flex-start; background: rgba(0,0,0,.6); padding: 3px 7px; border-radius: 3px; font-size: 9.5px; margin-bottom: 6px; }
.monitor__bars { position: absolute; top: 14px; left: 14px; right: 14px; height: 2px; background: rgba(255,255,255,.25); z-index: 2; border-radius: 2px; overflow: hidden; }
.monitor__bars::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: left; animation: prog 2.8s linear infinite; }
@keyframes prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.monitor figcaption { display: flex; justify-content: space-between; color: var(--ink-3); margin-top: 10px; font-size: 10px; }

.hero__scroll { position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; color: var(--ink-3); z-index: 2; font-size: 10px; }
.hero__scroll span { width: 1px; height: 28px; background: linear-gradient(var(--ink), transparent); animation: drip 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg); }
.marquee__track { display: flex; width: max-content; gap: 36px; align-items: center; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(34px, 5vw, 64px); line-height: 1; white-space: nowrap; }
.marquee__track span.ol { color: transparent; -webkit-text-stroke: 1.2px var(--ink-2); }
.marquee__track i { color: var(--rec); font-style: normal; font-size: 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(90px, 12vw, 170px) var(--gutter); }
.sec-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 24px; padding-bottom: 22px; margin-bottom: clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.sec-head__num { color: var(--scene); padding-bottom: 12px; }
.sec-head__title { margin: 0; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(52px, 9vw, 150px); line-height: .86; overflow: hidden; }
.sec-head__tc { color: var(--ink-3); padding-bottom: 12px; text-align: right; }
#about { --scene: var(--amber); } #work { --scene: var(--violet); } #services { --scene: var(--mint); } #suite { --scene: var(--orange); } #contact { --scene: var(--rec); }

/* split-text */
.split .ch { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 28ms); }
.split .sp { display: inline-block; width: .25em; }
.split .word { display: inline-block; white-space: nowrap; }
.is-in .split .ch, .split.is-in .ch { transform: none; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
.about__big { font-size: clamp(32px, 4.4vw, 66px); line-height: 1.04; margin: 0; letter-spacing: -.02em; font-weight: 600; }
.hl { color: var(--amber); }
.about__body { color: var(--ink-2); font-size: 17.5px; }
.about__body p { margin: 0 0 18px; }
.about__body strong { color: var(--ink); font-weight: 500; }
.stats { list-style: none; padding: 0; margin: clamp(56px, 8vw, 110px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 26px 24px 8px 0; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); padding-left: 24px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat span { color: var(--ink-3); }
.stat b { font-family: var(--f-display); font-weight: 400; font-size: clamp(36px, 4vw, 58px); line-height: 1; text-transform: uppercase; }
.stat small { color: var(--ink-2); font-size: 14px; }

/* ---------- Work ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 34px; }
.filter { padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 14px; color: var(--ink-2); transition: all .25s; }
.filter sup { font-family: var(--f-mono); font-size: 9.5px; margin-left: 3px; color: var(--ink-3); }
.filter:hover { color: var(--ink); border-color: var(--ink-2); }
.filter.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter.is-on sup { color: var(--bg); }

/* Justified bin: each clip grows by its aspect ratio so 9:16 and wide clips share rows. */
.bin { --h: clamp(230px, 24.5vw, 420px); display: flex; flex-wrap: wrap; gap: 18px; }
.bin::after { content: ""; flex-grow: 999; }
.clip { flex: var(--ar) 1 calc(var(--ar) * var(--h)); min-width: 0; position: relative; display: flex; flex-direction: column; text-align: left; }
.clip.is-hidden { display: none; }
.clip.is-entering { animation: clipIn .6s var(--ease) both; animation-delay: calc(var(--n) * 45ms); }
@keyframes clipIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.clip__frame { position: relative; aspect-ratio: var(--ar); width: 100%; border-radius: 8px; overflow: hidden; background: #111; isolation: isolate; container-type: inline-size; }
.clip__art { position: absolute; inset: 0; background: linear-gradient(160deg, hsl(var(--hue) 40% 18%), #0b0b0c 70%); }
.clip__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform 1.2s var(--ease), opacity .4s; }
.clip__preview { position: absolute; inset: 0; z-index: 2; opacity: 0; transition: opacity .5s; pointer-events: none; }
.clip__preview iframe { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; transform: translate(-50%, -50%) scale(1.02); border: 0; }
.clip.is-previewing .clip__preview { opacity: 1; }
.clip__ghost { position: absolute; z-index: 1; inset: auto 16px 52px 16px; font-family: var(--f-display); text-transform: uppercase; line-height: .9; font-size: clamp(18px, 12.5cqi, 56px); color: rgba(242,242,240,.9); pointer-events: none; }
.clip__frame::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 25%, transparent 60%, rgba(0,0,0,.55)); }
.clip__hud { position: absolute; z-index: 4; left: 12px; right: 12px; top: 12px; display: flex; justify-content: space-between; gap: 8px; font-size: 9.5px; }
.clip__hud span:first-child { flex: 0 1 auto !important; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip__hud span { flex: none; background: rgba(10,10,11,.65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 4px 7px; border-radius: 3px; }
.clip__hud .fmt { color: var(--amber); }
.clip__time { position: absolute; z-index: 4; right: 12px; bottom: 22px; font-family: var(--f-mono); font-size: 11px; background: rgba(0,0,0,.75); padding: 2px 6px; border-radius: 3px; }
.clip__scrub { position: absolute; z-index: 4; left: 12px; right: 12px; bottom: 12px; height: 3px; background: rgba(242,242,240,.2); border-radius: 2px; overflow: hidden; }
.clip__scrub i { position: absolute; inset: 0; background: var(--rec); transform-origin: left; transform: scaleX(var(--p, 0)); }
.clip__play { position: absolute; z-index: 4; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px; border-radius: 50%; display: grid; place-items: center; background: rgba(242,242,240,.92); color: var(--bg); transform: scale(.6); opacity: 0; transition: transform .45s var(--ease), opacity .3s; }
.clip__play svg { width: 18px; margin-left: 3px; }
.clip:hover .clip__play, .clip:focus-visible .clip__play { transform: scale(1); opacity: 1; }
.has-cursor .clip:hover .clip__play { opacity: 0; }
.clip:hover .clip__thumb { transform: scale(1.05); }
.clip:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; border-radius: 8px; }
.clip__meta { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 3px; }
.clip__meta .mono { color: var(--ink-3); font-size: 10px; }
.clip__meta b { font-weight: 600; font-size: 16px; line-height: 1.25; }
.clip__meta b small { color: var(--ink-3); font-weight: 400; font-size: 14px; }
.work__more { margin: 40px 0 0; color: var(--ink-2); }
.work__more a { color: var(--ink); border-bottom: 1px solid var(--line-2); }
.work__more a:hover { border-color: var(--ink); }

/* ---------- Services ---------- */
.services__intro { max-width: 640px; color: var(--ink-2); font-size: 19px; margin: -30px 0 50px; }
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.preset { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(180deg, var(--bg-2), var(--bg)); overflow: hidden; transition: border-color .4s, transform .5s var(--ease); }
.preset::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 100% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); opacity: 0; transition: opacity .5s; }
.preset:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); transform: translateY(-4px); }
.preset:hover::before { opacity: 1; }
.preset > * { position: relative; }
.preset__top { display: flex; justify-content: space-between; color: var(--ink-3); margin-bottom: 80px; }
.preset__top span:last-child { color: var(--c); border: 1px solid currentColor; padding: 2px 7px; border-radius: 3px; }
.preset h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 3.4vw, 52px); line-height: .95; margin: 0 0 12px; }
.preset p { color: var(--ink-2); margin: 0 0 26px; min-height: 3.1em; }
.preset dl { margin: 0; border-top: 1px dashed var(--line-2); }
.preset dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 10.5px; }
.preset dt { color: var(--ink-3); }
.preset dd { margin: 0; text-align: right; }
.preset__bar { height: 3px; background: var(--line); margin-top: 22px; border-radius: 2px; overflow: hidden; }
.preset__bar i { display: block; height: 100%; background: var(--c); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease) .3s; }
.preset.is-in .preset__bar i { transform: scaleX(1); }

/* ---------- Suite ---------- */
.suite__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.pipeline { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease); }
.step:first-child { border-top: 1px solid var(--line); }
.step span { grid-row: span 2; color: var(--orange); padding-top: 10px; }
.step b { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 3vw, 44px); line-height: 1; }
.step small { color: var(--ink-2); font-size: 14.5px; }
.step:hover { padding-left: 10px; }
.tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tool { display: grid; grid-template-columns: 52px 1fr 90px; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); transition: border-color .3s; }
.tool:hover { border-color: var(--c); }
.tool__ic { width: 52px; height: 52px; border-radius: 9px; display: grid; place-items: center; font-weight: 600; font-size: 19px; color: var(--c); border: 1.5px solid var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.tool b { display: block; font-weight: 600; }
.tool small { color: var(--ink-3); font-size: 13.5px; }
.tool__lvl { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.tool__lvl i { display: block; height: 100%; width: 0; background: var(--c); transition: width 1.4s var(--ease) .2s; }
.tool.is-in .tool__lvl i { width: var(--w); }
.scope { margin-top: 56px; border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #070708; position: relative; }
.scope__label { color: var(--ink-3); position: absolute; top: 12px; left: 16px; font-size: 9.5px; }
.scope canvas { width: 100%; height: 150px; display: block; }

/* ---------- Contact ---------- */
.contact { padding-bottom: 50px; }
.contact__big { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(54px, 11vw, 190px); line-height: .88; margin: 0 0 34px; }
.contact__big .line { display: block; overflow: hidden; }
.contact__big .hl { color: var(--rec); }
.contact__lede { max-width: 560px; color: var(--ink-2); font-size: 18px; margin: 0 0 50px; }
.channels { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.channel { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; text-align: left; background: var(--bg-2); transition: border-color .3s, background .3s; overflow: hidden; }
.channel .mono { color: var(--ink-3); }
.channel b { font-weight: 600; font-size: clamp(17px, 1.6vw, 22px); overflow-wrap: anywhere; }
.channel > i { position: absolute; right: 22px; top: 20px; font-style: normal; color: var(--ink-3); transition: transform .3s var(--ease), color .3s; }
.channel:hover { border-color: var(--ink-2); background: var(--bg-3); }
.channel:hover > i { transform: translate(3px, -3px); color: var(--ink); }
.channel__toast { position: absolute !important; right: 18px; top: 20px; color: var(--mint) !important; opacity: 0; transition: opacity .3s; }
.channel__toast.is-on { opacity: 1; }
.export { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 30px 28px; border-radius: 10px; border: 1px solid var(--rec); overflow: hidden; isolation: isolate; }
.export__fill { position: absolute; inset: 0; background: var(--rec); transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease-cut); z-index: -1; }
.export:hover .export__fill { transform: scaleX(1); }
.export__label { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(26px, 3.6vw, 52px); line-height: 1; }
.export__pct { color: var(--ink-2); }
.export:hover .export__pct { color: #fff; }
.foot { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; margin-top: 90px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 10px; }
.foot a { color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.foot a:hover { color: var(--ink); border-color: var(--ink); }
kbd { font-family: var(--f-mono); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 3px; padding: 1px 5px; color: var(--ink-2); }

/* ---------- Timeline navigator ---------- */
.timeline { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; height: var(--tl-h); display: grid; grid-template-columns: 170px 1fr; background: rgba(12,12,13,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform .7s var(--ease); }
.timeline.is-on { transform: none; }
.timeline__head { display: flex; flex-direction: column; justify-content: center; padding: 0 18px; border-right: 1px solid var(--line); gap: 2px; }
.timeline__tc { color: var(--ink); font-size: 15px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.timeline__scene { color: var(--scene-c, var(--rec)); font-size: 9.5px; transition: color .3s; }
.timeline__tracks { position: relative; display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); row-gap: 4px; height: 100%; min-height: 0; padding: 7px 0; cursor: pointer; overflow: hidden; }
.track { display: grid; grid-template-columns: 32px 1fr; align-items: stretch; gap: 0; min-height: 0; }
.track__lbl { display: grid; place-items: center; color: var(--ink-3); font-size: 9px; }
.track__lane { position: relative; display: flex; gap: 2px; margin-right: 14px; }
.tl-clip { position: relative; height: 100%; border-radius: 3px; background: color-mix(in srgb, var(--c) 30%, #1a1a1d); border: 1px solid color-mix(in srgb, var(--c) 70%, transparent); color: var(--ink); font-family: var(--f-mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; padding: 0 8px; overflow: hidden; white-space: nowrap; transition: background .3s; }
.tl-clip:hover, .tl-clip.is-active { background: color-mix(in srgb, var(--c) 55%, #1a1a1d); }
.track__lane--wave { border-radius: 3px; overflow: hidden; }
.track__lane--wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.playhead { position: absolute; top: 0; bottom: 0; left: 32px; width: 0; pointer-events: none; z-index: 3; }
.playhead i { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--rec); box-shadow: 0 0 10px var(--rec); }
.playhead i::before { content: ""; position: absolute; top: -1px; left: -5px; border: 6px solid transparent; border-top: 7px solid var(--rec); }

/* ---------- Player ---------- */
.player { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; }
.player[hidden] { display: none; }
.player__scrim { position: absolute; inset: 0; background: rgba(5,5,6,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fade .35s both; }
@keyframes fade { from { opacity: 0; } }
.player__box { position: relative; width: min(1100px, 100%); max-height: calc(100svh - 40px); display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; animation: pop .5s var(--ease) both; }
.player__box.is-vertical { width: min(440px, 100%); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.player__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.player__head .mono { color: var(--amber); }
.player__head h3 { margin: 2px 0 0; font-weight: 600; font-size: 18px; }
.player__x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; transition: background .25s; }
.player__x:hover { background: var(--rec); border-color: var(--rec); }
.player__frame { position: relative; background: #000; aspect-ratio: var(--ar, 16/9); max-height: calc(100svh - 190px); width: 100%; margin: 0 auto; }
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.player__out { position: absolute; inset: 0; display: grid; place-items: center; }
.player__out img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.player__out a { position: relative; z-index: 2; }
.player__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); }
.player__foot p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.player__foot .mono { color: var(--ink-3); border: 1px solid var(--line-2); padding: 3px 7px; border-radius: 3px; flex: none; }

.preview-tag { position: fixed; left: 12px; bottom: calc(var(--tl-h) + 12px); z-index: 95; background: #fff; color: #000; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 4px; box-shadow: 0 4px 20px rgba(0,0,0,.4); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .presets { grid-template-columns: 1fr; }
  .preset__top { margin-bottom: 36px; }
  .suite__grid { grid-template-columns: 1fr; }
  .channels { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  :root { --tl-h: 54px; }
  .hero { grid-template-columns: minmax(0, 1fr); align-items: end; padding-top: 110px; padding-bottom: 110px; }
  .eyebrow { font-size: 9.5px; }
  .monitor { position: absolute; right: var(--gutter); top: 118px; width: 118px; }
  .monitor__slate strong { font-size: 14px; } .monitor__sub { font-size: 11px; } .monitor figcaption { display: none; }
  .vf__hud span:not(:first-child):not(.batt) { display: none; }
  .vf__hud--bottom { display: none; }
  .hero__amp { display: block; margin: .6em 0 0; font-size: .2em; vertical-align: 0; }
  .hero__scroll { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding-left: 0 !important; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .stat:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 16px !important; }
  .sec-head { grid-template-columns: 1fr; gap: 6px; }
  .sec-head__num, .sec-head__tc { padding: 0; text-align: left; }
  .sec-head__tc { display: none; }
  .bin { --h: 290px; gap: 12px; }
  .clip__meta b { font-size: 14.5px; }
  .timeline { grid-template-columns: 108px 1fr; }
  .timeline__head { padding: 0 12px; }
  .timeline__tc { font-size: 12px; }
  .track { grid-template-columns: minmax(0, 1fr); }
  .track__lbl { display: none; }
  .track__lane { margin: 0 8px; }
  .playhead { left: 8px; }
  .tl-clip { font-size: 0; padding: 0; }
  .tool { grid-template-columns: 46px 1fr; }
  .tool__ic { width: 46px; height: 46px; }
  .tool__lvl { display: none; }
  .export { padding: 22px 20px; }
  .export__pct { display: none; }
  .foot__keys { display: none; }
}
@media (max-width: 420px) {
  .brand__name small { display: none; }
  .btn--rec { padding: 8px 12px; font-size: 12.5px; }
  .hero__title { font-size: 15.5vw; }
  .contact__big { font-size: 13vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .split .ch { transform: none; } .reveal { opacity: 1; transform: none; }
}

.player__watch { padding: 7px 12px; font-size: 13px; margin-left: auto; }
.player__watch[hidden] { display: none; }
