* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Futura, "Futura PT", "Avenir Next", Avenir, Montserrat, sans-serif;
}

body {
  background: #000;
  color: #fff;
}

/* PANELS */

.panel {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.panel.is-active {
  display: flex;
}

/* INNER CONTAINER */

.panel-inner {
  width: 100%;
  max-width: 1400px;
  margin: auto;
  padding: 6vh 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* BACKGROUNDS */

.home-panel {
  background-image: var(--page-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.legal-panel {
  background-image:
    linear-gradient(#ffffff, #ffffff),
    var(--page-bg-image);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-blend-mode: difference;
  overflow: hidden;
}

/* HERO LINK */

.hero-link {
  display: inline-block;
  max-width: 900px;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
}

/* TYPO */

.kicker {
  margin: 0 0 18px 0;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  mix-blend-mode: difference;
}

h1 {
  margin: 0 0 0 -8px;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 0.88;
  letter-spacing: -0.05em;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  display: inline-block;
  mix-blend-mode: difference;
}

.lead {
  margin: 22px 0 0 0;
  font-size: clamp(16px, 2vw, 22px);
  color: #ffffff;
  mix-blend-mode: difference;
}

.hero-link .kicker,
.hero-link h1,
.hero-link .lead {
  transition: color 0.18s ease;
}

.hero-link:hover .kicker,
.hero-link:hover h1,
.hero-link:hover .lead,
.hero-link:focus-visible .kicker,
.hero-link:focus-visible h1,
.hero-link:focus-visible .lead {
  color: #7feaff;
}

/* FOOTER */

.footer {
  padding: 20px 32px 26px;
  display: flex;
  justify-content: center;
}

.footer-link {
  background: none;
  border: none;
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  mix-blend-mode: difference;
}

.footer-link:hover {
  opacity: 0.7;
}

/* LEGAL GRID */

.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  width: 100%;
}

.legal-left,
.legal-right {
  min-width: 0;
}

.section-kicker {
  margin: 0 0 16px 0;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  mix-blend-mode: difference;
}

h2 {
  margin: 0 0 20px 0;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  mix-blend-mode: difference;
}

/* LEGAL TEXT */

.legal-text p {
  margin: 0 0 18px 0;
  font-size: 15px;
  line-height: 1.55;
  color: #ffffff;
  mix-blend-mode: difference;
  text-transform: uppercase;
}

/* CONTACT FORM */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.35;
  outline: none;
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-transform: uppercase;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
}

.contact-form textarea {
  min-height: 140px;
  resize: none;
}

/* FORM BUTTON */

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  align-items: center;
}

.send-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 160ms ease, border-color 160ms ease;
}

.send-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}

/* MOBILE */

@media (max-width: 980px) {
  .panel-inner {
    padding: 5vh 20px;
  }

  .legal-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer {
    padding: 18px 20px 24px;
  }

  .legal-left,
  .legal-right,
  .contact-form,
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    max-width: 100%;
  }

  .legal-left {
    display: none;
  }
}

@media (max-width: 900px) {
  h1 {
    font-size: 14vw;
  }
}

/* MOBILE LANDSCAPE / LOW HEIGHT FORM COMPACTION */

@media (max-width: 980px) and (max-height: 560px) {
  .panel-inner {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .legal-grid {
    gap: 20px;
  }

  .legal-right .section-kicker {
    margin-bottom: 10px;
    font-size: 10px;
  }

  .legal-right h2 {
    margin-bottom: 12px;
    font-size: clamp(22px, 4vw, 34px);
    line-height: 0.98;
  }

  .contact-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 10px;
    row-gap: 10px;
    align-items: start;
  }

  .contact-form input[name="name"] {
    grid-column: 1;
    grid-row: 1;
  }

  .contact-form input[name="email"] {
    grid-column: 2;
    grid-row: 1;
  }

  .contact-form input[name="subject"] {
    grid-column: 1;
    grid-row: 2;
  }

  .contact-form textarea[name="message"] {
    grid-column: 2;
    grid-row: 2 / span 2;
    min-height: 86px;
    height: 100%;
  }

  .contact-form .form-actions {
    grid-column: 1;
    grid-row: 3;
    margin-top: 0;
    align-self: end;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 11px;
    line-height: 1.2;
    padding: 9px 10px;
    border-radius: 10px;
  }

  .send-btn {
    font-size: 9px;
    padding: 9px 12px;
  }

  .footer {
    padding-top: 12px;
    padding-bottom: 14px;
  }

  .footer-link {
    font-size: 10px;
  }
}