:root {
  color-scheme: dark;
  --bg: #000;
  --red-fill: #C42F25;
  --travel: 5.4;
  --story-progress: 0;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: #fff; }
body { font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
main { background: #000; }

video::-webkit-media-controls { display: none !important; }
video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
video::-webkit-media-controls-panel { display: none !important; -webkit-appearance: none; }


.scroll-scene { position: relative; height: calc((var(--travel) + 1) * 100svh); background: #000; }
.sticky-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #000; isolation: isolate; }
.stage-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.mobile-intro-image { display: none; }
.scroll-video { z-index: 1; opacity: 0; transition: opacity 180ms linear; }
.intro-video { z-index: 2; opacity: 1; transition: opacity 180ms linear; }
body.scrolled .scroll-video { opacity: 1; }
body.scrolled .intro-video { opacity: 0; }
.stage-overlay { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(circle at 50% 62%,rgba(255,255,255,.05),transparent 20%),linear-gradient(180deg,rgba(0,0,0,.12),transparent 28%,transparent 72%,rgba(0,0,0,.34)); }
.scroll-hint {
  position: absolute; left: 50%; top: 79%; transform: translateX(-50%); z-index: 4;
  display: inline-flex; align-items: center; justify-content: center; min-width: 112px;
  padding: 8px 17px; border: 1px solid rgba(255,255,255,.56); border-radius: 999px;
  color: rgba(255,255,255,.98); font-size: clamp(16px,1.35vw,23px); font-weight: 600;
  letter-spacing: -.03em; text-transform: lowercase;
  text-shadow: 0 0 8px rgba(255,255,255,.9),0 0 22px rgba(255,255,255,.45),0 0 44px rgba(255,255,255,.2);
  box-shadow: 0 0 16px rgba(255,255,255,.32),0 0 36px rgba(255,255,255,.12),inset 0 0 10px rgba(255,255,255,.08);
  backdrop-filter: blur(8px); background: rgba(255,255,255,.055); opacity: 1;
  transition: opacity 180ms linear,transform 180ms linear;
}
body.scrolled .scroll-hint { opacity: 0; transform: translateX(-50%) translateY(12px); }
.loading-state,.error-state { position:absolute;left:50%;bottom:24px;transform:translateX(-50%);z-index:5;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.72); }
.error-state { display:grid;gap:12px;text-align:center; }
.error-state button { border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.08);color:#fff;border-radius:999px;padding:10px 16px;cursor:pointer; }

.story-scene { position: relative; height: 245svh; background: var(--red-fill); }
.story-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--red-fill); isolation: isolate; }
.story-layer {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--red-fill); overflow: hidden;
}
.story-image {
  position: absolute; inset: 0; margin: auto;
  width: 100%; height: 100%; display: block;
  object-fit: contain; object-position: center;
}
.mobile-image { display: none; }
.concept-layer {
  z-index: 1;
  opacity: calc(1 - min(1, max(0, (var(--story-progress) - .34) / .22)));
  transform: scale(calc(1 - min(.012, max(0, (var(--story-progress) - .28) * .02))));
  will-change: opacity, transform;
}
.contact-layer {
  z-index: 2;
  opacity: min(1, max(0, (var(--story-progress) - .34) / .22));
  transform: translateY(calc(18px * (1 - min(1, max(0, (var(--story-progress) - .34) / .22)))));
  will-change: opacity, transform;
}
.mobile-collage { display: none; }
.photo-collage {
  position: absolute; left: 50%; top: 7.5%; z-index: 3;
  width: min(55vw, 920px); height: auto;
  transform: translate(-50%, calc(-120px + min(120px, max(0px, (var(--story-progress) - .48) * 340px))));
  opacity: min(1, max(0, (var(--story-progress) - .47) / .18));
  will-change: transform, opacity;
  pointer-events: none;
}
.email-hotspot {
  position: absolute; z-index: 4; border-radius: 12px;
}
.desktop-hotspot { left: 39%; top: 63.5%; width: 22%; height: 7%; }
.mobile-hotspot { display: none; }
.email-hotspot:focus-visible { outline: 2px solid rgba(255,255,255,.95); outline-offset: 4px; }

@media (max-width: 1100px) {
  .photo-collage { width: min(66vw,830px); top: 7%; }
  .desktop-hotspot { left: 34%; width: 32%; }
}
@media (max-width: 900px) {
  :root { --travel: 5.8; }
  .scroll-hint { top: 82%; min-width: 104px; padding: 7px 15px; font-size: clamp(15px,4vw,20px); }
  .photo-collage { width: 78vw; top: 8%; }
  .desktop-hotspot { left: 28%; width: 44%; top: 63%; height: 8%; }
}
@media (max-width: 560px) {
  .story-scene { height: 225svh; }
  .scroll-hint { top: 84%; font-size: 16px; min-width: 96px; padding: 7px 14px; }
  .photo-collage { width: 92vw; top: 9.5%; }
  .desktop-hotspot { left: 18%; width: 64%; top: 63%; height: 9%; }
}

@media (orientation: portrait) and (max-width: 900px) {
  .desktop-collage { display: none; }
  .mobile-collage { display: block; }

  :root { --travel: 6.1; }
  .sticky-stage, .story-sticky { height: 100dvh; }
  .scroll-scene { height: calc((var(--travel) + 1) * 100dvh); }
  .scroll-video {
    object-fit: cover;
    object-position: center center;
    background: #000;
    transform: none;
  }
  .intro-video { display: none; }
  .mobile-intro-image {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background: #000;
    opacity: 1;
    transition: opacity 180ms linear;
    pointer-events: none;
  }
  body.scrolled .mobile-intro-image { opacity: 0; }
  .stage-overlay {
    background:
      radial-gradient(circle at 50% 50%, rgba(255,255,255,.045), transparent 28%),
      linear-gradient(180deg, rgba(0,0,0,.06), transparent 24%, transparent 74%, rgba(0,0,0,.22));
  }
  .scroll-hint {
    top: auto;
    bottom: calc(9dvh + env(safe-area-inset-bottom, 0px));
    min-width: 92px;
    padding: 7px 14px;
    font-size: 15px;
    border-width: 1px;
    text-shadow: 0 0 7px rgba(255,255,255,.95), 0 0 18px rgba(255,255,255,.55), 0 0 34px rgba(255,255,255,.28);
    box-shadow: 0 0 14px rgba(255,255,255,.4), 0 0 30px rgba(255,255,255,.18), inset 0 0 9px rgba(255,255,255,.1);
  }
  .loading-state, .error-state { bottom: calc(3dvh + env(safe-area-inset-bottom, 0px)); }

  .story-scene { height: 245dvh; background: #C42F25; }
  .story-sticky, .story-layer { background-color: #C42F25; }

  .desktop-image { display: none; }
  .mobile-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    inset: 0;
    transform: none;
  }
  .concept-layer, .contact-layer { transform: none; }

  .photo-collage {
    left: 50%;
    top: 20%;
    width: 92vw;
    max-width: 680px;
    transform: translate(-50%, calc(-62px + min(62px, max(0px, (var(--story-progress) - .48) * 190px))));
  }
  .desktop-hotspot { display: none; }
  .mobile-hotspot {
    display: block;
    left: 16%;
    top: 54.3%;
    width: 68%;
    height: 6.2%;
  }
}

@media (orientation: portrait) and (max-width: 560px) {
  .scroll-video { transform: none; }
  .scroll-hint {
    bottom: calc(8dvh + env(safe-area-inset-bottom, 0px));
    min-width: 88px;
    padding: 6px 13px;
    font-size: 14px;
  }
  .story-scene { height: 235dvh; }
  .photo-collage { width: 94vw; top: 20.5%; }
  .mobile-hotspot { left: 14%; width: 72%; top: 54.1%; height: 6.2%; }
}

@media (orientation: portrait) and (max-height: 700px) {
  .photo-collage { width: 88vw; top: 18.5%; }
  .scroll-hint { bottom: calc(6dvh + env(safe-area-inset-bottom, 0px)); }
  .mobile-hotspot { top: 54.8%; height: 6.4%; }
}
