@font-face {
  font-family: "Anton";
  src: url("assets/fonts/anton-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Anton", Impact, sans-serif;
  background: #031523;
  color: #f4fbff;
  --ice: #d9f5ff;
  --glow: #75ddff;
  --line: rgba(214, 244, 255, .35);
  --glass: rgba(4, 31, 53, .64);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { min-width: 320px; overflow-x: hidden; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.experience {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background: linear-gradient(160deg, #0b578c, #041a2d 70%);
}

.scenery {
  position: absolute;
  inset: -3%;
  z-index: -3;
  background: url("assets/images/hokkaido-poster.png") center / cover no-repeat;
  filter: saturate(1.08) contrast(1.04);
  animation: scenic-drift 18s ease-in-out infinite alternate;
}

.scenery::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 28, 53, .4), rgba(2, 23, 44, .69) 42%, rgba(2, 16, 31, .88)),
    radial-gradient(ellipse at 50% 24%, rgba(6, 49, 78, .16), rgba(2, 18, 35, .58) 78%);
}

.light-wash {
  position: absolute;
  z-index: -2;
  top: -13rem;
  left: -10rem;
  width: 27rem;
  height: 27rem;
  border-radius: 50%;
  background: rgba(224, 249, 255, .58);
  filter: blur(28px);
  box-shadow: 0 0 7rem 2rem rgba(126, 215, 255, .25);
  animation: light-breathe 7s ease-in-out infinite alternate;
}

.snow { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.snowflake {
  --size: 5px;
  --opacity: .55;
  --drift: 30px;
  --duration: 12s;
  --delay: 0s;
  position: absolute;
  top: -2rem;
  left: var(--left);
  color: #f4fcff;
  font-size: var(--size);
  opacity: 0;
  filter: blur(var(--blur, 0));
  text-shadow: 0 0 5px rgba(235, 250, 255, .42);
  animation: snowfall var(--duration) var(--delay) linear infinite;
}

.content {
  position: relative;
  left: calc((100vw - 100%) / 2);
  width: 100%;
  min-height: 100svh;
  margin: 0;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(.5rem, 2vw, 2rem) 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.campaign-header { position: relative; z-index: 2; }
h1 { max-width: 10ch; margin: .25rem auto .65rem; font-size: clamp(2.35rem, 6vw, 4.6rem); font-weight: 400; line-height: .96; letter-spacing: .035em; text-shadow: 0 3px 28px rgba(0, 12, 25, .96); }
h1 em { display: block; color: var(--ice); font-style: normal; font-weight: 400; }
.tagline { margin: 0; font-size: clamp(.72rem, 1.5vw, .95rem); letter-spacing: .07em; color: rgba(235, 250, 255, .86); text-shadow: 0 2px 12px #031524; }

.media-shell {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  width: min(100%, 75rem);
  aspect-ratio: 16 / 9;
  max-height: none;
  margin: clamp(1.2rem, 4vw, 2rem) auto 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(213, 243, 253, .43);
  border-radius: 1.45rem;
  background: var(--glass);
  box-shadow: inset 0 1px rgba(255,255,255,.16), 0 1.5rem 4rem rgba(0, 11, 24, .42);
  backdrop-filter: blur(14px);
}

#teaser-video { width: 100%; height: 100%; display: block; object-fit: contain; background: #03111c; }
.poster-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1,17,31,.08), rgba(1,17,31,.32)); transition: opacity .45s ease; pointer-events: none; }
.hero-play { position: absolute; inset: 50% auto auto 50%; width: 6rem; height: 6rem; translate: -50% -50%; border: 1px solid rgba(229, 251, 255, .8); border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(12, 64, 91, .42); box-shadow: 0 0 0 .75rem rgba(111, 218, 249, .08), 0 0 3.4rem rgba(105, 218, 249, .4); cursor: pointer; backdrop-filter: blur(8px); transition: transform .25s ease, opacity .35s ease; }
.hero-play:hover { transform: scale(1.04); }
.hero-play:focus-visible, .control-button:focus-visible, .progress:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; }
.play-ring { position: absolute; inset: -.7rem; border: 1px solid rgba(143, 227, 248, .18); border-radius: inherit; animation: play-pulse 2.4s ease-out infinite; }
.play-symbol { margin-left: .27rem; font-size: 1.45rem; }
.pause-symbol { display: none; font-size: 1.2rem; letter-spacing: .08em; }

.media-controls { position: absolute; left: .45rem; right: .45rem; bottom: .45rem; display: flex; align-items: center; gap: .3rem; padding: .3rem .45rem; border: 1px solid rgba(219, 245, 252, .18); border-radius: .65rem; background: rgba(1, 18, 31, .56); backdrop-filter: blur(7px); opacity: 0; translate: 0 .5rem; transition: opacity .3s ease, translate .3s ease; }
.control-button { flex: 0 0 2rem; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 50%; color: #f4fbff; background: rgba(214, 243, 251, .1); cursor: pointer; }
.progress { min-width: 0; flex: 1; height: 1.1rem; accent-color: var(--glow); cursor: pointer; }
.time { font-size: .62rem; font-variant-numeric: tabular-nums; color: rgba(231, 248, 252, .8); }
.media-error { position: absolute; inset: auto 1rem 4.6rem; margin: 0; padding: .7rem; border-radius: .65rem; background: rgba(80, 15, 21, .9); color: #fff; font-size: .82rem; opacity: 0; pointer-events: none; }

.media-shell.is-ready:hover .media-controls, .media-shell.is-playing .media-controls, .media-shell.is-paused .media-controls, .media-shell:focus-within .media-controls { opacity: 1; translate: 0; }
.media-shell.is-playing .poster-shade, .media-shell.is-playing .hero-play { opacity: 0; pointer-events: none; }
.media-shell.is-playing .play-symbol { display: none; }
.media-shell.is-playing .pause-symbol { display: inline; }
.media-shell.has-error .media-error { opacity: 1; }
.media-shell.has-error .hero-play { opacity: .35; pointer-events: none; }

.campaign-footer { position: relative; z-index: 2; margin-top: auto; text-shadow: 0 2px 18px rgba(0, 12, 26, .95); }
.campaign-footer p { margin: 0 0 .35rem; font-size: clamp(1rem, 2.5vw, 1.4rem); letter-spacing: .14em; color: var(--ice); }
.campaign-footer strong { display: block; margin-bottom: .6rem; font-size: .82rem; font-style: normal; font-weight: 400; letter-spacing: .08em; }
.campaign-footer div { display: flex; justify-content: center; gap: .8rem; font-size: .65rem; letter-spacing: .04em; color: rgba(225, 246, 252, .77); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@keyframes scenic-drift { to { transform: scale(1.035) translate3d(-.6%, -.4%, 0); } }
@keyframes light-breathe { to { opacity: .68; transform: scale(1.12); } }
@keyframes play-pulse { 0% { scale: .88; opacity: .5; } 100% { scale: 1.35; opacity: 0; } }
@keyframes snowfall {
  0% { transform: translate3d(0, -6rem, 0) rotate(0); opacity: 0; }
  8% { opacity: var(--opacity); }
  36% { transform: translate3d(calc(var(--drift) * .65), 36svh, 0) rotate(90deg); }
  67% { transform: translate3d(calc(var(--drift) * -.2), 70svh, 0) rotate(190deg); }
  92% { opacity: calc(var(--opacity) * .75); }
  100% { transform: translate3d(var(--drift), 112svh, 0) rotate(300deg); opacity: 0; }
}

@media (min-width: 768px) {
  h1 em { display: inline; }
  .scenery { background-position: center 42%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
}
