:root {
  --film: #101114;
  --film-text: #f8f7f4;
  --film-muted: #c9c7c4;
  --warm-light: #e7cda9;
  --press-ease: cubic-bezier(.2, .72, .24, 1);
}

body { background: var(--film); color: var(--film-text); }
body.lab-open { background: #f6f6f4; color: #191a17; }
.site-content { padding: 0; max-width: none; }
.frame { width: min(1320px, calc(100% - var(--page-edge) * 2)); margin-inline: auto; }
.masthead {
  display: flex;
  min-height: 68px;
  max-width: none;
  padding: 0 var(--page-edge);
  position: sticky;
  z-index: 5;
  top: 0;
  background: rgba(16, 17, 20, .88);
  border-bottom: 1px solid #ffffff24;
  backdrop-filter: blur(18px);
}
.masthead .brand { font-size: 31px; letter-spacing: -.065em; }
.views a {
  display: inline-flex;
  align-items: center;
  color: #c9c7c4;
  font-size: 14px;
  min-height: 44px;
  text-decoration: none;
}
.views a[aria-current="page"] { color: #fff; font-weight: 700; }
.views a:hover { color: #fff; }
.lab-open .masthead { background: rgba(246, 246, 244, .95); border-color: #d5d5d0; }
.lab-open .views a { color: #595a53; }
.lab-open .views a[aria-current="page"], .lab-open .views a:hover { color: #191a17; }
.product-view :focus-visible, .masthead :focus-visible {
  outline: 2px solid #83b9ee;
  outline-offset: 5px;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: clip;
  min-height: max(600px, calc(100svh - 68px));
  background: #101114;
  scroll-margin-top: 68px;
}
.hero-backdrop, .hero-scene, .hero-light { position: absolute; pointer-events: none; }
.hero-backdrop { inset: 0; z-index: -1; overflow: hidden; }
.hero-light {
  inset: -18%;
  background:
    radial-gradient(ellipse 40% 51% at 70% 48%, #a3856047, #9b89602a 38%, transparent 71%),
    radial-gradient(ellipse 53% 48% at 78% 69%, #54576c66, transparent 76%);
}
.hero-scene {
  width: min(103vw, 1680px);
  height: auto;
  right: clamp(-315px, -18vw, -120px);
  top: 50%;
  transform: translateY(-50%);
}
.hero-reveal img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.09) brightness(.95);
}
.hero-backdrop::after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(90deg, #101114 1%, #101114ec 17%, #10111465 42%, transparent 63%),
    linear-gradient(0deg, #101114 0%, #10111463 13%, transparent 30%, transparent 86%, #10111491);
}
.hero-copy { padding-block: 85px 108px; }
.hero-copy h1 {
  color: var(--film-text);
  margin: 0;
  font-size: clamp(56px, 8.1vw, 132px);
  line-height: 1.03;
  letter-spacing: -.035em;
  font-weight: 750;
}
.hero-copy p {
  margin: 30px 0 27px;
  color: var(--film-muted);
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 1.6;
}
.product-button, .product-view .event-story button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 99px;
  background: #f6f4ee;
  color: #1b1b1d;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms var(--press-ease), background-color 180ms var(--press-ease);
}
.product-button:active, .product-view .event-story button:active:not(:disabled) {
  transform: scale(.965);
  transition-duration: 95ms;
}
@media (hover: hover) and (pointer: fine) {
  .product-button:hover, .product-view .event-story button:hover:not(:disabled) { background: #ead8bd; }
}
.hero-caption {
  position: absolute;
  bottom: 21px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  color: #aaa9a7;
  font-size: 12px;
  border-top: 1px solid #ffffff30;
  padding-top: 13px;
}

.experience { padding-block: 102px 76px; scroll-margin-top: 70px; }
.experience > h2 {
  font-size: clamp(35px, 5.7vw, 79px);
  letter-spacing: -.06em;
  line-height: 1.11;
  font-weight: 700;
  margin: 0 0 28px;
}
.experience .presentation-toolbar { min-height: 55px; border-top: 1px solid #ffffff30; }
.experience .event-context { color: var(--film-muted); }
.experience .presentation-toolbar .text-button { color: var(--warm-light); }
.experience .presentation-stage {
  background: #1c1d22;
  border: 1px solid #ffffff18;
  border-radius: 20px;
  overflow: hidden;
}
.experience .event-story {
  min-height: 310px;
  padding: clamp(24px, 4.2vw, 58px);
}
.event-story h3 { color: var(--film-text); font-size: clamp(35px, 4.3vw, 69px); line-height: 1.1; letter-spacing: -.047em; margin: 0; }
.experience .event-state { color: var(--warm-light); margin-bottom: 15px; }
.experience [data-state="acknowledged"] .event-state { color: #b7d9c1; }
.experience .event-description { color: var(--film-muted); }
.experience .setup-notice { color: #ffc1aa; }
.product-view .event-story button.quiet-action { color: var(--film-text); border-color: #ffffff64; background: transparent; }
.product-view .event-story button.quiet-action:hover:not(:disabled) { background: #ffffff17; }
.signal-figure {
  grid-column: 6 / -1;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse, #6b647368, transparent 69%);
  overflow: hidden;
}
.signal-figure img { width: min(100%, 680px); height: auto; position: relative; }
.signal-waves { position: absolute; width: min(42%, 230px); aspect-ratio: 1; }
.signal-waves i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid #ead0a2a5;
  opacity: 0;
  scale: 1.2;
}
[data-state="received"] .signal-waves i { animation: signal-wave 1.5s var(--press-ease) both; }
[data-state="received"] .signal-waves i:nth-child(2) { animation-delay: 130ms; }
[data-state="received"] .signal-waves i:nth-child(3) { animation-delay: 260ms; }
@keyframes signal-wave {
  18% { opacity: .7; }
  100% { opacity: 0; scale: 2.3; }
}
.experience .event-steps { border-color: #ffffff42; }
.experience .event-steps li + li { border-color: #ffffff25; }
.experience .event-steps h3 { font-size: 16px; margin: 0 0 7px; }
.experience .step-index, .experience .event-steps p, .experience .connection-state { color: var(--film-muted); }
.experience .event-steps li[data-state="active"] p { color: var(--warm-light); }
.experience .event-steps li[data-state="done"] p, .experience .connection-state span[data-ready="true"] { color: #b7d9c1; }
.experience .event-steps li[data-state="active"]::after { background: var(--warm-light); }
.experience .event-steps li[data-state="done"]::after { background: #94baa5; }
#debugView { padding-block: 10px 24px; border-top: 0; }

@media (max-width: 760px) {
  .masthead { min-height: 59px; }
  .hero { min-height: max(640px, calc(100svh - 59px)); align-items: start; scroll-margin-top: 59px; }
  .hero-copy { padding-block: clamp(38px, 10vw, 74px) 0; }
  .hero-copy h1 { font-size: clamp(51px, 10.7vw, 80px); }
  .hero-copy p { margin: 20px 0 20px; }
  .hero-scene { width: min(150vw, 850px); left: 50%; right: auto; transform: translateX(-50%); top: auto; bottom: 7%; }
  .hero-light { transform: translate(-12%, 16%); }
  .hero-backdrop::after {
    background: linear-gradient(180deg, #101114 0%, #101114b3 32%, transparent 60%, transparent 79%, #101114 100%);
  }
  .experience { padding-block: 66px 52px; scroll-margin-top: 61px; }
  .experience .event-story { min-height: 0; }
  .signal-figure { grid-column: 1; }
  .signal-figure img { max-height: 255px; object-fit: contain; }
  .experience .event-steps h3 { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .product-button, .product-view .event-story button { transition: none; }
  .product-button:active, .product-view .event-story button:active:not(:disabled) { transform: none; }
  [data-state="received"] .signal-waves i { animation: none; }
  [data-state="received"] .signal-waves i:first-child { opacity: .55; }
}
