/* The welcome page: the water opening, then the page (specs/pages.md). */

.opening {
  position: fixed; inset: 0; z-index: 2000; background: #000;
  transition: opacity 1.2s ease;
}
.opening video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(0) saturate(1.2);
}
/* black to blue: the water brightens as if light were reaching down */
.opening.rising video { animation: rise 3s ease-in forwards; }
@keyframes rise {
  0%   { filter: brightness(0) saturate(1.2) hue-rotate(0deg); }
  60%  { filter: brightness(.55) saturate(1.3) hue-rotate(-8deg); }
  100% { filter: brightness(1.05) saturate(1.15) hue-rotate(-4deg); }
}
.opening.leaving { opacity: 0; }
.opening.gone { display: none; }

.reveal { opacity: 0; transition: opacity 1.2s ease; }
body.shown .reveal { opacity: 1; }

.hero {
  position: relative; color: #fff;
  min-height: min(78vh, 640px);
  display: flex; align-items: flex-end; text-align: center;
  background: #121A16 url("water.jpg") center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18, 26, 22, .15) 0%, rgba(18, 26, 22, .55) 55%, rgba(18, 26, 22, .92) 100%);
}
.hero-inner { position: relative; padding: 28px 16px 36px; max-width: 820px; width: 100%; margin: 0 auto; }
.hero h1 { color: var(--gold); font-size: clamp(2.3rem, 9vw, 4rem); margin-bottom: .2em; text-shadow: 0 2px 16px rgba(0, 0, 0, .6); }
.tagline { font-size: clamp(1.1rem, 4.2vw, 1.4rem); max-width: 30em; margin-left: auto; margin-right: auto; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
.hero-buttons { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-buttons .button { min-width: 13em; }
.button.teal { background: var(--turquoise-strong); color: #fff; }

/* everything on the welcome page is centred */
.welcome main { text-align: center; }
.recent-wrap h2, .faq h2 { text-align: center; }

.recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.recent a { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; }
.recent img, .recent .noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--well-dark); }
.recent .noimg { display: flex; align-items: center; justify-content: center; color: var(--turquoise); font-family: var(--title-font); font-size: 1.1rem; }
.recent .body { padding: 10px 12px; }
.recent strong { display: block; color: var(--link); }
.faq p { max-width: 40em; margin-left: auto; margin-right: auto; }

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