/* ============================================================
   WADDEN — Window of the Future
   Core stylesheet
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "D-DIN";
  src: url("../fonts/D-DIN.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "D-DIN";
  src: url("../fonts/D-DIN-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("../fonts/RobotoCondensed-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("../fonts/RobotoCondensed-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("../fonts/RobotoCondensed-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("../fonts/RobotoCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("../fonts/RobotoCondensed-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/BEBASNEUE-REGULAR.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jamie";
  src: url("../fonts/JAMIEHANDWRITINGBOLDPERSONALUSE-REGULAR.OTF") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #0a0a0a;
  --bg-soft: #141414;
  --text: #ffffff;
  --text-muted: #8a8a8a;
  --text-dim: #5a5a5a;
  --accent: #ff4d1c;
  --accent-soft: #ff6a3d;
  --line: rgba(255, 255, 255, 0.18);
  --line-soft: rgba(255, 255, 255, 0.08);

  --font-logo: "D-DIN", sans-serif;
  --font-display: "D-DIN", "Arial Narrow", sans-serif;
  --font-body: "Roboto Condensed", system-ui, sans-serif;
  --font-hero: "Bebas Neue", "Arial Narrow", sans-serif;  /* WINDOW / FUTURE */
  --font-script: "Jamie", cursive;                          /* of the */

  --header-h: 88px;
  --pad-x: clamp(24px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* Lenis smooth scroll requirement */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- Background watermark ---------- */
.bg-watermark {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bg-watermark img {
  width: min(78vw, 1000px);
  opacity: 0.03;
  transform: translateY(0);
  will-change: transform;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  z-index: 100;
  /* solid black where the logo sits, fading out at the bottom edge so content
     scrolling underneath melts away instead of being hard-cut by the header */
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 58%, rgba(10, 10, 10, 0) 100%);
}

.logo {
  display: block;
  line-height: 0;
  user-select: none;
}
.logo img {
  height: 24px;
  width: auto;
  display: block;
}

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-switch__btn {
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
}
.lang-switch__btn svg {
  width: 11px;
  height: 11px;
  transition: transform 0.35s var(--ease);
}
.lang-switch.open .lang-switch__btn svg { transform: rotate(180deg); }

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 150px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  padding: 6px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    visibility 0.3s;
}
.lang-switch.open .lang-switch__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-switch__menu button {
  background: none;
  border: none;
  color: var(--text-muted);
  text-align: left;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 9px 12px;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}
.lang-switch__menu button:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.lang-switch__menu button.active { color: var(--accent); }

/* ============================================================
   GENERIC SECTION
   ============================================================ */
.section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: 100%;
}

/* ============================================================
   HERO  (section 1)
   ============================================================ */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--header-h) var(--pad-x) 0;
}

.hero__type {
  font-family: var(--font-hero);
  font-weight: 400;
  line-height: 0.80;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero__line { display: block; overflow: visible; }

.hero__word {
  display: inline-block;
  font-size: clamp(72px, min(17.5vw, 19.5vh), 250px);
}
/* Bebas Neue ships in a single weight, so we thicken the glyphs with a
   same-colour stroke to get a semibold/bold look (scales with font-size). */
.hero__word--fill {
  color: var(--text);
  -webkit-text-stroke: 0.02em var(--text);
  text-stroke: 0.02em var(--text);
}
.hero__word--outline {
  color: transparent;
  -webkit-text-stroke: 0.026em var(--text);
  text-stroke: 0.026em var(--text);
}

/* "of the" handwritten script (image asset) — overlaps WINDOW above & FUTURE below */
.hero__script {
  position: relative;
  z-index: 2;
  display: block;
  width: clamp(220px, min(33vw, 37vh), 540px);
  height: auto;
  margin: -46px auto -30px;     /* top overlaps DOW; less overlap with FUTURE below */
}

/* typewriter caret */
.type-caret {
  display: inline-block;
  width: 0.06em;
  height: 0.82em;
  margin-left: 0.05em;
  background: var(--accent);
  vertical-align: baseline;
  transform: translateY(0.06em);
  animation: caretBlink 0.8s steps(1, end) infinite;
}
.type-caret.done {
  animation: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
@keyframes caretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.tw-ch { display: inline; }

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue__line {
  width: 1px;
  height: 38px;
  background: linear-gradient(var(--text-dim), transparent);
  animation: scrollLine 1.8s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(38px); opacity: 0; }
}

/* ============================================================
   SECTION 2 — Coming soon + form
   ============================================================ */
/* One full-height screen: heading on top, form centred below, footer at bottom */
.screen-cta {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: calc(var(--header-h) + 1vh) var(--pad-x) 18px;
}

.cta__intro { width: 100%; max-width: 1000px; }

.cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 7vw, 104px);
  line-height: 0.94;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  white-space: nowrap;   /* single line on desktop */
  margin: 0 0 0.18em;
}

.cta__lead {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(17px, 1.6vw, 24px);
  line-height: 1.35;
  color: var(--text);
  max-width: 860px;
  margin: 0;
}
/* each sentence on its own line (wide enough that line 1 stays single) */
.cta__lead .line { display: block; }

.cta__tagline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(19px, 1.9vw, 28px);
  color: var(--accent);
  margin-top: 0.55em;
  letter-spacing: 0.01em;
}
.cta__tagline b { font-weight: 700; }

/* ---------- Form (centred, below the heading) ---------- */
.cta__form-wrap {
  width: 100%;
  max-width: 430px;
  margin: clamp(2px, 0.4vh, 10px) auto 0;
}

.form { width: 100%; }

.field {
  position: relative;
  margin-bottom: 9px;
}
.field__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  padding: 14px 0 5px;
  outline: none;
  transition: border-color 0.35s var(--ease);
}
textarea.field__input { resize: none; min-height: 24px; line-height: 1.3; overflow: hidden; }

.field__label {
  position: absolute;
  left: 0;
  top: 14px;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
/* floating state */
.field__input:focus ~ .field__label,
.field.is-filled .field__label {
  transform: translateY(-15px) scale(0.72);
  color: var(--text-muted);
}
.field__input:focus ~ .field__label { color: var(--accent); }
.field__input:focus { border-bottom-color: var(--accent); }

/* animated underline accent */
.field::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.field:focus-within::after { transform: scaleX(1); }

/* ---------- Radio group: "I am a" ---------- */
.radio-group {
  border: none;
  margin: 0 0 9px;
  padding: 9px 0 0;
  min-width: 0;
}
.radio-group__label {
  display: block;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.radio-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.radio-pill { position: relative; }
.radio-pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.radio-pill span {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-muted);
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}
.radio-pill input:hover ~ span { border-color: var(--text-muted); color: var(--text); }
.radio-pill input:checked ~ span {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}
.radio-pill input:focus-visible ~ span { outline: 2px solid var(--accent-soft); outline-offset: 2px; }

/* ---------- Submit ---------- */
.submit-btn {
  position: relative;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 3px;
  overflow: hidden;
  transition: color 0.35s var(--ease);
  margin-top: 4px;
}
.submit-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
  z-index: -1;
}
.submit-btn:hover { color: var(--bg); }
.submit-btn:hover::before { transform: scaleX(1); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* form status message */
.form__status {
  margin-top: 16px;
  font-size: 15px;
  min-height: 20px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.form__status.show { opacity: 1; transform: translateY(0); }
.form__status.ok { color: var(--accent-soft); }
.form__status.err { color: #ff5a5a; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: auto;          /* push footer to the bottom of the screen */
  padding-top: clamp(12px, 1.8vh, 28px);
}
.footer__emblem {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.footer__emblem img { width: 52px; height: auto; }
.footer__rule {
  height: 1px;
  width: 100%;
  background: var(--accent);
  margin-bottom: 16px;
  transform-origin: center;
}
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 15px;
}
.footer__social svg { width: 20px; height: 20px; }
.footer__social .sep { color: var(--text-dim); }
.footer__ig { display: inline-flex; align-items: center; color: var(--text-muted); }
.footer__social a:hover, .footer__mail:hover { color: var(--text); }
.footer__mail { color: var(--text-muted); font-size: 15px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .screen-cta { padding-top: calc(var(--header-h) + 3vh); }
  .cta__lead { max-width: 100%; }
  /* title wraps on mobile (desktop keeps it single-line) */
  .cta__title { white-space: normal; font-size: clamp(32px, 7vw, 56px); }
  .hero__type { line-height: 0.86; }
}
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .logo img { height: 19px; }

  /* ---- compact section 2 so header + content + footer fit one screen ---- */
  .screen-cta { padding-top: calc(var(--header-h) + 8px); padding-bottom: 12px; }
  .cta__title { font-size: clamp(27px, 7.6vw, 44px); margin-bottom: 0.08em; }
  .cta__lead { font-size: 15px; line-height: 1.28; }
  .cta__tagline { font-size: 17px; margin-top: 0.3em; }

  .cta__form-wrap { max-width: 100%; margin-top: 8px; }
  .field { margin-bottom: 6px; }
  .field__input { padding: 12px 0 4px; font-size: 16px; }
  .field__label { top: 12px; font-size: 16px; }
  .field__input:focus ~ .field__label,
  .field.is-filled .field__label { transform: translateY(-13px) scale(0.72); }
  textarea.field__input { min-height: 20px; }
  .radio-group { margin-bottom: 7px; padding-top: 7px; }
  .radio-group__label { font-size: 15px; margin-bottom: 7px; }
  .radio-options { gap: 7px; }
  .radio-pill span { padding: 6px 12px; font-size: 14px; }
  .submit-btn { padding: 10px 20px; margin-top: 2px; }
  .form__status { margin-top: 8px; }

  /* footer: compact + single row (icon + @handle left, e-mail right) */
  .footer__emblem { margin-bottom: 5px; }
  .footer__emblem img { width: 40px; }
  .footer__rule { margin-bottom: 9px; }
  .footer__row { gap: 12px; flex-wrap: nowrap; }
  .footer__social, .footer__mail { font-size: 12px; }
  .footer__social { gap: 7px; }
  .footer__social svg { width: 18px; height: 18px; }
  .footer__follow-text,
  .footer__social .sep { display: none; }

  /* tighter "of the" overlap on phones */
  .hero__script { margin: -18px auto; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
}
