:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff;
  background: #000;
  --content-width: 1200px;
  --page-gutter: clamp(22px, 4vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  background: #000;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  -ms-overflow-style: none;
  overflow-x: hidden;
  background: #000;
}

.scene-layer {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.scene-canvas,
.scene-grade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene-canvas {
  opacity: 0;
  transition: opacity 900ms ease;
}

.scene-layer.is-ready .scene-canvas {
  opacity: 1;
}

.scene-grade {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 22%, transparent 72%, rgba(0, 0, 0, 0.14)),
    radial-gradient(circle at 46% 54%, transparent 0 26%, rgba(3, 4, 12, 0.08) 68%, rgba(3, 4, 12, 0.3) 100%);
}

main {
  position: relative;
  z-index: 2;
}

body:has(dialog[open]) {
  overflow: hidden;
}

button,
a {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
}

[data-text-reveal] {
  opacity: 0;
  transform: translate3d(-10px, 0, 0);
  will-change: opacity, transform;
}

[data-text-reveal].is-text-visible {
  animation: text-reveal-in 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

[data-text-reveal].is-text-reveal-complete {
  opacity: 1;
  transform: none;
  animation: none;
  will-change: auto;
}

.detail-card h3[data-text-reveal] {
  display: inline-block;
}

@keyframes text-reveal-in {
  from {
    opacity: 0;
    transform: translate3d(-10px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

img,
canvas {
  display: block;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  min-height: 0;
  padding: 18px clamp(18px, 5.4vw, 112px) 0;
  transition: background 320ms ease, backdrop-filter 320ms ease;
}

body.is-over-content .topbar {
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(16px);
}

.nav-cluster,
.brand {
  display: flex;
  align-items: center;
}

.nav-cluster {
  min-width: 0;
  gap: clamp(24px, 2.8vw, 76px);
}

.brand {
  min-width: 0;
  gap: 0;
  white-space: nowrap;
}

.brand img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  border-radius: 50%;
  object-fit: cover;
}

.brand strong {
  margin-right: 12px;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
}

.brand span {
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(13px, 0.9vw, 17px);
}

.hero-stage {
  position: relative;
  height: 100svh;
  min-height: 620px;
  background: transparent;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  border-radius: 0 0 22px 22px;
  background: transparent;
}

.hero-copy {
  position: absolute;
  z-index: 2;
  left: clamp(28px, 15.3vw, 530px);
  top: 43svh;
  width: min(880px, 58vw);
  transform: translateY(-18%);
  text-shadow: 0 4px 28px rgba(5, 7, 16, 0.28);
}

h1,
h2,
h3,
p {
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(82px, 7.45vw, 146px);
  font-weight: 390;
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.hero-copy p {
  margin: clamp(24px, 2.65vw, 52px) 0 0;
  font-size: clamp(17px, 1.38vw, 27px);
  font-weight: 390;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.fallback {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 5;
  display: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.hero-stage.is-fallback .fallback {
  display: block;
}

.content-shell {
  position: relative;
  z-index: 4;
  margin-top: -1px;
  padding: clamp(82px, 8vw, 150px) var(--page-gutter) 180px;
  background: transparent;
}

.content-mask {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.product-group {
  position: relative;
  z-index: 1;
  max-width: var(--content-width);
  margin: 0 auto;
  scroll-margin-top: 84px;
}

.protocol-group {
  margin-top: clamp(88px, 8vw, 144px);
}

.feature-product {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-copy {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
  gap: clamp(44px, 8vw, 130px);
  align-items: start;
  order: 1;
  padding: clamp(34px, 3.2vw, 58px) 0 clamp(44px, 5vw, 82px);
}

.product-copy h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 4.2vw, 74px);
  font-weight: 390;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.product-copy > div {
  padding-top: 0.5em;
}

.product-copy p,
.detail-card p,
.dialog-copy p {
  color: rgba(255, 255, 255, 0.6);
}

.product-copy p {
  margin: 0 0 20px;
  font-size: clamp(15px, 1.05vw, 19px);
  line-height: 1.42;
}

.product-copy a,
.detail-card h3 {
  font-size: clamp(14px, 1vw, 18px);
}

.product-copy a {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
}

.interactive-media {
  --media-x: 0;
  --media-y: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
  cursor: pointer;
}

.feature-media {
  order: 2;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
}

.feature-art {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(42%, 500px);
  aspect-ratio: 1;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 34px 85px rgba(0, 0, 0, 0.36);
  transform: translate3d(
    calc(-50% + var(--media-x) * 15px),
    calc(-50% + var(--media-y) * 12px),
    0
  ) rotateX(calc(var(--media-y) * -2deg)) rotateY(calc(var(--media-x) * 3deg));
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), filter 260ms ease;
}

.interactive-media:hover .feature-art,
.interactive-media:focus-visible .feature-art {
  filter: brightness(0.7);
}

.portrait-art {
  width: min(34%, 410px);
  border-radius: 46px;
}

.media-pill {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: min(520px, 52%);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px 0 20px;
  color: #16171d;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 17px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.94);
  transition: opacity 220ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.interactive-media:hover .media-pill,
.interactive-media:focus-visible .media-pill {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.media-pill-label {
  display: flex;
  align-items: center;
  font-size: clamp(18px, 2vw, 34px);
  font-weight: 520;
  letter-spacing: -0.035em;
}

.media-arrow {
  position: relative;
  width: 44px;
  height: 20px;
  flex: 0 0 auto;
  transition: transform 220ms ease;
}

.media-arrow::before {
  position: absolute;
  top: 50%;
  left: 2px;
  right: 2px;
  height: 1.5px;
  content: "";
  background: currentColor;
  border-radius: 999px;
  transform: translateY(-50%);
}

.media-arrow::after {
  position: absolute;
  top: 50%;
  right: 2px;
  width: 9px;
  height: 9px;
  content: "";
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.interactive-media:hover .media-arrow,
.interactive-media:focus-visible .media-arrow {
  transform: translateX(4px);
}

.compact-pill {
  width: min(390px, 44%);
}

.card-grid {
  order: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.2vw, 36px);
  margin-top: clamp(64px, 6vw, 112px);
}

.detail-card {
  min-width: 0;
}

.card-media {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 18px;
}

.card-media > img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
  transform: translate3d(
    calc(-50% + var(--media-x) * 10px),
    calc(-50% + var(--media-y) * 9px),
    0
  ) scale(0.98);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.card-media:hover > img {
  transform: translate3d(
    calc(-50% + var(--media-x) * 16px),
    calc(-50% + var(--media-y) * 14px),
    0
  ) scale(1.03);
}

.detail-card h3 {
  display: inline;
  margin: 0;
  font-weight: 480;
  line-height: 1.25;
}

.detail-card p {
  margin: 9px 0 0;
  font-size: clamp(13px, 0.88vw, 16px);
  line-height: 1.4;
}

.section-nav {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 14px;
  width: 190px;
  color: #17181d;
  transform: translateX(-50%);
}

.section-summary,
.section-menu {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 17px;
}

.section-summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px 0 15px;
  cursor: pointer;
}

.section-summary img {
  width: 18px;
  height: 18px;
}

.section-summary:focus-visible,
.dialog-close:focus-visible,
.interactive-media:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.section-menu {
  position: absolute;
  left: 0;
  bottom: 48px;
  display: grid;
  padding: 11px 14px 13px;
  transform-origin: bottom;
  animation: menu-in 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.section-menu[hidden] {
  display: none;
}

.section-menu a {
  padding: 4px 0;
  color: rgba(23, 24, 29, 0.72);
}

.section-menu a:hover,
.section-menu a:focus-visible {
  color: #17181d;
  text-decoration: underline;
  outline: none;
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.scroll-rail {
  position: fixed;
  z-index: 26;
  top: 68px;
  right: 5px;
  bottom: 12px;
  width: 4px;
  pointer-events: none;
}

.scroll-rail span {
  display: block;
  width: 100%;
  min-height: 28px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 99px;
  transform: translateY(var(--scroll-thumb-y, 0));
}

.media-dialog {
  position: fixed;
  width: min(1200px, calc(100vw - 48px));
  height: min(900px, calc(100svh - 48px));
  max-width: none;
  max-height: calc(100svh - 48px);
  padding: 0;
  color: #fff;
  background: #07080d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.56);
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.975);
  transform-origin: 50% 52%;
}

.media-dialog::backdrop {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  opacity: 0;
}

.media-dialog[open] {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.media-dialog[open]::backdrop {
  opacity: 1;
}

.media-dialog.is-opening {
  animation: dialog-enter 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.media-dialog.is-opening::backdrop {
  animation: dialog-backdrop-enter 360ms ease-out both;
}

.media-dialog.is-closing {
  pointer-events: none;
  animation: dialog-exit 300ms cubic-bezier(0.4, 0, 0.8, 0.2) both;
}

.media-dialog.is-closing::backdrop {
  animation: dialog-backdrop-exit 300ms ease-in both;
}

.dialog-scroll {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.58) transparent;
}

.dialog-scroll::-webkit-scrollbar {
  width: 4px;
}

.dialog-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.dialog-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.58);
  border-radius: 999px;
}

.dialog-close {
  position: absolute;
  z-index: 6;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  padding: 0;
  color: #fff;
  background: rgba(12, 15, 24, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  backdrop-filter: blur(16px) saturate(1.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.dialog-close::before,
.dialog-close::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 19px;
  height: 1.5px;
  content: "";
  background: currentColor;
  border-radius: 999px;
}

.dialog-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.dialog-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.dialog-close:hover {
  background: rgba(22, 25, 36, 0.72);
  border-color: rgba(255, 255, 255, 0.42);
  transform: scale(1.05);
}

.dialog-close:focus-visible,
.dialog-scroll-hint:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.dialog-scroll-hint {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 16px;
  width: 58px;
  height: 32px;
  padding: 0;
  color: #fff;
  background: rgba(12, 15, 24, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(16px) saturate(1.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
  transform: translateX(-50%);
  cursor: pointer;
}

.dialog-scroll-hint[hidden] {
  display: none;
}

.dialog-scroll-hint::before {
  position: absolute;
  left: 50%;
  top: 39%;
  width: 8px;
  height: 8px;
  content: "";
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
  animation: dialog-scroll-cue 1500ms ease-in-out infinite;
}

.dialog-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 46% 60%, rgba(106, 91, 187, 0.55), transparent 32%),
    linear-gradient(135deg, #321d1e, #111636 56%, #09283a);
}

.dialog-visual > img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(42%, 430px);
  border-radius: 28px;
  transform: translate(-50%, -50%);
  box-shadow: 0 32px 76px rgba(0, 0, 0, 0.4);
}

.dialog-copy {
  padding: clamp(30px, 5vw, 70px);
}

.dialog-copy .eyebrow {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.dialog-copy h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 80px);
  font-weight: 390;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.dialog-copy > p:last-child {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.5;
}

@keyframes dialog-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes dialog-exit {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.985);
  }
}

@keyframes dialog-backdrop-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dialog-backdrop-exit {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes dialog-scroll-cue {
  0%, 100% { transform: translate3d(-50%, -3px, 0) rotate(45deg); }
  50% { transform: translate3d(-50%, 1px, 0) rotate(45deg); }
}

@media (max-width: 760px) {
  :root {
    --page-gutter: 14px;
  }

  .topbar {
    min-height: 0;
    padding: 18px 18px 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(12px);
  }

  .nav-cluster {
    gap: 0;
  }

  .brand {
    gap: 0;
  }

  .brand span {
    display: none;
  }

  .brand strong {
    max-width: none;
    white-space: nowrap;
    font-size: 0.92rem;
    line-height: normal;
  }

  .hero-stage {
    height: 100svh;
    min-height: 620px;
  }

  .hero-sticky {
    min-height: 100svh;
    border-radius: 0;
  }

  .hero-copy {
    left: 20px;
    top: 54svh;
    width: calc(100% - 40px);
    transform: translateY(-20%);
  }

  h1 {
    font-size: clamp(68px, 21vw, 98px);
  }

  .hero-copy p {
    max-width: 310px;
    margin-top: 22px;
    font-size: 17px;
  }

  .content-shell {
    padding-top: 70px;
    padding-bottom: 130px;
  }

  .protocol-group {
    margin-top: 88px;
  }

  .product-copy {
    grid-template-columns: 1fr;
    gap: 18px;
    order: 1;
    padding: 0 0 34px;
  }

  .product-copy h2 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .product-copy > div {
    padding: 0;
  }

  .product-copy p {
    font-size: 16px;
  }

  .feature-media {
    order: 2;
    aspect-ratio: 4 / 3;
  }

  .feature-art {
    width: 58%;
    border-radius: 18px;
  }

  .portrait-art {
    width: 48%;
    border-radius: 26px;
  }

  .media-pill {
    width: 74%;
    min-height: 54px;
    padding: 0 15px 0 13px;
    border-radius: 13px;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  .media-pill-label {
    font-size: 18px;
  }

  .media-arrow {
    width: 34px;
    height: 18px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 42px;
    order: 3;
    margin-top: 0;
    padding-top: 34px;
  }

  .card-media {
    margin-bottom: 14px;
  }

  .detail-card h3 {
    font-size: 18px;
  }

  .detail-card p {
    font-size: 15px;
  }

  .section-nav {
    width: 210px;
  }

  .scroll-rail {
    top: 74px;
    right: 3px;
  }

  .media-dialog {
    width: calc(100vw - 20px);
    height: calc(100svh - 20px);
    max-height: calc(100svh - 20px);
    border-radius: 18px;
  }

  .dialog-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }

  .dialog-visual {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-text-reveal] {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}
