@font-face {
  font-family: Inter;
  src: url("assets/inter-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  font-family: Inter, Arial, sans-serif;
  --film: #000;
  --film-text: #f4f5f7;
  --film-muted: #b5b7be;
  --warm-light: #dce1eb;
  --studio-panel: #111113;
  --studio-edge: #eff4ff20;
  --silver-surface: linear-gradient(150deg, rgb(230 237 248 / 8%), rgb(230 237 248 / 4.5%));
  --silver-edge: inset 0 1px 0 rgb(245 248 255 / 10%), inset 0 0 0 1px rgb(245 248 255 / 8%);
}
.masthead { background: #000f; border-bottom: 0; }
.masthead .brand { font-size: 28px; letter-spacing: -.08em; }
.views a, .views a[aria-current="page"] { font-weight: 550; }
.views a[aria-current="page"] { color: #fff; }
.hero {
  background: #000;
  min-height: max(650px, calc(100svh - 68px));
  align-items: stretch;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: clamp(26px, 4.5vh, 65px) 0 clamp(54px, 8vh, 104px);
}
.hero-copy h1 {
  text-wrap: balance;
  font-size: clamp(64px, 9.6vw, 150px);
  font-weight: 660;
  letter-spacing: -.055em;
  line-height: .92;
  text-shadow: 0 4px 30px #0008;
}
.hero-copy h1 br { display: none; }
.hero-message p {
  font-size: clamp(15px, 1.44vw, 20px);
  margin: 0 0 17px;
  color: #d8dbe1;
  text-shadow: 0 2px 15px #000;
  max-width: 39ch;
}
.hero-message { position: relative; z-index: 1; }
.hero-backdrop::after {
  background:
    linear-gradient(180deg, #0009 0%, #0002 22%, transparent 40%, transparent 72%, #0009 90%, #000 100%);
}
.hero-light {
  inset: 0;
  background: none;
}
.hero-scene {
  width: min(110vw, 1530px, 175vh);
  left: 50%;
  right: auto;
  top: 53%;
  bottom: auto;
  transform: translate(-50%, -50%);
}
.hero-drift { position: relative; }
.hero-reveal { transition: opacity .42s ease; }
.hero-reveal img { filter: grayscale(.90) contrast(1.22) brightness(.79); }
.hero-scene.has-3d .hero-reveal { opacity: 0; }
.hero-canvas { position: absolute; inset: 0; opacity: 0; transition: opacity .42s ease; }
.hero-canvas.is-ready { opacity: 1; }
.hero-canvas canvas { display: block; width: 100%; height: 100%; }
.hero-caption { border: 0; padding: 0; align-items: center; bottom: 10px; }
.hero-caption button { min-height: 44px; color: var(--film-muted); text-decoration: none; font-size: 12px; }
.hero-caption button:hover:not(:disabled) { color: var(--film-text); }
.product-button, .product-view .event-story button { font-size: 14px; font-weight: 640; background: #eef1f6; }
.product-button:hover, .product-view .event-story button:hover:not(:disabled) { background: #dce2ec; }
.product-button:hover:not(:focus-visible) { box-shadow: 0 6px 30px #dae5f625; }

.experience { position: relative; padding-block: 81px 54px; }
.experience-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.experience-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 63px);
  letter-spacing: -.049em;
  line-height: 1.04;
  font-weight: 610;
}
.mode-action {
  background: var(--silver-surface);
  box-shadow: var(--silver-edge);
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 99px;
  color: var(--film-text);
  white-space: nowrap;
}
.mode-action:hover:not(:disabled) { background: #ffffff19; }
.experience .presentation-stage, .experience .event-steps li {
  border: none;
  background: var(--silver-surface);
  box-shadow: var(--silver-edge);
}
.experience .presentation-stage {
  border-radius: 26px;
  column-gap: 0;
}
.experience .event-story { min-height: 350px; padding: clamp(24px, 4.6vw, 63px); }
.event-story h3 { font-size: clamp(34px, 3.65vw, 56px); font-weight: 610; letter-spacing: -.052em; }
.experience .event-context { margin-bottom: 10px; }
.experience .event-state {
  margin: 14px 0 0;
  font-size: 13px;
  padding-left: 15px;
  letter-spacing: 0;
  font-weight: 560;
}
.experience .event-state::before { border-radius: 50%; }
.experience [data-state="acknowledged"] .event-state { color: #f4f5f7; }
.experience .event-description { margin-block: 14px 24px; }
.experience-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.signal-figure {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: none;
  padding-bottom: 14px;
}
.detail-shot {
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  height: clamp(240px, 27vw, 390px);
  overflow: hidden;
}
.detail-shot .detail-poster {
  width: min(100%, 650px);
  height: 100%;
  object-fit: contain;
  filter: grayscale(.95) contrast(1.17) brightness(.83);
  mask-image: linear-gradient(#000 83%, transparent);
}
#detailCanvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 8% 97%, transparent);
}
#detailCanvas canvas { display: block; width: 100%; height: 100%; }
.signal-figure.has-3d .detail-poster { visibility: hidden; }
.signal-waves i { border-color: #e4edffa6; }
.detail-controls { text-align: center; padding: 0 16px 8px; }
.detail-options {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  background: rgb(230 237 248 / 6%);
  border-radius: 99px;
  box-shadow: var(--silver-edge);
  gap: 2px;
  padding: 3px;
}
.detail-options button {
  min-height: 37px;
  border-radius: 99px;
  padding: 7px 13px;
  background: transparent;
  color: var(--film-muted);
  font-size: 12px;
  transition: background-color .18s ease, transform .12s var(--press-ease);
}
.detail-options button:hover:not(:disabled) { background: #ecf2ff12; }
.detail-options button[aria-pressed="true"] { background: #ecf2ff1e; color: var(--film-text); }
.detail-options button:active { transform: scale(.96); }
.detail-controls p { margin: 9px 0 0; color: var(--film-muted); font-size: 12px; line-height: 1.4; min-height: 1.4em; }
.experience .event-steps { border: 0; gap: 10px; margin-top: 13px; }
.experience .event-steps li {
  display: block;
  min-height: 76px;
  padding: 16px 20px;
  border-radius: 15px;
}
/* All phases share one surface. The small marker is the only visual status change. */
.experience .event-steps li[data-state] p { color: var(--film-muted); }
.experience .event-steps li::after { display: none; }
.experience .event-steps li[data-state="active"]::before,
.experience .event-steps li[data-state="done"]::before {
  content: "";
  position: absolute;
  top: 15px;
  right: 14px;
  width: 5px;
  height: 5px;
  border: 1px solid #d7dce6;
  border-radius: 50%;
}
.experience .event-steps li[data-state="done"]::before { background: #d7dce6; }
.experience .event-steps h3 { font-size: 14px; font-weight: 640; }
.experience .event-steps p { font-size: 13px; }

#debugView .intro { padding: 32px 0 22px; }
#debugView .intro h1 { font-size: clamp(37px, 6vw, 76px); letter-spacing: -.052em; }
#debugView .intro p, #debugView .setup p, #debugView .status, #debugView .threshold p, #debugView .note, #debugView .feedback-detail, #debugView .placeholder {
  color: var(--film-muted);
}
#debugView .setup article, #debugView .workspace article, #debugView .log-section {
  background: var(--studio-panel);
  border: none;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px var(--studio-edge);
}
#debugView .workspace { gap: 16px; margin-top: 16px; }
#debugView .log-section { margin-top: 16px; padding: 17px 26px; }
#debugView #log, #debugView #log li, #debugView footer { border: 0; color: var(--film-muted); }
#debugView #log { margin: 5px 0; }
#debugView #log time { color: var(--film-muted); }
#debugView .text-button { color: var(--warm-light); }
#debugView .text-button:hover:not(:disabled) { color: #fff; }
#debugView .status.ok { color: #b7d9c1; }
#debugView .status.error { color: #ffc1aa; }
#debugView .targets label { border-color: #ffffff26; }
#debugView .targets label:has(input:checked) { background: #22252b; border-color: #d9e1ee48; }
#debugView input { accent-color: #d9e1ee; }
#debugView select { font: inherit; margin-top: 6px; padding: 5px 7px; background: #2a2b30; color: #fff; border: 1px solid #ffffff30; border-radius: 5px; }
#debugView .threshold label[for="triggerMode"] { margin-top: 13px; }
#debugView .category em, #debugView #level { color: var(--film-muted); }
#debugView .bar { background: #ffffff19; }
#debugView .category.target .bar span { background: #cad4e4; }
#debugView .manual button, #debugView .setup button:not(.text-button) { border: 1px solid #ffffff34; background: #323138; color: #fff; }
#debugView .lab-ring { display: block; width: 170px; height: auto; margin: 8px auto 0; }
#debugView .feedback.alerting .lab-ring { filter: drop-shadow(0 0 14px #dce9ff63); }

@media (max-width: 760px) {
  .hero { min-height: max(620px, calc(100svh - 59px)); }
  .hero-copy { padding-block: clamp(44px, 8vh, 86px) 72px; }
  .hero-copy h1 { font-size: clamp(64px, 15vw, 106px); }
  .hero-copy h1 br { display: initial; }
  .hero-scene { width: min(155vw, 920px); left: 50%; top: 56%; transform: translate(-50%, -50%); }
  .hero-light { transform: none; }
  .experience { padding-top: 60px; }
  .experience-heading { align-items: flex-start; flex-direction: column; }
  .experience .event-story { min-height: 0; }
  .detail-shot { height: clamp(190px, 56vw, 265px); }
  .detail-options button { padding-inline: 9px; }
  .experience .event-steps { gap: 6px; }
  .experience .event-steps li { padding: 11px 8px; }
  .experience .event-steps h3 { font-size: 12px; overflow-wrap: anywhere; }
  .experience .event-steps p { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-reveal, .hero-canvas, .detail-options button { transition: none; }
  .detail-options button:active { transform: none; }
}
