:root {
  --ink: #050607;
  --ink-raised: #090b0c;
  --titanium: #24292c;
  --titanium-light: #586166;
  --glass: #0b1012;
  --paper: #edf1ef;
  --muted: #90999b;
  --line: #252a2d;
  --cyan: #66e7ef;
  --max: 92rem;
  font-family: "Helvetica Neue", "Neue Haas Grotesk Text Pro", Helvetica, Arial, sans-serif;
  color: var(--paper);
  background: var(--ink);
  color-scheme: dark;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  min-width: 20rem;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--max));
  margin-inline: auto;
  padding: 1.5rem clamp(1.25rem, 4vw, 4.5rem);
}

.workshop-mark {
  margin: 0;
  color: var(--paper);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.build-state {
  margin: 0;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  grid-template-areas: "copy lens";
  grid-template-columns: minmax(18rem, 0.78fr) minmax(24rem, 1.22fr);
  align-items: center;
  min-height: 100svh;
  overflow: hidden;
  padding: 7rem clamp(1.25rem, 4vw, 4.5rem) 4rem;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.hero::before {
  top: 0;
  bottom: 0;
  left: 54%;
  width: 1px;
  background: var(--line);
  opacity: 0.2;
}

.hero::after {
  top: 50%;
  right: 15%;
  width: 36rem;
  height: 36rem;
  border: 1px solid rgba(102, 231, 239, 0.09);
  border-radius: 50%;
  transform: translate(50%, -50%);
  box-shadow:
    0 0 0 7rem rgba(5, 6, 7, 0.72),
    0 0 8rem rgba(102, 231, 239, 0.04);
}

.hero-copy {
  grid-area: copy;
  z-index: 2;
  max-width: 34rem;
  margin-left: max(0rem, calc((100vw - var(--max)) / 2));
  animation: copy-arrival 760ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow,
.section-index,
.principle-number {
  margin: 0;
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 15ch;
  margin: 1.25rem 0 0;
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  font-weight: 560;
  line-height: 0.98;
  letter-spacing: 0.075em;
}

.promise {
  max-width: 18ch;
  margin: 2.2rem 0 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 410;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.support {
  max-width: 36rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  line-height: 1.6;
}

.lens-stage {
  grid-area: lens;
  position: relative;
  display: grid;
  place-items: center;
  width: min(62vw, 48rem);
  aspect-ratio: 1;
  margin: 1rem auto 0;
  animation: lens-arrival 980ms 90ms cubic-bezier(0.15, 0.85, 0.22, 1) both;
}

.trace-lens {
  z-index: 2;
  width: 82%;
  height: 82%;
  overflow: visible;
  filter:
    drop-shadow(0 2.5rem 3.5rem rgba(0, 0, 0, 0.68))
    drop-shadow(0 0 3.2rem rgba(102, 231, 239, 0.055));
}

.lens-shadow {
  transform-origin: 256px 256px;
}

.lens-chassis {
  fill: var(--ink-raised);
  stroke: #161a1c;
  stroke-width: 34;
}

.lens-outer-edge {
  fill: none;
  stroke: var(--titanium-light);
  stroke-width: 2;
}

.lens-focus-ring {
  fill: #060809;
  stroke: var(--titanium);
  stroke-width: 36;
  stroke-dasharray: 5 7;
  transform-origin: 256px 256px;
  animation: focus-alignment 800ms 130ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.lens-inner-edge {
  fill: none;
  stroke: #727b7f;
  stroke-width: 2;
}

.lens-glass {
  fill: var(--glass);
  stroke: #151c1f;
  stroke-width: 12;
}

.lens-reflection {
  fill: none;
  stroke: var(--titanium-light);
  stroke-linecap: round;
  stroke-width: 5;
  opacity: 0.55;
}

.lens-reflection-small {
  stroke-width: 4;
  opacity: 0.32;
}

.lens-index {
  fill: none;
  stroke: var(--paper);
  stroke-linecap: round;
  stroke-width: 4;
}

.lens-pin {
  fill: var(--cyan);
  opacity: 0.72;
}

.calibration {
  position: absolute;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}

.calibration-a {
  width: 91%;
  height: 91%;
}

.calibration-b {
  width: 97%;
  height: 97%;
  border-style: dashed;
  opacity: 0.48;
}

footer {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  width: min(100%, var(--max));
  margin-inline: auto;
  padding: 1.5rem clamp(1.25rem, 4vw, 4.5rem) 2.5rem;
  color: #697174;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

@keyframes copy-arrival {
  from {
    opacity: 0;
    transform: translateY(1.2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lens-arrival {
  from {
    opacity: 0;
    transform: scale(0.965);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes focus-alignment {
  from {
    transform: rotate(-6deg);
  }
  to {
    transform: rotate(0);
  }
}

@media (max-width: 800px) {
  .site-header {
    padding-top: 1.1rem;
  }

  .build-state {
    max-width: 8rem;
    text-align: right;
  }

  .hero {
    grid-template-areas:
      "lens"
      "copy";
    grid-template-columns: 1fr;
    grid-template-rows: minmax(12rem, 1fr) auto;
    align-content: center;
    min-height: 100svh;
    padding: 4.8rem 1.25rem 5rem;
  }

  .hero-copy {
    margin: 0;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(2.65rem, 13vw, 4.4rem);
    letter-spacing: 0.035em;
  }

  .promise {
    margin-top: 1.5rem;
  }

  .support {
    max-width: 29rem;
  }

  .lens-stage {
    width: min(76vw, 22rem);
    margin: 0 auto -1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    grid-template-rows: minmax(9rem, 1fr) auto;
    padding-top: 4.3rem;
    padding-bottom: 3.9rem;
  }

  .lens-stage {
    width: min(62vw, 15rem);
    margin-bottom: -0.5rem;
  }

  footer {
    gap: 0.8rem;
    align-items: center;
    padding-block: 0.55rem 0.75rem;
    font-size: 0.52rem;
  }
}

@media (min-width: 801px) and (max-height: 700px) {
  .hero {
    padding-block: 4.5rem 3.5rem;
  }

  .lens-stage {
    width: min(56vw, 35rem);
  }

  h1 {
    font-size: clamp(2.8rem, 3.7vw, 3.7rem);
  }

  .promise {
    margin-top: 1.5rem;
  }

  footer {
    padding-block: 0.9rem 1rem;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .site-header {
    padding-block: 0.8rem;
  }

  .hero {
    grid-template-areas: "copy lens";
    grid-template-columns: minmax(16rem, 0.9fr) minmax(16rem, 1.1fr);
    grid-template-rows: 1fr;
    padding: 3.7rem 2rem 3rem;
  }

  h1 {
    font-size: clamp(2.5rem, 7vw, 4rem);
  }

  .promise {
    margin-top: 1rem;
    font-size: clamp(1.1rem, 2.6vw, 1.65rem);
  }

  .lens-stage {
    width: min(42vmin, 19rem);
    margin: 0 auto;
  }

  footer {
    padding: 0.8rem 2rem 1rem;
  }
}

@media (forced-colors: active) {
  .trace-lens {
    filter: none;
  }

  .lens-chassis,
  .lens-focus-ring,
  .lens-glass {
    fill: Canvas;
    stroke: CanvasText;
  }

  .lens-outer-edge,
  .lens-inner-edge,
  .lens-reflection,
  .lens-index {
    stroke: CanvasText;
  }

  .lens-pin {
    fill: Highlight;
  }
}

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

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