:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --ink: #f5f4f0;
  --ink-soft: rgba(245, 244, 240, 0.5);
  --ink-softer: rgba(245, 244, 240, 0.35);
  --transition-view: 0.6s ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  overflow: hidden;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.8em;
}

/* ---------- view containers ---------- */

.view {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-view);
}

body[data-state="loading"] #loader {
  opacity: 1;
  pointer-events: auto;
}

body[data-state="hero-playing"] #hero,
body[data-state="hero-ended"] #hero {
  opacity: 1;
  pointer-events: auto;
}

body[data-state="points"] #points {
  opacity: 1;
  pointer-events: auto;
}

body[data-state="contact"] #contact {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- loader ---------- */

#loader {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.atom {
  overflow: visible;
}

.comet-nucleus,
.comet-dot {
  fill: var(--ink);
}

.comet-tail {
  stroke-width: 3;
  stroke-linecap: round;
}

.tail-stop {
  stop-color: var(--ink);
}

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

#hero {
  background: var(--bg);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  outline: none;
  display: block;
}

.hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
}

/* ---------- metallic button ---------- */

.btn-metallic {
  position: relative;
  overflow: hidden;
  padding: 0.9em 2.4em;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: linear-gradient(135deg, #86868c, #eceef0 35%, #a9aaaf 62%, #d4d5d8);
  color: #17171a;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.1s ease 0.3s, transform 1.1s ease 0.3s;
}

.btn-metallic span {
  position: relative;
  z-index: 1;
}

.btn-metallic::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.95) 50%, transparent 80%);
  transform: skewX(-20deg);
  opacity: 0;
}

.btn-metallic.shine::before {
  animation: shine-sweep 1.1s ease-out 1;
}

@keyframes shine-sweep {
  0% {
    left: -60%;
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  55% {
    opacity: 0.9;
  }
  100% {
    left: 130%;
    opacity: 0;
  }
}

body[data-state="hero-ended"] #hero-cta {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .btn-metallic {
    transition: opacity 0.3s ease;
  }
  .btn-metallic.shine::before {
    animation: none;
  }
}

/* ---------- points ---------- */

#points {
  background: var(--bg);
  overflow-y: auto;
  display: flex;
  align-items: center;
  padding: 4rem 1.5rem;
}

.points-content {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.points-content h2 {
  font-weight: 200;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 2.2rem;
}

.points-list {
  list-style: none;
  margin: 0 0 2.4rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.point {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.point.revealed {
  opacity: 1;
  transform: none;
}

.point-icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.point-title {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.point-sub {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 42ch;
}

#points-cta.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .point {
    transition: opacity 0.3s ease;
  }
}

/* ---------- contact ---------- */

#contact {
  background: var(--bg);
  overflow-y: auto;
  display: flex;
  align-items: center;
  padding: 4rem 1.5rem;
}

.btn-back {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  background: none;
  border: 1px solid var(--ink-softer);
  color: var(--ink);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  font-size: 1.1rem;
  cursor: pointer;
}

.contact-grid {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-blurb h2 {
  font-weight: 200;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 1rem;
}

.contact-blurb p:not(.eyebrow) {
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 32ch;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  background: rgba(245, 244, 240, 0.06);
  border: 1px solid var(--ink-softer);
  border-radius: 8px;
  color: var(--ink);
  padding: 0.7em 0.9em;
  font-size: 0.95rem;
  font-family: inherit;
}

.field input:focus,
.field textarea:focus {
  outline: 1px solid var(--ink-soft);
}

.field-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.contact-form .btn-metallic {
  align-self: flex-start;
  opacity: 1;
  transform: none;
  margin-top: 0.5rem;
}

.form-status {
  min-height: 1.4em;
  font-size: 0.85rem;
}

.form-status[data-status="ok"] {
  color: #8fd19e;
}

.form-status[data-status="error"] {
  color: #e08a8a;
}

@media (max-width: 720px), (orientation: portrait) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  #contact {
    align-items: flex-start;
    padding-top: 6rem;
  }
  #points {
    align-items: flex-start;
    padding-top: 5rem;
    padding-bottom: 1.25rem;
  }
  .points-content h2 {
    font-size: 1.5rem;
    margin: 0 0 1rem;
  }
  .points-list {
    gap: 0.9rem;
    margin: 0 0 1.2rem;
  }
  .point-icon svg {
    width: 22px;
    height: 22px;
  }
  .point-title {
    font-size: 0.92rem;
    margin: 0 0 0.15rem;
  }
  .point-sub {
    font-size: 0.78rem;
    line-height: 1.4;
  }
  #points .btn-metallic {
    padding: 0.7em 2em;
    font-size: 0.85rem;
    margin-top: 0.2rem;
  }
}
