:root {
  --yellow: #f5c832;
  --ink: #11100b;
  --page-padding: clamp(1.25rem, 3vw, 3rem);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--yellow);
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.site-shell {
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  position: relative;
}

.background-video, .video-overlay {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.background-video { object-fit: cover; z-index: -2; }

.video-overlay {
  background: rgba(7, 7, 4, .52);
  z-index: -1;
}

.site-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  padding: clamp(1rem, 2.3vw, 2.25rem) var(--page-padding) var(--page-padding);
  position: relative;
  z-index: 2;
}

.wordmark { font-size: clamp(1rem, 1.3vw, 1.25rem); }

nav { align-items: center; display: flex; gap: clamp(1.1rem, 2.25vw, 2.5rem); }

nav a, .wordmark { transition: opacity 180ms ease; }
nav a:hover, .wordmark:hover, nav a[aria-current="page"] { opacity: .62; }

nav a, .hero-cta {
  align-items: center;
  display: inline-flex;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1;
  min-height: 1.5rem;
}

.language-switch {
  align-items: center;
  border: 1px solid rgba(245, 200, 50, .45);
  border-radius: 999px;
  display: inline-flex;
  font-size: .72rem;
  gap: .12rem;
  line-height: 1;
  margin-left: .15rem;
  min-height: 1.5rem;
  padding: .1rem;
}

.language-switch a { border-radius: 999px; font-size: .72rem; min-height: 0; opacity: .72; padding: .2rem .42rem; }
.language-switch .is-active { background: var(--yellow); color: var(--ink); opacity: 1; }

.hero {
  align-items: center;
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: center;
  padding: var(--page-padding);
  position: absolute;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.35rem, 4.4vw, 5rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: 1.16;
  margin: 0;
  max-width: min(90vw, 20ch);
  text-wrap: balance;
}

.hero h1 span { display: inline; }
.hero-cta {
  border-bottom: 1px solid currentColor;
  font-size: clamp(1.1rem, 1.43vw, 1.375rem);
  margin-top: clamp(1.25rem, 3vh, 2rem);
  padding-bottom: .15em;
  transition: opacity 180ms ease;
}
.hero-cta:hover { opacity: .62; }

.panel {
  align-items: center;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--page-padding) * 2) var(--page-padding);
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
  animation: appear 480ms ease-out both;
}

.panel-content { max-width: 39rem; text-align: center; }
.panel p:not(.eyebrow) { font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.4; margin: 0 auto 1rem; max-width: 30rem; }
.panel-content:not(.contact-details) {
  max-width: 27rem;
  text-align: left;
  width: 100%;
}
.panel-content:not(.contact-details) p:not(.eyebrow) {
  max-width: none;
}
.text-link { border-bottom: 1px solid currentColor; }
.contact-link { border-bottom: 1px solid currentColor; padding-bottom: .15em; }
.contact-details > p,
.contact-details .legal-details p { margin-bottom: .25rem !important; }
.contact-details > .vimeo-row { margin-top: 1.4rem !important; }
.legal-details { margin-top: 1.4rem; opacity: .7; }

.video-status { bottom: var(--page-padding); font-size: .72rem; left: var(--page-padding); margin: 0; opacity: .6; position: absolute; z-index: 1; }
.video-status.is-ready { opacity: 0; transition: opacity 400ms ease; }
.sr-only { height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 640px) {
  .site-header { align-items: flex-start; padding-top: 1rem; }
  nav { gap: 1rem; }
  nav a { font-size: 1rem; }
  .hero-cta { font-size: 1.1rem; }
  .language-switch { font-size: .68rem; }
  .hero h1 {
    font-size: clamp(1.9rem, 8.75vw, 2.35rem);
    max-width: min(82vw, 14ch);
  }
  .panel { padding-top: 5rem; }
}

@media (min-width: 641px) and (max-width: 820px) {
  nav a { font-size: 1.125rem; }
  .hero-cta { font-size: 1.2375rem; }
  .panel p:not(.eyebrow) { font-size: 1.125rem; }
  .panel-content:not(.contact-details) { max-width: 25rem; }
}

@media (max-width: 420px) {
  .panel { padding-left: clamp(1.5rem, 8vw, 1.9rem); padding-right: clamp(1.5rem, 8vw, 1.9rem); }
  .panel-content:not(.contact-details) p:not(.eyebrow) {
    line-height: 1.5;
    margin-bottom: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) { .panel { animation: none; } }
