@font-face {
  font-family: "OPTIPosterBodoni Compressed";
  src: url("assets/fonts/OPTIPosterBodoni-Compr.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Parisienne";
  src: url("assets/fonts/parisienne-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #000;
  --color-text: #ece7df;
  --color-ivory: #e6ddd4;
  --color-warm: #c9b39f;
  --color-warm-bright: #ece7df;
  --color-muted: rgba(236, 231, 223, 0.76);
  --color-subtle: rgba(236, 231, 223, 0.5);
  --color-divider: rgba(230, 221, 212, 0.24);
  --font-display: "Canela Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: var(--font-display);
  --page-width: 82rem;
  --wide-width: 135rem;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  background: var(--color-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
.page-shell,
.site-footer,
.hero,
.content-section {
  background: #000;
}

a {
  color: inherit;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-warm-bright);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-warm-bright);
  outline-offset: 4px;
}

::selection {
  background: rgba(201, 179, 159, 0.35);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.55rem 0.8rem;
  transform: translateY(-200%);
  background: var(--color-text);
  color: #000;
  font-size: 0.9rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - clamp(2rem, 8vw, 8rem), var(--page-width));
  margin-inline: auto;
}

.page-shell {
  min-height: 100vh;
}

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: clip;
}

/* The sky sits behind the hero content. The artwork's cube faces are
   transparent, so these stars read as being seen *through* the cube. */
.starfield {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  animation: hero-fade 1600ms ease both;
}

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

/* Barely-there dust: broad soft clouds rather than per-pixel noise, which
   bands badly on dark panels. */
.starfield-dust {
  position: absolute;
  inset: -10%;
  opacity: 0.022;
  background:
    radial-gradient(38% 30% at 22% 26%, rgb(226, 210, 188), transparent 70%),
    radial-gradient(30% 26% at 76% 62%, rgb(198, 192, 208), transparent 72%),
    radial-gradient(46% 34% at 50% 90%, rgb(216, 202, 182), transparent 74%),
    radial-gradient(26% 22% at 88% 16%, rgb(212, 202, 192), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(90vw, var(--wide-width));
  min-height: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: clamp(0.5rem, 1.5vw, 2rem) clamp(2.25rem, 5vw, 5.5rem);
}

.content-section h2,
.legal-page h1,
.legal-page h2,
.legal-page h3 {
  font-family: var(--font-display);
  font-weight: 400;
}

.hero-wordmark {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--color-ivory);
  font-family: "OPTIPosterBodoni Compressed", var(--font-display);
  font-weight: 500;
  font-size: min(18.5vw, 19svh, 17rem);
  letter-spacing: 0.005em;
  line-height: 0.95;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
  transform: scaleX(0.9) scaleY(1.68);
  transform-origin: top center;
}

/* On desktop the meter rests near the bottom edge, clear of the artifact. */
.throughput {
  position: absolute;
  z-index: 3;
  bottom: clamp(1.5rem, 3svh, 2.75rem);
  left: 50%;
  width: min(96%, 46rem);
  height: clamp(4.2rem, 7.5svh, 5.2rem);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 300ms ease;
}

.throughput.is-visible {
  opacity: 1;
}

.throughput.is-visible.is-fading {
  opacity: 0;
  transition-duration: 1500ms;
}

.tp-inner {
  position: absolute;
  top: 0.2rem;
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1.9rem, 3.8vh, 2.9rem);
}

.tp-track {
  position: relative;
  height: 1px;
  background: rgba(230, 221, 212, 0.1);
}

.tp-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  min-width: 2px;
  background: var(--color-ivory);
  box-shadow: 0 0 6px rgba(230, 221, 212, 0.45);
}

.tp-bar-received {
  background: var(--color-warm);
  box-shadow: 0 0 6px rgba(201, 179, 159, 0.45);
}

.tp-total,
.tp-caption {
  font-size: clamp(0.52rem, 0.72vw, 0.7rem);
  letter-spacing: 0.09em;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tp-total {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted);
}

/* No uppercase transform here: it would render "Gb/s" as "GB/S", which
   reads as gigabytes. */
.tp-caption {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  color: var(--color-subtle);
}

.tp-row {
  position: relative;
}

/* A slightly smaller desktop stage and positive top margin keep the elongated
   wordmark visibly separate from the cube. */
.artifact-stage {
  position: relative;
  width: min(72vw, 72svh, 70rem);
  max-width: 100%;
  margin-block: 1.5svh -16svh;
}

.artifact-stage canvas {
  position: absolute;
  touch-action: none;
  cursor: grab;
}

.artifact-stage canvas:active {
  cursor: grabbing;
}

.artifact-3d-active .artifact-fallback {
  visibility: hidden;
}

.artifact {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  color: var(--color-warm);
}

@keyframes hero-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-wordmark,
.artifact-stage {
  animation: hero-fade 650ms ease both;
}

.artifact-stage { animation-delay: 160ms; }

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 750ms ease, transform 750ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.btn {
  min-width: min(100%, 13rem);
  height: 4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(230, 221, 212, 0.32);
  border-radius: 0;
  padding: 0 2rem;
  background: transparent;
  color: var(--color-ivory);
  cursor: pointer;
  font: 500 clamp(1.05rem, 1.2vw, 1.4rem) / 1 var(--font-body);
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn:hover {
  border-color: rgba(230, 221, 212, 0.6);
  background: rgba(230, 221, 212, 0.045);
  color: var(--color-ivory);
}

.btn:active {
  background: rgba(232, 212, 191, 0.08);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.btn-block {
  width: 100%;
  margin-top: 0.4rem;
}

.content-section {
  border-top: 1px solid var(--color-divider);
  padding-block: clamp(5rem, 10vw, 10rem);
}

.kicker {
  margin: 0 0 clamp(1.2rem, 2vw, 2rem);
  color: var(--color-warm);
  font-size: clamp(0.72rem, 0.8vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.content-section h2 {
  max-width: 18ch;
  margin: 0 0 clamp(1.5rem, 3vw, 2.75rem);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.content-section p {
  color: var(--color-muted);
}

.product-section h2 {
  max-width: none;
  font-family: "Parisienne", cursive;
}

.product-section h2 a {
  text-decoration: none;
}

.product-section > .container > p:last-of-type {
  max-width: 62ch;
  margin: 0;
}

.product-cta {
  margin-top: clamp(1.75rem, 3vw, 2.75rem);
}

.belief-section h2 {
  max-width: 23ch;
}

.prose {
  max-width: 66ch;
}

.prose p {
  margin: 0;
}

.prose p + p {
  margin-top: 1.35em;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(3.5rem, 8vw, 8rem);
  align-items: start;
}

.contact-intro > p:last-child {
  max-width: 34ch;
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.field > label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--color-muted);
  font-size: clamp(0.8rem, 0.9vw, 0.95rem);
  line-height: 1.4;
}

.input {
  width: 100%;
  min-height: 3.75rem;
  border: 1px solid var(--color-divider);
  border-radius: 0;
  background: #000;
  padding: 0.85rem 1rem;
  color: var(--color-text);
  caret-color: var(--color-warm-bright);
  font: 400 clamp(1rem, 1.1vw, 1.15rem) / 1.55 var(--font-body);
}

.input:hover {
  border-color: rgba(232, 212, 191, 0.5);
}

.input:focus-visible {
  border-color: var(--color-warm-bright);
  outline-offset: 0;
}

textarea.input {
  min-height: 10rem;
  resize: vertical;
}

::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message {
  margin: 1rem 0 0 !important;
  font-size: 1rem !important;
}

.form-message.error {
  color: var(--color-warm-bright);
}

.form-message.success {
  color: var(--color-muted);
}

.site-footer {
  padding-block: 0 clamp(2.5rem, 5vw, 4.5rem);
}

.footer-rule {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--color-divider);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-top: clamp(2rem, 4vw, 3.5rem);
}

.footer-company {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.8vw, 1.75rem);
  line-height: 1.2;
}

.footer-meta {
  color: var(--color-subtle);
  font-size: clamp(0.82rem, 0.9vw, 0.95rem);
  line-height: 1.65;
}

.footer-meta p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.footer-links a {
  color: var(--color-subtle);
}

.footer-links a:hover {
  color: var(--color-text);
}

/* Privacy policy */
.legal-page {
  min-height: 70vh;
  padding-block: clamp(4rem, 8vw, 8rem);
}

.legal-header {
  max-width: 48rem;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}

.legal-page h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(3.4rem, 8vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.legal-date {
  margin: 0;
  color: var(--color-subtle);
  font-size: clamp(0.85rem, 1vw, 1rem);
}

.legal-content {
  max-width: 52rem;
}

.legal-content section + section {
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
}

.legal-page h2 {
  margin: 0 0 1.25rem;
  color: var(--color-text);
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.legal-page h3 {
  margin: 2rem 0 0.75rem;
  color: var(--color-text);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.2;
}

.legal-content p,
.legal-content li {
  color: var(--color-muted);
  font-size: clamp(1.125rem, 1.4vw, 1.35rem);
  line-height: 1.75;
}

.legal-content p {
  margin: 0 0 1.25rem;
}

.legal-content ul {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
}

.legal-content li + li {
  margin-top: 0.45rem;
}

.legal-content strong {
  color: var(--color-text);
  font-weight: 600;
}

.contact-card {
  border: 1px solid var(--color-divider);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.contact-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 35rem) {
  .hero-inner {
    width: min(92vw, var(--wide-width));
  }

  /* Keep more space for the elongated wordmark and the meter while retaining
     a substantial, edge-to-edge artifact on small screens. */
  .artifact-stage {
    width: min(112vw, calc(80svh - 14.1vw - 10rem));
    max-width: none;
    margin-block: auto;
  }

  .throughput {
    position: relative;
    bottom: auto;
    left: auto;
    margin-inline: auto;
    transform: none;
  }

  .tp-inner {
    top: clamp(-1.25rem, -2.2svh, -0.75rem);
  }

  .footer-content {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }

  .js .reveal {
    transform: none;
  }
}
