@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
}

:root {
  --bg: #141311;
  --ink: #f4f0e6;
  --muted: #d9d3c7;
  --faint: #b3ada3;
  --line: rgba(244, 240, 230, 0.14);
  --indigo: #c9c6ff;
  --red: #e23b2f;
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
  --max: 1120px;
  --pad: clamp(20px, 4vw, 48px);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  z-index: 0;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 42% 36% at 82% 12%, rgba(226, 59, 47, 0.08), transparent 62%),
    radial-gradient(ellipse 36% 42% at 8% 88%, rgba(70, 65, 217, 0.1), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 240, 230, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 230, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 20%, #000 10%, transparent 68%);
  animation: grid-drift 32s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: min(52vw, 640px);
  height: min(52vw, 640px);
  right: -6vw;
  top: -8vw;
  pointer-events: none;
  background: radial-gradient(circle, rgba(226, 59, 47, 0.34), transparent 68%);
  filter: blur(6px);
  animation: ambience 8.5s ease-in-out infinite;
}

a {
  color: var(--indigo);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 5;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

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

.wrap {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(20, 19, 17, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  min-height: 72px;
  flex-wrap: wrap;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
}

.brand svg {
  width: 28px;
  height: 28px;
  display: block;
}

.brand svg circle:nth-child(2) {
  animation: brand-lamp 2.8s ease-in-out infinite;
  animation-delay: 0.5s;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 0;
  background: linear-gradient(currentColor, currentColor) left 100% / 0 1px no-repeat;
  transition: background-size 0.28s ease;
}

.nav a:hover {
  background-size: 100% 1px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  min-height: min(calc(100svh - 92px), 840px);
  padding-block: clamp(40px, 6vw, 72px);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(226, 59, 47, 0.5);
  animation: lamp 2.8s ease-in-out infinite;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 6.2vw, 6.1rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

h1 em {
  font-style: italic;
  font-weight: 400;
}

.flux {
  color: var(--indigo);
  animation: name-in 1s ease 0.4s both;
}

.lede {
  max-width: 38rem;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.panel {
  position: relative;
  margin: 0;
  padding: 22px 22px 18px;
  animation: rise 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s both;
  border: 1px solid rgba(244, 240, 230, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 26%),
    linear-gradient(165deg, #2c2924 0%, #1b1a16 58%, #141311 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 28px 60px rgba(0, 0, 0, 0.38);
}

.screw {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 32%, #8a8376, #3a362f 42%, #16140f 70%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 1px 1px rgba(0, 0, 0, 0.5);
}

.screw::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 4.5px;
  height: 1.5px;
  background: #14120e;
  transform: rotate(42deg);
  border-radius: 1px;
}

.screw-a { top: 12px; left: 12px; }
.screw-b { top: 12px; right: 12px; }
.screw-c { bottom: 12px; left: 12px; }
.screw-d { bottom: 12px; right: 12px; }

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 18px 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.standby {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lamp {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px rgba(226, 59, 47, 0.8);
  animation: lamp 2.8s ease-in-out infinite;
  animation-delay: 0.35s;
}

.bezel {
  position: relative;
  isolation: isolate;
  width: 196px;
  height: 196px;
  margin: 18px auto 8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, #514c44 0%, #2b2823 52%, #151411 100%);
  box-shadow:
    inset 0 3px 10px rgba(0, 0, 0, 0.62),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.04);
}

.bezel::before {
  content: "";
  position: absolute;
  inset: 32px;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 96, 74, 0.85), rgba(226, 59, 47, 0.2) 46%, transparent 70%);
  filter: blur(12px);
  animation: halo 3.6s ease-in-out infinite;
}

.pusher {
  position: relative;
  z-index: 1;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, #ff907f 0%, #ef4b3d 34%, #c2261b 66%, #861410 100%);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.5),
    inset 0 -12px 18px rgba(70, 8, 6, 0.45),
    0 9px 0 #5a100c,
    0 14px 20px rgba(0, 0, 0, 0.42);
  transition: transform 0.16s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.pusher::before {
  content: "";
  position: absolute;
  width: 48%;
  height: 26%;
  left: 26%;
  top: 13%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.62), transparent 70%);
  animation: sheen 4.6s ease-in-out infinite;
}

@media (hover: hover) {
  .panel:hover .pusher {
    transform: translateY(7px);
  }

  .panel:hover .bezel::before {
    animation: none;
    opacity: 1;
    transform: scale(1.14);
    filter: blur(14px) brightness(1.3);
  }
}

.panel:active .pusher {
  transform: translateY(8px);
}

.panel-label {
  margin: 10px 0 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel-note {
  margin: 6px 0 0;
  text-align: center;
  color: var(--faint);
  font-size: 0.92rem;
}

.readout {
  display: grid;
  gap: 0;
  margin: 18px 14px 6px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.readout div {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(244, 240, 230, 0.08);
  animation: gauge 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.readout div:nth-child(1) { animation-delay: 0.72s; }
.readout div:nth-child(2) { animation-delay: 0.84s; }
.readout div:nth-child(3) { animation-delay: 0.96s; }
.readout div:nth-child(4) { animation-delay: 1.08s; }
.readout div:nth-child(5) { animation-delay: 1.2s; }

.readout div:last-child {
  border-bottom: 0;
}

.readout dt {
  margin: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.readout dd {
  margin: 0;
  text-align: right;
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 500;
}

.band {
  padding-block: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}

.index {
  margin: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.section-lead {
  max-width: 40rem;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 1.1rem;
}

.spec {
  list-style: none;
  max-width: 46rem;
  margin: 28px 0 0;
  padding: 0;
}

.spec li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.spec li:last-child {
  border-bottom: 1px solid var(--line);
}

@supports (animation-timeline: view()) {
  .spec li,
  .steps li {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }

  .spec li:nth-child(2),
  .steps li:nth-child(2) {
    animation-range: entry 12% entry 55%;
  }

  .spec li:nth-child(3),
  .steps li:nth-child(3) {
    animation-range: entry 22% entry 65%;
  }
}

.spec-k {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.spec-v {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

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

.steps li {
  min-width: 0;
  padding: 28px 32px 8px 0;
}

.steps li + li {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.step-no {
  display: block;
  margin-bottom: 14px;
  color: var(--faint);
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1;
}

h3 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 36px 56px;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px 40px;
  align-items: start;
}

.footer-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.footer-expand {
  margin: 6px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.colophon {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--faint);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .panel {
    max-width: 460px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

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

  .steps li:first-child {
    border-top: 0;
    padding-top: 24px;
  }

  .site-footer .wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(3rem, 15vw, 4.2rem);
  }

  .spec li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .readout {
    margin-inline: 4px;
  }

  .panel-top {
    margin-inline: 10px;
  }
}

@keyframes grid-drift {
  to {
    background-position: 56px 28px, -56px 0;
  }
}

@keyframes ambience {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.45;
  }

  50% {
    transform: translate3d(-5vw, 4vh, 0) scale(1.1);
    opacity: 0.9;
  }
}

@keyframes name-in {
  from {
    color: var(--ink);
  }

  to {
    color: var(--indigo);
  }
}

@keyframes gauge {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes lamp {
  0%,
  100% {
    opacity: 0.35;
    background: transparent;
    box-shadow: inset 0 0 0 1.5px rgba(226, 59, 47, 0.45);
  }

  50% {
    opacity: 1;
    background: var(--red);
    box-shadow:
      inset 0 0 0 1.5px var(--red),
      0 0 10px 1px rgba(226, 59, 47, 0.75);
  }
}

@keyframes brand-lamp {
  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

@keyframes halo {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.88);
  }

  50% {
    opacity: 0.95;
    transform: scale(1.08);
  }
}

@keyframes sheen {
  0%,
  100% {
    opacity: 0.45;
    transform: translate(0, 0);
  }

  50% {
    opacity: 1;
    transform: translate(7px, 3px);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .panel:hover .pusher,
  .panel:active .pusher {
    transform: none;
  }
}

@media print {
  *,
  *::before,
  *::after {
    animation: none !important;
  }
}

::selection {
  background: #4641d9;
  color: #fff;
}
