@font-face {
  font-family: "Bricolage";
  src: url("bricolage.woff2") format("woff2");
  font-weight: 300 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --ink: #0a2230;
  --sea: #1e5a6b;
  --sand: #f2e6d0;
  --white: #ffffff;
  --mist: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.22);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

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

html, body { margin: 0; height: 100%; }

body {
  background: var(--ink);
  color: var(--white);
  font-family: "Bricolage", "Avenir Next", system-ui, sans-serif;
  font-optical-sizing: auto;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--sand); color: var(--ink); }

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }

:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 2px; }

.stage {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  isolation: isolate;
}

/* The sea, graded to blue hour */
.sea, .sea-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}
.sea-poster { z-index: -4; filter: blur(14px); transform: scale(1.06); }
.sea {
  opacity: 0;
  filter: blur(14px);
  transition: opacity 1.8s var(--ease), filter 2.4s var(--ease);
}
.is-playing .sea { opacity: 1; filter: blur(0); }

.grade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 50% 42%, rgba(10, 34, 48, 0.12) 0%, rgba(10, 34, 48, 0.55) 70%, rgba(10, 34, 48, 0.86) 100%),
    linear-gradient(180deg, rgba(10, 34, 48, 0.55) 0%, rgba(30, 90, 107, 0.18) 35%, rgba(10, 34, 48, 0.35) 62%, rgba(10, 34, 48, 0.92) 100%);
}
.grade::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sea);
  mix-blend-mode: color;
  opacity: 0.3;
}
.grade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 34, 48, 0.25) 0%, rgba(10, 34, 48, 0) 30%, rgba(10, 34, 48, 0) 55%, rgba(10, 34, 48, 0.78) 100%);
}

/* Top bar */
.top {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: clamp(18px, 3vw, 32px) clamp(20px, 4vw, 48px);
}
.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.lang a {
  text-decoration: none;
  padding: 6px 10px;
  color: var(--mist);
  border-radius: 999px;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.lang a:hover { color: var(--white); background: rgba(255, 255, 255, 0.1); }
.lang a[aria-current="page"] { color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); }

/* Centre: logo + promise */
.centre {
  align-self: center;
  justify-self: center;
  text-align: center;
  padding: 0 clamp(20px, 5vw, 48px);
  max-width: 980px;
  margin-top: -2vh;
  padding-bottom: clamp(16px, 4vh, 44px);
}
.logo {
  display: block;
  width: min(44vw, 560px);
  min-width: 260px;
  height: auto;
  margin: 0 auto clamp(28px, 4.5vh, 52px);
  filter: drop-shadow(0 2px 18px rgba(10, 34, 48, 0.35));
}
.promise {
  margin: 0;
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.5rem);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
  text-shadow: 0 1px 24px rgba(10, 34, 48, 0.45);
}
.lede {
  margin: clamp(14px, 2vh, 22px) auto 0;
  max-width: 58ch;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  text-wrap: pretty;
  text-shadow: 0 1px 3px rgba(10, 34, 48, 0.55), 0 1px 18px rgba(10, 34, 48, 0.7);
}

/* Bottom band */
.band {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  margin: 0 clamp(20px, 4vw, 48px) clamp(20px, 3.5vh, 40px);
  border-top: 1px solid var(--line);
}
.band > section { padding: clamp(18px, 2.6vh, 28px) 0 0; }
.band > section + section {
  border-left: 1px solid var(--line);
  padding-left: clamp(20px, 3.5vw, 48px);
}
.band > section:first-child { padding-right: clamp(20px, 3.5vw, 48px); }

.band h2 {
  margin: 0 0 6px;
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.band p {
  margin: 0 0 16px;
  max-width: 52ch;
  font-size: 0.975rem;
  line-height: 1.5;
  color: var(--mist);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 24px -8px rgba(10, 34, 48, 0.6);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}
.btn:hover { transform: translateY(-1px); background: #fff5e3; box-shadow: 0 10px 30px -8px rgba(10, 34, 48, 0.7); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.addr { display: block; margin-top: 10px; font-size: 0.875rem; color: var(--mist); }

.signup { display: flex; gap: 8px; max-width: 440px; }
.signup label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(10, 34, 48, 0.35);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
  caret-color: var(--sand);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.signup input::placeholder { color: rgba(255, 255, 255, 0.72); }
.signup input:hover { border-color: rgba(255, 255, 255, 0.7); }
.signup input:focus-visible { outline: none; border-color: var(--sand); background: rgba(10, 34, 48, 0.55); }
.btn-ghost {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-weight: 550;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-ghost[disabled] { opacity: 0.6; cursor: progress; }
.hp { position: absolute; left: -9999px; }
.note { margin-top: 10px; font-size: 0.8125rem; color: var(--mist); min-height: 1.2em; }
.note[data-state="ok"] { color: var(--white); }
.note[data-state="error"] { color: var(--white); font-weight: 500; }

.foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: clamp(16px, 2.4vh, 24px);
  font-size: 0.8125rem;
  color: var(--mist);
}
.pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.pause:hover { border-color: rgba(255, 255, 255, 0.6); }
.pause svg { width: 14px; height: 14px; }
.pause .i-play { display: none; }
.is-paused .pause .i-play { display: block; }
.is-paused .pause .i-pause { display: none; }

/* Arrival: logo and copy settle once */
.centre > * { animation: rise 1.6s var(--ease) both; }
.centre > .promise { animation-delay: 0.15s; }
.centre > .lede { animation-delay: 0.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

@media (max-width: 760px) {
  .stage { grid-template-rows: auto auto auto; }
  .centre { padding-top: 8vh; padding-bottom: 7vh; margin-top: 0; }
  .logo { width: 78vw; }
  .band { grid-template-columns: 1fr; }
  .band > section:first-child { padding-right: 0; }
  .band > section + section { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px; }
  .signup { flex-direction: column; }
  .btn, .btn-ghost { width: 100%; justify-content: center; }
  .grade::after { background: linear-gradient(180deg, rgba(10, 34, 48, 0.2) 0%, rgba(10, 34, 48, 0) 25%, rgba(10, 34, 48, 0.4) 70%, rgba(10, 34, 48, 0.9) 100%); }
  .grade { background: radial-gradient(160% 100% at 50% 40%, rgba(10, 34, 48, 0.05) 0%, rgba(10, 34, 48, 0.45) 75%, rgba(10, 34, 48, 0.75) 100%); }
}

@media (min-width: 761px) and (max-height: 860px) {
  .logo { margin-bottom: 3vh; }
  .promise { font-size: clamp(1.75rem, 1rem + 2.4vw, 3rem); }
  .lede { margin-top: 1.4vh; }
  .band > section { padding-top: 2vh; }
  .band p { margin-bottom: 12px; }
  .top { padding-top: 14px; padding-bottom: 6px; }
  .logo { min-width: 0; width: min(34vw, 30vh * 2.87, 480px); }
}

@media (prefers-reduced-motion: reduce) {
  .sea { transition: none; }
  .centre > * { animation: none; }
  .btn, .btn:hover { transition: none; transform: none; }
}
