/* Weltlinie: weltlinie.com */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin.19f9c92546.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* The wordmark face. Only the uppercase "WELTLINIE" uses it. */
@font-face {
  font-family: "Archivo Narrow";
  src: url("/assets/fonts/archivo-narrow-600.9bfc794b14.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Base */

html {
  background: #0b0d12;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #0b0d12;
  color: #f1f3f7;
  font-family: Geist, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #b4c0ce;
}

a:hover {
  color: #f1f3f7;
}

:focus-visible {
  outline: 2px solid #b4c0ce;
  outline-offset: 2px;
}

/* Hero: fills the viewport */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

/* World-lines field */

.field {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 100%;
}

.field-svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.field-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 13, 18, 0.55) 0%,
    rgba(11, 13, 18, 0) 18%,
    rgba(11, 13, 18, 0) 46%,
    rgba(11, 13, 18, 0.88) 74%,
    #0b0d12 100%
  );
  pointer-events: none;
}

.wl-sway {
  animation: wl-sway 22s ease-in-out infinite alternate;
}

@keyframes wl-sway {
  from {
    transform: translate3d(0, -8px, 0);
  }
  to {
    transform: translate3d(-24px, 10px, 0);
  }
}

.wl-glow {
  filter: drop-shadow(0 0 3px rgba(214, 221, 230, 0.9));
}

.wl-pulse {
  animation-name: wl-run;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes wl-run {
  from {
    stroke-dashoffset: 1000;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* Each travelling pulse keeps its own pace and starting point. */
.wl-p1 { animation-duration: 11s; animation-delay: -2s; }
.wl-p2 { animation-duration: 15s; animation-delay: -7s; }
.wl-p3 { animation-duration: 9s; animation-delay: -4s; }
.wl-p4 { animation-duration: 13s; animation-delay: -11s; }
.wl-p5 { animation-duration: 17s; animation-delay: -1s; }
.wl-p6 { animation-duration: 12s; animation-delay: -9s; }

@media (prefers-reduced-motion: reduce) {
  .wl-sway,
  .wl-pulse {
    animation: none;
  }
}

/* Header */

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #f1f3f7;
  text-decoration: none;
  transition: color 150ms ease-out;
}

.brand:hover {
  color: #f1f3f7;
}

.lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: "Archivo Narrow", "Arial Narrow", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  line-height: 1;
  color: #f1f3f7;
}

/* The mark is 1.5 cap-heights tall, sits on the baseline, then drops a quarter cap.
   The em values are for browsers without the cap unit. */
.lockup-mark {
  position: relative;
  top: 0.18em;
  top: 0.25cap;
  display: block;
  flex: none;
  width: auto;
  height: 1.07em;
  height: 1.5cap;
  aspect-ratio: 1873.8 / 884.6;
}

.copyright {
  margin: 0;
  font-size: 14px;
  color: #8a93a4;
}

/* Headline, subheading, actions */

.hero-body {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 24px clamp(48px, 7vw, 96px);
}

.headline {
  margin: 0;
  font-size: clamp(min(40px, calc((100vw - 48px) / 8.6)), calc((100vw - 48px) / 13.9), 84px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #f1f3f7;
}

.headline span {
  white-space: nowrap;
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  margin-top: 28px;
}

.lede {
  flex: 1 1 380px;
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: #a9b1c0;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 48px;
  margin: 0;
  padding: 0 22px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}

.btn-primary {
  border: 0;
  background: #5f7388;
  color: #ffffff;
}

.btn-quiet {
  border: 1px solid #656e83;
  background: rgba(11, 13, 18, 0.4);
  color: #f1f3f7;
}

.btn-primary:hover {
  color: #ffffff;
  filter: brightness(0.9);
}

.btn-quiet:hover {
  border-color: #8a93a4;
  background-color: rgba(23, 27, 36, 0.8);
  color: #f1f3f7;
}

/* "Copied" toast */

.toast-region {
  position: fixed;
  right: 0;
  bottom: 32px;
  left: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.toast {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 6px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #222733;
  border-radius: 10px;
  background: #12151c;
  box-shadow: 0 16px 32px -12px rgb(0 0 0 / 0.6);
  font-size: 14px;
  line-height: 1.4;
  color: #a9b1c0;
}

.toast-email {
  font-weight: 500;
  color: #f1f3f7;
}

/* Timeline Operators notice: a modal <dialog>. The dialog box is exactly the card,
   so a click whose target is the dialog itself landed on the backdrop. */

.notice {
  box-sizing: border-box;
  width: calc(100% - 48px);
  max-width: 460px;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  overflow: visible;
}

.notice::backdrop {
  background: rgb(0 0 0 / 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.notice-card {
  position: relative;
  box-sizing: border-box;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid #222733;
  border-radius: 16px;
  background: #12151c;
  box-shadow: 0 16px 32px -12px rgb(0 0 0 / 0.6);
  text-align: left;
}

.notice-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #8a93a4;
  cursor: pointer;
}

.notice-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #8a93a4;
}

.notice-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
}

.notice-title {
  margin: 12px 0 0;
  padding-right: 32px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f1f3f7;
}

.notice-text {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: #a9b1c0;
}

.notice-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.notice-actions .btn {
  display: flex;
  min-height: 46px;
  padding: 0 20px;
}

.notice-actions .btn-quiet:not(:hover) {
  background: transparent;
}

/* Narrow portrait screens: the field shifts left and stops above the text. */

@media (max-width: 760px) and (orientation: portrait) {
  .field {
    left: -100px;
    height: 62%;
  }
}

/* Phones */

@media (max-width: 520px) {
  .site-header {
    padding: 12px 20px;
  }

  .copyright {
    font-size: 13px;
  }

  .hero-body {
    padding: 96px 20px 36px;
  }

  .hero-row {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 28px;
    margin-top: 18px;
  }

  .lede {
    flex: none;
    font-size: 17px;
    text-wrap: pretty;
  }

  .ctas {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .ctas .btn {
    display: flex;
    min-height: 50px;
  }

  .toast-region {
    bottom: 72px;
  }

  /* The notice becomes a bottom sheet. */
  .notice {
    width: 100%;
    max-width: none;
    margin: auto 0 0;
  }

  .notice-card {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 24px 20px 28px;
    border: 0;
    border-top: 1px solid #222733;
    border-radius: 16px 16px 0 0;
  }
}
