/* DJ LIMIRÉ – v4: full-screen film with GSAP motion. */

@font-face {
  font-family: "Jost";
  src: url("fonts/jost.woff2") format("woff2");
  font-weight: 300 500;
  font-display: swap;
}

:root {
  --gold: #EBCD96;
  --white: #F6F1EA;
  --mute: rgba(246, 241, 234, .62);
  --hair: rgba(246, 241, 234, .28);
  --font: "Jost", "Helvetica Neue", Arial, sans-serif;
  --track: .32em;
  --gutter: clamp(20px, 4.5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #000; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.is-loading { overflow: hidden; }

body {
  margin: 0; background: #000; color: var(--white);
  font-family: var(--font); font-weight: 300;
  font-size: clamp(1rem, .96rem + .2vw, 1.1rem); line-height: 1.6;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; -webkit-user-drag: none; -webkit-touch-callout: none; user-select: none; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 300; background: var(--gold); color: #000; padding: .6em 1em; }
.skip:focus { top: 12px; }

.kicker, .title, .sub, .btn, .bar__nav a, .bar__menu, .menu a, .count small, .screen__corner,
.tile__name, .tile__kind, .about__col, .contact__links a, .viewer__close, .cursor, .videos__hint {
  text-transform: uppercase; letter-spacing: var(--track); font-weight: 400;
}

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200; background: #000;
  display: grid; place-items: center; pointer-events: none;
}
.intro__logo { width: clamp(180px, 22vw, 300px); height: auto; opacity: 0; }
html:not(.js) .intro { display: none; }

/* ---------- Cursor (computers only) ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
  width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(246,241,234,.92); color: #000; font-size: .6rem;
  transform: scale(0); opacity: 0;
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: clamp(16px, 2.4vw, 28px) var(--gutter);
  background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,0));
  transition: transform .5s cubic-bezier(.2,.65,.2,1);
}
.bar--away { transform: translateY(-110%); }
.bar__logo img { width: clamp(96px, 9vw, 128px); height: auto; }
.bar__nav { display: flex; gap: clamp(1.2rem, 2.4vw, 2.4rem); }
.bar__nav a { font-size: .66rem; text-decoration: none; opacity: .7; transition: opacity .2s, color .2s; padding: .4em 0; }
.bar__nav a:hover, .bar__nav a[aria-current="true"] { opacity: 1; color: var(--gold); }
.bar__menu { display: none; background: none; border: 0; color: var(--white); font: inherit; font-size: .7rem; padding: 12px 0 12px 12px; cursor: pointer; }
.menu { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.95); display: grid; place-items: center; }
.menu nav { display: grid; gap: 1.8rem; text-align: center; }
.menu a { text-decoration: none; font-size: 1rem; }

/* ---------- Full-screen film ---------- */
.screen {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 120px var(--gutter) clamp(52px, 10vh, 104px);
}
.screen__frame { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #000; }
.screen__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.screen__film.is-on { opacity: 1; }
.screen__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.3) 30%, rgba(0,0,0,0) 55%),
    linear-gradient(90deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,0) 50%);
}
.screen__shade--deep { background: rgba(0,0,0,.62); }

.screen__text { max-width: 1200px; }
.title .tword { display: inline-block; white-space: nowrap; }
.kicker { margin: 0 0 1rem; font-size: .7rem; color: var(--gold); }
.title {
  margin: 0; font-weight: 300; line-height: 1;
  font-size: clamp(2.6rem, 1rem + 7vw, 7.6rem); letter-spacing: .14em;
}
.title .char { display: inline-block; will-change: transform, opacity, filter; }
.sub { margin: 1.2rem 0 0; font-size: clamp(.72rem, .66rem + .3vw, .9rem); }

.count { display: flex; gap: clamp(20px, 3vw, 40px); margin: clamp(24px, 4vh, 40px) 0 0; }
.count span { display: block; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); line-height: 1; font-weight: 300; font-variant-numeric: tabular-nums; }
.count small { display: block; margin-top: .6em; font-size: .58rem; color: var(--mute); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(28px, 5vh, 44px); }
.btn {
  display: inline-flex; align-items: center; gap: .9em;
  min-height: 50px; padding: .8em 1.6em .8em calc(1.6em + var(--track));
  border: 1px solid var(--hair); background: rgba(0,0,0,.22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--white); font: inherit; font-size: .7rem; font-weight: 400;
  letter-spacing: var(--track); text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { border-color: var(--white); }
.btn--solid { background: var(--white); color: #000; border-color: var(--white); }
.btn--solid:hover { background: var(--gold); border-color: var(--gold); }
.btn__play { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* runs up the right edge like a film credit (the bottom-right corner belongs to the brand stamp in the film) */
.screen__corner {
  position: absolute; right: calc(var(--gutter) * .55); top: 50%; margin: 0;
  writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg);
  font-size: .6rem; color: var(--gold);
}
.screen__next { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; width: 44px; height: 44px; display: grid; place-items: center; }
.screen__next span { width: 1px; height: 30px; background: linear-gradient(var(--white), transparent); }
@media (prefers-reduced-motion: no-preference) {
  .screen__next span { animation: drip 2.2s ease-in-out infinite; transform-origin: top; }
  @keyframes drip { 0% { transform: scaleY(0); opacity: 0; } 40% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) translateY(10px); opacity: 0; } }
}

/* ---------- Videos ---------- */
.videos { background: #050505; }
.videos__pin {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 110px 0 60px; overflow: hidden;
}
.videos__head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 var(--gutter); margin-bottom: clamp(22px, 4vh, 40px); }
.videos__head .kicker { margin: 0; }
.videos__hint { margin: 0; font-size: .6rem; color: var(--mute); }
.reel {
  display: flex; gap: clamp(14px, 1.8vw, 26px); align-items: flex-end;
  padding: 0 var(--gutter); width: max-content;
}
.tile {
  position: relative; display: block; flex: none; padding: 0; border: 0; background: #000; color: var(--white);
  font: inherit; text-align: left; cursor: pointer; overflow: hidden;
  height: min(56vh, 560px); aspect-ratio: 16 / 9;
}
.tile--tall { aspect-ratio: 9 / 16; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.65,.2,1), opacity .3s; opacity: .9; }
.tile:hover img { transform: scale(1.05); opacity: 1; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.8), rgba(0,0,0,0) 45%); }
.tile__text { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; display: grid; gap: 4px; }
.tile__name { font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__kind { font-size: .58rem; color: var(--gold); }
.fineprint { color: var(--mute); font-size: .78rem; margin: 20px 0 0; padding: 0 var(--gutter); }

/* ---------- About ---------- */
.screen--about { align-items: center; }
.about { width: 100%; max-width: 1150px; margin: 0 auto; }
.about__head { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(20px, 3vh, 32px); }
.about__head img { width: 52px; height: 52px; }
.about__head .kicker { margin: 0; font-size: .74rem; }
.about__statement { margin: 0 0 clamp(36px, 7vh, 72px); font-size: clamp(2.2rem, 1rem + 4.4vw, 5.4rem); line-height: 1.05; font-weight: 300; max-width: 16ch; }
.about__statement .word { display: inline-block; }
.about__split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); border-top: 1px solid var(--hair); padding-top: clamp(22px, 3vh, 34px); }
.about__col { margin: 0 0 .7rem; font-size: .66rem; color: var(--gold); }
.about__split p { margin: 0; max-width: 46ch; color: rgba(246,241,234,.9); }

/* ---------- Ending: the end card ---------- */
.ending {
  flex-direction: column; align-items: center; justify-content: space-between;
  padding: clamp(110px, 16vh, 170px) var(--gutter) 28px; text-align: center;
  min-height: 100svh;
}
/* the amber film, out of focus behind the card – same as the teaser's end card */
.screen__film--glow { filter: blur(18px) saturate(1.15); transform: scale(1.15); }
.ending__shade { background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(0,0,0,.35), rgba(0,0,0,.8)); }

.ending__card { display: flex; flex-direction: column; align-items: center; margin: auto 0; }
.ending__card .kicker { margin-bottom: 1.4rem; }
.ending__mail {
  text-decoration: none; color: var(--white);
  font-size: clamp(1.7rem, .6rem + 4.6vw, 5.2rem); font-weight: 300; letter-spacing: .03em; line-height: 1.1;
  overflow-wrap: anywhere; transition: color .25s;
}
.ending__mail .tword { display: inline-block; white-space: nowrap; }
.ending__mail .char { display: inline-block; }
.ending__mail:hover { color: var(--gold); }
.ending__actions { margin-top: clamp(26px, 4vh, 40px); }

.follow { list-style: none; padding: 0; margin: clamp(34px, 6vh, 60px) 0 0; display: flex; gap: clamp(10px, 2vw, 18px); flex-wrap: wrap; justify-content: center; }
.follow a {
  display: inline-flex; align-items: center; gap: .7em; min-height: 46px; padding: .6em 1.2em;
  border: 1px solid var(--hair); border-radius: 999px; text-decoration: none;
  background: rgba(0,0,0,.25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .66rem; letter-spacing: .22em; text-transform: uppercase;
  transition: border-color .25s, color .25s, background .25s;
}
.follow svg { width: 18px; height: 18px; fill: currentColor; }
.follow a:hover { border-color: var(--gold); color: var(--gold); background: rgba(0,0,0,.45); }

.ending__foot { width: 100%; max-width: 1500px; }
.ending__logo { width: auto; max-width: 100%; height: min(30vh, 360px); opacity: .95; margin: clamp(36px, 6vh, 72px) auto 0; }
.ending__credits {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.6rem;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(246,241,234,.16);
  font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--mute);
}
.ending__credits a { color: var(--mute); text-decoration: none; }
.ending__credits a:hover { color: var(--gold); }

.viewer__note { margin: 10px 0 0; font-size: .72rem; color: var(--mute); }
.viewer__note a { color: var(--mute); }

/* ---------- Player ---------- */
.viewer { width: min(92vw, 1400px); max-height: 92vh; padding: 0; border: 0; background: #000; color: var(--white); overflow: visible; }
.viewer.is-vertical { width: min(92vw, calc(82vh * 9 / 16)); }
.viewer::backdrop { background: rgba(0,0,0,.92); }
.viewer__stage { aspect-ratio: 16 / 9; }
.viewer.is-vertical .viewer__stage { aspect-ratio: 9 / 16; }
.viewer__stage iframe, .viewer__stage video { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.viewer__close { position: absolute; right: 0; top: -46px; background: none; border: 0; color: var(--white); font: inherit; font-size: .7rem; padding: 12px 0 12px 12px; cursor: pointer; }
.viewer__close:hover { color: var(--gold); }

/* ---------- Phones ---------- */
@media (max-width: 860px) {
  .bar__nav { display: none; }
  .bar__menu { display: block; }
  .screen { padding-bottom: 76px; }
  .screen__corner { display: none; }
  .title { letter-spacing: .1em; }
  .screen__text { width: 100%; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
  .count { gap: 18px; }

  .videos__pin { min-height: 0; padding: 90px 0 70px; }
  .reel { width: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile { height: auto; width: auto; aspect-ratio: 16 / 9; grid-column: 1 / -1; }
  .tile--tall { aspect-ratio: 9 / 16; grid-column: auto; }

  .about__split { grid-template-columns: 1fr; }
  .ending__credits { justify-content: center; text-align: center; }
  .follow span { display: none; }
  .follow a { padding: .6em; width: 52px; height: 52px; justify-content: center; }
  .follow svg { width: 22px; height: 22px; }
}
