/* ==========================================================================
   Hel.n – Under Construction
   Design reference: 1920×1080 (desktop) and 480×853 (mobile)
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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 {
  --c-white: #fff;
  --c-sand: #b9a684;          /* fallback while poster/video load */
  --c-btn-text: #7c7c70;
  --c-btn-text-hover: #4d4e44;

  /* Desktop (scaled from the 1920×1080 design) */
  --logo-w: clamp(170px, 12.3vw, 320px);
  --pad-top: clamp(28px, 9.07vh, 150px);
  --gap-title: clamp(28px, 10.28vh, 170px);
  --title-size: clamp(40px, 3.65vw, 96px);
  --gap-form: clamp(28px, 10.57vh, 180px);
  --form-w: clamp(320px, 23.7vw, 560px);
  --field-size: clamp(16px, 0.885vw, 20px);
  --foot-size: clamp(11px, 0.573vw, 14px);
  --pad-bottom: clamp(14px, 2.93vh, 48px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body { margin: 0; }

body {
  min-height: 100vh;
  background: var(--c-sand);
  color: var(--c-white);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ---------- Background video ---------- */

.hero {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  background: var(--c-sand) url("../img/heln-hero-desktop.jpg") center / cover no-repeat;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

@media (orientation: portrait) {
  .hero { background-image: url("../img/heln-hero-mobile.jpg"); }
}

/* ---------- Layout ---------- */

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--pad-top) 16px var(--pad-bottom);
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  padding-bottom: max(var(--pad-bottom), env(safe-area-inset-bottom));
  text-align: center;
}

/* ---------- Logo ---------- */

.brand { margin: 0; line-height: 0; }

.brand__logo {
  display: block;
  width: var(--logo-w);
  height: auto;
}

/* ---------- Title ---------- */

.title {
  margin: var(--gap-title) 0 0;
  font-size: var(--title-size);
  font-weight: 200;
  line-height: 1.2;
  letter-spacing: -0.028em;
  white-space: nowrap;
}

.title__line { display: inline; }

/* ---------- Notify form ---------- */

.notify {
  position: relative;
  width: var(--form-w);
  max-width: 100%;
  margin: var(--gap-form) 0 0;
}

.notify__row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--c-white);
  transition: box-shadow .2s ease;
}

.notify__row:focus-within { box-shadow: 0 1px 0 0 var(--c-white); }

.notify__input {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 0 4px;
  padding: 0 0 0 1px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--c-white);
  font: inherit;
  font-size: var(--field-size);
  line-height: 1.2;
  text-align: left;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.notify__input::placeholder { color: var(--c-white); opacity: 1; transition: opacity .2s ease; }
.notify__input:focus::placeholder { opacity: .55; }

/* Keep autofilled fields transparent / white text */
.notify__input:-webkit-autofill,
.notify__input:-webkit-autofill:hover,
.notify__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--c-white);
  caret-color: var(--c-white);
  transition: background-color 600000s 0s, color 600000s 0s;
}

.notify__btn {
  flex: 0 0 auto;
  margin: 0;
  padding: .6em 1.48em;
  border: 0;
  border-radius: 999px;
  background: var(--c-white);
  color: var(--c-btn-text);
  font: inherit;
  font-size: var(--field-size);
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, opacity .2s ease;
}

.notify__btn:hover { color: var(--c-btn-text-hover); background: rgba(255, 255, 255, .88); }

.notify__btn:focus-visible {
  outline: 2px solid var(--c-white);
  outline-offset: 3px;
}

.notify__btn[disabled] { opacity: .7; cursor: progress; }

/* Honeypot */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Status messages (absolute, so the layout never jumps) */
.notify__msg {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: max-content;
  max-width: calc(100vw - 32px);
  margin: 0;
  transform: translateX(-50%);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .25);
}

.notify__msg:empty { display: none; }

.notify__msg--nojs { display: none; }
.notify__msg--nojs:target { display: block; }

/* ---------- Footer ---------- */

.footer {
  margin-top: auto;
  padding-top: 32px;
  font-size: var(--foot-size);
  font-weight: 500;
  line-height: 1.2;
}

.footer p { margin: 0; }

/* ==========================================================================
   Mobile (scaled from the 480×853 design)
   ========================================================================== */

@media (max-width: 767.98px) {
  :root {
    --logo-w: clamp(150px, 43.1vw, 240px);
    --pad-top: clamp(28px, 7.03svh, 90px);
    --gap-title: clamp(32px, 10.9svh, 120px);
    --title-size: clamp(34px, 11.46vw, 60px);
    --gap-form: clamp(40px, 12.52svh, 140px);
    --form-w: min(76.2vw, 420px);
    --field-size: 17px;
    --foot-size: 11px;
    --pad-bottom: clamp(14px, 3svh, 40px);
  }

  .title__line { display: block; }

  .notify__row {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .notify__row:focus-within { box-shadow: none; }

  .notify__input {
    width: 100%;
    margin: 0;
    padding: 0 0 13px;
    border-bottom: 1px solid var(--c-white);
    text-align: center;
    transition: box-shadow .2s ease;
  }

  .notify__input:focus { box-shadow: 0 1px 0 0 var(--c-white); }

  .notify__btn { margin-top: 39px; }

  .notify__msg { top: calc(100% + 16px); }
}

/* Very short landscape screens (e.g. phones held sideways) */
@media (max-height: 500px) and (orientation: landscape) {
  :root {
    --pad-top: 20px;
    --gap-title: 20px;
    --gap-form: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { transition: none !important; }
}
