:root {
  --studio: #16130f;
  --panel: #1e1a14;
  --cream: #f3ead9;
  --dim: #978c79;
  --tape: #ff5a26;
  --track: #2a251d;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 10%, rgba(255, 90, 38, 0.07), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
    var(--studio);
  color: var(--cream);
  font-family: "Atkinson Hyperlegible", Verdana, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

h1,
h2,
.wordmark {
  font-family: "Bricolage Grotesque", Georgia, sans-serif;
}

/* ---------- header ---------- */

header.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.4rem clamp(1.25rem, 5vw, 2rem);
}

.wordmark {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.wordmark em {
  font-style: italic;
  font-weight: 300;
  color: var(--dim);
}

.rec {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--dim);
}

.rec i {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--tape);
  animation: blink 1.6s steps(2, start) infinite;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

/* ---------- hero ---------- */

main {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2rem);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 4rem);
  padding: clamp(2.5rem, 7vw, 5rem) 0 3rem;
}

.kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tape);
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.6rem, 7.5vw, 4.6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.h1-sub {
  font-weight: 300;
  font-style: italic;
  color: var(--dim);
  font-size: 0.62em;
}

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

.lede {
  color: var(--dim);
  font-size: 1.1rem;
  max-width: 34rem;
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease;
}

.button.primary {
  background: var(--tape);
  color: var(--studio);
}

.button.ghost {
  border: 1px solid var(--track);
  color: var(--cream);
}

.button:hover {
  transform: translateY(-2px);
}

.button.ghost:hover {
  background: var(--panel);
}

.note {
  margin: 1.5rem 0 0;
  font-size: 0.92rem;
  color: var(--dim);
}

.note strong {
  color: var(--cream);
}

a {
  color: var(--tape);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- the 10:00 ring ---------- */

.timer {
  position: relative;
  width: min(18rem, 70vw);
  aspect-ratio: 1;
  justify-self: center;
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--tape) var(--sweep, 0deg), var(--track) 0deg);
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.1rem), #000 calc(100% - 1rem));
  animation: sweep 10s linear infinite;
}

@property --sweep {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes sweep {
  to {
    --sweep: 360deg;
  }
}

.timer-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.digits {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.orless {
  font-style: italic;
  color: var(--dim);
}

/* ---------- marquee ---------- */

.marquee {
  border-top: 1px solid var(--track);
  border-bottom: 1px solid var(--track);
  padding: 0.8rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 1.5rem;
  animation: scroll 28s linear infinite;
}

.marquee-track span {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--dim);
}

.marquee-track b {
  color: var(--tape);
  font-weight: 400;
}

@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- loop steps ---------- */

.loop-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 3rem clamp(1.25rem, 5vw, 2rem);
}

.loop-steps article {
  background: var(--panel);
  border: 1px solid var(--track);
  border-radius: 18px;
  padding: 1.5rem;
}

.step-no {
  font-family: "IBM Plex Mono", monospace;
  color: var(--tape);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}

.loop-steps h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0.5rem 0 0.4rem;
}

.loop-steps p {
  margin: 0;
  color: var(--dim);
  font-size: 0.95rem;
}

/* ---------- footer ---------- */

footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem clamp(1.25rem, 5vw, 2rem) 2.5rem;
  border-top: 1px solid var(--track);
  color: var(--dim);
  font-size: 0.92rem;
}

/* ---------- motion & a11y ---------- */

.reveal {
  animation: rise 600ms ease both;
}

.hero-text .reveal:nth-child(2) { animation-delay: 80ms; }
.hero-text .lede.reveal { animation-delay: 160ms; }
.hero-text .actions.reveal { animation-delay: 240ms; }
.hero-text .note.reveal { animation-delay: 320ms; }
.timer.reveal { animation-delay: 350ms; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .ring,
  .rec i,
  .marquee-track {
    animation: none;
  }
  .ring {
    background: conic-gradient(var(--tape) 300deg, var(--track) 0deg);
  }
  .button {
    transition: none;
  }
}

@media (max-width: 46rem) {
  .hero {
    grid-template-columns: 1fr;
  }
  .timer {
    margin-top: 1rem;
  }
}
