:root {
  color-scheme: dark;
  --dark: #0b1214;
  --dark-text: #e3e4df;
  --dark-muted: #8d9693;
  --dark-line: rgba(227, 228, 223, 0.2);
  --accent: #c15c42;
  --display: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: var(--dark);
  color: var(--dark-text);
  font-family: var(--display);
  letter-spacing: 0;
  transition:
    background-color 650ms cubic-bezier(0.22, 1, 0.36, 1),
    color 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

button,
a {
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-drag: none;
}

button {
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.utility-controls {
  position: fixed;
  top: clamp(28px, 4vw, 54px);
  right: clamp(28px, 4vw, 64px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-switcher {
  display: grid;
  width: 78px;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--dark-line);
}

.language-button {
  display: grid;
  width: 39px;
  height: 30px;
  place-items: center;
  color: var(--dark-muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
}

.language-button[aria-pressed="true"] {
  background: rgba(227, 228, 223, 0.1);
  color: var(--dark-text);
}

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

.site::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(24px, 4vw, 64px);
  z-index: -1;
  width: 1px;
  background: var(--dark-line);
  content: "";
  opacity: 0.35;
  transition: background-color 650ms ease;
}

.content {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: min(690px, 55vw);
  height: 100%;
}

.view {
  position: absolute;
  top: 50%;
  left: clamp(48px, 7vw, 112px);
  width: min(580px, calc(100vw - 96px));
  transform: translateY(-50%);
  transition:
    opacity 350ms ease,
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 650ms;
}

.home-view {
  opacity: 1;
  visibility: visible;
}

.careers-view {
  opacity: 0;
  transform: translateY(calc(-50% + 24px));
  visibility: hidden;
}

.success-view {
  opacity: 0;
  transform: translateY(calc(-50% + 24px));
  visibility: hidden;
}

body.is-careers .home-view {
  opacity: 0;
  transform: translateY(calc(-50% - 24px));
  visibility: hidden;
}

body.is-success .home-view,
body.is-success .careers-view {
  opacity: 0;
  transform: translateY(calc(-50% - 24px));
  visibility: hidden;
}

body.is-careers .careers-view {
  opacity: 1;
  transform: translateY(-50%);
  visibility: visible;
}

body.is-success .success-view {
  opacity: 1;
  transform: translateY(-50%);
  visibility: visible;
}

h1,
h2,
p,
figure {
  margin: 0;
}

.kicker,
.globe-index,
.field > span,
.form-footer > span,
.file-note {
  color: var(--dark-muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  text-transform: uppercase;
  transition: color 650ms ease;
}

.wordmark,
h2 {
  margin-top: 20px;
  font-size: 62px;
  font-weight: 400;
  line-height: 1.03;
}

.wordmark span:last-child {
  font-family: var(--mono);
  font-weight: 300;
}

.statement {
  max-width: 560px;
  margin-top: 36px;
  color: var(--dark-muted);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.65;
  text-wrap: balance;
  transition: color 650ms ease;
}

.text-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}

.text-link span {
  font-family: var(--mono);
  font-size: 13px;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translate(2px, -2px);
}

.globe {
  position: absolute;
  top: 50%;
  right: clamp(-90px, -3vw, -24px);
  z-index: 1;
  width: min(58vw, 820px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  cursor: grab;
  touch-action: none;
  transition:
    opacity 650ms ease,
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.globe:active {
  cursor: grabbing;
}

.globe canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.globe-index {
  position: absolute;
  right: 16%;
  bottom: 9%;
}

body.is-careers .globe {
  opacity: 0.42;
  transform: translateY(-50%) scale(0.94);
}

body.is-success .globe {
  opacity: 0.42;
  transform: translateY(-50%) scale(0.94);
}

.close-button {
  display: none;
  width: 32px;
  height: 32px;
  place-items: center;
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
}

body.is-careers .close-button {
  display: grid;
}

.interest-form {
  display: grid;
  max-width: 580px;
  gap: 18px;
  margin-top: 30px;
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.field {
  display: grid;
  gap: 6px;
}

.field > span,
.form-footer > span,
.file-note {
  font-size: 9px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--dark-line);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--dark-text);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0;
  transition: border-color 180ms ease;
}

.field input:not([type="file"]),
.field select {
  height: 38px;
}

.field textarea {
  min-height: 64px;
  padding: 8px 0;
  resize: vertical;
}

.file-field input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-control {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 12px;
}

.file-button {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid var(--dark-line);
  border-radius: 0;
  background: transparent;
  color: var(--dark-text);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  cursor: pointer;
}

.file-field:hover .file-button {
  border-color: var(--dark-text);
}

.file-field input[type="file"]:focus-visible + .file-control .file-button {
  outline: 2px solid var(--dark-text);
  outline-offset: 4px;
}

.file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--dark-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-note {
  color: #5f6966;
  line-height: 1.45;
  text-transform: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #5f6966;
  opacity: 1;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--dark-text);
}

.field select {
  appearance: none;
  padding-right: 24px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--dark-muted) 50%),
    linear-gradient(135deg, var(--dark-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 11px) 17px,
    calc(100% - 7px) 17px;
  background-repeat: no-repeat;
  background-size: 4px 4px, 4px 4px;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 2px;
}

.form-footer > span {
  max-width: 220px;
  line-height: 1.5;
  text-transform: none;
}

.submit-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 15px;
  border: 1px solid var(--dark-line);
  color: var(--dark-text);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.submit-button:hover {
  border-color: var(--dark-text);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.kicker,
.wordmark,
h2,
.statement,
.text-link,
.globe-index,
.language-switcher,
.language-button,
.close-button,
.field > span,
.form-footer > span,
.submit-button,
.file-note,
.file-control,
.file-button,
.file-name,
.thanks-page h1 {
  -webkit-user-select: none;
  user-select: none;
}

.field input,
.field select,
.field textarea {
  -webkit-user-select: text;
  user-select: text;
}

.field input::selection,
.field textarea::selection {
  background: rgba(193, 92, 66, 0.45);
  color: var(--dark-text);
}

.thanks-page {
  display: grid;
  min-height: 100svh;
  align-content: center;
  padding: clamp(28px, 7vw, 112px);
}

.thanks-page h1 {
  margin-top: 18px;
  font-size: 62px;
  font-weight: 400;
}

.thanks-page .statement {
  max-width: 480px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

@media (max-width: 900px) {
  .content {
    width: 65vw;
  }

  .wordmark,
  h2 {
    font-size: 50px;
  }

  html[lang="es"] .careers-view h2 {
    max-width: 10ch;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .statement {
    font-size: 18px;
  }

  .globe {
    right: -22vw;
    width: 72vw;
  }
}

@media (max-width: 640px) {
  body.is-careers {
    overflow-y: auto;
  }

  body.is-careers .site {
    min-height: 1120px;
  }

  .utility-controls {
    top: 22px;
    right: 22px;
  }

  .content {
    width: 100%;
    height: 62%;
  }

  .view {
    top: clamp(60px, 10vh, 88px);
    left: 28px;
    width: calc(100vw - 56px);
    transform: none;
  }

  .careers-view {
    transform: translateY(20px);
  }

  .success-view {
    transform: translateY(20px);
  }

  body.is-careers .home-view {
    transform: translateY(-20px);
  }

  body.is-success .home-view,
  body.is-success .careers-view {
    transform: translateY(-20px);
  }

  body.is-careers .careers-view {
    transform: none;
  }

  body.is-success .success-view {
    transform: none;
  }

  .wordmark,
  h2 {
    margin-top: 14px;
    font-size: 38px;
  }

  .statement {
    max-width: 430px;
    margin-top: 24px;
    font-size: 17px;
    line-height: 1.58;
    text-wrap: pretty;
  }

  .text-link {
    margin-top: 26px;
    font-size: 14px;
  }

  .globe {
    top: auto;
    right: -18vw;
    bottom: -25vw;
    width: 90vw;
    transform: none;
  }

  body.is-careers .globe {
    opacity: 0.2;
    transform: scale(0.92);
  }

  .globe-index {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .interest-form {
    gap: 17px;
    margin-top: 26px;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .form-footer > span {
    max-width: none;
  }

  .submit-button {
    width: 100%;
  }
}

@media (max-height: 650px) and (min-width: 641px) {
  .wordmark,
  h2 {
    font-size: 48px;
  }

  .statement {
    margin-top: 26px;
    font-size: 17px;
  }

  .text-link {
    margin-top: 26px;
  }

  .careers-view {
    top: 28px;
    transform: translateY(20px);
  }

  .success-view {
    top: 28px;
    transform: translateY(20px);
  }

  body.is-careers .careers-view {
    transform: none;
  }

  body.is-success .success-view {
    transform: none;
  }
}

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