:root {
  --mint: #86b2a4;
  --mint-dark: #6a9588;
  --mint-light: #a8c9be;
  --deep: #2a4a5c;
  --night: #1a2b35;
  --cream: #f7f5f0;
  --accent: #c44d4d;
  --text: #2a3a3f;
  --panel-count: 3;
}

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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(180deg, #b5d3c9 0%, var(--mint) 45%, var(--mint-dark) 100%);
}

body {
  min-height: 100vh;
}

.scroll-host {
  height: calc(var(--panel-count) * 100vh);
  position: relative;
}

.viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.sky-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #b5d3c9 0%, var(--mint) 45%, var(--mint-dark) 100%);
  z-index: 0;
}

.sun {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 245, 220, 0.55) 0%, rgba(255, 245, 220, 0.15) 40%, rgba(255, 245, 220, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40vh;
  z-index: 1;
  pointer-events: none;
}

.mountains svg { width: 100%; height: 100%; display: block; }

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 100px;
  filter: blur(2px);
  pointer-events: none;
  z-index: 2;
  opacity: 0.7;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
}

.cloud-1 { width: 180px; height: 40px; top: 12%; left: -200px; animation: drift 55s linear infinite; }
.cloud-1::before { width: 70px; height: 70px; top: -30px; left: 30px; }
.cloud-1::after  { width: 90px; height: 90px; top: -50px; left: 80px; }

.cloud-2 { width: 240px; height: 50px; top: 28%; left: -260px; animation: drift 80s linear infinite; animation-delay: -20s; opacity: 0.55; }
.cloud-2::before { width: 90px; height: 90px; top: -45px; left: 40px; }
.cloud-2::after  { width: 120px; height: 120px; top: -70px; left: 110px; }

.cloud-3 { width: 140px; height: 32px; top: 8%; left: -160px; animation: drift 70s linear infinite; animation-delay: -45s; opacity: 0.5; }
.cloud-3::before { width: 55px; height: 55px; top: -25px; left: 20px; }
.cloud-3::after  { width: 75px; height: 75px; top: -40px; left: 60px; }

.cloud-4 { width: 200px; height: 44px; top: 42%; left: -220px; animation: drift 95s linear infinite; animation-delay: -60s; opacity: 0.4; }
.cloud-4::before { width: 75px; height: 75px; top: -35px; left: 30px; }
.cloud-4::after  { width: 100px; height: 100px; top: -55px; left: 90px; }

@keyframes drift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(100vw + 300px)); }
}

.drops {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

.drop {
  position: absolute;
  width: 2px;
  height: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 100%);
  border-radius: 2px;
  animation: fall linear infinite;
  opacity: 0.7;
}

@keyframes fall {
  0%   { transform: translateY(-40px); opacity: 0; }
  10%  { opacity: 0.7; }
  100% { transform: translateY(110vh); opacity: 0; }
}

.track {
  position: relative;
  z-index: 5;
  display: flex;
  height: 100vh;
  width: calc(var(--panel-count) * 100vw);
  will-change: transform;
  transition: transform 0.08s linear;
}

.panel {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 60px;
  text-align: center;
}

.panel-head {
  margin-bottom: 14px;
}

.panel-tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.75);
  margin-bottom: 8px;
}

.panel-title {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.01em;
  text-shadow: 0 2px 20px rgba(26, 43, 53, 0.2);
}

.panel-title .accent {
  position: relative;
  display: inline-block;
}

.panel-title .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.05em;
  height: 0.1em;
  background: var(--accent);
  border-radius: 4px;
  opacity: 0.9;
}

.frame {
  position: relative;
  background: var(--cream);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(26, 43, 53, 0.35), 0 8px 20px rgba(26, 43, 53, 0.2);
  display: flex;
  flex-direction: column;
}

.frame.frame-windy {
  width: 720px;
  max-width: 94vw;
  height: 450px;
  flex-shrink: 0;
}

.frame.frame-windy iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.frame.frame-cams {
  width: 720px;
  max-width: 94vw;
  flex-shrink: 0;
}

.frame.frame-windy iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.frame-credit {
  font-size: 0.8rem;
  color: rgba(247, 245, 240, 0.8);
  margin-top: 14px;
}

.frame-credit a {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: rgba(247, 245, 240, 0.5);
  text-underline-offset: 3px;
}

.frame-credit a:hover {
  text-decoration-color: var(--cream);
}

.tabs {
  display: flex;
  gap: 8px;
  background: rgba(26, 43, 53, 0.08);
  padding: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--deep);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab:hover {
  background: rgba(26, 43, 53, 0.08);
}

.tab.is-active {
  background: var(--deep);
  color: var(--cream);
}

.webcam-stage {
  position: relative;
  width: 100%;
  background: var(--cream);
  min-height: 320px;
  line-height: 0;
}

.webcam {
  display: none;
  position: relative;
  width: 100%;
  font-size: 0;
}

.webcam.is-active {
  display: block;
}

.webcam iframe {
  width: 100% !important;
  border: 0;
  display: block;
  margin: 0;
}

.fw-link-overlay {
  position: absolute;
  bottom: 90px;
  left: 80%;
  right: 10px;
  height: 30px;
  z-index: 5;
  display: block;
}

.logo-wrap {
  position: relative;
  width: clamp(120px, 18vw, 170px);
  height: clamp(120px, 18vw, 170px);
  margin-bottom: 28px;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 14px 30px rgba(26, 43, 53, 0.25));
}

.logo-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 24px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.maintenance .tag {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(247, 245, 240, 0.9);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.maintenance h1 {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(26, 43, 53, 0.2);
}

.maintenance h1 .accent { position: relative; display: inline-block; }
.maintenance h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.05em;
  height: 0.12em;
  background: var(--accent);
  border-radius: 4px;
  opacity: 0.9;
}

.maintenance .lead {
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  color: var(--cream);
  font-weight: 300;
  margin-bottom: 32px;
}

.dots span {
  display: inline-block;
  animation: blink 1.6s infinite both;
}
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 60%, 100% { opacity: 0.2; }
  30% { opacity: 1; }
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--cream);
  color: var(--deep);
  text-decoration: none;
  border-radius: 999px;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 8px 24px rgba(26, 43, 53, 0.2);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(26, 43, 53, 0.3);
  background: #ffffff;
}

.cta svg {
  width: 16px; height: 16px;
  transition: transform 0.25s ease;
}
.cta:hover svg { transform: translateX(3px); }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: transparent;
  z-index: 100;
  pointer-events: none;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.1s linear;
}

.nav-dots {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 50;
}

.nav-dot {
  appearance: none;
  border: 2px solid rgba(247, 245, 240, 0.6);
  background: transparent;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.nav-dot:hover {
  border-color: var(--cream);
  transform: scale(1.15);
}

.nav-dot.is-active {
  background: var(--cream);
  border-color: var(--cream);
}

.scroll-hint {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  color: var(--cream);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  text-shadow: 0 2px 12px rgba(26, 43, 53, 0.4);
}

.scroll-hint.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
}

.scroll-hint .scroll-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--cream);
  border-radius: 14px;
  position: relative;
  background: rgba(247, 245, 240, 0.08);
  backdrop-filter: blur(2px);
}

.scroll-hint .scroll-mouse::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  background: var(--cream);
  border-radius: 2px;
  animation: wheelDown 1.8s ease-in-out infinite;
}

@keyframes wheelDown {
  0%   { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(14px); opacity: 0; }
  61%  { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.scroll-hint .hint-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.scroll-hint .hint-row svg {
  width: 14px; height: 14px;
  animation: nudge 1.6s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(6px); }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--deep);
  color: var(--cream);
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  z-index: 200;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

.nav-dot:focus-visible,
.tab:focus-visible,
.cta:focus-visible,
.frame-credit a:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
  border-radius: 999px;
}

.footer {
  position: fixed;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(247, 245, 240, 0.55);
  font-size: 0.72rem;
  z-index: 40;
  letter-spacing: 0.06em;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.footer.is-visible { opacity: 1; }

@media (max-width: 820px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  .scroll-host { height: auto; }
  .viewport { position: static; height: auto; overflow: visible; }
  .track {
    flex-direction: column;
    width: 100%;
    height: auto;
    transform: none !important;
  }
  .panel {
    flex: 0 0 auto;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    padding: 60px 20px;
  }
  .nav-dots { display: none; }
  .scroll-hint { display: none; }
  .sun { width: 280px; height: 280px; top: -90px; right: -90px; }
  .frame { width: 96vw; max-height: 65vh; }
}

@media (prefers-reduced-motion: reduce) {
  .cloud, .drop, .logo-wrap, .dots span, .scroll-hint svg { animation: none; }
  .track { transition: none; }
}
