@font-face {
  font-family: "Barlow Condensed";
  src: url("./assets/fonts/barlow-condensed-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("./assets/fonts/barlow-condensed-900.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@property --split {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 52%;
}

:root {
  --black: #090706;
  --black-warm: #110b09;
  --paper: #f0e9dc;
  --paper-dim: #aaa198;
  --ember: #f04a2c;
  --amber: #eeb184;
  --wine: #40130f;
  --line: rgba(240, 233, 220, .17);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--paper);
  background:
    radial-gradient(ellipse at 74% 6%, rgba(113, 29, 19, .23), transparent 35%),
    radial-gradient(ellipse at 8% 52%, rgba(85, 25, 16, .13), transparent 36%),
    linear-gradient(180deg, #0b0807 0%, #080706 66%, #0d0807 100%);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  opacity: .075;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1.4s steps(2, end) infinite;
}

body::after {
  content: "";
  position: fixed;
  z-index: 99;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 170px 25px rgba(0, 0, 0, .48);
}

a,
button,
input { color: inherit; }

button,
input { font: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 5px;
}

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

.masthead {
  position: relative;
  z-index: 3;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23, 13, 10, .68), rgba(10, 7, 6, .08));
}

.masthead::after {
  content: "";
  position: absolute;
  right: 4vw;
  bottom: -1px;
  width: clamp(70px, 10vw, 160px);
  height: 1px;
  background: var(--ember);
  box-shadow: 0 0 18px rgba(240, 74, 44, .65);
}

.wordmark {
  color: var(--paper);
  text-decoration: none;
  font: 900 22px/1 var(--sans);
  letter-spacing: -.012em;
}

.wordmark span {
  color: var(--ember);
  text-shadow: 0 0 14px rgba(240, 74, 44, .7);
}

.masthead-cta {
  padding: 9px 0 7px;
  border-bottom: 1px solid rgba(240, 233, 220, .42);
  color: var(--paper);
  text-decoration: none;
  text-transform: uppercase;
  font: 8px/1 var(--mono);
  letter-spacing: .1em;
}

.masthead-cta:hover {
  color: var(--amber);
  border-bottom-color: var(--ember);
}

.has-master-reveal .masthead-cta {
  animation: cta-ignite 2.4s cubic-bezier(.2, .7, .2, 1) 1;
}

.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 19%;
  right: -14%;
  width: 78vw;
  height: 62vh;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(173, 38, 22, .2) 0%, rgba(94, 20, 13, .09) 38%, transparent 72%);
  filter: blur(26px);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  min-height: clamp(350px, 47vh, 520px);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .45fr);
  column-gap: 7vw;
  align-items: end;
  padding: clamp(62px, 9vh, 108px) 4vw clamp(42px, 6vh, 70px);
}

.hero h1 {
  margin: 0;
  font: 400 clamp(62px, 7.5vw, 122px)/.84 var(--sans);
  letter-spacing: -.06em;
}

.hero h1 span,
.hero h1 em {
  display: block;
}

.hero h1 span {
  animation: title-reveal 1s cubic-bezier(.2, .75, .2, 1) both;
}

.hero h1 em {
  margin: .12em 0 0 clamp(20px, 4vw, 76px);
  color: var(--amber);
  font-family: var(--sans);
  font-size: 1.02em;
  font-style: normal;
  font-weight: 900;
  letter-spacing: -.04em;
  text-shadow:
    0 0 28px rgba(240, 74, 44, .14),
    0 0 90px rgba(240, 74, 44, .08);
  animation: title-reveal 1.12s .12s cubic-bezier(.2, .75, .2, 1) both;
}

.intro {
  max-width: 410px;
  margin: 0 0 .45em;
  padding-left: 22px;
  border-left: 1px solid rgba(240, 74, 44, .65);
  color: var(--paper-dim);
  font: 13px/1.65 var(--mono);
  animation: soft-arrival .8s .46s ease-out both;
}

.proof {
  margin: 0 4vw;
  border: 1px solid var(--line);
  background: rgba(8, 5, 4, .6);
  box-shadow:
    0 42px 100px rgba(118, 25, 14, .2),
    0 0 80px rgba(240, 74, 44, .055),
    inset 0 0 60px rgba(255, 187, 133, .025);
  animation: proof-arrival 1.05s .28s cubic-bezier(.2, .75, .2, 1) both;
}

.comparison {
  --split: 52%;
  --scroll-shift: 0px;
  --scroll-scale: 1.07;
  --master-opacity: .84;
  --master-heat: .3;
  --seam-bloom: .36;
  --waveform-scale: .9;
  position: relative;
  height: clamp(250px, 33vh, 390px);
  overflow: hidden;
  cursor: col-resize;
  touch-action: pan-y;
  background:
    radial-gradient(ellipse at 64% 48%, rgba(240, 74, 44, .105), transparent 34%),
    linear-gradient(90deg, rgba(31, 27, 24, .66), rgba(18, 10, 8, .96));
  transition: --split 150ms cubic-bezier(.2, .7, .2, 1);
}

.comparison.is-autoplaying { transition: none; }

.comparison::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: .24;
  background-image:
    linear-gradient(rgba(240, 233, 220, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 233, 220, .06) 1px, transparent 1px);
  background-size: 100% 25%, 6.25% 100%;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.comparison::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: -20%;
  bottom: -20%;
  left: calc(var(--split) - 20vw);
  width: 40vw;
  pointer-events: none;
  opacity: var(--seam-bloom);
  background: radial-gradient(ellipse, rgba(246, 106, 65, .14) 0%, rgba(240, 74, 44, .038) 42%, transparent 70%);
  mix-blend-mode: screen;
}

.art-layer {
  position: absolute;
  z-index: 0;
  inset: -5%;
  pointer-events: none;
  background-image: url("./assets/hero-optical-darkroom.webp");
  background-repeat: no-repeat;
  background-position: center 51%;
  background-size: cover;
  transform: translate3d(
    var(--parallax-x, 0),
    calc(var(--parallax-y, 0px) + var(--scroll-shift)),
    0
  ) scale(var(--scroll-scale));
  will-change: transform;
}

.art-source {
  opacity: .74;
  filter: grayscale(1) saturate(.15) brightness(.46) contrast(1.24);
}

.art-master {
  opacity: var(--master-opacity);
  filter: saturate(1.15) brightness(.76) contrast(1.06);
  animation: optical-breath 7s ease-in-out infinite alternate;
}

.waveform {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scaleY(var(--waveform-scale));
  transform-origin: center;
  transition: transform 140ms linear;
}

.waveform path { vector-effect: non-scaling-stroke; }

.waveform-source path {
  fill: #a39b90;
  opacity: .13;
  filter: drop-shadow(0 0 6px rgba(223, 211, 194, .08));
}

.master-layer {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 0 0 var(--split));
  background: rgba(64, 14, 9, .06);
}

.master-layer::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: -30% -14%;
  pointer-events: none;
  opacity: var(--master-heat);
  background: radial-gradient(ellipse at 18% 50%, rgba(255, 176, 125, .2), rgba(240, 74, 44, .06) 31%, transparent 62%);
  filter: blur(18px);
  mix-blend-mode: screen;
}

.master-layer::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 12%, rgba(255, 151, 101, .05) 50%, transparent 88%);
  mix-blend-mode: screen;
  opacity: var(--master-heat);
}

.waveform-master path {
  fill: var(--ember);
  opacity: .34;
  filter:
    drop-shadow(0 0 7px rgba(255, 92, 51, .72))
    drop-shadow(0 0 24px rgba(240, 74, 44, .28));
}

.comparison-seam {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 1px;
  pointer-events: none;
  background: rgba(255, 221, 183, .92);
  box-shadow:
    0 0 10px rgba(255, 196, 145, .9),
    0 0 44px 6px rgba(240, 74, 44, .35);
  animation: seam-breathe 4.5s ease-in-out infinite alternate;
}

.comparison-seam::before {
  content: "";
  position: absolute;
  top: calc(50% - 5px);
  left: -5px;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255, 230, 203, .9);
  border-radius: 50%;
  background: var(--ember);
  box-shadow:
    0 0 0 5px rgba(9, 7, 6, .74),
    0 0 25px 5px rgba(240, 74, 44, .65);
}

.signal-label {
  position: absolute;
  z-index: 5;
  bottom: 16px;
  padding: 7px 9px 6px;
  border: 1px solid rgba(240, 233, 220, .14);
  color: rgba(240, 233, 220, .62);
  background: rgba(8, 6, 5, .48);
  backdrop-filter: blur(8px);
  pointer-events: none;
  text-transform: uppercase;
  font: 7px/1 var(--mono);
  letter-spacing: .13em;
}

.signal-label-source { left: 16px; }

.signal-label-master {
  right: 16px;
  border-color: rgba(240, 74, 44, .25);
  color: rgba(255, 204, 164, .86);
  text-shadow: 0 0 14px rgba(240, 74, 44, .46);
}

.comparison-range {
  position: absolute;
  z-index: 6;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: col-resize;
}

.hero-footer {
  position: relative;
  min-height: clamp(360px, 44vh, 490px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0 4vw;
  padding: 5vh 0 7vh;
}

.hero-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -35%;
  right: -12vw;
  width: 75vw;
  height: 150%;
  pointer-events: none;
  opacity: .58;
  background: radial-gradient(ellipse, rgba(194, 43, 25, .2), transparent 67%);
  filter: blur(18px);
}

.hero-footer-copy {
  width: min(68%, 1030px);
}

.hero-footer-statement {
  margin: 0;
  color: rgba(240, 233, 220, .88);
  font: 400 clamp(26px, 3.2vw, 52px)/.98 var(--sans);
  letter-spacing: -.055em;
}

.hero-footer-statement em {
  display: block;
  margin-top: .16em;
  color: var(--amber);
  font-family: var(--sans);
  font-size: 1.03em;
  font-style: normal;
  font-weight: 900;
  letter-spacing: -.025em;
  text-shadow: 0 0 38px rgba(240, 74, 44, .14);
}

.hero-footer-history {
  max-width: 680px;
  margin: 34px 0 0;
  color: var(--paper-dim);
  font: 13px/1.7 var(--mono);
}

.hero-footer-benchmark {
  margin: 22px 0 0;
  color: var(--amber);
  font: 14px/1.5 var(--mono);
}

.hero-test-link {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  margin-top: 28px;
  padding: 0 0 9px;
  border-bottom: 1px solid var(--ember);
  color: var(--paper);
  text-decoration: none;
  text-transform: uppercase;
  font: 13px/1.2 var(--mono);
  letter-spacing: .08em;
}

.hero-test-link:hover {
  color: var(--amber);
}

.invitation {
  position: relative;
  min-height: 38vh;
  display: grid;
  align-content: center;
  justify-items: center;
  overflow: hidden;
  padding: 9vh 4vw;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 120%, rgba(209, 48, 27, .42), transparent 58%),
    linear-gradient(180deg, rgba(20, 10, 8, .7), rgba(13, 7, 6, .98));
}

.invitation::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 13%;
  width: 74%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 74, 44, .8), transparent);
  box-shadow: 0 0 30px 3px rgba(240, 74, 44, .18);
}

.invite-form {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
  gap: 0;
  text-align: left;
  box-shadow:
    0 25px 80px rgba(0, 0, 0, .32),
    0 0 70px rgba(240, 74, 44, .08);
  transition:
    opacity .8s ease,
    transform .8s cubic-bezier(.2, .75, .2, 1);
}

.invitation.will-reveal .invite-form {
  opacity: 0;
  transform: translateY(26px);
}

.invitation.will-reveal.is-visible .invite-form {
  opacity: 1;
  transform: translateY(0);
}

.invitation.is-visible .invite-form button {
  animation: form-ignite 2.8s .35s cubic-bezier(.2, .7, .2, 1) 1;
}

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

.form-field { display: block; }

.form-field input {
  width: 100%;
  min-height: 78px;
  padding: 0 28px;
  border: 1px solid rgba(240, 233, 220, .28);
  border-right: 0;
  border-radius: 0;
  color: var(--paper);
  background: rgba(8, 5, 4, .62);
  font: 15px/1.2 var(--mono);
  caret-color: var(--ember);
}

.form-field input::placeholder { color: #817970; }

.form-field input:hover,
.form-field input:focus {
  border-color: rgba(240, 233, 220, .65);
  outline: 0;
  background: rgba(15, 8, 6, .78);
}

.invite-form button {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border: 1px solid var(--ember);
  border-radius: 0;
  color: var(--paper);
  background: var(--ember);
  cursor: pointer;
  text-transform: uppercase;
  font: 9px/1 var(--mono);
  letter-spacing: .1em;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .13),
    0 0 35px rgba(240, 74, 44, .18);
}

.invite-form button span {
  font-size: 17px;
  line-height: 1;
}

.invite-form button:hover {
  color: #170906;
  background: #ff6948;
  border-color: #ff6948;
}

.invite-form button:disabled {
  cursor: wait;
  opacity: .65;
}

.invite-status {
  grid-column: 1 / -1;
  min-height: 2.4em;
  margin: 14px 0 -2.4em;
  color: var(--paper-dim);
  font: 8px/1.5 var(--mono);
}

.form-privacy {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  color: var(--paper-dim);
  font: 8px/1.55 var(--mono);
}

.form-privacy a {
  color: var(--paper);
  text-decoration-color: var(--ember);
  text-underline-offset: 3px;
}

.form-privacy a:hover { color: var(--amber); }

.invite-status[data-state="success"] { color: var(--paper); }
.invite-status[data-state="error"] { color: #ff856d; }

.site-footer {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 26px;
  padding: 0 4vw;
  border-top: 1px solid var(--line);
  color: var(--paper-dim);
  background: #080605;
  text-transform: uppercase;
  font: 8px/1 var(--mono);
  letter-spacing: .09em;
}

.footer-wordmark {
  justify-self: start;
  color: var(--paper);
  text-decoration: none;
  font: 900 16px/1 var(--sans);
  letter-spacing: -.025em;
}

.footer-wordmark span { color: var(--ember); }
.site-footer nav { display: flex; gap: 20px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--paper); }
.site-footer p { justify-self: end; margin: 0; }

@keyframes title-reveal {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    clip-path: inset(-.22em -.08em);
    transform: translateY(0);
  }
}

@keyframes soft-arrival {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes proof-arrival {
  from { opacity: 0; transform: translateY(18px) scale(.994); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes grain-shift {
  0% { background-position: 0 0; }
  25% { background-position: 11px -7px; }
  50% { background-position: -6px 13px; }
  75% { background-position: 8px 4px; }
  100% { background-position: -12px -9px; }
}

@keyframes optical-breath {
  from { filter: saturate(1.08) brightness(.71) contrast(1.08); }
  to { filter: saturate(1.22) brightness(.81) contrast(1.03); }
}

@keyframes seam-breathe {
  from {
    box-shadow:
      0 0 8px rgba(255, 196, 145, .75),
      0 0 32px 4px rgba(240, 74, 44, .24);
  }
  to {
    box-shadow:
      0 0 14px rgba(255, 196, 145, .98),
      0 0 56px 9px rgba(240, 74, 44, .42);
  }
}

@keyframes cta-ignite {
  0%, 100% {
    color: var(--paper);
    border-bottom-color: rgba(240, 233, 220, .42);
    text-shadow: none;
  }
  38% {
    color: #ffd2b4;
    border-bottom-color: var(--ember);
    text-shadow: 0 0 18px rgba(240, 74, 44, .78);
  }
}

@keyframes form-ignite {
  0%, 100% {
    box-shadow: inset 0 1px rgba(255, 255, 255, .13), 0 0 35px rgba(240, 74, 44, .18);
  }
  42% {
    box-shadow: inset 0 1px rgba(255, 255, 255, .22), 0 0 64px 8px rgba(240, 74, 44, .36);
  }
}

@media (max-width: 900px) {
  body::after { box-shadow: inset 0 0 100px rgba(0, 0, 0, .38); }

  .masthead {
    height: 62px;
    padding: 0 20px;
  }

  .masthead::after { right: 20px; }
  .wordmark {
    font-size: 20px;
    letter-spacing: 0;
  }

  .masthead-cta {
    padding-bottom: 6px;
    font-size: 8px;
    letter-spacing: .07em;
  }

  .hero { min-height: auto; }

  .hero-copy {
    min-height: 0;
    display: block;
    padding: clamp(70px, 10vh, 96px) 20px 50px;
  }

  .hero h1 {
    font-size: clamp(42px, 10vw, 54px);
    line-height: .94;
  }

  .hero h1 span {
    letter-spacing: -.055em;
  }

  .hero h1 em {
    margin: .18em 0 0 0;
    font-size: 1.08em;
    line-height: 1;
  }

  .intro {
    max-width: 520px;
    margin: 38px 0 0;
    padding-left: 16px;
    font-size: 13px;
  }

  .proof {
    margin: 0;
    border-right: 0;
    border-left: 0;
  }

  .comparison {
    height: clamp(270px, 38vh, 340px);
  }

  .art-layer {
    inset: -4% -30%;
    background-position: 51% 50%;
    background-size: cover;
  }

  .comparison::before { background-size: 100% 25%, 12.5% 100%; }

  .comparison::after {
    left: calc(var(--split) - 40vw);
    width: 80vw;
  }

  .signal-label {
    bottom: 12px;
    padding: 6px 7px 5px;
    font-size: 6px;
    letter-spacing: .1em;
  }

  .signal-label-source { left: 12px; }
  .signal-label-master { right: 12px; }

  .hero-footer {
    min-height: 0;
    justify-content: flex-start;
    margin: 0 20px;
    padding: 54px 0 64px;
  }

  .hero-footer-copy {
    width: 100%;
  }

  .hero-footer-statement {
    font-size: clamp(26px, 7.4vw, 38px);
  }

  .hero-footer-history {
    margin-top: 28px;
    font-size: 13px;
  }

  .hero-footer-benchmark {
    font-size: 13px;
  }

  .hero-test-link {
    margin-top: 26px;
  }

  .invitation {
    min-height: 38vh;
    padding: 70px 20px 84px;
  }

  .invite-form {
    grid-template-columns: 1fr;
    box-shadow:
      0 25px 70px rgba(0, 0, 0, .35),
      0 0 45px rgba(240, 74, 44, .08);
  }

  .form-field input {
    min-height: 66px;
    padding: 0 20px;
    border-right: 1px solid rgba(240, 233, 220, .28);
    border-bottom: 0;
    font-size: 13px;
  }

  .invite-form button {
    min-height: 66px;
    padding: 0 20px;
  }

  .form-privacy { margin-top: 12px; }

  .site-footer {
    min-height: 108px;
    grid-template-columns: 1fr auto;
    padding: 24px 20px;
  }

  .site-footer p {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
