:root {
  color-scheme: dark;
  --ink: #111017;
  --paper: #f8f5f0;
  --muted: #aba6b3;
  --purple: #b18ceb;
  --yellow: #efc469;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}
body.intro-open { overflow: hidden; }

a { color: inherit; }
a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 5px; }
button { font: inherit; }
button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 5px; }

.site-intro[hidden] { display: none; }
.site-intro {
  position: fixed;
  z-index: 20;
  inset: 0;
  overflow: hidden;
  background: #09080e;
}
.site-intro.is-playing { animation: intro-disappear 4.8s linear both; }
.intro-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(58vmin, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(177,140,235,.5);
  border-radius: 50%;
  box-shadow: 0 0 0 12vmin rgba(177,140,235,.035), 0 0 0 24vmin rgba(239,196,105,.025);
  transform: translate(-50%, -50%);
}
.intro-orbit::before, .intro-orbit::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
}
.intro-orbit::before { transform: translate(-50%, -50%) translateY(-29vmin); }
.intro-orbit::after { transform: translate(-50%, -50%) translateY(29vmin); background: var(--purple); }
.intro-frame {
  position: absolute;
  inset: 0;
  clip-path: circle(0 at 50% 50%);
  background: #17131c;
}
.intro-frame::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: url("assets/beaverbots-worlds-robo.jpeg") center / cover no-repeat;
  filter: blur(52px) brightness(.28) saturate(1.3);
}
.is-playing .intro-frame { animation: robot-reveal 4.4s cubic-bezier(.64,.02,.26,.99) both; }
.intro-frame img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.intro-caption {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding: clamp(24px, 4vw, 64px);
  background: linear-gradient(transparent, rgba(8,6,13,.82));
  opacity: 0;
}
.is-playing .intro-caption { animation: caption-reveal 4.4s linear both; }
.intro-caption span { font-size: 12px; font-weight: 800; letter-spacing: .18em; color: var(--yellow); }
.intro-caption strong { font-size: clamp(26px, 4vw, 60px); line-height: 1; letter-spacing: -.06em; }
.intro-skip {
  position: absolute;
  top: clamp(18px, 3vw, 44px);
  right: clamp(18px, 3vw, 44px);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(17,16,23,.8);
  color: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}
.intro-skip:hover { background: #32283d; }
.intro-skip span { color: var(--yellow); font-size: 17px; }

@keyframes robot-reveal {
  0%, 7% { clip-path: circle(0 at 50% 50%); }
  15% { clip-path: circle(10px at 50% 50%); }
  45%, 64% { clip-path: circle(150vmax at 50% 50%); }
  89%, 100% { clip-path: circle(0 at 50% 50%); }
}
@keyframes caption-reveal {
  0%, 39% { opacity: 0; }
  47%, 62% { opacity: 1; }
  71%, 100% { opacity: 0; }
}
@keyframes intro-disappear {
  0%, 91% { opacity: 1; }
  100% { opacity: 0; }
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 9%, rgba(99, 62, 144, .18), transparent 31rem),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    var(--ink);
  background-size: auto, 76px 76px, 76px 76px, auto;
}

.site-header,
.hero,
.video-feature,
.robot-feature,
.next-up,
.site-footer { width: min(100% - 96px, 1450px); margin-inline: auto; }

.site-header {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 118px; height: auto; }
.header-detail, .eyebrow, figcaption, .next-up > span, .site-footer {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
}
.header-detail { color: #d0cad3; white-space: nowrap; }
.header-detail span { color: var(--purple); margin: 0 11px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(36px, 5.5vw, 92px);
  padding-block: clamp(64px, 7.5vw, 122px) clamp(70px, 7.5vw, 122px);
}

.hero-copy { max-width: 620px; position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--yellow); }
.status-light { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 5px rgba(239,196,105,.14); }
h1 {
  margin: 28px 0 26px;
  font-size: clamp(62px, 6.5vw, 116px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.085em;
}
h1 em { color: var(--purple); font-style: normal; }
h1:focus { outline: none; }
.hero-rule { display: flex; gap: 5px; margin-bottom: 31px; }
.hero-rule span { display: block; height: 5px; width: 37px; transform: skewX(-25deg); background: var(--yellow); }
.hero-rule span:nth-child(2) { background: var(--purple); }
.hero-rule span:nth-child(3) { background: rgba(255,255,255,.26); }
.lead { margin: 0 0 14px; font-size: clamp(20px, 2vw, 28px); font-weight: 700; line-height: 1.22; letter-spacing: -.035em; }
.supporting-copy { max-width: 490px; margin: 0; color: #c9c4ce; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.68; }
.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  min-width: 209px;
  min-height: 58px;
  margin-top: 35px;
  padding: 0 20px;
  border: 1px solid var(--yellow);
  background: var(--yellow);
  color: #17121b;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.contact-link:hover { background: #ffdc91; transform: translateY(-2px); }
.contact-link svg { width: 21px; height: 21px; }

.team-photo { margin: 0; min-width: 0; }
.photo-frame {
  position: relative;
  padding: 11px;
  border: 1px solid rgba(239,196,105,.75);
  background: rgba(255,255,255,.025);
  box-shadow: 24px 24px 0 rgba(177,140,235,.075);
}
.photo-frame::before, .photo-frame::after {
  content: "";
  position: absolute;
  width: 44px;
  height: 44px;
  z-index: 1;
  pointer-events: none;
}
.photo-frame::before { top: -5px; left: -5px; border-top: 5px solid var(--yellow); border-left: 5px solid var(--yellow); }
.photo-frame::after { right: -5px; bottom: -5px; border-right: 5px solid var(--yellow); border-bottom: 5px solid var(--yellow); }
.photo-frame img { display: block; width: 100%; height: auto; background: #242029; }
figcaption { display: flex; justify-content: space-between; gap: 20px; margin-top: 19px; color: #c8c0cc; }
figcaption span:first-child { color: var(--yellow); }

.video-feature { margin-bottom: clamp(90px, 9vw, 140px); }
.video-feature-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 35px;
}
.video-kicker { color: var(--yellow); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.video-feature h2 { margin: 17px 0 10px; font-size: clamp(42px, 5vw, 76px); line-height: .98; letter-spacing: -.07em; }
.video-feature p { margin: 0; color: #c9c4ce; font-size: 18px; line-height: 1.5; }
.video-feature-header a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--purple);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.video-feature-header a:hover { color: var(--yellow); border-color: var(--yellow); }
.video-feature-header a span { color: var(--purple); font-size: 19px; }
.video-stage {
  position: relative;
  width: min(100%, 1200px);
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--yellow);
  background: #110e1c;
  box-shadow: 22px 22px 0 rgba(177,140,235,.085);
}
.video-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,7,22,.08), rgba(10,7,22,.12) 55%, rgba(10,7,22,.55));
  pointer-events: none;
}
.video-stage.is-playing::after { display: none; }
.video-stage > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-stage iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  background: none;
  color: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  white-space: nowrap;
}
.video-play-disc {
  display: grid;
  place-items: center;
  width: 102px;
  aspect-ratio: 1;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  background: rgba(17,16,23,.82);
  box-shadow: 0 0 0 14px rgba(239,196,105,.14);
  color: var(--yellow);
  transition: transform .2s, background .2s;
}
.video-play-disc svg { width: 31px; height: 31px; margin-left: 5px; }
.video-play:hover .video-play-disc { transform: scale(1.08); background: #272032; }
.video-runtime {
  position: absolute;
  z-index: 1;
  right: 21px;
  bottom: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-shadow: 0 1px 6px #08050f;
}

.robot-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: stretch;
  margin-bottom: clamp(72px, 8vw, 126px);
  border: 1px solid rgba(177,140,235,.38);
  background: linear-gradient(125deg, rgba(75,48,110,.22), rgba(25,22,33,.9));
}
.robot-feature-image { position: relative; min-width: 0; overflow: hidden; background: #211d28; }
.robot-feature-image img { display: block; width: 100%; height: 100%; max-height: 590px; object-fit: cover; }
.robot-feature-image > span {
  position: absolute;
  left: 20px;
  bottom: 19px;
  padding: 9px 11px;
  background: rgba(17,16,23,.88);
  color: var(--yellow);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}
.robot-feature-copy { display: flex; flex-direction: column; align-items: start; justify-content: center; padding: clamp(35px, 5vw, 90px); }
.robot-feature-kicker { color: var(--yellow); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.robot-feature h2 { max-width: 580px; margin: 24px 0 20px; font-size: clamp(36px, 4.3vw, 68px); line-height: 1; letter-spacing: -.07em; }
.robot-feature p { max-width: 430px; margin: 0; color: #d1c9d8; font-size: 18px; line-height: 1.6; }
.replay-intro {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  margin-top: 34px;
  padding: 0 0 9px;
  border: 0;
  border-bottom: 1px solid var(--purple);
  background: none;
  color: var(--paper);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}
.replay-intro:hover { color: var(--yellow); border-bottom-color: var(--yellow); }
.replay-intro span { color: var(--purple); font-size: 19px; }

.next-up {
  display: flex;
  align-items: center;
  gap: 23px;
  min-height: 116px;
  border-top: 1px solid rgba(255,255,255,.16);
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.next-icon { color: var(--purple); font-size: 35px; line-height: 1; }
.next-up p { flex: 1; margin: 0; font-size: clamp(18px, 2vw, 25px); font-weight: 700; letter-spacing: -.04em; }
.next-up > span { color: #c8c0cc; text-align: right; }
.next-up > span span { color: var(--yellow); margin: 0 5px; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding-block: 30px 36px; color: #aaa2ae; }
.site-footer a { text-decoration: none; color: #e7e0ec; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1000px) {
  .site-header, .hero, .video-feature, .robot-feature, .next-up, .site-footer { width: min(100% - 56px, 800px); }
  .hero { grid-template-columns: 1fr; gap: 54px; padding-block: 80px; }
  .hero-copy { max-width: 710px; }
  h1 { font-size: clamp(68px, 11vw, 102px); }
  .robot-feature { grid-template-columns: 1fr; }
  .robot-feature-image img { max-height: none; height: auto; }
  .robot-feature-copy { padding: clamp(34px, 6vw, 64px); }
}

@media (max-width: 600px) {
  .site-header, .hero, .video-feature, .robot-feature, .next-up, .site-footer { width: calc(100% - 36px); }
  .site-header { min-height: 96px; }
  .brand img { width: 94px; }
  .header-detail { display: none; }
  .hero { gap: 45px; padding-block: 72px 68px; }
  .eyebrow { font-size: 10px; letter-spacing: .12em; }
  h1 { font-size: clamp(57px, 12.8vw, 75px); margin-block: 27px 25px; }
  .lead { font-size: 22px; }
  .supporting-copy { font-size: 16px; }
  .contact-link { margin-top: 30px; }
  .photo-frame { padding: 6px; box-shadow: 10px 10px 0 rgba(177,140,235,.075); }
  figcaption { font-size: 9px; letter-spacing: .1em; }
  .intro-caption { display: block; padding: 24px 18px; }
  .intro-caption span { display: block; margin-bottom: 9px; font-size: 9px; }
  .intro-caption strong { font-size: 30px; }
  .video-feature { margin-bottom: 78px; }
  .video-feature-header { display: block; margin-bottom: 22px; }
  .video-feature h2 { font-size: 44px; }
  .video-feature p { font-size: 16px; }
  .video-feature-header a { margin-top: 19px; font-size: 13px; }
  .video-stage { box-shadow: 10px 10px 0 rgba(177,140,235,.085); }
  .video-play { gap: 10px; font-size: 10px; }
  .video-play-disc { width: 64px; box-shadow: 0 0 0 8px rgba(239,196,105,.14); }
  .video-play-disc svg { width: 22px; height: 22px; }
  .video-runtime { right: 10px; bottom: 10px; font-size: 8px; letter-spacing: .09em; }
  .robot-feature { margin-bottom: 68px; }
  .robot-feature h2 { font-size: 38px; }
  .robot-feature p { font-size: 16px; }
  .robot-feature-copy { padding: 31px 23px 37px; }
  .next-up { min-height: 118px; gap: 14px; }
  .next-icon { font-size: 29px; }
  .next-up p { font-size: 18px; }
  .next-up > span { display: none; }
  .site-footer { flex-direction: column; gap: 13px; padding-block: 28px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .contact-link { transition: none; }
  .video-play-disc { transition: none; }
  .replay-intro { display: none; }
}
