:root {
  --paper: #f2efe7;
  --paper-deep: #e8e3d7;
  --ink: #151412;
  --muted: #6a665e;
  --rule: #d4cdbf;
  --accent: #c9391b;

  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --gutter: clamp(20px, 4vw, 48px);
  --caption-h: 2.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.07 0 0 0 0 0.06 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p,
h1,
h2,
h3,
ul,
ol,
figure {
  margin: 0;
}

a {
  color: inherit;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
}

.wrap {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.hp {
  left: -10000px;
}

/* Masthead */

.masthead {
  border-bottom: 1px solid var(--ink);
}

.masthead__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px 14px;
}

.wordmark {
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.masthead__meta {
  color: var(--muted);
}

.sep {
  color: var(--accent);
  margin-inline: 0.35em;
}

/* Hero */

.hero {
  padding-block: clamp(56px, 10vw, 128px) clamp(56px, 8vw, 104px);
}

.eyebrow {
  color: var(--accent);
  margin-bottom: clamp(20px, 3vw, 32px);
}

.hero__title {
  font-weight: 500;
  font-stretch: 88%;
  font-size: clamp(3rem, 8.6vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  max-width: 12ch;
  text-wrap: balance;
}

.hero__title em {
  color: var(--accent);
  font-style: italic;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: end;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.lede {
  max-width: 34rem;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
}

/* Waitlist */

.waitlist__field {
  display: flex;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.waitlist__field:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.waitlist input {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.waitlist input::placeholder {
  color: #9a958b;
}

.waitlist input:focus {
  outline: none;
}

.waitlist button {
  flex: none;
  padding: 0 22px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.waitlist button:hover {
  background: var(--accent);
}

.waitlist button:disabled {
  cursor: progress;
  opacity: 0.7;
}

.waitlist__status {
  min-height: 1.5em;
  margin-top: 12px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.01em;
}

.waitlist__status[data-tone="success"] {
  color: var(--ink);
}

.waitlist__status[data-tone="error"] {
  color: var(--accent);
}

/* Sections */

.section {
  padding-block: clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--ink);
}

.section__head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px clamp(20px, 4vw, 56px);
  align-items: baseline;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section__num {
  color: var(--accent);
}

.section__head h2 {
  font-weight: 500;
  font-stretch: 92%;
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.section__head p {
  max-width: 30rem;
  color: var(--muted);
}

/* Asset specimens */

.assets {
  position: relative;
  display: grid;
  grid-template-columns: 1.18fr 1fr 1fr;
  gap: clamp(24px, 3.5vw, 48px);
  align-items: center;
}

.thread {
  position: absolute;
  left: -2%;
  right: -2%;
  top: calc(50% - var(--caption-h) / 2);
  height: 1px;
  background: var(--accent);
  transform-origin: left center;
  animation: draw 1400ms cubic-bezier(0.65, 0, 0.35, 1) 300ms both;
}

@keyframes draw {
  from {
    transform: scaleX(0);
  }
}

.asset {
  position: relative;
  z-index: 1;
  container-type: inline-size;
}

.asset::before,
.asset::after {
  content: "";
  position: absolute;
  top: calc(50% - var(--caption-h) / 2 - 3.5px);
  width: 7px;
  height: 7px;
  background: var(--accent);
  z-index: 2;
}

.asset::before {
  left: -3.5px;
}

.asset::after {
  right: -3.5px;
}

.asset figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  height: var(--caption-h);
  padding-top: 12px;
  color: var(--muted);
  font-size: 11px;
}

.asset figcaption span:first-child {
  color: var(--ink);
  text-transform: none;
}

.frame {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--ink);
  box-shadow: 0 1px 0 var(--ink);
}

.f-display {
  font-weight: 500;
  font-stretch: 90%;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.f-display em {
  color: var(--accent);
}

.f-mono {
  font-family: var(--mono);
  font-size: 3.4cqw;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.f-sans {
  font-family: var(--sans);
}

/* Reel */

.frame--reel {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6cqw;
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.reel__brand {
  font-size: 2.8cqw;
}

.reel__brand span {
  color: var(--accent);
}

.reel__line {
  font-size: 9.6cqw;
  max-width: 13ch;
}

.reel__timeline {
  display: flex;
  align-items: center;
  gap: 2.6cqw;
}

.reel__timeline .f-mono {
  font-size: 2.4cqw;
  color: #a6a197;
}

.reel__track {
  position: relative;
  flex: 1;
  height: 1px;
  background: #4a4741;
}

.reel__progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 35%;
  background: var(--accent);
  animation: play 6s linear infinite;
}

@keyframes play {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* PH gallery */

.frame--gallery {
  aspect-ratio: 1270 / 760;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4cqw;
  padding: 6cqw;
}

.gallery__copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gallery__copy .f-mono {
  color: var(--accent);
  font-size: 3cqw;
}

.gallery__title {
  font-size: 9cqw;
}

.gallery__text {
  font-size: 3.3cqw;
  line-height: 1.35;
  color: var(--muted);
}

.gallery__shot {
  perspective: 60cqw;
  display: flex;
  align-items: center;
}

.shot {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  gap: 3cqw;
  padding: 0 4cqw 4cqw;
  background: var(--paper);
  border: 1px solid var(--ink);
  transform: rotateY(-16deg) rotateX(4deg);
  transform-origin: right center;
  box-shadow: 2cqw 2cqw 0 var(--rule);
}

.shot__bar {
  height: 5cqw;
  margin-inline: -4cqw;
  border-bottom: 1px solid var(--ink);
  background: var(--paper-deep);
}

.shot__row {
  height: 2.4cqw;
  background: var(--rule);
}

.shot__row--accent {
  width: 55%;
  background: var(--accent);
}

.shot__row--short {
  width: 70%;
}

/* OG card */

.frame--og {
  aspect-ratio: 1200 / 630;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6cqw;
}

.og__mark {
  display: grid;
  place-items: center;
  width: 10cqw;
  height: 10cqw;
  background: var(--accent);
  color: var(--paper);
  font-size: 3.4cqw;
}

.og__title {
  font-size: 8.4cqw;
  max-width: 14ch;
}

.og__domain {
  font-size: 2.8cqw;
  color: var(--muted);
}

/* Models */

.models {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.models li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-block: clamp(14px, 2vw, 22px);
  border-bottom: 1px solid var(--rule);
}

.models__name {
  font-weight: 500;
  font-stretch: 92%;
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.models__leader {
  flex: 1;
  border-bottom: 1px dotted var(--muted);
  transform: translateY(-0.3em);
}

.models .mono {
  color: var(--accent);
}

/* Steps */

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}

.steps li {
  padding: 24px clamp(16px, 2.4vw, 32px) 8px 0;
}

.steps li + li {
  padding-left: clamp(16px, 2.4vw, 32px);
  border-left: 1px solid var(--rule);
}

.steps__num {
  display: block;
  color: var(--accent);
  margin-bottom: 28px;
}

.steps h3 {
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.steps p {
  color: var(--muted);
  max-width: 24rem;
}

.cli {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: clamp(48px, 6vw, 72px);
  padding: 18px 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.cli__cmd {
  font-size: 17px;
}

.cli__prompt {
  color: var(--accent);
  margin-right: 0.5em;
}

.cli__copy {
  padding: 6px 12px;
  border: 1px solid #4a4741;
  background: transparent;
  color: var(--paper);
  font-size: 11px;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}

.cli__copy:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cli__note {
  margin-left: auto;
  color: #a6a197;
  font-size: 11px;
}

/* Colophon */

.colophon {
  border-top: 1px solid var(--ink);
}

.colophon__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 22px 28px;
  color: var(--muted);
  font-size: 11px;
}

.colophon a {
  color: var(--ink);
  text-decoration: none;
}

.colophon a:hover {
  color: var(--accent);
}

/* Responsive */

@media (max-width: 960px) {
  .hero__grid,
  .section__head {
    grid-template-columns: minmax(0, 1fr);
  }

  .assets {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }

  .thread {
    left: 50%;
    right: auto;
    top: -24px;
    bottom: calc(var(--caption-h) - 24px);
    width: 1px;
    height: auto;
    transform-origin: center top;
    animation-name: draw-down;
  }

  @keyframes draw-down {
    from {
      transform: scaleY(0);
    }
  }

  .asset::before,
  .asset::after {
    left: calc(50% - 3.5px);
    right: auto;
  }

  .asset::before {
    top: -3.5px;
  }

  .asset::after {
    top: calc(100% - var(--caption-h) - 3.5px);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps li,
  .steps li + li {
    padding: 24px 0 20px;
    border-left: 0;
    border-bottom: 1px solid var(--rule);
  }

  .cli__note {
    margin-left: 0;
    flex-basis: 100%;
  }
}

@media (max-width: 560px) {
  .masthead__meta {
    display: none;
  }

  .waitlist__field {
    flex-direction: column;
  }

  .waitlist button {
    padding: 15px 22px;
  }
}

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

  .thread,
  .reel__progress {
    animation: none;
  }
}
