

:root {
  --color-bg: #fafaf8;
  --color-ink: #1c1c1a;
  --color-ink-dim: #6b6b64;
  --color-accent: #4a5d43;
  --color-rain: #2c4a6e;
  --color-rain-light: #7fa6cc;
  --font-sans: Helvetica, Arial, "Segoe UI", sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: clamp(1rem, 2.5vh, 1.75rem);
  --space-4: clamp(1.25rem, 3.5vh, 2.25rem);
  --space-5: clamp(1.5rem, 5vh, 3.25rem);
  --shell-width: 40rem;
  --umbrella-width: 32rem;
  --city-width: var(--umbrella-width);

  --header-shift: 3.6rem;
  --hero-shift: 7.5rem;
}

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  position: relative;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: var(--space-5) var(--space-3) var(--space-4);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.rain .drop {
  position: absolute;
  top: 0;
  width: 6px;
  height: 22px;

  clip-path: polygon(50% 0%, 62% 14%, 82% 46%, 82% 74%, 66% 94%, 50% 100%, 34% 94%, 18% 74%, 18% 46%, 38% 14%);
  background: linear-gradient(to bottom, transparent, var(--color-rain-light) 55%, var(--color-rain));
  opacity: 0.6;
  animation-name: rain-fall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@keyframes rain-fall {

  0% { transform: translateY(-22px); opacity: 0; }
  10% { opacity: 0.6; }

  98% { opacity: 0.6; }
  100% { transform: translateY(var(--fall-distance, 115vh)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .rain { display: none; }
}

.splash {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 18px;
  height: 7px;
  margin-left: -9px;
  border-radius: 50%;
  border: 2px solid var(--color-rain-light);
  opacity: 0.7;

  animation: splash-pop 0.3s ease-out forwards;
}

@keyframes splash-pop {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

.water-line {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  z-index: 0;
  background: linear-gradient(to top, var(--color-rain) 0%, var(--color-rain-light) 65%, transparent 100%);
  opacity: 0.55;
  pointer-events: none;
}

.water-canvas {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 56px;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
}

@media (max-width: 600px) {
  .water-canvas {
    height: 40px;
  }
}

.city-rainbow {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  width: 90%;
  max-width: calc(var(--city-width) * 0.9);
  aspect-ratio: 2 / 1;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(50% 100% at 50% 100%,
    transparent 0%, transparent 72.4%,
    rgba(238, 130, 238, 0.238) 75.85%,
    rgba(148, 87, 235, 0.238) 79.87%,
    rgba(74, 144, 255, 0.238) 83.9%,
    rgba(96, 201, 140, 0.238) 87.93%,
    rgba(255, 224, 102, 0.238) 91.95%,
    rgba(255, 150, 110, 0.238) 95.98%,
    transparent 100%);
}

.city-rainbow.is-active {
  animation: city-rainbow-bloom 5.6s ease-out forwards;
}

@keyframes city-rainbow-bloom {
  0% { opacity: 0; transform: translateX(-50%) scale(0.65); }
  11% { opacity: 1; transform: translateX(-50%) scale(1); }
  82% { opacity: 1; transform: translateX(-50%) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) scale(1.08); }
}

.cityscape-img {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--city-width);
  height: auto;
  z-index: 1;
  pointer-events: none;
}

.content-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.site-header {
  position: relative;
  z-index: 3;

  --reveal-end-shift: var(--header-shift);
}

.umbrella-shell {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.umbrella-img {
  position: absolute;
  top: 0;
  left: 50%;

  transform: translate(-50%, -15%);
  width: 100%;
  max-width: var(--umbrella-width);
  height: auto;
  z-index: 0;
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 2;
}

.hero {
  transform: translateY(var(--hero-shift));
}

.site-footer {
  position: fixed;
  left: var(--space-4);
  bottom: var(--space-4);
  z-index: 2;
  text-align: left;
}

.headline,
.key-message,
.hint-message,
.wordmark,
.tagline,
.site-footer p {
  text-shadow: 0 2px 10px rgba(250, 250, 248, 0.85), 0 0 3px rgba(250, 250, 248, 0.7);
}

.site-header {
  margin-bottom: var(--space-3);

  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-bg);
  border: 2px solid var(--color-ink);
  border-radius: 14px;
  box-shadow: 0 5px 14px rgba(28, 28, 26, 0.22);
  padding: 0.55rem 1.2rem;
}

.wordmark {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.tagline {
  margin: var(--space-1) 0 0;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-ink-dim);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 40rem;
}

.headline {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  color: var(--color-ink);
}

.headline .line {
  display: block;
}

.line--stamp {
  color: var(--color-bg);
  background: var(--color-ink);
  padding: 0.05em 0.2em;
  display: inline-block;
  transform: rotate(-1.5deg);
  margin-top: 0.12em;
}

.key-message {
  margin: var(--space-3) 0 0;
  max-width: 26rem;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 300;
  color: var(--color-rain);
}

.hint-message {
  margin: var(--space-2) 0 0;
  max-width: 24rem;
  font-size: clamp(0.8rem, 1.5vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-accent);
}

.site-footer p {
  margin: 0;
  font-size: 0.72rem;
  color: var(--color-ink-dim);
  letter-spacing: 0.05em;
}

.reveal {

  opacity: 0;
  transform: translateY(calc(var(--reveal-end-shift, 0px) + 8px)) rotate(var(--reveal-end-rotate, 0deg));
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--delay, 0) * 0.18s + 0.1s);
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(var(--reveal-end-shift, 0px)) rotate(var(--reveal-end-rotate, 0deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: translateY(var(--reveal-end-shift, 0px)) rotate(var(--reveal-end-rotate, 0deg));
  }
}

.sun-rainbow-fx {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  z-index: 5;
  pointer-events: none;
}

.sun-glow {
  position: absolute;
  left: 0;
  top: 0;

  animation: fx-bloom 5.6s ease-out forwards;
  width: 420px;
  height: 420px;
  margin-left: -210px;
  margin-top: -210px;
  border-radius: 50%;

  background: radial-gradient(circle, rgba(255, 227, 162, 1) 0%, rgba(255, 225, 150, 0.8) 35%, transparent 70%);
}

@keyframes fx-bloom {
  0% { opacity: 0; transform: scale(0.65); }
  11% { opacity: 1; transform: scale(1); }
  82% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .sun-rainbow-fx,
  .city-rainbow { display: none; }
}

.back-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--color-ink);
}

@media (min-width: 601px) and (max-width: 1024px) {
  .hero {
    max-width: 34rem;
  }

  .headline {
    font-size: clamp(1.9rem, 6vw, 3rem);
  }

  .grid-lines {
    padding: 0 var(--space-2);
  }
}

@media (max-width: 600px) {
  :root {

    --hero-shift: 5.6rem;
  }

  body {
    padding: var(--space-4) var(--space-2) var(--space-3);
  }

  .grid-lines {
    padding: 0 var(--space-2);
  }

  .site-header {
    margin-bottom: var(--space-2);
  }

  .site-footer {
    left: var(--space-2);
    bottom: var(--space-2);
  }
}

.footer-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--color-ink);
  color: #fff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.15);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; max-width: 640px; font-size: 0.85rem; color: #eee; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

.cookie-banner .btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.cookie-banner .btn-primary { background: var(--color-accent); color: #fff; }
.cookie-banner .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.cookie-banner .btn-ghost:hover { border-color: #fff; }
