:root {
  color-scheme: dark;
  font-family: "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --red-900: #76050a;
  --red-800: #93070e;
  --red-700: #b20b14;
  --red-600: #d21420;
  --white: #fffaf8;
  --white-muted: rgba(255, 250, 248, 0.72);
  --hairline: rgba(255, 250, 248, 0.24);
  --page-pad: clamp(1.25rem, 4.8vw, 5rem);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--red-800);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(ellipse at 10% 8%, rgba(241, 55, 62, 0.42) 0%, transparent 42%),
    radial-gradient(ellipse at 88% 38%, rgba(88, 0, 13, 0.52) 0%, transparent 50%),
    radial-gradient(ellipse at 34% 92%, rgba(205, 28, 39, 0.32) 0%, transparent 46%),
    linear-gradient(135deg, #bd1721 0%, #9c0a15 48%, #72040c 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.23'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.ambient {
  position: fixed;
  inset: -20%;
  z-index: -2;
  pointer-events: none;
  background: conic-gradient(from 210deg at 70% 45%, transparent 0deg, rgba(255, 71, 66, 0.12) 64deg, transparent 136deg);
  animation: ambient-shift 18s ease-in-out infinite alternate;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6.75rem;
  padding: 0 var(--page-pad);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  width: clamp(9rem, 12vw, 12rem);
  height: auto;
  text-decoration: none;
}

.wordmark img {
  display: block;
  width: 100%;
  height: auto;
}

.language-picker {
  position: relative;
  z-index: 10;
}

.language-toggle,
.language-option {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  place-items: center;
  border: 0;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease;
}

.language-toggle img,
.language-option img {
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
}

.language-toggle:hover,
.language-option:hover,
.language-option.is-active {
  transform: translateY(-1px);
}

.language-option:not(.is-active) {
  opacity: 0.72;
}

.language-option:not(.is-active):hover {
  opacity: 1;
}

.language-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  display: flex;
  gap: 0.42rem;
  padding: 0;
}

.language-menu[hidden] {
  display: none;
}

.language-option {
  width: 2.35rem;
  height: 2.35rem;
}

.language-option img {
  width: 1.75rem;
  height: 1.75rem;
}

.language-toggle:focus-visible,
.language-option:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(37rem, calc(100svh - 6.75rem), 54rem);
  padding: clamp(3rem, 5vw, 5.5rem) var(--page-pad);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(100%, 75rem);
  justify-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--white-muted);
  font-size: clamp(0.76rem, 1.2vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(4.4rem, 10.4vw, 10.2rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.78;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 0.2rem 2rem rgba(65, 0, 5, 0.34);
}

h1 span {
  display: block;
}

.globe-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: min(46vw, 38rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.globe-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

.globe-canvas canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: grab;
  filter: brightness(1.2) saturate(1.08) contrast(0.92);
  transition: opacity 500ms ease;
}

.globe-canvas.is-ready canvas {
  opacity: 1;
}

.globe-canvas.is-dragging canvas {
  cursor: grabbing;
}

.globe-fallback {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  opacity: 0.96;
  background-image: url("/assets/earth-blue-marble.jpg");
  background-position: 47% center;
  background-size: auto 100%;
  filter: brightness(1.2) saturate(1.08) contrast(0.92);
  transition: opacity 500ms ease;
}

.globe-canvas.is-ready .globe-fallback {
  opacity: 0;
}

.notify {
  display: grid;
  grid-template-columns: minmax(16rem, 0.82fr) minmax(25rem, 1.18fr);
  gap: clamp(3rem, 8vw, 9rem);
  padding: clamp(4rem, 7vw, 7rem) var(--page-pad);
  background: transparent;
}

.notify h2 {
  max-width: 30rem;
  margin: 0;
  font-size: clamp(2rem, 3.3vw, 3.55rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.notify-form {
  align-self: end;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-bottom: 1px solid rgba(255, 250, 248, 0.66);
}

.field-row input {
  min-width: 0;
  height: 4.4rem;
  padding: 0 1rem 0 0;
  border: 0;
  color: var(--white);
  background: transparent;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.field-row input::placeholder {
  color: rgba(255, 250, 248, 0.54);
}

.field-row input:focus {
  outline: 0;
}

.field-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 3.25rem;
  margin: 0.55rem 0;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 999px;
  color: var(--red-900);
  background: var(--white);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease;
}

.field-row button:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.field-row button svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.25rem;
  color: var(--white-muted);
  cursor: pointer;
  font-size: 0.91rem;
  line-height: 1.45;
}

.consent input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkmark {
  display: grid;
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.08rem;
  place-items: center;
  border: 1px solid rgba(255, 250, 248, 0.68);
}

.consent input:checked + .checkmark::after {
  width: 0.45rem;
  height: 0.45rem;
  content: "";
  background: var(--white);
}

.consent input:focus-visible + .checkmark {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.form-message,
.privacy-note {
  min-height: 1.1rem;
  margin: 0.85rem 0 0;
  color: var(--white-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.form-message:empty {
  display: none;
}

.form-message.is-error {
  color: #fff1a8;
}

.privacy-note {
  opacity: 0.72;
}

.site-footer {
  padding: 2.25rem var(--page-pad) 2rem;
  background: transparent;
}

.social-links,
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.social-links {
  gap: 1.75rem;
}

.social-links a,
.footer-meta a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.social-links a {
  position: relative;
}

.social-links a::after {
  position: absolute;
  right: 0;
  bottom: 0.45rem;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.social-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-meta {
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 1.45rem;
  padding-top: 1.45rem;
  color: rgba(255, 250, 248, 0.55);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.4rem;
}

.footer-meta p,
.footer-meta a {
  margin: 0;
  color: inherit;
  font-size: 0.76rem;
  font-weight: 500;
}

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

@keyframes ambient-shift {
  from { transform: translate3d(-2%, 0, 0) rotate(-2deg); }
  to { transform: translate3d(2%, -1%, 0) rotate(2deg); }
}

@media (max-width: 920px) {
  .hero {
    min-height: max(43rem, calc(100svh - 6.75rem));
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  h1 {
    font-size: clamp(4.2rem, 14vw, 7.4rem);
  }

  .globe-stage {
    top: 50%;
    left: 50%;
    width: min(74vw, 34rem);
  }

  .notify {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 5.5rem;
  }

  .wordmark {
    width: clamp(8.5rem, 42vw, 10.5rem);
  }

  .hero {
    min-height: max(39rem, calc(100svh - 5.5rem));
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.55rem, 13.4vw, 4.6rem);
    letter-spacing: -0.065em;
    line-height: 0.84;
  }

  .globe-stage {
    top: 51%;
    left: 50%;
    width: min(92vw, 25rem);
    opacity: 0.96;
  }

  .language-menu {
    gap: 0.28rem;
    padding: 0.4rem;
  }

  .language-option {
    width: 2.2rem;
    height: 2.2rem;
  }

  .notify {
    gap: 2.5rem;
    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
  }

  .field-row {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .field-row input {
    border-bottom: 1px solid rgba(255, 250, 248, 0.66);
  }

  .field-row button {
    width: 100%;
    margin-top: 1rem;
  }

  .social-links {
    gap: 0.3rem 1.25rem;
  }

  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
