/* justslashx — public site */
:root { box-sizing: border-box; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { scroll-padding-top: calc(84px + env(safe-area-inset-top, 0px)); }
body { font-feature-settings: "kern"; }

.skip { position: absolute; inset-inline-start: 1rem; top: -60px; padding: .6rem 1rem; background: var(--text); color: #000; border-radius: var(--r-sm); z-index: 99; }
.skip:focus { top: 1rem; }

main > section, .site-footer, .site-header__inner { width: min(1320px, 100% - 2 * clamp(1.1rem, 4vw, 3rem)); margin-inline: auto; }

h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.25; letter-spacing: -.01em; margin: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.25rem 2.5rem; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.section-sub { margin: .5rem 0 0; color: var(--muted); max-width: 48ch; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, .72);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 2.5rem; height: 72px; }
.wordmark {
  font-family: var(--font-latin); font-weight: 600; font-size: 1.3rem; letter-spacing: -.03em;
  text-decoration: none; direction: ltr; unicode-bidi: isolate;
}
.nav { display: flex; gap: 2rem; margin-inline-start: auto; }
.nav a { position: relative; text-decoration: none; color: var(--text-2); font-size: .95rem; padding-block: .4rem; transition: color .2s; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--text); }
.nav a[aria-current="true"]::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--text); }
@media (max-width: 760px) { .nav { display: none; } .header-cta { margin-inline-start: auto; } }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: clamp(2rem, 6vw, 7rem); min-height: calc(100svh - 72px); padding-block: 1.5rem 4rem;
}
.status { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.75rem; padding: .35rem .9rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); font-size: .88rem; }
.hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.5rem, 5.6vw, 5.2rem); line-height: 1.18; letter-spacing: -.015em;
  margin: 0; max-width: 12ch; text-wrap: balance;
}
.hero__text { max-width: 44ch; margin: 1.6rem 0 2.25rem; font-size: clamp(1.02rem, 1.3vw, 1.15rem); font-weight: 300; line-height: 1.9; color: var(--text-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__facts { display: flex; gap: 2.5rem; margin: 3.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 460px; }
.hero__facts dt { color: var(--muted); font-size: .82rem; }
.hero__facts dd { margin: .15rem 0 0; font-weight: 500; }

/* reveal: one orchestrated load sequence */
.reveal { opacity: 0; transform: translateY(14px); }
.is-ready .reveal { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.is-ready .hero__copy .reveal:nth-child(2) { transition-delay: .08s; }
.is-ready .hero__copy .reveal:nth-child(3) { transition-delay: .16s; }
.is-ready .hero__copy .reveal:nth-child(4) { transition-delay: .24s; }
.is-ready .hero__copy .reveal:nth-child(5) { transition-delay: .32s; }
.is-ready .viewfinder.reveal { transition-delay: .2s; transition-duration: 1.2s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* viewfinder — the signature element */
.viewfinder {
  position: relative; margin: 0;
  height: min(76svh, 740px); aspect-ratio: 9 / 16;
  border-radius: 20px; overflow: hidden; background: var(--surface);
  box-shadow: 0 50px 140px -40px rgba(225, 29, 72, .22), 0 0 0 1px rgba(255,255,255,.08);
}
.viewfinder__media, .viewfinder__media video, .viewfinder__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewfinder::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(0,0,0,.5), transparent 22%, transparent 60%, rgba(0,0,0,.85)); }
.vf-corner { position: absolute; width: 22px; height: 22px; border: 1.5px solid rgba(255,255,255,.9); z-index: 2; pointer-events: none; }
.vf-corner--tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.vf-corner--tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.vf-corner--bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.vf-corner--br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }
.vf-top {
  position: absolute; top: 24px; inset-inline: 50px; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  direction: ltr; font-family: var(--font-latin); font-weight: 500; font-size: .76rem;
  font-variant-numeric: tabular-nums; letter-spacing: .06em; color: rgba(255,255,255,.92);
}
.vf-rec { display: inline-flex; align-items: center; gap: .45rem; }
.vf-bottom { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 0 46px 46px; }
.vf-open { display: grid; text-align: start; background: none; border: 0; padding: 0; }
.vf-title { font-weight: 600; font-size: 1.2rem; line-height: 1.35; }
.vf-client { color: var(--text-2); font-size: .86rem; }
.vf-open:hover .vf-title { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.vf-controls { display: flex; gap: .5rem; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 1.5rem; }
  .hero__title { max-width: 14ch; }
  .viewfinder { height: auto; width: min(100%, 420px); justify-self: center; }
}
@media (max-width: 420px) { .vf-bottom { padding: 0 32px 36px; } .vf-top { inset-inline: 40px; } }

/* ---------- clients ---------- */
.clients { display: flex; align-items: center; gap: 1rem 2.5rem; flex-wrap: wrap; padding-block: 1.75rem; border-block: 1px solid var(--line); }
.clients__label { margin: 0; color: var(--muted); font-size: .88rem; white-space: nowrap; }
.clients__list { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; list-style: none; margin: 0; padding: 0; }
.clients__list li { font-weight: 500; font-size: 1.05rem; color: var(--text-2); white-space: nowrap; }

/* ---------- work ---------- */
.work { padding-block: clamp(4rem, 9vw, 7rem); }
.filters { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-block: 2px; max-width: 100%; }
.filters::-webkit-scrollbar { display: none; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: clamp(.75rem, 1.6vw, 1.25rem) clamp(.75rem, 1.6vw, 1.25rem); }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card { position: relative; margin: 0; }
.card--wide { grid-column: span 2; }
.card__btn { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r-md); overflow: hidden; background: var(--surface); text-align: start; aspect-ratio: 9 / 16; }
.card--wide .card__btn { aspect-ratio: auto; height: 100%; min-height: 220px; }
.card--square .card__btn { aspect-ratio: 1; }
.card--portrait .card__btn { aspect-ratio: 4 / 5; }
.card__btn img, .card__btn video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__btn img { transition: transform .8s var(--ease), filter .4s var(--ease); }
.card__btn video { opacity: 0; transition: opacity .35s var(--ease); }
.card.is-previewing video { opacity: 1; }
.card__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.88)); }
.card__info { position: absolute; inset-inline: 0; bottom: 0; z-index: 1; padding: 1rem 1.1rem 1.1rem; }
.card__cat { display: block; margin-bottom: .2rem; color: rgba(255,255,255,.62); font-size: .78rem; }
.card__title { display: block; font-weight: 600; font-size: 1.02rem; line-height: 1.4; }
.card__client { display: block; color: var(--text-2); font-size: .84rem; margin-top: .1rem; }
.card__play { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transform: scale(.85); transition: all .25s var(--ease); }
.card__play .icon { width: 15px; height: 15px; }
@media (hover: hover) {
  .grid:hover .card__btn img { filter: brightness(.7); }
  .grid .card__btn:hover img { transform: scale(1.03); filter: none; }
  .card__btn:hover .card__play, .card__btn:focus-visible .card__play { opacity: 1; transform: none; }
}
@media (hover: none) { .card__play { opacity: 1; transform: none; } }
.card__poster-fallback { position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, #1e1b4b, #000 70%); }
.card--skeleton { aspect-ratio: 9 / 16; border-radius: var(--r-md); background: linear-gradient(100deg, var(--surface) 40%, var(--surface-2) 50%, var(--surface) 60%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { color: var(--muted); padding: 3rem 0; text-align: center; }

/* ---------- process ---------- */
.process { padding-block: clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); counter-reset: step; }
.steps li { counter-increment: step; padding: 1.5rem 0 0; padding-inline-end: 2rem; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 1.25rem; font-family: var(--font-latin); font-size: .85rem; color: var(--rec); font-variant-numeric: tabular-nums; }
.steps h3 { margin: 0 0 .5rem; font-size: 1.15rem; font-weight: 600; }
.steps p { margin: 0; color: var(--text-2); font-size: .95rem; line-height: 1.85; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 1rem; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .steps li { padding-bottom: 1rem; border-bottom: 1px solid var(--line); } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem 4rem; padding-block: clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--line); }
.about__text { margin: 0; font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 300; line-height: 2; color: var(--text); max-width: 60ch; }
.about__services h3 { margin: 0 0 .75rem; font-size: .88rem; font-weight: 500; color: var(--muted); }
.about__services ul { list-style: none; margin: 0; padding: 0; }
.about__services li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 960px) { .about { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem clamp(2rem, 6vw, 6rem); padding-block: clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--line); }
.contact__intro p { color: var(--text-2); font-weight: 300; max-width: 40ch; margin: 1.25rem 0 2rem; font-size: 1.08rem; line-height: 1.9; }
.channels { display: grid; gap: .5rem; max-width: 380px; }
.channel { display: flex; align-items: center; gap: .85rem; min-height: 56px; padding: .6rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; transition: border-color .2s var(--ease), background .2s var(--ease); }
.channel:hover { border-color: var(--line-strong); background: var(--surface); }
.channel__label { font-weight: 500; }
.channel__value { margin-inline-start: auto; color: var(--muted); font-size: .86rem; font-family: var(--font-latin); direction: ltr; unicode-bidi: isolate; }
.channel--primary { background: var(--text); color: #000; border-color: var(--text); }
.channel--primary .channel__value { color: #555; }
.channel--primary:hover { background: #fff; }
.contact__form { display: grid; gap: 1.1rem; align-content: start; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.contact__form .input, .contact__form .select, .contact__form .textarea { background: var(--bg); }
.contact__form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .contact__form .row { grid-template-columns: 1fr; } }
.contact__form .btn { justify-self: start; min-width: 180px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-error { margin: 0; color: #fb7185; }
.form-done { padding: 1rem 0; }
.form-done h3 { margin: 0 0 .5rem; font-size: 1.4rem; font-weight: 600; }
.form-done p { margin: 0; color: var(--text-2); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { padding-block: 3rem 2rem; border-top: 1px solid var(--line); overflow: hidden; }
.site-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.footer-links a, .to-top { color: var(--text-2); text-decoration: none; font-size: .92rem; }
.footer-links a:hover, .to-top:hover { color: var(--text); }
.signature {
  margin: clamp(2.5rem, 6vw, 5rem) 0 1rem; direction: ltr; text-align: center;
  font-family: var(--font-latin); font-weight: 600; letter-spacing: -.055em; line-height: .85;
  font-size: clamp(3.5rem, 16.5vw, 15.5rem); white-space: nowrap;
  background: linear-gradient(180deg, #2a2a30, #0c0c0d 95%); -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.copyright { margin: 0; color: var(--muted); font-size: .85rem; text-align: center; }

/* ---------- reel viewer ---------- */
.viewer {
  position: fixed; inset: 0; z-index: var(--z-overlay); background: #000;
  display: grid; place-items: center; overscroll-behavior: contain; touch-action: none;
  animation: viewer-in .28s var(--ease);
}
@keyframes viewer-in { from { opacity: 0; } }
.viewer__stage {
  position: relative; display: grid; place-items: center;
  width: 100%; height: 100%;
  padding: calc(64px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px));
}
.viewer__frame {
  position: relative; max-width: 100%; max-height: 100%;
  border-radius: var(--r-md); overflow: hidden; background: #0a0a0a;
  animation: frame-in .35s var(--ease);
}
.viewer__frame[data-dir="up"] { animation-name: frame-up; }
.viewer__frame[data-dir="down"] { animation-name: frame-down; }
@keyframes frame-in { from { opacity: 0; transform: scale(.97); } }
@keyframes frame-up { from { opacity: 0; transform: translateY(40px); } }
@keyframes frame-down { from { opacity: 0; transform: translateY(-40px); } }
.viewer__frame video, .viewer__frame iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.viewer__tap { position: absolute; inset: 0; background: none; border: 0; }
.viewer__paused {
  position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0,0,0,.55); pointer-events: none;
}
.viewer__paused .icon { width: 30px; height: 30px; }

.viewer__progress { position: absolute; inset-inline: 0; top: env(safe-area-inset-top, 0px); height: 3px; background: rgba(255,255,255,.12); }
.viewer__progress span { display: block; height: 100%; width: 0; background: var(--rec); transform-origin: right; }

.viewer__top { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); inset-inline: 16px; display: flex; justify-content: space-between; align-items: center; }
.viewer__count { direction: ltr; unicode-bidi: isolate; font-family: var(--font-latin); font-variant-numeric: tabular-nums; color: var(--text-2); font-size: .9rem; }

.viewer__info {
  position: absolute; inset-inline-start: clamp(16px, 4vw, 56px); bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  width: min(340px, 30vw); pointer-events: none;
}
.viewer__meta { margin: 0 0 .5rem; color: var(--muted); font-size: .88rem; }
.viewer__title { margin: 0; font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.25; }
.viewer__client { margin: .3rem 0 0; color: var(--text-2); }
.viewer__desc { margin: 1rem 0 0; color: var(--text-2); font-size: .95rem; }

.viewer__nav {
  position: absolute; inset-inline-end: clamp(16px, 4vw, 56px); top: 50%; transform: translateY(-50%);
  display: grid; gap: .6rem;
}

@media (max-width: 900px) {
  .viewer__stage { padding: calc(60px + env(safe-area-inset-top, 0px)) 0 calc(0px + env(safe-area-inset-bottom, 0px)); }
  .viewer__frame { border-radius: 0; }
  .viewer__info {
    inset-inline: 0; width: auto; bottom: 0; padding: 4rem 20px calc(24px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(transparent, rgba(0,0,0,.85));
  }
  .viewer__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .viewer__nav { top: auto; transform: none; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  .viewer__nav #vPrev, .viewer__nav #vNext { display: none; }
}
@media (max-width: 900px) { .viewer__info { padding-inline-end: 76px; } }
