/* =========================================================
   Raw Signal Fashion — holding page
   Brand: Deep Brick Red #982B30 · Plum Charcoal #41303D
          Burnt Orange #B85B2B · Soft Warm Gray #DDD8D4 · White
   Type : Semar (primary, display) · Poppins (supporting)
   ========================================================= */

/* ---- Primary brand typeface ---------------------------------
   Semar isn't on Google Fonts. Drop your licensed font file at
   fonts/Semar-Regular.woff2 (or install it locally) and it will
   be used automatically; until then Cormorant Garamond stands in. */
@font-face {
  font-family: "Semar";
  src: local("Semar"), local("Semar Regular"), url("../fonts/Semar-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #982B30;
  --plum: #41303D;
  --orange: #B85B2B;
  --gray: #DDD8D4;
  --white: #ffffff;
  --plum-deep: #2b1f29;

  --font-display: "Semar", "Cormorant Garamond", "Cormorant", Georgia, serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --gutter: clamp(20px, 4vw, 56px);
  --logo-gap: clamp(52px, 7vw, 108px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--plum); }

body {
  background: var(--plum);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--gray); outline-offset: 6px; border-radius: 4px; }

/* ---- Film grain (inline SVG noise, no extra files) ---- */
.grain {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Intro curtain ---- */
.curtain {
  position: fixed; inset: 0; z-index: 60; background: var(--plum);
  pointer-events: none;
  transition: opacity 1.8s var(--ease), visibility 0s linear 1.8s;
}
body.is-ready .curtain { opacity: 0; visibility: hidden; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 540px;
  background: var(--plum);
}

/* Animated brand-colour backdrop — shows while the film loads (or if it can't) */
.hero__fallback {
  position: absolute; inset: -25%; z-index: 0;
  background:
    radial-gradient(38% 46% at 24% 32%, rgba(152, 43, 48, .95), transparent 70%),
    radial-gradient(42% 50% at 78% 72%, rgba(184, 91, 43, .55), transparent 70%),
    radial-gradient(55% 55% at 62% 18%, rgba(43, 31, 41, 1), transparent 75%),
    var(--plum);
  filter: blur(28px);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(5%, -4%, 0) scale(1.14) rotate(5deg); } }

.hero__video {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  background: transparent;
  opacity: 0; transition: opacity 2s var(--ease);
  /* strongest in the middle, dissolving toward the edges */
  -webkit-mask-image: radial-gradient(ellipse 78% 74% at 50% 46%, #000 30%, rgba(0,0,0,.55) 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 78% 74% at 50% 46%, #000 30%, rgba(0,0,0,.55) 62%, transparent 100%);
}
.hero__video.is-playing { opacity: 1; }


/* Legibility + brand tint over the film */
.hero__shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(34% 30% at 50% 50%, rgba(25, 14, 22, .38), transparent 100%),
    radial-gradient(120% 90% at 50% 45%, rgba(43, 31, 41, 0) 35%, rgba(25, 14, 22, .55) 100%),
    linear-gradient(to bottom, rgba(65, 48, 61, .30) 0%, rgba(65, 48, 61, .05) 35%, rgba(65, 48, 61, .25) 72%, var(--plum) 100%);
}
.hero__tint {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  /* brand Deep Brick Red (#982B30) blended over the film: dense enough that the
     film is only just visible, easing off toward the edges so it melts into the page */
  background:
    radial-gradient(ellipse 85% 80% at 50% 46%, rgba(152, 43, 48, .80) 0%, rgba(152, 43, 48, .72) 55%, rgba(152, 43, 48, .45) 100%),
    linear-gradient(135deg, rgba(184, 91, 43, .16), rgba(152, 43, 48, 0) 55%);
}

/* Solid plum at the very bottom so the hero melts into the next section */
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: clamp(110px, 24vh, 260px); z-index: 3;
  background: linear-gradient(to bottom, rgba(65, 48, 61, 0), var(--plum) 96%);
  pointer-events: none;
}

/* Logo — centred, fades in softly once loaded */
.hero__stage {
  position: absolute; inset: 0; z-index: 4;
  display: grid; place-items: center; pointer-events: none;
  transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) + var(--sy, 0px)), 0);
  opacity: var(--so, 1);
  will-change: transform, opacity;
}
.hero__logo {
  position: relative;
  /* brand guideline: primary logo height 250px */
  width: clamp(195px, calc(32svh * 1.2987), 325px);
  max-width: 76vw;
  animation: breathe 11s ease-in-out 5s infinite;
}
.hero__logo::before {
  content: ""; position: absolute; inset: -55%; z-index: -1;
  background: radial-gradient(closest-side, rgba(152, 43, 48, .6), rgba(152, 43, 48, 0) 72%);
  filter: blur(18px); opacity: 0;
  transition: opacity 3.4s var(--ease) 1.4s;
}
.hero__logo img {
  width: 100%; height: auto;
  opacity: 0; transform: translateY(16px) scale(.965); filter: blur(12px);
  transition: opacity 2.4s var(--ease) .9s, transform 3s var(--ease) .9s, filter 2.4s var(--ease) .9s;
  filter: blur(12px) drop-shadow(0 6px 30px rgba(0, 0, 0, .35));
}
body.is-ready .hero__logo::before { opacity: 1; }
body.is-ready .hero__logo img {
  opacity: 1; transform: none;
  filter: blur(0) drop-shadow(0 6px 30px rgba(0, 0, 0, .35));
}
@keyframes breathe { 50% { transform: translateY(-7px); } }

/* Scroll cue */
.scroll-cue {
  position: absolute; z-index: 5; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom));
  width: 28px; height: 64px; transform: translateX(-50%);
  display: grid; place-items: center;
  opacity: 0; transition: opacity 2s var(--ease) 3s;
}
body.is-ready .scroll-cue { opacity: 1; }
.scroll-cue span {
  position: relative; display: block; width: 1px; height: 56px; overflow: hidden;
  background: rgba(255, 255, 255, .28);
}
.scroll-cue span::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: linear-gradient(to bottom, transparent, #fff);
  animation: cue 2.6s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }

/* Play button — directly under the logo; fades in 0.3s after the logo has finished fading in
   (logo: .9s delay + 2.4s fade = 3.3s  →  button starts at 3.6s) */
.play {
  position: absolute; top: 100%; left: 50%; z-index: 6;
  margin-top: clamp(30px, 5.5svh, 56px);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  background: none; border: 0; cursor: pointer; pointer-events: auto;
  opacity: 0; visibility: hidden; transform: translate(-50%, 14px);
  transition: opacity 1.8s var(--ease), transform 1.8s var(--ease), visibility 0s linear 1.8s;
  -webkit-tap-highlight-color: transparent;
}
body.is-ready .play {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition-delay: 3.6s, 3.6s, 3.6s;
}
.play__label {
  font-size: .68rem; font-weight: 400; letter-spacing: .34em; text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
  transition: letter-spacing .6s var(--ease), color .4s;
}
.play__icon {
  position: relative; display: grid; place-items: center; flex: none;
  width: 72px; height: 72px; border-radius: 50%;
  color: #fff; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .5s var(--ease), border-color .5s var(--ease), transform .6s var(--ease);
}
.play__icon svg { margin-left: 3px; transition: transform .5s var(--ease); }
.play__icon::before, .play__icon::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55);
  animation: ring 3.6s cubic-bezier(.2, .6, .3, 1) infinite;
  pointer-events: none;
}
.play__icon::after { animation-delay: 1.8s; }
@keyframes ring { 0% { transform: scale(1); opacity: .75; } 80%, 100% { transform: scale(1.75); opacity: 0; } }

.play:hover .play__icon, .play:focus-visible .play__icon {
  background: var(--red); border-color: var(--red); transform: scale(1.07);
}
.play:hover .play__icon svg { transform: scale(1.12); }
.play:hover .play__label, .play:focus-visible .play__label { letter-spacing: .44em; color: #fff; }
.play:active .play__icon { transform: scale(.97); }

/* Promo film — fades in from black, fills the screen, nothing else visible */
.cinema {
  position: fixed; inset: 0; z-index: 2147483000; background: #000;
  display: grid; place-items: center; overflow: hidden;
  opacity: 0; visibility: hidden;
  transition: opacity 1.4s var(--ease), visibility 0s linear 1.4s;
}
.cinema.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
/* Full width, original aspect ratio — never squeezed */
.cinema video {
  display: block; width: 100%; height: auto; max-height: 100%;
  object-fit: cover;               /* only ever crops on ultra-wide screens, never stretches */
  background: #000;
  opacity: 0; transition: opacity 2.4s var(--ease) .2s;
}
.cinema.is-playing video { opacity: 1; }
.cinema:fullscreen { background: #000; }
.cinema:-webkit-full-screen { background: #000; }

/* Close button (only when true full-screen isn't available) */
.theatre-close {
  position: fixed; top: 18px; right: 22px; z-index: 2147483600; width: 48px; height: 48px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.45);
  color: #fff; font-size: 28px; line-height: 1; cursor: pointer; display: none;
}
body.is-theatre { overflow: hidden; }
body.is-theatre .theatre-close { display: block; z-index: 2147483600; }

/* =========================================================
   PRESENTS · CAROUSEL · CONTACT
   ========================================================= */
.presents {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--plum);
  padding-top: clamp(72px, 13vh, 150px);
}
.presents::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 45% at 8% 8%, rgba(152, 43, 48, .5), transparent 70%),
    radial-gradient(50% 40% at 95% 92%, rgba(184, 91, 43, .22), transparent 70%);
}
.presents .grain { z-index: -1; opacity: .07; }
/* melt the hero's plum edge into this section — no visible seam */
.presents::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: clamp(120px, 22vh, 240px); z-index: -1;
  background: linear-gradient(to bottom, var(--plum), rgba(65, 48, 61, 0));
  pointer-events: none;
}

.presents__inner {
  position: relative; z-index: 1; max-width: 1180px; margin: 0 auto;
  padding: 0 var(--gutter); text-align: center;
}

.rule {
  display: block; width: 1px; height: clamp(48px, 8vh, 84px); margin: 0 auto clamp(28px, 5vh, 48px);
  background: linear-gradient(to bottom, var(--orange), rgba(184, 91, 43, 0));
}

.presents__title {
  font-family: var(--font-display); font-weight: 300; text-transform: uppercase;
  letter-spacing: .06em; line-height: 1.04;
  font-size: clamp(2.15rem, 6.6vw, 5.4rem);
  text-wrap: balance;
}
.presents__title em { font-style: italic; font-weight: 300; color: var(--gray); }

.presents__assoc { margin-top: clamp(30px, 5vw, 56px); }
.assoc__label {
  display: inline-flex; align-items: center; gap: 18px;
  font-size: clamp(.64rem, 1.1vw, .78rem); font-weight: 400;
  letter-spacing: .38em; text-transform: uppercase; color: var(--gray);
}
.assoc__label::before, .assoc__label::after {
  content: ""; width: clamp(24px, 5vw, 56px); height: 1px; background: var(--orange);
}
.assoc__names {
  margin-top: 16px;
  font-family: var(--font-display); font-weight: 400; letter-spacing: .05em;
  font-size: clamp(1.35rem, 3.2vw, 2.5rem); line-height: 1.25; text-wrap: balance;
}
.assoc__names .amp { font-style: italic; font-weight: 300; color: var(--gray); padding: 0 .2em; }

/* ---- Infinite logo carousel ---- */
.marquee {
  position: relative; margin-top: clamp(64px, 11vw, 132px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-block: 1px solid rgba(255, 255, 255, .12);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; }
.js .marquee__track {
  animation: marquee var(--marquee-duration, 42s) linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(var(--marquee-shift, -50%), 0, 0); } }

.marquee__set {
  display: flex; align-items: center; flex: none;
  gap: var(--logo-gap); padding-right: var(--logo-gap); list-style: none;
}
.marquee__set li { flex: none; display: grid; place-items: center; }
.marquee__set img {
  /* each logo is trimmed of transparent padding, then sized by its own optical width */
  width: calc(var(--w) * var(--s, 1) * 1px); height: auto; max-width: none;
  opacity: .74;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.marquee__set li:hover img { opacity: 1; transform: scale(1.06); }
.marquee { --s: 1; }
@media (max-width: 900px) { .marquee { --s: .86; } }
@media (max-width: 560px) { .marquee { --s: .72; } }

/* ---- Contact ---- */
.contact {
  position: relative; z-index: 1;
  display: grid; justify-items: center; gap: 8px; text-align: center;
  padding: clamp(60px, 10vw, 110px) var(--gutter) calc(clamp(44px, 6vw, 72px) + env(safe-area-inset-bottom));
}
.contact__link {
  position: relative; font-size: clamp(.85rem, 1.5vw, 1rem); font-weight: 300; letter-spacing: .16em;
  color: var(--gray); padding-bottom: 4px; transition: color .4s;
}
.contact__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.contact__link:hover, .contact__link:focus-visible { color: #fff; }
.contact__link:hover::after, .contact__link:focus-visible::after { transform: scaleX(1); }
.contact__name {
  font-family: var(--font-display); font-weight: 400; letter-spacing: .1em; text-transform: uppercase;
  font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.3; margin: 4px 0;
}

/* ---- Scroll reveal ---- */
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 1.4s var(--ease) var(--d, 0s), transform 1.6s var(--ease) var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---- Small screens ---- */
@media (max-width: 640px) {
  .play__icon { width: 64px; height: 64px; }
  .assoc__label::before, .assoc__label::after { width: 18px; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__fallback, .hero__logo, .scroll-cue span::after,
  .play__icon::before, .play__icon::after { animation: none; }
  .js .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__logo img { transition-duration: .01s; transition-delay: 0s; }
}

/* While the promo is open, nothing from the page may show through or sit above it */
.hero__stage, .scroll-cue, .play { transition-property: opacity, transform, visibility; }
body.is-watching .hero__stage,
body.is-watching .scroll-cue,
body.is-watching .play { opacity: 0 !important; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s linear .5s; }
