/*
  Waterfront by Missoni: registration page
  Built to the agency artwork (MISSONI_TEASER_EDM.ai): navy #0E3A51 on #EFEDE9, Futura PT for
  display (served here as Jost, the free Futura revival: Futura PT is Adobe Fonts only) and DM Sans
  Light for body. Both fonts are self-hosted under the SIL Open Font License (assets/fonts/OFL-*.txt).

  No inline styles or scripts anywhere, so the page runs under a strict Content-Security-Policy.
*/

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/jost-variable-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url('../fonts/dm-sans-variable-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #0E3A51;
  --navy-70: rgba(14, 58, 81, 0.7);
  --navy-35: rgba(14, 58, 81, 0.35);
  --navy-15: rgba(14, 58, 81, 0.15);
  --panel: #EFEDE9;
  --white: #FFFFFF;
  --error: #9B2C1F;
  --display: 'Futura PT', 'Jost', Futura, 'Century Gothic', 'Trebuchet MS', Arial, sans-serif;
  --body: 'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--panel);
  color: var(--navy);
  font-family: var(--body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
/* The hidden attribute must win over any display rule below (.input, .hero__toggle…). */
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }

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

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.hero :focus-visible, .band :focus-visible { outline-color: var(--white); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--white); color: var(--navy);
  padding: 10px 16px; font-family: var(--display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ── Buttons: the artwork's LEARN MORE (1px outline, square corners, Futura Bold) ────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 26px;
  border: 1px solid currentColor; border-radius: 0; background: transparent;
  font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1;
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn--navy { color: var(--navy); }
.btn--navy:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--light { color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn[disabled] { opacity: 0.55; cursor: progress; }

/* ── Hero: the teaser film, full screen ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 420px;
  overflow: hidden;
  background: #0b2533;
  color: var(--white);
}
.hero__film, .hero__poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(6, 22, 31, 0.45) 0%, rgba(6, 22, 31, 0) 22%),
    linear-gradient(to top, rgba(6, 22, 31, 0.55) 0%, rgba(6, 22, 31, 0) 30%);
}
.hero__bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: flex-end; align-items: center;
  padding: clamp(16px, 3vw, 32px) var(--gutter);
}
.hero__bar .btn { min-height: 42px; font-size: 15px; padding: 0 20px; }
.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 var(--gutter) clamp(18px, 3.5vw, 34px);
}
.hero__cue {
  position: absolute; left: 50%; bottom: clamp(18px, 3.5vw, 34px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 300; font-size: 12px; letter-spacing: 0.3em;
  text-transform: uppercase; text-decoration: none; color: var(--white);
}
.hero__cue::after {
  content: ''; width: 1px; height: 38px; background: currentColor; opacity: 0.8;
  transform-origin: top; animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hero__toggle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7); background: rgba(6, 22, 31, 0.25);
  display: grid; place-items: center; cursor: pointer; color: var(--white);
}
.hero__toggle svg { width: 14px; height: 14px; fill: currentColor; }
.hero__toggle .icon-play { display: none; }
.hero__toggle[aria-pressed='true'] .icon-play { display: block; }
.hero__toggle[aria-pressed='true'] .icon-pause { display: none; }
@media (prefers-reduced-motion: reduce) { .hero__cue::after { animation: none; } }

/* ── Intro: the artwork's text panel beside its hero image ───────────────────────────────── */
.intro { display: grid; grid-template-columns: 1fr; background: var(--panel); }
.intro__media { margin: 0; background: #241F20; }
.intro__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1600 / 1456; }
.intro__text {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: clamp(44px, 8vw, 96px) var(--gutter);
}
.display {
  margin: 0;
  font-family: var(--display); font-weight: 300; text-transform: uppercase;
  font-size: clamp(42px, 6.2vw, 76px); line-height: 1.12; letter-spacing: 0.062em;
  /* Tracking adds space after the last letter too; pull it back so the line centres true. */
  margin-right: -0.062em;
}
.subhead {
  margin: clamp(18px, 2.4vw, 26px) 0 0;
  font-family: var(--display); font-weight: 300; text-transform: uppercase;
  font-size: clamp(17px, 1.75vw, 23px); line-height: 1.42; letter-spacing: 0.024em;
}
.prose { max-width: 36em; margin-top: clamp(20px, 2.6vw, 30px); }
.prose p { margin: 0; font-size: clamp(15px, 1.15vw, 16.5px); line-height: 1.62; }
.prose p + p { margin-top: 1.1em; }
.unveil {
  margin: clamp(22px, 2.8vw, 32px) 0 0;
  font-family: var(--display); font-weight: 300; text-transform: uppercase;
  font-size: clamp(16px, 1.55vw, 20.5px); line-height: 1.25; letter-spacing: 0.027em;
}
@media (min-width: 900px) {
  .intro { grid-template-columns: 1fr 1fr; }
  .intro__media img { aspect-ratio: auto; min-height: 100%; }
}

/* ── Register ────────────────────────────────────────────────────────────────────────────── */
.register {
  background: var(--panel);
  border-top: 1px solid var(--navy-15);
  padding: clamp(56px, 9vw, 110px) var(--gutter) clamp(60px, 9vw, 116px);
}
.register__inner { max-width: 560px; margin: 0 auto; }
.register__title {
  margin: 0; text-align: center;
  font-family: var(--display); font-weight: 300; text-transform: uppercase;
  font-size: clamp(24px, 3vw, 34px); line-height: 1.2; letter-spacing: 0.06em;
  margin-right: -0.06em;
}
.register__lede { margin: 14px auto 0; text-align: center; max-width: 30em; }

.form { margin-top: clamp(30px, 4vw, 44px); }
.field { position: relative; margin-bottom: 26px; }
.field label, .field .label {
  display: block; margin-bottom: 6px;
  font-family: var(--display); font-weight: 300; font-size: 12.5px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--navy-70);
}
.input, .select {
  display: block; width: 100%;
  height: 46px; padding: 8px 0;
  border: 0; border-bottom: 1px solid var(--navy-35); border-radius: 0;
  background: transparent; color: var(--navy);
  font-family: var(--body); font-weight: 400; font-size: 17px;
  transition: border-color 0.25s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--navy-35); }
.input:focus, .select:focus { outline: none; border-bottom-color: var(--navy); box-shadow: 0 1px 0 0 var(--navy); }
.input[aria-invalid='true'], .select[aria-invalid='true'] { border-bottom-color: var(--error); }
.select {
  padding-right: 24px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%230E3A51' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center;
}
.phone { display: grid; grid-template-columns: minmax(118px, 38%) 1fr; gap: 18px; }
.phone .code-other { margin-top: 10px; }
.field__error { display: block; margin-top: 6px; font-size: 13.5px; color: var(--error); min-height: 0; }
.field__error:empty { display: none; }

.check { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 26px; cursor: pointer; }
.check input {
  flex: 0 0 auto; width: 18px; height: 18px; margin: 3px 0 0;
  -webkit-appearance: none; appearance: none;
  border: 1px solid var(--navy); border-radius: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.check input::after {
  content: ''; width: 10px; height: 6px;
  border-left: 1.5px solid var(--white); border-bottom: 1.5px solid var(--white);
  transform: rotate(-45deg) translate(1px, -1px); opacity: 0;
}
.check input:checked { background: var(--navy); }
.check input:checked::after { opacity: 1; }
.check span { font-size: 15px; line-height: 1.5; }

.form__actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.form__actions .btn { min-width: 220px; }
.fine { margin: 0; text-align: center; font-size: 13px; line-height: 1.55; color: var(--navy-70); }
.fine a { color: var(--navy); }
.form__status { margin: 18px 0 0; text-align: center; font-size: 15px; color: var(--error); }
.form__status:empty { display: none; }

/* Honeypot: off-screen, not display:none (some bots skip hidden fields) */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.thanks { text-align: center; padding: 20px 0 0; }
.thanks__title {
  margin: 0; font-family: var(--display); font-weight: 300; text-transform: uppercase;
  font-size: clamp(22px, 2.6vw, 30px); letter-spacing: 0.06em; line-height: 1.25;
}
.thanks p { margin: 14px auto 0; max-width: 28em; }
.thanks[hidden], .form[hidden] { display: none; }

/* ── Closing band: the aerial, with the developer's mark ─────────────────────────────────── */
.band { position: relative; display: block; overflow: hidden; color: var(--white); text-decoration: none; background: #1E3C44; }
.band > picture, .band > picture img { display: block; width: 100%; height: clamp(300px, 42vw, 620px); object-fit: cover; object-position: 50% 62%; }
.band__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 22, 31, 0.55) 0%, rgba(6, 22, 31, 0) 55%); }
.band__mark {
  position: absolute; left: 0; right: 0; bottom: clamp(26px, 5vw, 56px);
  display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 1.4vw, 16px);
}
.band__mark img { width: clamp(170px, 20vw, 250px); height: auto; object-fit: contain; }
.band__url {
  font-family: var(--body); font-weight: 400; font-size: clamp(10px, 0.9vw, 12px);
  letter-spacing: 0.34em; text-transform: uppercase;
}

/* ── Footer ──────────────────────────────────────────────────────────────────────────────── */
.foot {
  background: var(--panel);
  padding: 26px var(--gutter) 30px;
  text-align: center; font-size: 13px; line-height: 1.7; color: var(--navy-70);
}
.foot p { margin: 0; }
.foot a { color: var(--navy); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .sep { color: var(--navy-35); margin: 0 0.5em; }
.nowrap { white-space: nowrap; }

/* ── Reveal on scroll (only when JS runs and motion is welcome) ──────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
