:root {
  --ink: #0a0a0a;
  --paper: #eee9df;
  --muted: #8a887f;
  --line: rgba(238, 233, 223, 0.18);
  --accent: #d99a5b;
  --pad: clamp(1.35rem, 4vw, 4.5rem);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  color: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 28%, rgba(217, 154, 91, 0.06), transparent 30%),
    linear-gradient(115deg, #080808 0%, #10100f 52%, #090909 100%);
  font-family: "Manrope", Arial, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, transparent 49.92%, rgba(255, 255, 255, 0.025) 50%, transparent 50.08%),
    linear-gradient(0deg, transparent 49.92%, rgba(255, 255, 255, 0.018) 50%, transparent 50.08%);
  content: "";
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 10;
  opacity: 0.04;
  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='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  animation: noise 0.22s steps(2) infinite;
  pointer-events: none;
}

.frame {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: 0 var(--pad);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
  border-bottom: 1px solid var(--line);
  font: 400 0.66rem/1 "DM Mono", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--paper);
  text-decoration: none;
}

.wordmark i {
  width: 1px;
  height: 1rem;
  background: var(--accent);
  transform: rotate(18deg);
}

.status {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(217, 154, 91, 0.45);
  animation: pulse 2.6s ease-out infinite;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.36fr);
  grid-template-rows: auto 1fr;
  gap: 2rem 4rem;
  align-items: end;
  padding: clamp(2.5rem, 7vh, 6.5rem) 0 clamp(2rem, 6vh, 5rem);
}

.eyebrow {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font: 300 clamp(0.62rem, 0.8vw, 0.72rem)/1.4 "DM Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-line {
  width: clamp(2rem, 6vw, 6rem);
  height: 1px;
  background: var(--line);
}

.hero-copy {
  align-self: center;
}

.kicker {
  margin: 0 0 clamp(1rem, 2vw, 1.8rem);
  color: var(--accent);
  font: 300 clamp(0.7rem, 0.85vw, 0.82rem)/1.2 "DM Mono", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 11.6vw, 10.5rem);
  font-weight: 300;
  letter-spacing: -0.065em;
  line-height: 0.77;
}

h1 span {
  margin-left: 0.46em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(238, 233, 223, 0.46);
}

.intro {
  max-width: 38rem;
  margin: clamp(2rem, 4.5vw, 4rem) 0 0 0.35rem;
  color: #b8b4aa;
  font-size: clamp(0.88rem, 1.15vw, 1.05rem);
  font-weight: 300;
  line-height: 1.85;
}

.contact-block {
  align-self: end;
  padding-bottom: 0.35rem;
}

.label {
  display: block;
  margin-bottom: 1rem;
  color: var(--muted);
  font: 300 0.62rem/1 "DM Mono", monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-block a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(238, 233, 223, 0.55);
  color: var(--paper);
  font-size: clamp(0.85rem, 1vw, 1rem);
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease;
}

.contact-block a:hover,
.contact-block a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.contact-block svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.4;
  transition: transform 180ms ease;
}

.contact-block a:hover svg,
.contact-block a:focus-visible svg {
  transform: translate(2px, -2px);
}

.timeline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.4rem;
  align-items: center;
  min-height: 68px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 300 0.58rem/1 "DM Mono", monospace;
  letter-spacing: 0.1em;
}

.timeline-meta,
.timecode {
  display: flex;
  gap: 0.8rem;
  white-space: nowrap;
}

.timeline-meta span:first-child,
.timecode span {
  color: #5d5c57;
}

.track {
  position: relative;
  display: flex;
  justify-content: space-between;
  height: 18px;
  border-top: 1px solid #41403c;
}

.track i {
  width: 1px;
  height: 5px;
  background: #41403c;
}

.playhead {
  position: absolute;
  top: -4px;
  left: 0;
  width: 1px;
  height: 12px;
  background: var(--accent);
  animation: scrub 9s cubic-bezier(0.3, 0, 0.2, 1) infinite alternate;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero .eyebrow { animation-delay: 0.1s; }
.hero .kicker { animation-delay: 0.28s; }
.hero h1 { animation-delay: 0.4s; }
.hero .intro { animation-delay: 0.58s; }
.contact-block { animation-delay: 0.72s; }

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  40% { box-shadow: 0 0 0 6px rgba(217, 154, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 154, 91, 0); }
}

@keyframes scrub {
  to { left: 100%; }
}

@keyframes noise {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(2%, -1%, 0); }
  50% { transform: translate3d(-1%, 2%, 0); }
  75% { transform: translate3d(1%, 1%, 0); }
  100% { transform: translate3d(-2%, -1%, 0); }
}

@media (max-width: 820px) {
  .topbar { min-height: 76px; }
  .status { font-size: 0; }
  .status::after { content: "In production"; font-size: 0.62rem; }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 2.5rem;
    align-items: start;
    padding-top: 2.4rem;
  }

  .eyebrow { grid-column: auto; flex-wrap: wrap; }
  .hero-copy { align-self: start; }
  h1 { font-size: clamp(3.7rem, 18vw, 7.5rem); line-height: 0.82; }
  h1 span { margin-left: 0.12em; }
  .intro { max-width: 32rem; margin-left: 0; }
  .contact-block { max-width: 28rem; }
  .timeline { grid-template-columns: auto 1fr; }
  .timecode { display: none; }
}

@media (max-width: 500px) {
  .eyebrow { gap: 0.65rem; max-width: 18rem; }
  .eyebrow-line { width: 1.4rem; }
  .intro { font-size: 0.86rem; line-height: 1.75; }
  .timeline { gap: 0.8rem; }
  .timeline-meta span:first-child { display: none; }
}

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