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

@font-face {
  font-family: "IBM Plex Sans";
  src: url("./assets/fonts/IBMPlexSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0a09;
  --surface: #141210;
  --ink: #f2e8d0;
  --soft: #e0d6bd;
  --mute: #c4baa2;
  --amber: #e8a33d;
  --amber-line: rgba(232, 163, 61, 0.55);
  --line: rgba(242, 232, 208, 0.16);
  --max-w: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --display: "Michroma", "Eurostile", "Arial", sans-serif;
  --text: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
}

a {
  color: var(--ink);
}

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

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

.inline-link,
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.inline-link:hover,
.prose a:hover {
  color: var(--amber);
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  color: var(--amber);
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Divider: thin amber rule with tick marks */
header,
.section,
.prose h2,
.hero {
  position: relative;
}

header::after,
.section::before,
.prose h2::before {
  content: "";
  display: block;
  height: 11px;
  opacity: 0.6;
  background:
    linear-gradient(var(--amber), var(--amber)) left bottom / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--amber) 0 1px, transparent 1px 24px) left bottom / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, var(--amber) 0 1px, transparent 1px 120px) left bottom / 100% 11px no-repeat;
}

header::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.section::before {
  margin-bottom: 72px;
}

.prose h2::before {
  height: 7px;
  margin-bottom: 22px;
}

/* Header */
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  min-height: 84px;
  padding-top: 12px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--soft);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--amber);
}

.nav-links a.active {
  color: var(--ink);
  border-bottom-color: var(--amber);
}

/* Type */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 22px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: clamp(26px, 5.2vw, 52px);
  letter-spacing: -0.01em;
}

/* Hero */
.hero {
  padding: 72px 0 80px;
}

.hero-copy {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px 56px;
  align-items: start;
}

.hero-copy p {
  font-size: 18px;
  max-width: 480px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  align-items: center;
  margin-top: 28px;
}

.btn,
.soon {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--amber);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.soon {
  background: var(--amber);
  color: var(--bg);
  font-weight: 400;
}

.btn {
  background: transparent;
  color: var(--ink);
}

.btn:hover {
  background: var(--amber);
  color: var(--bg);
}

/* Live demo: dim copy + bright copy revealed behind a sweeping beam */
@property --p {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 70%;
}

.demo {
  margin-top: 52px;
}

.stage {
  --p: 70%;
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #151311 0%, var(--bg) 70%);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 8px #14120f, 0 28px 70px rgba(0, 0, 0, 0.7);
}

.layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 12.5%;
  font-size: 1cqw;
}

.layer-dim {
  opacity: 0.22;
}

.layer-bright {
  -webkit-mask-image: linear-gradient(90deg, transparent calc(var(--p) - 35%), #000 var(--p), transparent var(--p));
  mask-image: linear-gradient(90deg, transparent calc(var(--p) - 35%), #000 var(--p), transparent var(--p));
  text-shadow: 0 0 1.4cqw rgba(242, 232, 208, 0.25);
}

.d-label {
  display: flex;
  align-items: center;
  gap: 1.1cqw;
  font-size: 1.45cqw;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 3cqw;
}

.d-label::before {
  content: "";
  width: 0.45cqw;
  height: 1.8cqw;
  background: var(--amber);
}

.d-time {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1.8cqw;
  font-family: var(--display);
  font-size: 12.5cqw;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
  margin-bottom: 3.4cqw;
}

.d-ampm {
  font-family: var(--text);
  font-size: 2.6cqw;
  letter-spacing: 0.04em;
}

.d-rule {
  position: relative;
  height: 1.4cqw;
  background:
    linear-gradient(var(--amber), var(--amber)) left top / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--amber) 0 1px, transparent 1px 25%) left top / 100% 100% no-repeat,
    linear-gradient(var(--amber), var(--amber)) right top / 1px 100% no-repeat;
}

.d-meta {
  display: flex;
  justify-content: space-between;
  font-size: 2.3cqw;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 0.4cqw;
}

.beam {
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: var(--p);
  width: 2px;
  margin-left: -1px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--ink) 18%, var(--ink) 82%, transparent);
  box-shadow: 0 0 12px 1px rgba(242, 232, 208, 0.45);
}

@supports (transition-behavior: allow-discrete) {
  @media (prefers-reduced-motion: no-preference) {
    .stage {
      animation: sweep 10s linear infinite;
    }

    .layer-bright,
    .beam {
      animation: tail 10s linear infinite;
    }
  }
}

@keyframes sweep {
  from { --p: 0%; }
  to { --p: 100%; }
}

@keyframes tail {
  0%, 90% { opacity: 1; }
  100% { opacity: 0; }
}

.demo-note {
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

/* Sections */
.section {
  padding: 0 0 88px;
}

.hero + .section {
  padding-top: 0;
}

.section h2 {
  font-size: clamp(22px, 3.4vw, 34px);
  letter-spacing: -0.005em;
  margin-bottom: 20px;
  max-width: 22em;
}

.lede {
  font-size: 19px;
  max-width: 680px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 44px 40px;
  margin-top: 48px;
}

.feature {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.feature-num {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--amber);
  margin-bottom: 14px;
}

.feature h3 {
  font-size: 15px;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.feature p {
  font-size: 16px;
}

.shots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.shots-grid figure {
  margin: 0;
}

.shots-grid img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.shots-grid figcaption {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}

.soon-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
}

.fineprint {
  margin-top: 32px;
  font-size: 14px;
  color: var(--mute);
  max-width: 680px;
}

/* Prose pages */
.prose {
  padding-top: 72px;
  padding-bottom: 96px;
  max-width: calc(760px + 2 * var(--gutter));
}

.prose h1 {
  font-size: clamp(24px, 4.4vw, 40px);
  margin-bottom: 16px;
}

.prose .updated {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 40px;
}

.prose h2 {
  font-size: 17px;
  letter-spacing: 0.02em;
  margin: 48px 0 14px;
}

.prose h3 {
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--amber);
  margin: 30px 0 8px;
}

.prose p,
.prose li {
  font-size: 17px;
  margin-bottom: 14px;
}

.prose ul,
.prose ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.prose li::marker {
  color: var(--amber);
}

/* Footer */
footer {
  position: relative;
  padding: 40px 0 56px;
  font-size: 13px;
  color: var(--soft);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}

.footer-links a {
  text-decoration: none;
}

@media (max-width: 860px) {
  .hero-copy,
  .shots-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .section::before {
    margin-bottom: 56px;
  }
}

@media (max-width: 600px) {
  .nav-links {
    gap: 6px 16px;
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .stage {
    aspect-ratio: 4 / 3;
    box-shadow: 0 0 0 4px #14120f;
  }

  .layer {
    padding: 0 7%;
  }

  .d-label {
    font-size: 3.6cqw;
    gap: 2cqw;
    margin-bottom: 6cqw;
  }

  .d-label::before {
    width: 1cqw;
    height: 4cqw;
  }

  .d-time {
    font-size: 17cqw;
    gap: 2cqw;
    margin-bottom: 6cqw;
  }

  .d-ampm {
    font-size: 4.4cqw;
  }

  .d-rule {
    height: 2.4cqw;
  }

  .d-meta {
    font-size: 3.7cqw;
    margin-top: 1cqw;
  }
}
