/* ivanjahzeel.com, built on the shared base. Template: 1820productions.com (structure and motion only). */
:root {
  --black: #0a0a0a;
  --white: #f7f7f7;
  --dim: rgba(247, 247, 247, .4);
  --panel: rgba(146, 146, 146, .06);
  --line: rgba(247, 247, 247, .12);
  --head: "Archivo", "Arial Narrow", sans-serif;
  --text: "Inter Tight", Arial, sans-serif;
  --pad: clamp(16px, 2.2vw, 28px);
  --k: 1;
}
html { background: var(--black); color: var(--white); font-family: var(--text); font-weight: 300; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ---------- type ---------- */
.hero-title, .sec-title, .menu a, .stats b, .svc-group h3, .card h3, .footer-lead {
  font-family: var(--head); font-stretch: 72%; font-weight: 600; text-transform: uppercase; letter-spacing: -.01em; line-height: .92; margin: 0;
}
.sec-title { font-size: clamp(44px, 6.4vw, 104px); text-align: center; }

/* ---------- cursor (with a text label locked to the pointer) ---------- */
.cursor { position: fixed; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 1px solid rgba(247,247,247,.55); border-radius: 50%; pointer-events: none; z-index: 100; transition: width .3s, height .3s, margin .3s, background .3s, border-color .3s; mix-blend-mode: difference; }
.cursor span { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--white); transition: opacity .2s; }
.cursor.is-link { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(247,247,247,.12); }
.cursor-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.6); font-family: var(--head); font-stretch: 72%; font-weight: 600; font-size: 15px; letter-spacing: .04em; white-space: nowrap; color: var(--white); text-shadow: 0 1px 10px rgba(0,0,0,.5); opacity: 0; transition: opacity .25s, transform .3s; }
.cursor.is-label { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(247,247,247,.1); border: 1px solid var(--white); mix-blend-mode: normal; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.cursor.is-label span { opacity: 0; }
.cursor.is-label .cursor-label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; padding: var(--pad); pointer-events: none; }
.nav > * { pointer-events: auto; }
/* translucent bar: hidden on the hero intro, rolls down once scrolling starts */
.nav-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: rgba(10,10,10,.58); -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15); border-bottom: 1px solid rgba(247,247,247,.07); transform: translateY(-101%); transition: transform .7s cubic-bezier(.2,.7,.1,1); }
.nav.is-scrolled .nav-bg { transform: none; }
.nav-left { display: flex; flex-direction: column; gap: 2px; font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.nav-left a { text-decoration: none; width: max-content; }
.nav-left a:hover { opacity: .6; }
.nav-logo { transition: opacity .5s, transform .6s cubic-bezier(.2,.7,.1,1); }
.nav-logo img { height: 56px; width: auto; }
.nav-logo .logo-sig { display: none; }
.nav.logo-off .nav-logo { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.pill { font-size: 12.5px; font-weight: 500; letter-spacing: .03em; text-decoration: none; padding: 6px 10px; background: rgba(60,60,60,.75); border-radius: 3px; backdrop-filter: blur(6px); transition: background .2s; }
.pill:hover { background: rgba(247,247,247,.25); }

.menu { position: fixed; inset: 0; z-index: 60; background: var(--black); display: flex; align-items: center; justify-content: center; }
.menu[hidden] { display: none; }
.menu ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.menu a { display: block; text-decoration: none; font-size: clamp(40px, 7vw, 92px); padding: .06em 0; }
.menu a:hover { opacity: .5; }
.menu-close { position: absolute; top: var(--pad); right: var(--pad); }

/* ---------- hero (sticky; sections slide over it) ---------- */
.hero-wrap { height: 100vh; height: 100svh; position: sticky; top: 0; z-index: 0; background: #000; }
.hero { position: relative; height: 100%; overflow: hidden; background: #000; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.hero-slide.is-active video { transform: scale(1); }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.12) 60%, rgba(0,0,0,.55) 100%); }
.hero-text { position: absolute; inset: auto 0 16vh 0; z-index: 2; text-align: center; padding: 0 var(--pad); }
.hero-logo { display: block; margin: 0 auto; width: auto; max-width: 86vw; filter: drop-shadow(0 4px 30px rgba(0,0,0,.45)); }
.hl-ludo { height: clamp(150px, 30vh, 320px); }
.hl-open { height: clamp(72px, 14vh, 156px); }
.hl-vw { width: min(760px, 78vw); height: auto; }
.hero-sub { margin: 22px 0 0; font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.hero-slide .hero-title, .hero-slide .hero-sub { transform: translateY(30px); opacity: 0; transition: transform .9s cubic-bezier(.2,.7,.1,1) .25s, opacity .9s .25s; }
.hero-slide.is-active .hero-title, .hero-slide.is-active .hero-sub { transform: none; opacity: 1; }
.hero-counter { position: absolute; z-index: 3; left: 50%; bottom: 5vh; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; font-size: 12.5px; font-weight: 500; }
.hc-bar { width: 72px; height: 1px; background: rgba(247,247,247,.3); position: relative; overflow: hidden; }
.hc-bar i { position: absolute; inset: 0; background: var(--white); transform-origin: left; transform: scaleX(0); }

/* ---------- section shell ---------- */
main { position: relative; z-index: 1; background: transparent; }
.sec, .services, .bio, .rail-bts, .social, .reel, .clients { position: relative; z-index: 1; background: var(--black); }
.sec { min-height: 105vh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.sec-media { position: absolute; inset: -12% 0; z-index: 0; }
.sec-media video { width: 100%; height: 100%; object-fit: cover; }
.sec-media::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); }
.sec-body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 40px; padding: 18vh var(--pad); }

.sec-label { position: absolute; top: 0; left: 0; right: 0; z-index: 3; height: 92px; display: flex; align-items: flex-start; justify-content: center; padding-top: 22px; pointer-events: none; }
.sec-label .sl-line { position: absolute; top: 0; left: 50%; width: 100%; height: 1px; background: rgba(247,247,247,.75); transform: translateX(-50%) scaleX(.45); }
.sec-label .sl-text { font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.sec-label .sl-plus { position: absolute; top: 14px; font-size: 20px; font-weight: 200; opacity: 0; }
.sec-label .sl-plus.l { left: var(--pad); } .sec-label .sl-plus.r { right: var(--pad); }

.bracket { font-size: 14px; font-weight: 500; letter-spacing: .02em; text-decoration: underline; text-underline-offset: 4px; }
.bracket::before { content: "[ "; text-decoration: none; display: inline-block; white-space: pre; }
.bracket::after { content: " ]"; text-decoration: none; display: inline-block; white-space: pre; }
.bracket:hover { opacity: .6; }

/* ---------- scanline video backgrounds for the dark sections (swap the loop via data-loop) ---------- */
.services, .bio, .rail-bts, .social, .reel, .clients { overflow: hidden; }
.scan-bg { position: absolute !important; inset: 0; z-index: 0 !important; pointer-events: none; }
.scan-bg video { width: 100%; height: 100%; object-fit: cover; }
/* one clear pixel row, one dimmed row, plus an overall dim: about half the brightness, text stays readable */
.scan-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,.55) 50%) 0 0 / 100% calc(var(--sp, 1px) * 2) repeat-y, rgba(10,10,10,.5); }
/* --sp is set by site.js to a whole number of device pixels, so the lines never beat against the screen grid (no moiré bands on 125% / 150% displays) */
.services > *, .bio > *, .rail-bts > *, .social > *, .reel > *, .clients > * { position: relative; z-index: 1; }
.social > .sec-label, .clients > .sec-label, .reel-head > .sec-label { position: absolute; z-index: 3; }

/* ---------- services list ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; }
.svc-group { padding: 56px var(--pad) 80px; border-left: 1px solid var(--line); }
.svc-group:nth-of-type(2) { border-left: 0; }
.svc-n { font-size: 12.5px; font-weight: 500; color: var(--dim); letter-spacing: .04em; }
.svc-group h3 { margin: 14px 0 14px; font-size: clamp(28px, 2.5vw, 40px); }
.svc-lead { margin: 0 0 26px; font-size: 15px; line-height: 1.45; color: rgba(247,247,247,.68); max-width: 34ch; }
.svc-group ul { list-style: none; margin: 0; padding: 0; }
.svc-group > ul > li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: clamp(16px, 1.2vw, 19px); line-height: 1.25; }
.svc-group .ic { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--white); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }

/* ---------- bio ---------- */
.bio { padding: 18vh var(--pad); display: grid; grid-template-columns: 1.3fr 1fr; gap: 8vw; align-items: end; }
.bio-text { margin: 0; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.3; max-width: 32ch; }
.bio-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 34px; margin-top: 38px; max-width: 760px; }
.bio-logos img { height: calc(var(--h) * 1px * var(--k)); width: auto; opacity: .9; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.stats li { display: flex; align-items: baseline; gap: 16px; border-top: 1px solid rgba(247,247,247,.15); padding-top: 14px; }
.stats b { font-size: clamp(44px, 5vw, 76px); text-transform: none; }
.stats span { font-size: 14px; color: var(--dim); }

/* ---------- horizontal rails (BTS and social) ---------- */
.rail-wrap { position: relative; }
.rail { display: flex; gap: var(--pad); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); padding: 0 var(--pad) 6px; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: none; scroll-snap-align: start; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail.is-drag a { pointer-events: none; }
.rail-nav { display: flex; justify-content: flex-end; gap: 8px; padding: 0 var(--pad) 18px; }
.rail-btn { width: 44px; height: 44px; border: 1px solid rgba(247,247,247,.3); border-radius: 50%; font-size: 17px; transition: background .2s, border-color .2s, opacity .2s; }
.rail-btn:hover { background: rgba(247,247,247,.12); border-color: rgba(247,247,247,.6); }
.rail-btn[disabled] { opacity: .25; pointer-events: none; }

.rail-bts { padding: 10vh 0 16vh; }
.card { width: clamp(280px, 28vw, 440px); text-decoration: none; display: flex; flex-direction: column; gap: 12px; user-select: none; }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel); }
.card-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.1,1); pointer-events: none; }
.card:hover .card-media video { transform: scale(1.05); }
.card h3 { margin: 6px 0 0; font-size: 26px; line-height: 1; min-height: 26px; }
.card-logos { display: flex; align-items: center; gap: 16px; }
.card-logos img { height: calc(var(--h) * 1px); width: auto; }
.card p { margin: 0; font-size: 14px; line-height: 1.45; color: rgba(247,247,247,.7); max-width: 40ch; }

/* ---------- social ---------- */
.social { padding: 22vh 0 18vh; overflow: hidden; }
.social .sec-title { padding: 0 var(--pad); }
.social .rail-wrap { margin-top: 9vh; }
.vcard { position: relative; width: clamp(200px, 17vw, 270px); aspect-ratio: 9 / 16; overflow: hidden; border-radius: 6px; background: var(--panel); text-decoration: none; user-select: none; }
.vcard video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform .8s cubic-bezier(.2,.7,.1,1); }
.vcard:hover video { transform: scale(1.04); }
.vcard::after { content: ""; position: absolute; inset: 55% 0 0 0; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55)); pointer-events: none; }
.vc-label { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px; font-size: 12px; font-weight: 500; letter-spacing: .04em; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.vc-label img { height: calc(var(--h) * 1px); width: auto; }

/* ---------- reel: two black doors open side to side ---------- */
.reel { padding: 0; }
/* the heading area keeps the loop's own 16:9 shape, so the background is never cropped */
.reel-head { position: relative; width: 100%; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.reel-head > .sec-title { position: relative; z-index: 1; }
.reel-frame { position: relative; margin: 0; width: 100%; aspect-ratio: 16 / 9; max-height: 100vh; overflow: hidden; background: #000; }
.reel-video { width: 100%; height: 100%; object-fit: cover; }
.reel-door { position: absolute; top: 0; bottom: 0; width: 50.2%; background: var(--black); z-index: 2; will-change: transform; }
.reel-door.l { left: 0; } .reel-door.r { right: 0; }
.reel-hit { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; }
@media (hover: hover) { .reel-hit { cursor: none; } }

/* ---------- clients: scrolling logo rows ---------- */
.clients { padding: 22vh 0 18vh; }
.logo-rows { margin-top: 12vh; display: grid; gap: 4vh; }
.lr { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lr-track { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex: none; animation: lr-move 70s linear infinite; }
.lr1 .lr-track { animation-direction: reverse; animation-duration: 80s; }
.lr2 .lr-track { animation-duration: 62s; }
.lr:hover .lr-track { animation-play-state: paused; }
.lr-track li { flex: none; width: 230px; height: 120px; display: flex; align-items: center; justify-content: center; }
.lr-track img { height: calc(var(--h) * 1px * var(--k)); width: auto; max-width: 180px; object-fit: contain; opacity: .85; transition: opacity .3s, transform .4s cubic-bezier(.2,.7,.1,1); }
.lr-track li:hover img { opacity: 1; transform: scale(1.08); }
@keyframes lr-move { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- footer reveal ---------- */
.footer { position: fixed; inset: auto 0 0 0; z-index: 0; background: #111; padding: 130px var(--pad) 24px; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; overflow: hidden; }
.footer-lead { max-width: 22ch; font-size: clamp(34px, 4.4vw, 68px); line-height: .95; }
.footer-sign { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-logo { width: min(260px, 52vw); height: auto; opacity: .92; }
.footer-based { margin: 0; font-size: 15px; letter-spacing: .02em; color: rgba(247,247,247,.75); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid rgba(247,247,247,.2); padding-top: 18px; font-size: 15px; }
.footer-cols h4 { margin: 0 0 12px; font-size: 12px; font-weight: 500; color: var(--dim); letter-spacing: .04em; }
.footer-cols a, .footer-cols span { display: block; text-decoration: none; margin: 4px 0; }
.footer-cols a:hover { opacity: .6; }
.footer-copy { margin: 18px 0 0; font-size: 12px; color: var(--dim); }

/* ---------- social icons ---------- */
.soc-row { display: flex; flex-wrap: wrap; gap: 14px 16px; max-width: 260px; }
.footer-cols .soc { display: inline-flex; width: 22px; height: 22px; margin: 0; opacity: .8; transition: opacity .2s, transform .2s; }
.footer-cols .soc svg { width: 100%; height: 100%; fill: var(--white); }
.footer-cols .soc:hover { opacity: 1; transform: translateY(-2px); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .services { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  :root { --k: .74; }
  .nav { grid-template-columns: auto 1fr; }
  .nav-left { display: none; }
  .nav-logo img.logo-full { display: none; }
  .nav-logo .logo-sig { display: block; height: 34px; }
  .nav-right .pill[href] { display: none; }
  .services { grid-template-columns: 1fr; }
  .bio { grid-template-columns: 1fr; gap: 48px; }
  .card { width: 78vw; }
  .vcard { width: 56vw; }
  .lr-track li { width: 150px; height: 90px; }
  .lr-track img { max-width: 120px; }
  .svc-group { border-left: 0; border-top: 1px solid var(--line); }
  .footer-cols { grid-template-columns: 1fr; gap: 18px; }
  .footer { padding-top: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide video { transform: none; }
  .reel-door { display: none; }
  .lr-track { animation: none; }
}

/* ---------- footer signature write-on ---------- */
.sig-wrap { position: relative; display: inline-block; line-height: 0; }
.sig-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: .92; pointer-events: none; visibility: hidden; }
.sig-armed .sig-canvas { visibility: visible; }
.sig-armed .footer-logo { opacity: 0; }
.sig-done .sig-canvas { display: none; }
