:root {
  --ink-0: #020408;
  --ink-1: #050910;
  --ink-2: #08111c;
  --ink-3: #0c1826;
  --panel: rgba(7, 14, 24, 0.78);
  --panel-strong: rgba(6, 12, 20, 0.94);
  --line: rgba(164, 188, 216, 0.14);
  --line-strong: rgba(55, 157, 255, 0.34);
  --text: #f4f7fb;
  --text-soft: #b6c1ce;
  --text-muted: #7d8b9c;
  --blue: #0d78e8;
  --blue-bright: #45b8ff;
  --blue-deep: #064b9e;
  --gold: #c9a85f;
  --gold-soft: #e1ca93;
  --silver: #bcc7d3;
  --success: #66d4ad;
  --warning: #e7b76c;
  --danger: #ff7f86;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-blue: 0 0 70px rgba(18, 116, 224, 0.16);
  --font-display: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  --font-body: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  --shell: 1120px;
  --header-height: 72px;
  --ambient-pointer-x: 50%;
  --ambient-pointer-y: 38%;
  --ambient-intensity: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  background: var(--ink-0);
  color-scheme: dark;
  scroll-behavior: smooth;
  scrollbar-color: rgba(69, 184, 255, 0.55) var(--ink-1);
}

html.site-opening-active,
html.site-opening-active body {
  overflow: hidden;
}

body {
  isolation: isolate;
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(9, 74, 148, 0.2), transparent 34rem),
    linear-gradient(180deg, #020408 0%, #050910 52%, #020408 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: rgba(69, 184, 255, 0.28);
  color: #fff;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.site-opening {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  width: 100%;
  min-width: 280px;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #000;
  color: var(--text);
  opacity: 1;
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear;
}

.site-opening::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.68), transparent 24%, transparent 72%, rgba(0, 0, 0, 0.88)),
    radial-gradient(circle at 50% 48%, transparent 0 28%, rgba(0, 0, 0, 0.2) 58%, rgba(0, 0, 0, 0.76) 100%);
  content: "";
  pointer-events: none;
}

.site-opening::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 3px,
    rgba(97, 180, 255, 0.013) 3px 4px
  );
  content: "";
  mix-blend-mode: screen;
  opacity: 0.46;
  pointer-events: none;
}

.opening-stage {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  transition:
    filter 520ms ease,
    opacity 520ms ease,
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.opening-stage__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(4, 67, 131, 0.12), transparent 22rem),
    radial-gradient(circle at 50% 50%, transparent 0 34%, rgba(0, 0, 0, 0.72) 82%);
  opacity: 0;
  transition: opacity 850ms ease;
}

.opening-stage__grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(69, 184, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 184, 255, 0.055) 1px, transparent 1px);
  background-size: clamp(36px, 4.5vw, 68px) clamp(36px, 4.5vw, 68px);
  mask-image: radial-gradient(circle at center, #000 0 12%, transparent 69%);
  opacity: 0;
  transform: perspective(700px) rotateX(64deg) translateY(28%);
  transition: opacity 700ms ease;
}

.opening-beacon {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 320ms ease;
}

.opening-beacon::before,
.opening-beacon::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(69, 184, 255, 0.24);
  border-radius: 50%;
  content: "";
  animation: opening-beacon-wave 1.9s ease-out infinite;
}

.opening-beacon::after {
  animation-delay: 950ms;
}

.opening-beacon > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #61c5ff;
  box-shadow:
    0 0 7px rgba(97, 197, 255, 0.95),
    0 0 24px rgba(13, 120, 232, 0.86),
    0 0 54px rgba(13, 120, 232, 0.46);
  animation: opening-beacon-pulse 1.25s ease-in-out infinite;
}

.site-opening[data-phase="boot"] .opening-beacon {
  opacity: 1;
}

.opening-circuits {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0;
  transition: opacity 520ms ease;
}

.opening-circuit {
  --circuit-angle: 0deg;
  --circuit-delay: 0ms;
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(48vw, 540px);
  height: 1px;
  overflow: visible;
  background: repeating-linear-gradient(
    90deg,
    rgba(69, 184, 255, 0.58) 0 12px,
    rgba(69, 184, 255, 0.08) 12px 24px
  );
  box-shadow: 0 0 10px rgba(13, 120, 232, 0.16);
  opacity: 0.42;
  transform: rotate(var(--circuit-angle)) translateX(clamp(64px, 9vw, 128px)) scaleX(0);
  transform-origin: left center;
}

.opening-circuit::before {
  position: absolute;
  top: -4px;
  right: 18%;
  width: 9px;
  height: 9px;
  border-top: 1px solid rgba(124, 211, 255, 0.68);
  border-right: 1px solid rgba(124, 211, 255, 0.68);
  content: "";
  transform: rotate(45deg);
}

.opening-circuit::after {
  position: absolute;
  top: -2px;
  left: 100%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b7e8ff;
  box-shadow:
    0 0 8px rgba(69, 184, 255, 1),
    0 0 22px rgba(13, 120, 232, 0.8);
  content: "";
}

.opening-circuit:nth-child(1) {
  --circuit-angle: 0deg;
}

.opening-circuit:nth-child(2) {
  --circuit-angle: 45deg;
  --circuit-delay: 110ms;
}

.opening-circuit:nth-child(3) {
  --circuit-angle: 90deg;
  --circuit-delay: 220ms;
}

.opening-circuit:nth-child(4) {
  --circuit-angle: 135deg;
  --circuit-delay: 330ms;
}

.opening-circuit:nth-child(5) {
  --circuit-angle: 180deg;
  --circuit-delay: 440ms;
}

.opening-circuit:nth-child(6) {
  --circuit-angle: 225deg;
  --circuit-delay: 550ms;
}

.opening-circuit:nth-child(7) {
  --circuit-angle: 270deg;
  --circuit-delay: 660ms;
}

.opening-circuit:nth-child(8) {
  --circuit-angle: 315deg;
  --circuit-delay: 770ms;
}

.site-opening:is(
  [data-phase="connect"],
  [data-phase="analyze"],
  [data-phase="pulse"],
  [data-phase="flash"]
) .opening-circuits {
  opacity: 1;
}

.site-opening[data-phase="connect"] .opening-circuit {
  animation: opening-circuit-connect 980ms var(--circuit-delay) cubic-bezier(0.16, 1, 0.3, 1) both;
}

.site-opening:is(
  [data-phase="analyze"],
  [data-phase="pulse"],
  [data-phase="flash"]
) .opening-circuit {
  transform: rotate(var(--circuit-angle)) translateX(clamp(64px, 9vw, 128px)) scaleX(1);
}

.site-opening:is(
  [data-phase="connect"],
  [data-phase="analyze"],
  [data-phase="pulse"]
) .opening-circuit::after {
  animation: opening-circuit-flow 1.6s var(--circuit-delay) ease-in infinite;
}

.opening-glyphs {
  position: absolute;
  z-index: 4;
  inset: 0;
  opacity: 0;
  transition: opacity 420ms ease;
}

.opening-glyph {
  --glyph-delay: 0ms;
  --glyph-drift: -14px;
  position: absolute;
  width: 26px;
  height: 26px;
  color: rgba(109, 198, 255, 0.72);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px rgba(69, 184, 255, 0.58);
}

.opening-glyph::before {
  content: attr(data-glyph);
}

.opening-glyph::after {
  position: absolute;
  top: 15px;
  left: 2px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #66c8ff;
  box-shadow: 0 0 8px rgba(69, 184, 255, 0.85);
  content: "";
}

.opening-glyph:nth-child(1) {
  top: 18%;
  left: 9%;
}

.opening-glyph:nth-child(2) {
  top: 31%;
  left: 19%;
  --glyph-delay: 130ms;
  --glyph-drift: 18px;
}

.opening-glyph:nth-child(3) {
  top: 68%;
  left: 12%;
  --glyph-delay: 260ms;
}

.opening-glyph:nth-child(4) {
  top: 81%;
  left: 27%;
  --glyph-delay: 390ms;
  --glyph-drift: 20px;
}

.opening-glyph:nth-child(5) {
  top: 14%;
  left: 38%;
  --glyph-delay: 520ms;
}

.opening-glyph:nth-child(6) {
  top: 76%;
  left: 44%;
  --glyph-delay: 650ms;
  --glyph-drift: 16px;
}

.opening-glyph:nth-child(7) {
  top: 20%;
  right: 12%;
  --glyph-delay: 80ms;
}

.opening-glyph:nth-child(8) {
  top: 36%;
  right: 21%;
  --glyph-delay: 210ms;
  --glyph-drift: 18px;
}

.opening-glyph:nth-child(9) {
  top: 63%;
  right: 11%;
  --glyph-delay: 340ms;
}

.opening-glyph:nth-child(10) {
  top: 80%;
  right: 29%;
  --glyph-delay: 470ms;
  --glyph-drift: 21px;
}

.opening-glyph:nth-child(11) {
  top: 12%;
  right: 42%;
  --glyph-delay: 600ms;
}

.opening-glyph:nth-child(12) {
  top: 72%;
  right: 40%;
  --glyph-delay: 730ms;
  --glyph-drift: 17px;
}

.site-opening:is(
  [data-phase="analyze"],
  [data-phase="materialize"],
  [data-phase="scan"]
) .opening-glyphs {
  opacity: 1;
}

.site-opening:is(
  [data-phase="analyze"],
  [data-phase="materialize"],
  [data-phase="scan"]
) .opening-glyph {
  animation: opening-glyph-drift 2.7s var(--glyph-delay) ease-in-out infinite alternate;
}

.opening-waves {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: clamp(190px, 27vw, 390px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.opening-waves > span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(69, 184, 255, 0.48);
  border-radius: 50%;
  opacity: 0;
}

.opening-waves > span:nth-child(2) {
  animation-delay: 360ms;
}

.opening-waves > span:nth-child(3) {
  animation-delay: 720ms;
}

.site-opening[data-phase="pulse"] .opening-waves > span {
  animation: opening-wave-expand 1.35s ease-out infinite;
}

.opening-reactor {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: clamp(180px, 28vw, 390px);
  aspect-ratio: 1;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.38);
  transition:
    filter 520ms ease,
    opacity 620ms ease,
    transform 820ms cubic-bezier(0.16, 1, 0.3, 1);
}

.opening-reactor__ring,
.opening-reactor__core,
.opening-reactor__axis {
  position: absolute;
}

.opening-reactor__ring {
  border-radius: 50%;
}

.opening-reactor__ring--outer {
  inset: 0;
  border: 1px solid rgba(69, 184, 255, 0.28);
  background: conic-gradient(
    from 0deg,
    transparent 0 15%,
    rgba(69, 184, 255, 0.88) 15.2% 15.8%,
    transparent 16% 42%,
    rgba(69, 184, 255, 0.52) 42.2% 42.8%,
    transparent 43% 71%,
    rgba(225, 202, 147, 0.62) 71.2% 71.8%,
    transparent 72%
  );
  mask: radial-gradient(circle, transparent 75%, #000 75.5%);
}

.opening-reactor__ring--middle {
  inset: 14%;
  border: 1px dashed rgba(119, 201, 255, 0.48);
  box-shadow:
    inset 0 0 30px rgba(13, 120, 232, 0.1),
    0 0 36px rgba(13, 120, 232, 0.11);
}

.opening-reactor__ring--inner {
  inset: 30%;
  border: 1px solid rgba(225, 202, 147, 0.4);
  background: radial-gradient(circle, rgba(30, 145, 255, 0.1), transparent 68%);
  box-shadow: 0 0 28px rgba(69, 184, 255, 0.13);
}

.opening-reactor__axis {
  top: 50%;
  left: 50%;
  background: linear-gradient(90deg, transparent, rgba(69, 184, 255, 0.3), transparent);
  transform: translate(-50%, -50%);
}

.opening-reactor__axis--horizontal {
  width: 128%;
  height: 1px;
}

.opening-reactor__axis--vertical {
  width: 1px;
  height: 128%;
  background: linear-gradient(180deg, transparent, rgba(69, 184, 255, 0.3), transparent);
}

.opening-reactor__core {
  top: 50%;
  left: 50%;
  width: 17%;
  aspect-ratio: 1;
  border: 1px solid rgba(185, 232, 255, 0.76);
  border-radius: 50%;
  background: #1c9cff;
  box-shadow:
    inset 0 0 13px rgba(255, 255, 255, 0.62),
    0 0 18px rgba(69, 184, 255, 0.94),
    0 0 52px rgba(13, 120, 232, 0.72);
  transform: translate(-50%, -50%);
}

.site-opening[data-phase="connect"] .opening-reactor {
  animation: opening-reactor-connect 1s 140ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.site-opening:is(
  [data-phase="analyze"],
  [data-phase="pulse"],
  [data-phase="flash"]
) .opening-reactor {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.site-opening:is(
  [data-phase="materialize"],
  [data-phase="scan"],
  [data-phase="result"]
) .opening-reactor {
  filter: blur(1px);
  opacity: 0.4;
  transform: translate(-50%, -50%) scale(1.28);
}

.site-opening:is(
  [data-phase="connect"],
  [data-phase="analyze"],
  [data-phase="pulse"],
  [data-phase="flash"],
  [data-phase="materialize"],
  [data-phase="scan"]
) .opening-reactor__ring--outer {
  animation: opening-reactor-spin 9s linear infinite;
}

.site-opening:is(
  [data-phase="connect"],
  [data-phase="analyze"],
  [data-phase="pulse"],
  [data-phase="flash"],
  [data-phase="materialize"],
  [data-phase="scan"]
) .opening-reactor__ring--middle {
  animation: opening-reactor-spin 13s linear infinite reverse;
}

.site-opening[data-phase="pulse"] .opening-reactor__core {
  animation: opening-core-pulse 580ms ease-in-out infinite alternate;
}

.opening-specimen {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 50%;
  width: min(66vw, 470px);
  height: min(68dvh, 690px);
  opacity: 0;
  transform: translate(-50%, -47%) scale(0.76);
  transform-origin: center;
  transition:
    opacity 650ms ease,
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.opening-ampoule-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  clip-path: inset(100% 0 0);
  filter:
    brightness(1.42)
    saturate(0.45)
    contrast(1.12)
    drop-shadow(0 0 16px rgba(69, 184, 255, 0.48));
  opacity: 0;
}

.opening-energy-field {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(69, 184, 255, 0.34);
  border-radius: 50%;
  box-shadow:
    inset 0 0 60px rgba(13, 120, 232, 0.08),
    0 0 40px rgba(13, 120, 232, 0.1);
  opacity: 0;
  transform: translate(-50%, -50%);
}

.opening-energy-field--outer {
  width: 94%;
  height: 88%;
}

.opening-energy-field--inner {
  width: 73%;
  height: 74%;
  border-style: dashed;
  border-color: rgba(225, 202, 147, 0.26);
}

.opening-energy-beam {
  position: absolute;
  z-index: 1;
  top: 5%;
  bottom: 5%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(69, 184, 255, 0.66), transparent);
  box-shadow: 0 0 13px rgba(69, 184, 255, 0.42);
  opacity: 0;
}

.opening-energy-beam--left {
  left: 18%;
}

.opening-energy-beam--right {
  right: 18%;
}

.opening-hologram-scan {
  position: absolute;
  z-index: 4;
  top: 9%;
  right: 7%;
  left: 7%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #d8f4ff 18% 82%, transparent);
  box-shadow:
    0 0 8px rgba(190, 237, 255, 1),
    0 14px 32px rgba(69, 184, 255, 0.32);
  opacity: 0;
}

.site-opening[data-phase="materialize"] .opening-specimen {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.site-opening[data-phase="materialize"] .opening-ampoule-image {
  animation: opening-hologram-materialize 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.site-opening[data-phase="materialize"] .opening-energy-field {
  animation: opening-field-arrive 920ms 180ms ease both;
}

.site-opening[data-phase="materialize"] .opening-energy-beam {
  animation: opening-beam-arrive 760ms 260ms ease both;
}

.site-opening:is(
  [data-phase="scan"],
  [data-phase="result"]
) .opening-specimen {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.site-opening:is(
  [data-phase="scan"],
  [data-phase="result"]
) .opening-ampoule-image {
  clip-path: inset(0);
  filter:
    brightness(1.1)
    saturate(1.02)
    contrast(1.05)
    drop-shadow(0 42px 34px rgba(0, 0, 0, 0.66))
    drop-shadow(0 0 28px rgba(69, 184, 255, 0.28));
  opacity: 1;
}

.site-opening:is(
  [data-phase="scan"],
  [data-phase="result"]
) .opening-energy-field,
.site-opening:is(
  [data-phase="scan"],
  [data-phase="result"]
) .opening-energy-beam {
  opacity: 1;
}

.site-opening[data-phase="scan"] .opening-energy-field--outer {
  animation: opening-field-breathe 2.3s ease-in-out infinite;
}

.site-opening[data-phase="scan"] .opening-energy-field--inner {
  animation: opening-reactor-spin 15s linear infinite;
}

.site-opening[data-phase="scan"] .opening-hologram-scan {
  animation: opening-hologram-scan 1.45s ease-in-out infinite;
}

.site-opening[data-phase="result"] .opening-specimen {
  z-index: 9;
  transform: translate(-76%, -50%) scale(1.04);
}

.site-opening[data-phase="result"] .opening-ampoule-image {
  animation: opening-result-ampoule-float 5.2s ease-in-out infinite;
  will-change: transform;
}

.site-opening[data-phase="result"] .opening-energy-field {
  border-color: rgba(96, 199, 255, 0.42);
  box-shadow:
    inset 0 0 62px rgba(13, 120, 232, 0.1),
    0 0 48px rgba(13, 120, 232, 0.13);
}

.opening-flash {
  position: absolute;
  z-index: 20;
  inset: -8%;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.site-opening[data-phase="flash"] .opening-flash {
  animation: opening-white-flash 560ms ease-out both;
}

.opening-interface {
  position: absolute;
  z-index: 12;
  inset: 0;
  padding:
    max(22px, calc(env(safe-area-inset-top) + 16px))
    max(24px, calc(env(safe-area-inset-right) + 18px))
    max(22px, calc(env(safe-area-inset-bottom) + 16px))
    max(24px, calc(env(safe-area-inset-left) + 18px));
  pointer-events: none;
}

.opening-interface__top,
.opening-interface__bottom {
  position: absolute;
  right: max(24px, calc(env(safe-area-inset-right) + 18px));
  left: max(24px, calc(env(safe-area-inset-left) + 18px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.opening-interface__top {
  top: max(22px, calc(env(safe-area-inset-top) + 16px));
}

.opening-interface__bottom {
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 16px));
  color: rgba(137, 174, 207, 0.48);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: clamp(0.47rem, 1.2vw, 0.58rem);
  font-weight: 700;
  letter-spacing: 0.16em;
}

.opening-interface__brand,
.opening-interface__indicator {
  margin: 0;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: clamp(0.5rem, 1.35vw, 0.64rem);
  font-weight: 800;
  letter-spacing: 0.14em;
}

.opening-interface__brand {
  --lex-logo-text: "LEX";
  position: relative;
  isolation: isolate;
  color: var(--gold-soft);
  text-shadow: 0 0 12px rgba(225, 202, 147, 0.16);
  animation: lex-logo-initialize 1400ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.opening-interface__brand span {
  color: rgba(164, 193, 219, 0.6);
  font-weight: 600;
}

.opening-interface__bottom span:last-child {
  --lex-logo-text: "LEX PHARMA";
  position: relative;
  isolation: isolate;
  color: rgba(225, 202, 147, 0.72);
  text-shadow: 0 0 12px rgba(225, 202, 147, 0.12);
  animation: lex-logo-initialize 1400ms 180ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.opening-interface__brand::before,
.opening-interface__bottom span:last-child::before {
  position: absolute;
  z-index: -1;
  inset: -11px -16px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(225, 202, 147, 0.2), transparent 68%);
  content: "";
  filter: blur(7px);
  opacity: 0.12;
  pointer-events: none;
  animation: lex-logo-halo 9s 1400ms ease-in-out infinite;
}

.opening-interface__brand::after,
.opening-interface__bottom span:last-child::after {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  background:
    linear-gradient(
      105deg,
      transparent 28%,
      rgba(255, 248, 218, 0.96) 47%,
      rgba(225, 202, 147, 0.92) 54%,
      transparent 72%
    );
  background-position: 180% 50%;
  background-size: 320% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  content: var(--lex-logo-text);
  opacity: 0;
  pointer-events: none;
}

.site-opening[data-phase="result"] .opening-interface__brand::after,
.site-opening[data-phase="result"] .opening-interface__bottom span:last-child::after {
  animation: lex-opening-signature-sweep 1800ms 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-opening[data-phase="result"] .opening-interface__brand {
  animation:
    lex-opening-brand-ignite 1700ms cubic-bezier(0.16, 1, 0.3, 1) both,
    lex-opening-brand-breathe 3.8s 1700ms ease-in-out infinite;
}

.opening-interface__indicator {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid rgba(69, 184, 255, 0.18);
  border-radius: 999px;
  background: rgba(2, 9, 16, 0.55);
  color: rgba(210, 234, 250, 0.76);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.opening-interface__indicator > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 10px rgba(69, 184, 255, 0.8);
  animation: opening-indicator-pulse 1.5s ease-in-out infinite;
}

.opening-interface__center {
  position: absolute;
  top: clamp(82px, 13vh, 142px);
  right: 18px;
  left: 18px;
  display: grid;
  justify-items: center;
  gap: 9px;
  text-align: center;
  transition:
    opacity 320ms ease,
    transform 420ms ease;
}

.opening-phase-messages {
  min-height: 1.7em;
}

.opening-phase-message {
  display: none;
  margin: 0;
  color: #f0f8ff;
  font-family: var(--font-display);
  font-size: clamp(0.86rem, 2.4vw, 1.25rem);
  font-weight: 680;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-shadow: 0 0 22px rgba(69, 184, 255, 0.28);
  text-transform: uppercase;
}

.site-opening[data-phase="boot"] [data-opening-message="boot"],
.site-opening[data-phase="connect"] [data-opening-message="connect"],
.site-opening[data-phase="analyze"] [data-opening-message="analyze"],
.site-opening[data-phase="pulse"] [data-opening-message="pulse"],
.site-opening[data-phase="flash"] [data-opening-message="flash"],
.site-opening[data-phase="materialize"] [data-opening-message="materialize"],
.site-opening[data-phase="scan"] [data-opening-message="scan"],
.site-opening[data-phase="result"] [data-opening-message="result"],
.site-opening[data-phase="exit"] [data-opening-message="exit"],
.site-opening[data-phase="error"] [data-opening-message="error"] {
  display: block;
  animation: opening-message-arrive 440ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.opening-live-status {
  display: grid;
  max-width: 560px;
  gap: 2px;
  padding: 9px 15px;
  border: 1px solid rgba(69, 184, 255, 0.12);
  border-radius: 10px;
  background: rgba(0, 4, 9, 0.54);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

#opening-status,
#opening-detail {
  margin: 0;
}

#opening-status {
  color: rgba(187, 226, 251, 0.84);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: clamp(0.58rem, 1.7vw, 0.7rem);
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

#opening-detail {
  color: rgba(148, 177, 201, 0.72);
  font-size: clamp(0.58rem, 1.6vw, 0.68rem);
  line-height: 1.4;
}

.opening-result-panel,
.opening-error-panel {
  position: absolute;
  z-index: 18;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 440ms ease,
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 440ms;
}

.opening-result-panel {
  isolation: isolate;
  top: 50%;
  right: clamp(28px, 7vw, 120px);
  overflow: hidden;
  width: min(38vw, 460px);
  border: 1px solid rgba(103, 196, 245, 0.24);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 4%, rgba(201, 168, 95, 0.1), transparent 31%),
    linear-gradient(128deg, rgba(13, 120, 232, 0.11), transparent 42%),
    linear-gradient(155deg, rgba(8, 18, 29, 0.97), rgba(1, 5, 9, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.018),
    inset 0 -36px 70px rgba(0, 0, 0, 0.22),
    0 32px 96px rgba(0, 0, 0, 0.72),
    0 0 42px rgba(13, 120, 232, 0.08);
  transform: translateY(-50%);
  transition:
    opacity 440ms ease,
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 440ms;
  -webkit-backdrop-filter: blur(24px) saturate(1.08);
  backdrop-filter: blur(24px) saturate(1.08);
}

.opening-result-panel::before,
.opening-result-panel::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.opening-result-panel::before {
  inset: 1px;
  border: 1px solid rgba(153, 220, 255, 0.055);
  border-radius: 20px;
}

.opening-result-panel::after {
  top: -1px;
  left: 30px;
  width: 82px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(225, 202, 147, 0.88), transparent);
  box-shadow: 0 0 12px rgba(201, 168, 95, 0.24);
}

.opening-result-panel__content {
  display: grid;
  gap: 15px;
  padding: 24px 25px 22px;
  opacity: 0;
  transform: translateY(12px) scale(0.985);
}

.opening-result-panel__eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: rgba(170, 218, 246, 0.7);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.opening-result-panel__signal {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow:
    0 0 0 4px rgba(69, 184, 255, 0.06),
    0 0 13px rgba(69, 184, 255, 0.72);
}

.opening-result-panel__identity {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
}

.opening-result-panel__seal {
  position: relative;
  display: grid;
  width: 70px;
  aspect-ratio: 1;
  place-items: center;
  padding: 1px;
  border-radius: 50%;
  background: conic-gradient(
    from 35deg,
    rgba(111, 207, 255, 0.92),
    rgba(69, 184, 255, 0.18) 31%,
    rgba(225, 202, 147, 0.86) 54%,
    rgba(69, 184, 255, 0.22) 76%,
    rgba(111, 207, 255, 0.92)
  );
  box-shadow:
    0 0 0 5px rgba(69, 184, 255, 0.025),
    0 14px 34px rgba(0, 0, 0, 0.38),
    0 0 20px rgba(69, 184, 255, 0.08);
}

.opening-result-panel__seal::before {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(157, 218, 249, 0.14);
  border-radius: inherit;
  content: "";
}

.opening-result-panel__seal::after {
  position: absolute;
  inset: -5px;
  padding: 1px;
  border-radius: inherit;
  background:
    conic-gradient(
      from 0deg,
      transparent 0 19%,
      rgba(113, 211, 255, 0.88) 20% 23%,
      transparent 24% 55%,
      rgba(225, 202, 147, 0.92) 56% 59%,
      transparent 60% 86%,
      rgba(113, 211, 255, 0.62) 87% 90%,
      transparent 91%
    );
  content: "";
  opacity: 0.74;
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.opening-result-panel__seal-core {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: inherit;
  background:
    radial-gradient(circle at 35% 28%, rgba(69, 184, 255, 0.12), transparent 38%),
    #030a11;
  color: #dff4ff;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
}

.opening-result-panel__copy {
  min-width: 0;
}

.opening-result-panel__kicker {
  margin: 0 0 6px;
  color: rgba(201, 168, 95, 0.82);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.5rem;
  font-weight: 760;
  letter-spacing: 0.16em;
  line-height: 1.35;
}

.opening-result-panel h2 {
  margin: 0;
  color: #eef8ff;
  font-family: var(--font-display);
  font-size: clamp(1.16rem, 2.5vw, 1.62rem);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.opening-result-panel__verdict {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  padding: 10px 12px;
  border-left: 2px solid rgba(101, 203, 255, 0.72);
  border-radius: 0 10px 10px 0;
  background: linear-gradient(90deg, rgba(13, 120, 232, 0.12), rgba(13, 120, 232, 0.025));
  color: #dff4ff;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.67rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.opening-result-panel__verdict::after {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(172, 228, 255, 0.32), transparent);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-135%) skewX(-16deg);
}

.opening-result-panel__note {
  margin: 0;
  color: rgba(157, 185, 207, 0.72);
  font-size: 0.63rem;
  line-height: 1.55;
}

.opening-result-panel__assurance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(142, 205, 239, 0.08);
  border-radius: 10px;
  background: rgba(148, 206, 238, 0.025);
}

.opening-result-panel__assurance span {
  display: grid;
  min-height: 24px;
  place-items: center;
  color: rgba(157, 190, 214, 0.62);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.44rem;
  font-weight: 740;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
}

.site-opening[data-phase="result"] .opening-result-panel {
  visibility: visible;
  opacity: 1;
  transform: translateY(-50%);
  transition-delay: 0s;
}

.site-opening[data-phase="result"] .opening-result-panel__content {
  animation: opening-result-content-enter 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-opening[data-phase="result"] .opening-result-panel__signal {
  animation: opening-result-signal-pulse 2.2s 720ms ease-in-out infinite;
}

.site-opening[data-phase="result"] .opening-result-panel__seal::after {
  animation: opening-result-signature-orbit 7.6s 520ms linear infinite;
}

.site-opening[data-phase="result"] .opening-result-panel__verdict::after {
  animation: opening-result-verdict-trace 4.8s 960ms cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes opening-result-content-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lex-opening-signature-sweep {
  0% {
    background-position: 180% 50%;
    opacity: 0;
  }

  20% {
    opacity: 0.92;
  }

  78% {
    background-position: -80% 50%;
    opacity: 0.92;
  }

  100% {
    background-position: -80% 50%;
    opacity: 0;
  }
}

@keyframes lex-opening-brand-ignite {
  0% {
    filter: brightness(0.82) saturate(0.78);
    opacity: 0.58;
    transform: translateY(2px) scale(0.97);
  }

  52% {
    filter: brightness(1.82) saturate(1.24) drop-shadow(0 0 11px rgba(225, 202, 147, 0.54));
    opacity: 1;
    transform: translateY(0) scale(1.045);
  }

  100% {
    filter: brightness(1.08) saturate(1.06);
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lex-opening-brand-breathe {
  0%,
  100% {
    filter: brightness(1.02) saturate(1);
  }

  50% {
    filter: brightness(1.22) saturate(1.12) drop-shadow(0 0 7px rgba(225, 202, 147, 0.34));
  }
}

@keyframes opening-result-ampoule-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes opening-result-signal-pulse {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(0.88);
  }

  50% {
    opacity: 1;
    transform: scale(1.16);
  }
}

@keyframes opening-result-signature-orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes opening-result-verdict-trace {
  0%,
  66%,
  100% {
    opacity: 0;
    transform: translateX(-135%) skewX(-16deg);
  }

  72% {
    opacity: 0.72;
  }

  90% {
    opacity: 0.72;
    transform: translateX(470%) skewX(-16deg);
  }

  96% {
    opacity: 0;
    transform: translateX(470%) skewX(-16deg);
  }
}

@keyframes opening-auth-title-lustre {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes lex-logo-initialize {
  0% {
    filter: brightness(0.86) saturate(0.82);
    opacity: 0.62;
  }

  56% {
    filter: brightness(1.62) saturate(1.2) drop-shadow(0 0 8px rgba(225, 202, 147, 0.48));
    opacity: 1;
  }

  100% {
    filter: brightness(1) saturate(1);
    opacity: 1;
  }
}

@keyframes lex-logo-halo {
  0%,
  100% {
    opacity: 0.09;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.2;
    transform: scale(1.04);
  }
}

@keyframes lex-logo-metallic-sheen {
  0%,
  76%,
  100% {
    background-position: 180% 50%;
    opacity: 0;
  }

  80% {
    opacity: 0.78;
  }

  91% {
    background-position: -80% 50%;
    opacity: 0.78;
  }

  95% {
    background-position: -80% 50%;
    opacity: 0;
  }
}

@keyframes lex-brand-energy-trace {
  0%,
  72%,
  100% {
    opacity: 0;
    transform: translateX(-12%) scaleX(0.08);
  }

  78% {
    opacity: 0.56;
  }

  90% {
    opacity: 0.82;
    transform: translateX(0) scaleX(1);
  }

  95% {
    opacity: 0;
    transform: translateX(0) scaleX(1);
  }
}

@keyframes lex-brand-orbit {
  0% {
    opacity: 0.16;
    transform: rotate(0deg) scale(0.985);
  }

  50% {
    opacity: 0.58;
    transform: rotate(180deg) scale(1.015);
  }

  100% {
    opacity: 0.16;
    transform: rotate(360deg) scale(0.985);
  }
}

@keyframes lex-footer-signature-line {
  0%,
  68%,
  100% {
    opacity: 0;
    transform: scaleX(0.08);
  }

  76% {
    opacity: 0.5;
  }

  90% {
    opacity: 0.82;
    transform: scaleX(1);
  }

  96% {
    opacity: 0;
    transform: scaleX(1);
  }
}

.site-opening[data-phase="result"] .opening-interface__center {
  opacity: 0;
  transform: translateY(-8px);
}

.site-opening[data-result-state="authenticated"] .opening-stage__grid {
  background-image:
    linear-gradient(rgba(102, 212, 173, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 212, 173, 0.055) 1px, transparent 1px);
}

.site-opening[data-result-state="authenticated"] .opening-reactor__ring,
.site-opening[data-result-state="authenticated"] .opening-energy-field {
  border-color: rgba(102, 212, 173, 0.64);
  box-shadow:
    inset 0 0 24px rgba(102, 212, 173, 0.14),
    0 0 36px rgba(102, 212, 173, 0.2);
}

.site-opening[data-result-state="authenticated"] .opening-reactor__core,
.site-opening[data-result-state="authenticated"] .opening-result-panel__signal {
  background: #66d4ad;
  box-shadow:
    0 0 18px rgba(102, 212, 173, 0.82),
    0 0 54px rgba(102, 212, 173, 0.42);
}

.opening-result-panel[data-result="authenticated"] {
  border-color: rgba(102, 212, 173, 0.4);
  background:
    radial-gradient(circle at 88% 4%, rgba(225, 202, 147, 0.12), transparent 31%),
    linear-gradient(132deg, rgba(31, 116, 91, 0.2), transparent 48%),
    linear-gradient(155deg, rgba(5, 18, 17, 0.98), rgba(1, 7, 7, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.065),
    inset 0 0 52px rgba(102, 212, 173, 0.05),
    0 34px 100px rgba(0, 0, 0, 0.76),
    0 0 46px rgba(102, 212, 173, 0.09);
}

.opening-result-panel[data-result="authenticated"]::after {
  background: linear-gradient(90deg, transparent, rgba(225, 202, 147, 0.94), transparent);
}

.opening-result-panel[data-result="authenticated"] .opening-result-panel__signal {
  background: #66d4ad;
  box-shadow:
    0 0 0 4px rgba(102, 212, 173, 0.07),
    0 0 15px rgba(102, 212, 173, 0.72);
}

.opening-result-panel[data-result="authenticated"] .opening-result-panel__seal {
  background: conic-gradient(
    from 35deg,
    rgba(102, 212, 173, 0.96),
    rgba(102, 212, 173, 0.22) 31%,
    rgba(225, 202, 147, 0.94) 55%,
    rgba(102, 212, 173, 0.24) 77%,
    rgba(102, 212, 173, 0.96)
  );
  box-shadow:
    0 0 0 5px rgba(102, 212, 173, 0.025),
    0 14px 34px rgba(0, 0, 0, 0.4),
    0 0 22px rgba(102, 212, 173, 0.1);
}

.opening-result-panel[data-result="authenticated"] .opening-result-panel__seal::after {
  background:
    conic-gradient(
      from 0deg,
      transparent 0 15%,
      rgba(102, 212, 173, 0.98) 16% 21%,
      transparent 22% 48%,
      rgba(246, 226, 174, 0.98) 49% 54%,
      transparent 55% 78%,
      rgba(102, 212, 173, 0.76) 79% 84%,
      transparent 85%
    );
  opacity: 0.96;
}

.opening-result-panel[data-result="authenticated"] .opening-result-panel__seal-core {
  background:
    radial-gradient(circle at 35% 28%, rgba(102, 212, 173, 0.13), transparent 40%),
    #030c0b;
  color: #f2e8ca;
}

.opening-result-panel[data-result="authenticated"] .opening-result-panel__kicker {
  color: rgba(225, 202, 147, 0.9);
}

.opening-result-panel[data-result="neutral"] h2 {
  background:
    linear-gradient(
      110deg,
      #effff9 0%,
      #79dfba 38%,
      #efd99f 56%,
      #baf1d9 74%,
      #effff9 100%
    );
  background-position: 0% 50%;
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(102, 212, 173, 0.12));
  animation: opening-auth-title-lustre 5.6s 900ms ease-in-out infinite;
}

.opening-result-panel[data-result="authenticated"] h2 {
  background:
    linear-gradient(
      110deg,
      #effff9 0%,
      #78e5bd 38%,
      #f3dfaa 56%,
      #b7f5dc 74%,
      #effff9 100%
    );
  background-position: 0% 50%;
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(102, 212, 173, 0.14));
  animation: opening-auth-title-lustre 5.6s 900ms ease-in-out infinite;
}

.opening-result-panel[data-result="authenticated"] .opening-result-panel__verdict {
  border-left-color: rgba(225, 202, 147, 0.86);
  background: linear-gradient(90deg, rgba(40, 143, 111, 0.2), rgba(40, 143, 111, 0.035));
  color: #cffff0;
}

.opening-result-panel[data-result="authenticated"] .opening-result-panel__verdict::after {
  background: linear-gradient(90deg, transparent, rgba(133, 244, 204, 0.46), transparent);
}

.opening-result-panel[data-result="authenticated"] .opening-result-panel__assurance {
  border-color: rgba(102, 212, 173, 0.1);
  background: rgba(102, 212, 173, 0.025);
}

.opening-error-panel {
  top: 50%;
  left: 50%;
  display: grid;
  width: min(calc(100% - 36px), 440px);
  justify-items: center;
  gap: 9px;
  padding: 28px 24px;
  border: 1px solid rgba(255, 127, 134, 0.32);
  border-radius: 18px;
  background: rgba(9, 4, 7, 0.92);
  box-shadow:
    inset 0 0 42px rgba(255, 127, 134, 0.04),
    0 28px 90px rgba(0, 0, 0, 0.72);
  text-align: center;
  transform: translate(-50%, -44%) scale(0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.opening-error-panel__mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 3px;
  border: 1px solid rgba(255, 127, 134, 0.48);
  border-radius: 50%;
  color: var(--danger);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-weight: 900;
}

.opening-error-panel strong {
  color: #fff1f2;
  font-family: var(--font-display);
  font-size: 1.06rem;
}

.opening-error-panel > span:last-child {
  color: rgba(221, 191, 194, 0.76);
  font-size: 0.76rem;
}

.site-opening[data-phase="error"] .opening-error-panel {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.site-opening[data-phase="error"] .opening-stage {
  filter: grayscale(0.75) blur(2px);
  opacity: 0.2;
  transform: scale(1.02);
}

.site-opening[data-phase="error"] .opening-interface__center {
  opacity: 0;
}

.site-opening:is(
  [data-phase="connect"],
  [data-phase="analyze"],
  [data-phase="pulse"],
  [data-phase="flash"],
  [data-phase="materialize"],
  [data-phase="scan"],
  [data-phase="result"]
) .opening-stage__vignette {
  opacity: 1;
}

.site-opening:is(
  [data-phase="analyze"],
  [data-phase="pulse"],
  [data-phase="materialize"],
  [data-phase="scan"]
) .opening-stage__grid {
  opacity: 0.34;
}

.site-opening[data-phase="exit"],
.site-opening.is-leaving,
.site-opening[data-state="leaving"],
.site-opening[data-state="complete"] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 720ms;
}

.site-opening[data-phase="exit"] .opening-stage {
  transform: scale(1.055);
}

@keyframes opening-beacon-wave {
  0% {
    opacity: 0.7;
    transform: scale(0.18);
  }

  100% {
    opacity: 0;
    transform: scale(1.16);
  }
}

@keyframes opening-beacon-pulse {
  50% {
    opacity: 0.56;
    transform: scale(0.78);
  }
}

@keyframes opening-circuit-connect {
  from {
    opacity: 0;
    transform: rotate(var(--circuit-angle)) translateX(clamp(64px, 9vw, 128px)) scaleX(0);
  }

  to {
    opacity: 0.42;
    transform: rotate(var(--circuit-angle)) translateX(clamp(64px, 9vw, 128px)) scaleX(1);
  }
}

@keyframes opening-circuit-flow {
  0% {
    left: 100%;
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  88% {
    opacity: 1;
  }

  100% {
    left: 0;
    opacity: 0;
  }
}

@keyframes opening-glyph-drift {
  from {
    opacity: 0.25;
    transform: translateY(0);
  }

  to {
    opacity: 0.92;
    transform: translateY(var(--glyph-drift));
  }
}

@keyframes opening-wave-expand {
  from {
    opacity: 0.78;
    transform: scale(0.38);
  }

  to {
    opacity: 0;
    transform: scale(2.25);
  }
}

@keyframes opening-reactor-connect {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.24) rotate(-12deg);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0);
  }
}

@keyframes opening-reactor-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes opening-core-pulse {
  from {
    box-shadow:
      inset 0 0 13px rgba(255, 255, 255, 0.5),
      0 0 18px rgba(69, 184, 255, 0.72),
      0 0 42px rgba(13, 120, 232, 0.52);
    transform: translate(-50%, -50%) scale(0.82);
  }

  to {
    box-shadow:
      inset 0 0 18px rgba(255, 255, 255, 0.78),
      0 0 28px rgba(130, 216, 255, 1),
      0 0 78px rgba(13, 120, 232, 0.84);
    transform: translate(-50%, -50%) scale(1.22);
  }
}

@keyframes opening-hologram-materialize {
  0% {
    clip-path: inset(100% 0 0);
    filter:
      brightness(2)
      saturate(0)
      contrast(1.3)
      drop-shadow(0 0 24px rgba(69, 184, 255, 0.82));
    opacity: 0;
    transform: translateY(16px) scaleX(0.94);
  }

  28% {
    opacity: 0.88;
  }

  70% {
    clip-path: inset(5% 0 0);
    filter:
      brightness(1.45)
      saturate(0.45)
      contrast(1.12)
      drop-shadow(0 0 30px rgba(69, 184, 255, 0.56));
  }

  100% {
    clip-path: inset(0);
    filter:
      brightness(1.03)
      saturate(0.92)
      contrast(1.02)
      drop-shadow(0 34px 28px rgba(0, 0, 0, 0.62))
      drop-shadow(0 0 18px rgba(69, 184, 255, 0.2));
    opacity: 1;
    transform: translateY(0) scaleX(1);
  }
}

@keyframes opening-field-arrive {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes opening-beam-arrive {
  from {
    opacity: 0;
    transform: scaleY(0.2);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes opening-field-breathe {
  0%,
  100% {
    box-shadow:
      inset 0 0 50px rgba(13, 120, 232, 0.06),
      0 0 34px rgba(13, 120, 232, 0.08);
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.98);
  }

  50% {
    box-shadow:
      inset 0 0 74px rgba(13, 120, 232, 0.12),
      0 0 58px rgba(13, 120, 232, 0.18);
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.025);
  }
}

@keyframes opening-hologram-scan {
  0%,
  100% {
    top: 9%;
    opacity: 0.12;
  }

  12%,
  86% {
    opacity: 0.96;
  }

  50% {
    top: 88%;
    opacity: 1;
  }
}

@keyframes opening-white-flash {
  0%,
  100% {
    opacity: 0;
  }

  34% {
    opacity: 0.96;
  }

  56% {
    opacity: 0.52;
  }
}

@keyframes opening-indicator-pulse {
  50% {
    opacity: 0.36;
    transform: scale(0.78);
  }
}

@keyframes opening-message-arrive {
  from {
    filter: blur(6px);
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .opening-interface {
    padding:
      max(18px, calc(env(safe-area-inset-top) + 12px))
      max(18px, calc(env(safe-area-inset-right) + 12px))
      max(18px, calc(env(safe-area-inset-bottom) + 12px))
      max(18px, calc(env(safe-area-inset-left) + 12px));
  }

  .opening-interface__top,
  .opening-interface__bottom {
    right: max(18px, calc(env(safe-area-inset-right) + 12px));
    left: max(18px, calc(env(safe-area-inset-left) + 12px));
  }

  .opening-interface__top {
    top: max(18px, calc(env(safe-area-inset-top) + 12px));
  }

  .opening-interface__bottom {
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
  }

  .opening-interface__brand span {
    display: none;
  }

  .opening-interface__indicator {
    min-height: 29px;
    padding-inline: 9px;
    letter-spacing: 0.08em;
  }

  .opening-interface__center {
    top: clamp(76px, 11vh, 104px);
  }

  .opening-phase-message {
    max-width: min(90vw, 360px);
    font-size: clamp(0.72rem, 3.4vw, 0.94rem);
    letter-spacing: 0.1em;
  }

  .opening-live-status {
    max-width: min(88vw, 430px);
    padding: 7px 11px;
  }

  .opening-reactor {
    width: clamp(178px, 64vw, 300px);
  }

  .opening-circuit {
    width: 62vw;
  }

  .opening-glyph:nth-child(5),
  .opening-glyph:nth-child(6),
  .opening-glyph:nth-child(11),
  .opening-glyph:nth-child(12) {
    display: none;
  }

  .opening-specimen {
    width: min(88vw, 390px);
    height: min(61dvh, 580px);
  }

  .site-opening[data-phase="result"] .opening-specimen {
    top: 39%;
    opacity: 0.52;
    transform: translate(-50%, -50%) scale(0.74);
  }

  .opening-result-panel {
    top: auto;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(48px, calc(env(safe-area-inset-bottom) + 42px));
    left: max(18px, env(safe-area-inset-left));
    width: auto;
    border-radius: 17px;
    transform: none;
  }

  .site-opening[data-phase="result"] .opening-result-panel {
    transform: none;
  }

  .opening-result-panel::before {
    border-radius: 15px;
  }

  .opening-result-panel::after {
    left: 22px;
    width: 64px;
  }

  .opening-result-panel__content {
    gap: 10px;
    padding: 14px 15px 13px;
  }

  .opening-result-panel__eyebrow {
    font-size: 0.46rem;
    letter-spacing: 0.17em;
  }

  .opening-result-panel__identity {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
  }

  .opening-result-panel__seal {
    width: 52px;
    box-shadow:
      0 0 0 4px rgba(69, 184, 255, 0.02),
      0 10px 24px rgba(0, 0, 0, 0.34);
  }

  .opening-result-panel__seal::before {
    inset: 6px;
  }

  .opening-result-panel__seal-core {
    font-size: 0.68rem;
  }

  .opening-result-panel__kicker {
    margin-bottom: 4px;
    font-size: 0.43rem;
    letter-spacing: 0.13em;
  }

  .opening-result-panel h2 {
    font-size: clamp(0.94rem, 4.4vw, 1.16rem);
    line-height: 1.05;
  }

  .opening-result-panel__verdict {
    padding: 8px 10px;
    border-radius: 0 8px 8px 0;
    font-size: 0.57rem;
    letter-spacing: 0.065em;
  }

  .opening-result-panel__note {
    font-size: 0.55rem;
    line-height: 1.42;
  }

  .opening-result-panel__assurance {
    gap: 3px;
    padding: 3px;
    border-radius: 8px;
  }

  .opening-result-panel__assurance span {
    min-height: 20px;
    font-size: 0.37rem;
    letter-spacing: 0.055em;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .opening-interface__center {
    top: 54px;
  }

  .opening-live-status {
    display: none;
  }

  .opening-reactor {
    width: min(48vh, 240px);
  }

  .opening-specimen {
    width: min(45vw, 320px);
    height: 72dvh;
  }

  .opening-result-panel {
    right: max(28px, calc(env(safe-area-inset-right) + 18px));
    bottom: auto;
    left: auto;
    width: min(39vw, 390px);
  }

  .opening-result-panel__content {
    gap: 9px;
    padding: 12px 14px;
  }

  .opening-result-panel__identity {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 11px;
  }

  .opening-result-panel__seal {
    width: 48px;
  }

  .site-opening[data-phase="result"] .opening-result-panel {
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .opening-beacon::before,
  .opening-beacon::after,
  .opening-beacon > span,
  .opening-circuit,
  .opening-circuit::after,
  .opening-glyph,
  .opening-waves > span,
  .opening-reactor,
  .opening-reactor__ring,
  .opening-reactor__core,
  .opening-ampoule-image,
  .opening-energy-field,
  .opening-energy-beam,
  .opening-hologram-scan,
  .opening-flash,
  .opening-interface__indicator > span,
  .opening-interface__brand,
  .opening-interface__brand::before,
  .opening-interface__brand::after,
  .opening-interface__bottom span:last-child,
  .opening-interface__bottom span:last-child::before,
  .opening-interface__bottom span:last-child::after,
  .opening-phase-message,
  .opening-result-panel__signal,
  .opening-result-panel__seal::after,
  .opening-result-panel__verdict::after,
  .opening-result-panel[data-result="authenticated"] h2,
  .opening-result-panel__content {
    animation: none !important;
  }

  .site-opening[data-phase="result"] .opening-result-panel__content {
    opacity: 1;
    transform: none;
  }

  .opening-glyphs,
  .opening-waves,
  .opening-hologram-scan,
  .opening-flash {
    display: none;
  }

  .site-opening[data-phase="connect"] .opening-circuit,
  .site-opening:is(
    [data-phase="analyze"],
    [data-phase="pulse"],
    [data-phase="flash"]
  ) .opening-circuit {
    opacity: 0.28;
    transform: rotate(var(--circuit-angle)) translateX(clamp(64px, 9vw, 128px)) scaleX(1);
  }

  .site-opening[data-phase="connect"] .opening-reactor,
  .site-opening:is(
    [data-phase="analyze"],
    [data-phase="pulse"],
    [data-phase="flash"]
  ) .opening-reactor {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  .site-opening[data-phase="materialize"] .opening-ampoule-image {
    clip-path: inset(0);
    filter:
      brightness(1.03)
      saturate(0.92)
      drop-shadow(0 34px 28px rgba(0, 0, 0, 0.62));
    opacity: 1;
  }
}

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text);
  color: var(--ink-0);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 32px), var(--shell));
  margin-inline: auto;
}

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

.ambient-field {
  contain: strict;
  opacity: 0;
  transition: opacity 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}

html.site-opening-complete .ambient-field {
  opacity: 1;
}

.ambient-field::before,
.ambient-field::after {
  position: absolute;
  inset: -18%;
  content: "";
  pointer-events: none;
}

.ambient-field::before {
  background:
    radial-gradient(
      circle at var(--ambient-pointer-x) var(--ambient-pointer-y),
      rgba(180, 227, 255, calc(var(--ambient-intensity) * 0.115)) 0,
      rgba(42, 151, 235, calc(var(--ambient-intensity) * 0.08)) 10rem,
      transparent 31rem
    ),
    radial-gradient(circle at 76% 18%, rgba(11, 92, 173, 0.13), transparent 32rem),
    radial-gradient(circle at 18% 76%, rgba(201, 168, 95, 0.045), transparent 28rem);
  opacity: 0.72;
  transform: translate3d(0, 0, 0);
}

.ambient-field::after {
  background:
    conic-gradient(
      from 208deg at 50% 48%,
      transparent 0 21%,
      rgba(72, 183, 255, 0.035) 27%,
      transparent 34% 71%,
      rgba(201, 168, 95, 0.022) 78%,
      transparent 84%
    );
  opacity: 0.62;
  transform: translate3d(0, 0, 0) scale(1.08);
  animation: ambient-field-breathe 18s cubic-bezier(0.37, 0, 0.23, 1) infinite alternate;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform, opacity;
}

.ambient-orb--blue {
  top: 8vh;
  right: -14rem;
  width: min(42rem, 78vw);
  height: min(42rem, 78vw);
  background: rgba(7, 109, 214, 0.82);
  opacity: 0.16;
  animation: ambient-orb-blue-drift 21s cubic-bezier(0.37, 0, 0.23, 1) infinite alternate;
}

.ambient-orb--gold {
  top: 62vh;
  left: -16rem;
  width: min(36rem, 74vw);
  height: min(36rem, 74vw);
  background: rgba(138, 103, 46, 0.76);
  opacity: 0.055;
  animation: ambient-orb-gold-drift 29s cubic-bezier(0.37, 0, 0.23, 1) infinite alternate;
}

.ambient-aurora {
  position: absolute;
  width: min(72rem, 132vw);
  height: min(24rem, 42vw);
  border-radius: 50%;
  filter: blur(42px);
  mix-blend-mode: screen;
  opacity: 0.09;
  will-change: transform, opacity;
}

.ambient-aurora--near {
  top: 28%;
  left: -34%;
  background: linear-gradient(
    92deg,
    transparent,
    rgba(25, 122, 211, 0.3) 34%,
    rgba(107, 206, 255, 0.12) 51%,
    transparent 78%
  );
  transform: rotate(-11deg);
  animation: ambient-aurora-near 24s cubic-bezier(0.37, 0, 0.23, 1) infinite alternate;
}

.ambient-aurora--far {
  top: 70%;
  right: -40%;
  background: linear-gradient(
    92deg,
    transparent,
    rgba(15, 89, 164, 0.22) 30%,
    rgba(205, 176, 105, 0.08) 58%,
    transparent 82%
  );
  transform: rotate(9deg);
  animation: ambient-aurora-far 31s cubic-bezier(0.37, 0, 0.23, 1) infinite alternate;
}

.ambient-grid {
  position: absolute;
  inset: -8%;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(87, 151, 213, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87, 151, 213, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 8%, transparent 76%);
  mask-image: radial-gradient(ellipse at center, #000 8%, transparent 76%);
  will-change: transform, opacity;
  animation: ambient-grid-breathe 14s cubic-bezier(0.37, 0, 0.23, 1) infinite alternate;
}

.ambient-thread {
  position: absolute;
  left: -28%;
  width: 156%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0 15%,
    rgba(48, 157, 237, 0.05) 31%,
    rgba(135, 218, 255, 0.24) 49.5%,
    rgba(48, 157, 237, 0.05) 68%,
    transparent 86%
  );
  opacity: 0;
  will-change: transform, opacity;
}

.ambient-thread--one {
  top: 31%;
  transform: rotate(-7deg);
  animation: ambient-thread-one 17s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.ambient-thread--two {
  top: 74%;
  background: linear-gradient(
    90deg,
    transparent 0 23%,
    rgba(201, 168, 95, 0.025) 36%,
    rgba(105, 198, 255, 0.15) 51%,
    transparent 79%
  );
  transform: rotate(5deg);
  animation: ambient-thread-two 23s cubic-bezier(0.16, 1, 0.3, 1) infinite 6s;
}

.ambient-nodes {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 8% 17%, rgba(131, 213, 255, 0.7) 0 1px, transparent 1.8px),
    radial-gradient(circle at 88% 29%, rgba(98, 187, 246, 0.64) 0 1px, transparent 1.8px),
    radial-gradient(circle at 27% 54%, rgba(120, 206, 255, 0.52) 0 1px, transparent 1.8px),
    radial-gradient(circle at 74% 69%, rgba(178, 225, 255, 0.62) 0 1px, transparent 1.8px),
    radial-gradient(circle at 15% 88%, rgba(201, 168, 95, 0.48) 0 1px, transparent 1.8px),
    radial-gradient(circle at 94% 91%, rgba(96, 182, 242, 0.48) 0 1px, transparent 1.8px);
  opacity: 0.28;
  will-change: transform, opacity;
  animation: ambient-node-breathe 11s cubic-bezier(0.37, 0, 0.23, 1) infinite alternate;
}

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

.ambient-touch-focus {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(240px, 48vw, 500px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(231, 248, 255, 0.16) 0, rgba(80, 190, 255, 0.075) 24%, transparent 68%),
    conic-gradient(from 210deg, transparent 0 34%, rgba(98, 202, 255, 0.075) 42%, transparent 51% 100%);
  opacity: 0;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.ambient-ripple {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(210px, 42vw, 440px);
  aspect-ratio: 1;
  border: 1px solid rgba(137, 216, 255, 0.44);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(235, 249, 255, 0.74) 0 1px, rgba(89, 192, 255, 0.18) 2px, transparent 8px),
    radial-gradient(circle, transparent 0 56%, rgba(80, 187, 255, 0.1) 57%, transparent 62%);
  box-shadow:
    inset 0 0 42px rgba(55, 174, 255, 0.06),
    0 0 52px rgba(35, 146, 230, 0.08);
  opacity: 0;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.ambient-ripple::before,
.ambient-ripple::after {
  position: absolute;
  border-radius: inherit;
  content: "";
}

.ambient-ripple::before {
  inset: 14%;
  border: 1px solid rgba(199, 236, 255, 0.3);
  box-shadow: 0 0 24px rgba(79, 190, 255, 0.09);
}

.ambient-ripple::after {
  inset: -9%;
  background: conic-gradient(
    from 24deg,
    transparent 0 12%,
    rgba(151, 222, 255, 0.26) 18%,
    transparent 24% 61%,
    rgba(201, 168, 95, 0.13) 68%,
    transparent 74%
  );
  -webkit-mask: radial-gradient(circle, transparent 64%, #000 65% 66%, transparent 67%);
  mask: radial-gradient(circle, transparent 64%, #000 65% 66%, transparent 67%);
}

.ambient-field[data-ambient-state="paused"] .ambient-orb,
.ambient-field[data-ambient-state="paused"] .ambient-aurora,
.ambient-field[data-ambient-state="paused"] .ambient-grid,
.ambient-field[data-ambient-state="paused"] .ambient-thread,
.ambient-field[data-ambient-state="paused"] .ambient-nodes,
.ambient-field[data-ambient-state="paused"]::after {
  animation-play-state: paused;
}

@keyframes ambient-field-breathe {
  0% {
    opacity: 0.42;
    transform: translate3d(-1%, -0.6%, 0) scale(1.04);
  }
  100% {
    opacity: 0.72;
    transform: translate3d(1%, 0.8%, 0) scale(1.12);
  }
}

@keyframes ambient-orb-blue-drift {
  0% {
    opacity: 0.11;
    transform: translate3d(-4%, -3%, 0) scale(0.94);
  }
  100% {
    opacity: 0.19;
    transform: translate3d(-18%, 12%, 0) scale(1.08);
  }
}

@keyframes ambient-orb-gold-drift {
  0% {
    opacity: 0.035;
    transform: translate3d(0, -5%, 0) scale(0.92);
  }
  100% {
    opacity: 0.075;
    transform: translate3d(22%, 14%, 0) scale(1.1);
  }
}

@keyframes ambient-aurora-near {
  0% {
    opacity: 0.055;
    transform: translate3d(-7%, -5%, 0) rotate(-11deg) scale(0.96);
  }
  100% {
    opacity: 0.12;
    transform: translate3d(28%, 12%, 0) rotate(-8deg) scale(1.08);
  }
}

@keyframes ambient-aurora-far {
  0% {
    opacity: 0.045;
    transform: translate3d(10%, 8%, 0) rotate(9deg) scale(0.94);
  }
  100% {
    opacity: 0.1;
    transform: translate3d(-26%, -10%, 0) rotate(6deg) scale(1.06);
  }
}

@keyframes ambient-grid-breathe {
  0% {
    opacity: 0.075;
    transform: translate3d(-0.5%, -0.4%, 0) scale(1);
  }
  100% {
    opacity: 0.15;
    transform: translate3d(0.6%, 0.5%, 0) scale(1.025);
  }
}

@keyframes ambient-thread-one {
  0%,
  72% {
    opacity: 0;
    transform: translate3d(-18%, -16px, 0) rotate(-7deg) scaleX(0.72);
  }
  82% {
    opacity: 0.42;
  }
  100% {
    opacity: 0;
    transform: translate3d(18%, 16px, 0) rotate(-7deg) scaleX(1.04);
  }
}

@keyframes ambient-thread-two {
  0%,
  76% {
    opacity: 0;
    transform: translate3d(16%, 12px, 0) rotate(5deg) scaleX(0.76);
  }
  86% {
    opacity: 0.32;
  }
  100% {
    opacity: 0;
    transform: translate3d(-16%, -12px, 0) rotate(5deg) scaleX(1.02);
  }
}

@keyframes ambient-node-breathe {
  0% {
    opacity: 0.16;
    transform: translate3d(0, -2px, 0) scale(0.995);
  }
  100% {
    opacity: 0.38;
    transform: translate3d(0, 3px, 0) scale(1.008);
  }
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

@media (max-width: 520px), (pointer: coarse) and (max-height: 520px) {
  .ambient-orb--gold,
  .ambient-aurora--near,
  .ambient-aurora--far,
  .ambient-thread--two {
    display: none;
  }

  .ambient-orb--blue {
    width: 92vw;
    height: 92vw;
    filter: blur(52px);
  }

  .ambient-orb,
  .ambient-grid,
  .ambient-thread,
  .ambient-nodes {
    will-change: auto;
  }

  .ambient-grid {
    background-size: 64px 64px;
    opacity: 0.1;
  }

  .ambient-ripple {
    width: min(74vw, 320px);
  }
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgba(150, 180, 212, 0.09);
  background: rgba(2, 5, 9, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.brand::before {
  position: absolute;
  z-index: 0;
  inset: 3px -9px;
  padding: 1px;
  border-radius: 999px;
  background:
    conic-gradient(
      from 0deg,
      transparent 0 18%,
      rgba(225, 202, 147, 0.66) 19% 23%,
      transparent 24% 57%,
      rgba(119, 214, 255, 0.5) 58% 62%,
      transparent 63% 88%,
      rgba(225, 202, 147, 0.44) 89% 92%,
      transparent 93%
    );
  content: "";
  opacity: 0;
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

html.site-opening-complete .brand::before {
  animation: lex-brand-orbit 11.6s 1800ms linear infinite;
}

.brand::after {
  position: absolute;
  z-index: 3;
  right: 3px;
  bottom: 5px;
  left: 3px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 224, 169, 0.92), transparent);
  box-shadow: 0 0 8px rgba(225, 202, 147, 0.22);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-12%) scaleX(0.08);
  transform-origin: left center;
}

html.site-opening-complete .brand::after {
  animation: lex-brand-energy-trace 10.8s 2300ms cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.brand:is(:hover, :focus-visible) {
  transform: translateY(-1px);
}

.brand-image-wrap {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 118px;
  height: 48px;
  align-items: center;
}

.brand-image-wrap::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: rgba(225, 202, 147, 0.46);
  content: "";
  filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
  -webkit-mask: url("/media/brand/lex-wordmark.png") center / contain no-repeat;
  mask: url("/media/brand/lex-wordmark.png") center / contain no-repeat;
}

.brand-image-wrap::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(255, 255, 255, 0) 28%,
      rgba(127, 220, 255, 0.42) 41%,
      rgba(255, 248, 218, 1) 48%,
      rgba(225, 202, 147, 0.96) 54%,
      rgba(127, 220, 255, 0.32) 61%,
      rgba(255, 255, 255, 0) 72%
    );
  background-position: 180% 50%;
  background-size: 320% 100%;
  content: "";
  opacity: 0;
  pointer-events: none;
  -webkit-mask: url("/media/brand/lex-wordmark.png") center / contain no-repeat;
  mask: url("/media/brand/lex-wordmark.png") center / contain no-repeat;
}

.brand-wordmark {
  position: relative;
  z-index: 1;
  width: 118px;
  height: 48px;
  object-fit: contain;
}

html.site-opening-complete .brand-wordmark {
  animation: lex-logo-initialize 1500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

html.site-opening-complete .brand-image-wrap::before {
  animation: lex-logo-halo 10s 1500ms ease-in-out infinite;
}

html.site-opening-complete .brand-image-wrap::after {
  animation: lex-logo-metallic-sheen 11.2s 2100ms ease-in-out infinite;
}

.brand-image-wrap.is-missing .brand-wordmark {
  display: none;
}

.brand-image-wrap.is-missing::after {
  display: none;
}

.brand-text-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  gap: 5px;
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand-image-wrap.is-missing .brand-text-fallback {
  display: flex;
}

.brand-text-fallback small {
  color: var(--silver);
  font-size: 0.55rem;
  letter-spacing: 0.24em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.8vw, 16px);
}

.header-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-link-flag {
  display: inline-grid;
  width: 24px;
  height: 18px;
  place-items: center;
  border: 1px solid rgba(127, 220, 255, 0.16);
  border-radius: 3px;
  box-shadow:
    0 0 14px rgba(69, 184, 255, 0.08),
    inset 0 0 8px rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  line-height: 1;
  transform: translateZ(0);
}

.header-link-arrow {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue-bright);
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.header-link:hover .header-link-arrow {
  border-color: var(--line-strong);
  transform: translateY(2px);
}

.language-toggle {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 5px 13px 5px 7px;
  overflow: hidden;
  border: 1px solid rgba(115, 206, 255, 0.2);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(49, 153, 218, 0.11), transparent 54%),
    rgba(4, 12, 20, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 12px 32px rgba(0, 0, 0, 0.24),
    0 0 22px rgba(45, 165, 235, 0.035);
  color: var(--text-soft);
  cursor: pointer;
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition:
    border-color 320ms ease,
    box-shadow 320ms ease,
    color 320ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.language-toggle::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent 18%,
    rgba(151, 225, 255, 0.13) 48%,
    transparent 76%
  );
  content: "";
  opacity: 0;
  transform: translateX(-70%);
}

.language-toggle:is(:hover, :focus-visible) {
  border-color: rgba(124, 218, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 15px 36px rgba(0, 0, 0, 0.3),
    0 0 28px rgba(45, 165, 235, 0.11);
  color: #e8f7ff;
  outline: none;
  transform: translateY(-1px);
}

.language-toggle:is(:hover, :focus-visible)::before {
  opacity: 1;
  animation: language-toggle-sheen 920ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.language-toggle__signal {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(86, 196, 255, 0.25);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(74, 190, 255, 0.18), transparent 62%),
    #06111b;
  box-shadow:
    inset 0 0 12px rgba(81, 195, 255, 0.12),
    0 0 14px rgba(63, 180, 244, 0.08);
}

.language-toggle__signal::before,
.language-toggle__signal::after {
  position: absolute;
  border: 1px solid rgba(94, 200, 255, 0.36);
  border-radius: 50%;
  content: "";
}

.language-toggle__signal::before {
  inset: 7px 3px;
}

.language-toggle__signal::after {
  inset: 3px 7px;
}

.language-toggle__code {
  color: #bceaff;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.language-toggle__label {
  font-size: 0.62rem;
  font-weight: 700;
}

.language-toggle[data-language="pt"] {
  border-color: rgba(225, 202, 147, 0.28);
  background:
    linear-gradient(135deg, rgba(225, 202, 147, 0.1), transparent 54%),
    rgba(13, 11, 7, 0.76);
}

.language-toggle[data-language="pt"] .language-toggle__signal {
  border-color: rgba(225, 202, 147, 0.32);
  background:
    radial-gradient(circle, rgba(225, 202, 147, 0.18), transparent 62%),
    #151107;
}

@keyframes language-toggle-sheen {
  from {
    opacity: 0;
    transform: translateX(-70%);
  }
  34% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateX(70%);
  }
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-bright);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.22em;
  line-height: 1.3;
  text-transform: uppercase;
}

.kicker-line {
  display: block;
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  box-shadow: 0 0 10px rgba(69, 184, 255, 0.5);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button--primary {
  min-height: 56px;
  background: linear-gradient(135deg, #0d75da, #0954a6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 32px rgba(7, 94, 184, 0.22);
  color: #fff;
}

.button--primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 16px 40px rgba(7, 107, 211, 0.3);
}

.button[disabled] {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.button-arrow {
  font-size: 1.05rem;
}

.product-hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(3, 7, 12, 0.52), rgba(8, 27, 46, 0.42), rgba(3, 7, 12, 0.52)),
    rgba(3, 7, 12, 0.78);
}

.product-hero::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, rgba(69, 184, 255, 0.15), transparent);
  content: "";
}

.product-layout {
  display: grid;
  gap: 62px;
  align-items: center;
}

.product-visual {
  position: relative;
  display: grid;
  min-height: 480px;
  perspective: 980px;
  perspective-origin: 50% 44%;
  place-items: center;
}

.product-visual::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: 48%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.7) 76%);
  content: "";
  filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
  transition:
    filter 720ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 720ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 720ms cubic-bezier(0.4, 0, 0.2, 1);
}

.product-hero[data-optic-state="deep-scan"] .product-visual::before {
  animation: ampoule-spectral-environment-dim 820ms cubic-bezier(0.4, 0, 0.2, 1) both;
  will-change: filter, opacity, transform;
}

.product-halo {
  position: absolute;
  width: min(80vw, 430px);
  aspect-ratio: 1;
  border: 1px solid rgba(69, 184, 255, 0.11);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(18, 114, 215, 0.13), transparent 58%),
    repeating-radial-gradient(circle, transparent 0 38px, rgba(98, 155, 213, 0.035) 39px 40px);
  box-shadow: inset 0 0 70px rgba(15, 100, 194, 0.06);
}

.product-frame {
  --touch-x: 50%;
  --touch-y: 50%;
  --scan-duration: 640ms;
  --scan-opacity: 0.32;
  --scan-aperture: 0.94;
  position: relative;
  z-index: 2;
  display: grid;
  width: min(82vw, 370px);
  min-height: 460px;
  place-items: center;
  touch-action: manipulation;
  transform-style: preserve-3d;
}

.product-frame::after {
  position: absolute;
  z-index: 3;
  inset: 29% 7% 9%;
  border: 1px solid rgba(126, 169, 211, 0.08);
  border-radius: 34% 34% 18% 18% / 12% 12% 8% 8%;
  background:
    linear-gradient(180deg, rgba(3, 8, 14, 0.16), rgba(3, 8, 14, 0.48)),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(126, 169, 211, 0.018) 7px 8px);
  -webkit-backdrop-filter: blur(13px);
  backdrop-filter: blur(13px);
  content: "";
  opacity: 1;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.product-frame.is-verified::after {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  opacity: 0;
}

.ampoule-presence {
  position: relative;
  z-index: 5;
  display: grid;
  width: 100%;
  place-items: center;
  scale: 1;
  transform-origin: 50% 72%;
  transform-style: preserve-3d;
  transition: scale 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ampoule-image {
  position: relative;
  z-index: 2;
  width: 100%;
  max-height: 580px;
  object-fit: contain;
  filter:
    blur(10px)
    saturate(0.58)
    brightness(0.7)
    drop-shadow(0 35px 28px rgba(0, 0, 0, 0.54));
  opacity: 0.48;
  transition:
    filter 280ms ease,
    opacity 280ms ease;
}

.product-frame.is-verified .ampoule-image {
  filter: drop-shadow(0 35px 28px rgba(0, 0, 0, 0.54));
  opacity: 1;
}

.product-frame.image-missing .ampoule-image {
  display: none;
}

.ampoule-fallback {
  display: none;
  place-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ampoule-fallback img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  opacity: 0.7;
}

.product-frame.image-missing .ampoule-fallback {
  display: grid;
}

.frame-mark {
  position: absolute;
  z-index: 3;
  width: 28px;
  height: 28px;
  border-color: rgba(69, 184, 255, 0.32);
}

.frame-mark--top-left {
  top: 0;
  left: 0;
  border-top: 1px solid;
  border-left: 1px solid;
}

.frame-mark--top-right {
  top: 0;
  right: 0;
  border-top: 1px solid;
  border-right: 1px solid;
}

.frame-mark--bottom-left {
  bottom: 0;
  left: 0;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.frame-mark--bottom-right {
  right: 0;
  bottom: 0;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.ampoule-holographics {
  position: absolute;
  z-index: 1;
  inset: 5% -10% 2%;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

.ampoule-holo-ring {
  position: absolute;
  top: 60%;
  left: 50%;
  border-radius: 50%;
  opacity: 0.58;
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: center;
}

.ampoule-holo-ring--outer {
  width: 118%;
  height: 35%;
  border: 1px solid rgba(69, 184, 255, 0.3);
  background: conic-gradient(
    from 0deg,
    transparent 0 16%,
    rgba(113, 211, 255, 0.74) 16.2% 16.8%,
    transparent 17% 54%,
    rgba(69, 184, 255, 0.48) 54.2% 54.8%,
    transparent 55% 82%,
    rgba(225, 202, 147, 0.38) 82.2% 82.8%,
    transparent 83%
  );
  box-shadow:
    inset 0 0 28px rgba(13, 120, 232, 0.04),
    0 0 18px rgba(13, 120, 232, 0.08);
}

.ampoule-holo-ring--inner {
  top: 61%;
  width: 88%;
  height: 23%;
  border: 1px dashed rgba(155, 221, 255, 0.34);
  box-shadow: 0 0 13px rgba(69, 184, 255, 0.1);
}

.ampoule-field-line {
  position: absolute;
  right: 8%;
  left: 8%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(69, 184, 255, 0.12) 20%,
    rgba(141, 220, 255, 0.38) 50%,
    rgba(69, 184, 255, 0.12) 80%,
    transparent
  );
  opacity: 0.14;
  transform: scaleX(0.62);
}

.ampoule-field-line--top {
  top: 31%;
  animation-delay: -1.3s;
}

.ampoule-field-line--middle {
  top: 52%;
  animation-delay: -3.9s;
}

.ampoule-field-line--bottom {
  top: 73%;
  animation-delay: -6.1s;
}

.ampoule-orbit-particle {
  --particle-angle: 0deg;
  --particle-radius: clamp(82px, 25vw, 154px);
  --particle-delay: 0s;
  position: absolute;
  top: 58%;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(178, 229, 255, 0.92);
  box-shadow:
    0 0 6px rgba(69, 184, 255, 0.82),
    0 0 13px rgba(13, 120, 232, 0.44);
  opacity: 0;
  transform: rotate(var(--particle-angle)) translateX(var(--particle-radius));
  transform-origin: 0 0;
}

.ampoule-orbit-particle:nth-of-type(6) {
  --particle-angle: 18deg;
  --particle-delay: -1.4s;
}

.ampoule-orbit-particle:nth-of-type(7) {
  --particle-angle: 82deg;
  --particle-radius: clamp(68px, 20vw, 128px);
  --particle-delay: -5.8s;
}

.ampoule-orbit-particle:nth-of-type(8) {
  --particle-angle: 151deg;
  --particle-delay: -3.2s;
}

.ampoule-orbit-particle:nth-of-type(9) {
  --particle-angle: 216deg;
  --particle-radius: clamp(72px, 22vw, 138px);
  --particle-delay: -7.1s;
}

.ampoule-orbit-particle:nth-of-type(10) {
  --particle-angle: 278deg;
  --particle-delay: -4.6s;
}

.ampoule-orbit-particle:nth-of-type(11) {
  --particle-angle: 329deg;
  --particle-radius: clamp(64px, 19vw, 120px);
  --particle-delay: -8.4s;
}

.ampoule-glass-reflection {
  position: absolute;
  z-index: 7;
  inset: 0;
  overflow: hidden;
  -webkit-mask: url("/media/ampoule/lex-ampoule.png") center / contain no-repeat;
  mask: url("/media/ampoule/lex-ampoule.png") center / contain no-repeat;
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  transform: translateZ(1px);
  transition: opacity 480ms ease;
}

.ampoule-glass-reflection::before {
  position: absolute;
  top: -6%;
  bottom: -6%;
  left: 0;
  width: 34%;
  background: linear-gradient(
    108deg,
    transparent 0 20%,
    rgba(177, 226, 255, 0.12) 33%,
    rgba(234, 250, 255, 0.78) 47%,
    rgba(255, 255, 255, 0.96) 51%,
    rgba(142, 211, 255, 0.4) 61%,
    transparent 78% 100%
  );
  box-shadow: 0 0 24px rgba(188, 231, 255, 0.2);
  content: "";
  filter: blur(0.8px);
  opacity: 0;
  transform: translate3d(-180%, 0, 0) skewX(-14deg);
}

.ampoule-optic-aperture,
.ampoule-spectral-shell,
.ampoule-spectral-scan,
.ampoule-focus-grid,
.ampoule-touch-lens,
.ampoule-contour-lock {
  position: absolute;
  pointer-events: none;
}

.ampoule-optic-aperture {
  z-index: 5;
  top: var(--touch-y);
  left: var(--touch-x);
  width: clamp(94px, 30%, 146px);
  aspect-ratio: 1;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-4deg) scale(0.82);
}

.ampoule-optic-aperture__arc {
  --arc-rest: 0deg;
  --arc-sample: 0deg;
  --arc-lock: 0deg;
  position: absolute;
  border: 1px solid transparent;
  border-radius: 50%;
  filter: drop-shadow(0 0 4px rgba(69, 184, 255, 0.3));
}

.ampoule-optic-aperture__arc--a {
  --arc-rest: 18deg;
  --arc-sample: 6deg;
  inset: 0;
  border-top-color: rgba(155, 221, 255, 0.76);
  border-right-color: rgba(69, 184, 255, 0.28);
  transform: rotate(var(--arc-rest));
}

.ampoule-optic-aperture__arc--b {
  --arc-rest: -22deg;
  --arc-sample: -8deg;
  inset: 8px;
  border-bottom-color: rgba(225, 202, 147, 0.46);
  border-left-color: rgba(126, 202, 246, 0.28);
  transform: rotate(var(--arc-rest));
}

.ampoule-optic-aperture__arc--c {
  --arc-rest: 54deg;
  --arc-sample: 12deg;
  inset: 17px;
  border-top-color: rgba(177, 228, 255, 0.52);
  transform: rotate(var(--arc-rest));
}

.ampoule-optic-aperture__arc--d {
  --arc-rest: -48deg;
  --arc-sample: -12deg;
  inset: 25px;
  border-right-color: rgba(225, 202, 147, 0.4);
  border-bottom-color: rgba(69, 184, 255, 0.22);
  transform: rotate(var(--arc-rest));
}

.ampoule-spectral-shell {
  z-index: 3;
  top: 51%;
  left: 50%;
  width: 69%;
  height: 82%;
  border: 1px solid rgba(111, 204, 255, 0.28);
  border-radius: 48% 48% 42% 42%;
  box-shadow:
    inset 0 0 22px rgba(69, 184, 255, 0.04),
    0 0 13px rgba(69, 184, 255, 0.08);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
}

.ampoule-spectral-shell::before,
.ampoule-spectral-shell::after {
  position: absolute;
  inset: 7%;
  border: 1px solid transparent;
  border-radius: inherit;
  content: "";
}

.ampoule-spectral-shell::before {
  border-top-color: rgba(171, 225, 255, 0.5);
  border-bottom-color: rgba(69, 184, 255, 0.18);
  transform: rotate(1.4deg);
}

.ampoule-spectral-shell::after {
  inset: 14%;
  border-right-color: rgba(225, 202, 147, 0.34);
  border-left-color: rgba(120, 207, 255, 0.22);
  transform: rotate(-1.8deg);
}

.ampoule-spectral-scan {
  z-index: 4;
  inset: 2% 4%;
  overflow: hidden;
  -webkit-mask: url("/media/ampoule/lex-ampoule.png") center / contain no-repeat;
  mask: url("/media/ampoule/lex-ampoule.png") center / contain no-repeat;
  opacity: 0;
}

.ampoule-spectral-scan::before,
.ampoule-spectral-scan::after {
  position: absolute;
  z-index: 1;
  top: 4%;
  right: 8%;
  left: 8%;
  height: 9%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(178, 230, 255, 0.08) 26%,
    rgba(178, 230, 255, 0.62) 52%,
    rgba(69, 184, 255, 0.12) 72%,
    transparent
  );
  content: "";
  filter: blur(0.35px);
  opacity: 0;
  transform: translateY(-160%);
}

.ampoule-spectral-scan::after {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(225, 202, 147, 0.06) 28%,
    rgba(225, 202, 147, 0.4) 52%,
    rgba(69, 184, 255, 0.08) 74%,
    transparent
  );
}

.ampoule-focus-grid {
  z-index: 3;
  inset: 12% 14%;
  border: 1px solid rgba(112, 198, 245, 0.12);
  background-image:
    linear-gradient(rgba(69, 184, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 184, 255, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse, #000 0 30%, transparent 74%);
  mask-image: radial-gradient(ellipse, #000 0 30%, transparent 74%);
  opacity: 0;
  transform: scale(0.96);
}

.ampoule-touch-lens {
  z-index: 5;
  top: var(--touch-y);
  left: var(--touch-x);
  width: 70px;
  aspect-ratio: 1;
  border: 1px solid rgba(165, 224, 255, 0.54);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69, 184, 255, 0.07), transparent 66%);
  box-shadow:
    inset 0 0 15px rgba(69, 184, 255, 0.05),
    0 0 11px rgba(69, 184, 255, 0.08);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.76);
}

.ampoule-touch-lens::before,
.ampoule-touch-lens::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(177, 228, 255, 0.52);
  content: "";
  transform: translate(-50%, -50%);
}

.ampoule-touch-lens::before {
  width: 92%;
  height: 1px;
}

.ampoule-touch-lens::after {
  width: 1px;
  height: 92%;
}

.ampoule-contour-lock {
  z-index: 4;
  inset: 2% 4%;
  background: rgba(139, 217, 255, 0.72);
  -webkit-mask: url("/media/ampoule/lex-ampoule.png") center / contain no-repeat;
  mask: url("/media/ampoule/lex-ampoule.png") center / contain no-repeat;
  filter:
    brightness(1.08)
    drop-shadow(0 0 3px rgba(69, 184, 255, 0.5));
  mix-blend-mode: screen;
  opacity: 0;
  transform: scale(0.995);
}

.product-hero[data-ampoule-state="unlocked"] .ampoule-holographics {
  opacity: 0.86;
}

.product-hero[data-ampoule-state="unlocked"] .ampoule-holo-ring--outer {
  animation: ampoule-holo-ring-clockwise 14s 1200ms linear infinite;
}

.product-hero[data-ampoule-state="unlocked"] .ampoule-holo-ring--inner {
  animation: ampoule-holo-ring-counter 19s 1200ms linear infinite;
}

.product-hero[data-ampoule-state="unlocked"] .ampoule-field-line {
  animation: ampoule-background-line-pulse 7.8s ease-in-out infinite;
}

.product-hero[data-ampoule-state="unlocked"] .ampoule-orbit-particle {
  animation: ampoule-particle-orbit 10.5s var(--particle-delay) linear infinite;
}

.product-hero[data-ampoule-state="unlocked"] .ampoule-glass-reflection {
  opacity: 0.92;
}

.product-hero[data-ampoule-state="unlocked"] .ampoule-glass-reflection::before {
  animation: ampoule-glass-sweep 3.2s linear infinite;
}

.product-frame.image-missing .ampoule-holographics,
.product-frame.image-missing .ampoule-optic-aperture,
.product-frame.image-missing .ampoule-spectral-shell,
.product-frame.image-missing .ampoule-spectral-scan,
.product-frame.image-missing .ampoule-focus-grid,
.product-frame.image-missing .ampoule-touch-lens,
.product-frame.image-missing .ampoule-contour-lock,
.product-frame.image-missing .ampoule-glass-reflection {
  display: none;
}

.product-visual::after {
  position: absolute;
  z-index: 8;
  inset: 2% -3% 0;
  border: 1px solid rgba(121, 213, 255, 0);
  border-radius: 46%;
  background: radial-gradient(circle, rgba(154, 226, 255, 0.3), rgba(13, 120, 232, 0.08) 36%, transparent 68%);
  box-shadow:
    inset 0 0 70px rgba(69, 184, 255, 0.12),
    0 0 54px rgba(13, 120, 232, 0.12);
  content: "";
  opacity: 0;
  pointer-events: none;
}

.product-hero.is-release-pulse .product-visual::after,
.product-hero[data-release-pulse="active"] .product-visual::after {
  animation: ampoule-area-release-pulse 1050ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.product-hero .ampoule-presence {
  transform-origin: 50% 72%;
  scale: 1;
  transition: scale 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-hero .ampoule-image {
  transform-origin: 50% 72%;
  transition:
    filter 720ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 720ms ease,
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-hero .product-halo {
  transform-origin: center;
  transition:
    filter 700ms ease,
    opacity 700ms ease,
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-hero[data-ampoule-state="locked"] .ampoule-image {
  filter:
    blur(12px)
    grayscale(0.52)
    saturate(0.42)
    brightness(0.54)
    drop-shadow(0 30px 24px rgba(0, 0, 0, 0.58));
  opacity: 0.2;
  transform: translateY(14px) scale(0.92);
}

.product-hero[data-ampoule-state="locked"] .product-halo {
  filter: saturate(0.48);
  opacity: 0.32;
  transform: scale(0.88);
}

.product-hero[data-ampoule-state="locked"] .product-frame::after {
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 1;
}

.product-hero[data-ampoule-state="unlocking"] .ampoule-image {
  filter:
    blur(4px)
    saturate(0.8)
    brightness(0.82)
    drop-shadow(0 34px 28px rgba(0, 0, 0, 0.56));
  opacity: 0.62;
  transform: translateY(7px) scale(0.97);
}

.product-hero[data-ampoule-state="unlocking"] .product-halo {
  filter: saturate(0.86);
  opacity: 0.72;
  transform: scale(0.97);
}

.product-hero[data-ampoule-state="unlocking"] .product-frame::after {
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  opacity: 0.58;
}

.product-hero[data-ampoule-state="unlocked"] .product-frame::after {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  opacity: 0;
}

.product-hero[data-ampoule-state="unlocked"] .ampoule-image {
  z-index: 5;
  filter:
    saturate(1.1)
    brightness(1.08)
    contrast(1.04)
    drop-shadow(0 46px 38px rgba(0, 0, 0, 0.64))
    drop-shadow(0 0 32px rgba(69, 184, 255, 0.24));
  opacity: 1;
  animation: ampoule-cinematic-reveal 1100ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.product-hero[data-ampoule-state="unlocked"] .ampoule-presence {
  scale: 1.16;
  animation:
    ampoule-idle-float 4.8s 1200ms cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

.product-hero[data-ampoule-state="unlocked"] .product-halo {
  filter: saturate(1.1);
  opacity: 1;
  transform: scale(1);
  animation: ampoule-halo-breathe 8s 1200ms ease-in-out infinite;
}

.product-frame.is-spectral-sampling[data-scan-level="1"] {
  --scan-duration: 560ms;
  --scan-opacity: 0.18;
  --scan-aperture: 0.88;
}

.product-frame.is-spectral-sampling[data-scan-level="2"] {
  --scan-duration: 600ms;
  --scan-opacity: 0.26;
  --scan-aperture: 0.92;
}

.product-frame.is-spectral-sampling[data-scan-level="3"] {
  --scan-duration: 640ms;
  --scan-opacity: 0.34;
  --scan-aperture: 0.96;
}

.product-frame.is-spectral-sampling[data-scan-level="4"] {
  --scan-duration: 680ms;
  --scan-opacity: 0.42;
  --scan-aperture: 1;
}

.product-frame:is(
  .is-spectral-sampling,
  .is-deep-scanning,
  .is-optic-settling
) :is(
  .ampoule-optic-aperture,
  .ampoule-optic-aperture__arc,
  .ampoule-spectral-shell,
  .ampoule-spectral-scan,
  .ampoule-focus-grid,
  .ampoule-touch-lens,
  .ampoule-contour-lock
),
.product-frame:is(
  .is-spectral-sampling,
  .is-deep-scanning,
  .is-optic-settling
) .ampoule-spectral-scan::before,
.product-frame:is(
  .is-spectral-sampling,
  .is-deep-scanning,
  .is-optic-settling
) .ampoule-spectral-scan::after {
  will-change: filter, opacity, transform;
}

.product-frame.is-spectral-sampling .ampoule-optic-aperture {
  animation: ampoule-optic-aperture-sample var(--scan-duration) cubic-bezier(0.22, 1, 0.36, 1) both;
}

.product-frame.is-spectral-sampling .ampoule-optic-aperture__arc {
  animation: ampoule-optic-arc-sample var(--scan-duration) cubic-bezier(0.22, 1, 0.36, 1) both;
}

.product-frame.is-spectral-sampling .ampoule-spectral-shell {
  animation: ampoule-spectral-shell-sample var(--scan-duration) cubic-bezier(0.22, 1, 0.36, 1) both;
}

.product-frame.is-spectral-sampling .ampoule-spectral-scan {
  animation: ampoule-spectral-presence-sample var(--scan-duration) cubic-bezier(0.4, 0, 0.2, 1) both;
}

.product-frame.is-spectral-sampling .ampoule-spectral-scan::before {
  animation: ampoule-spectral-sweep var(--scan-duration) cubic-bezier(0.4, 0, 0.2, 1) both;
}

.product-frame.is-spectral-sampling .ampoule-focus-grid {
  animation: ampoule-focus-grid-sample var(--scan-duration) cubic-bezier(0.22, 1, 0.36, 1) both;
}

.product-frame.is-spectral-sampling .ampoule-touch-lens {
  animation: ampoule-touch-lens-focus var(--scan-duration) cubic-bezier(0.22, 1, 0.36, 1) both;
}

.product-frame.is-spectral-sampling .ampoule-contour-lock {
  animation: ampoule-contour-lock-sample var(--scan-duration) cubic-bezier(0.4, 0, 0.2, 1) both;
}

.product-frame.is-deep-scanning .ampoule-optic-aperture {
  animation: ampoule-optic-aperture-deep 1560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.product-frame.is-deep-scanning .ampoule-optic-aperture__arc {
  animation: ampoule-optic-arc-align 1560ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.product-frame.is-deep-scanning .ampoule-spectral-shell {
  animation: ampoule-spectral-shell-deep 1560ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.product-frame.is-deep-scanning .ampoule-spectral-scan {
  animation: ampoule-spectral-presence-deep 1560ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.product-frame.is-deep-scanning .ampoule-spectral-scan::before {
  animation: ampoule-spectral-double-sweep 1280ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.product-frame.is-deep-scanning .ampoule-spectral-scan::after {
  animation: ampoule-spectral-double-sweep 1280ms 180ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.product-frame.is-deep-scanning .ampoule-focus-grid {
  animation: ampoule-focus-grid-deep 1560ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.product-frame.is-deep-scanning .ampoule-touch-lens {
  animation: ampoule-touch-lens-deep 1560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.product-frame.is-deep-scanning .ampoule-contour-lock {
  animation: ampoule-contour-lock-deep 1560ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.product-frame.is-optic-settling .ampoule-optic-aperture {
  animation: ampoule-optic-settle 820ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.product-frame.is-optic-settling :is(
  .ampoule-spectral-shell,
  .ampoule-spectral-scan,
  .ampoule-focus-grid,
  .ampoule-touch-lens
) {
  animation: ampoule-spectral-settle 820ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.product-frame.is-optic-settling .ampoule-contour-lock {
  animation: ampoule-contour-settle 820ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.product-hero[data-ampoule-animation="paused"] .ampoule-presence,
.product-hero[data-ampoule-animation="paused"] .ampoule-image,
.product-hero[data-ampoule-animation="paused"] .product-halo,
.product-hero[data-ampoule-animation="paused"] .ampoule-holo-ring,
.product-hero[data-ampoule-animation="paused"] .ampoule-field-line,
.product-hero[data-ampoule-animation="paused"] .ampoule-orbit-particle,
.product-hero[data-ampoule-animation="paused"] .ampoule-glass-reflection,
.product-hero[data-ampoule-animation="paused"] .ampoule-glass-reflection::before,
.product-hero[data-ampoule-animation="paused"] .ampoule-optic-aperture,
.product-hero[data-ampoule-animation="paused"] .ampoule-optic-aperture__arc,
.product-hero[data-ampoule-animation="paused"] .ampoule-spectral-shell,
.product-hero[data-ampoule-animation="paused"] .ampoule-spectral-scan,
.product-hero[data-ampoule-animation="paused"] .ampoule-spectral-scan::before,
.product-hero[data-ampoule-animation="paused"] .ampoule-spectral-scan::after,
.product-hero[data-ampoule-animation="paused"] .ampoule-focus-grid,
.product-hero[data-ampoule-animation="paused"] .ampoule-touch-lens,
.product-hero[data-ampoule-animation="paused"] .ampoule-contour-lock,
.product-hero[data-ampoule-animation="paused"] .product-floor::after {
  animation-play-state: paused;
}

.product-hero[data-ampoule-state="unlocked"] .frame-mark {
  border-color: rgba(102, 212, 173, 0.58);
  filter: drop-shadow(0 0 7px rgba(102, 212, 173, 0.3));
}

.ampoule-lock {
  --scanner-size: 188px;
  --scanner-travel: 132px;
  position: absolute;
  z-index: 6;
  inset: 7%;
  display: grid;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(69, 184, 255, 0.5);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(3, 13, 24, 0.78), rgba(2, 8, 15, 0.92)),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(69, 184, 255, 0.025) 7px 8px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    inset 0 0 70px rgba(13, 120, 232, 0.13),
    0 0 45px rgba(5, 71, 139, 0.16);
  opacity: 1;
  pointer-events: none;
  transform: scale(1);
  transition:
    border-color 420ms ease,
    box-shadow 420ms ease,
    opacity 520ms ease,
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 520ms;
}

.ampoule-lock[hidden] {
  display: none;
}

.ampoule-lock::before {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(126, 169, 211, 0.11);
  border-radius: 17px;
  content: "";
}

.ampoule-lock::after {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow:
    0 0 0 5px rgba(69, 184, 255, 0.08),
    0 0 14px rgba(69, 184, 255, 0.72);
  content: "";
}

.ampoule-lock__scanner {
  position: relative;
  display: grid;
  width: var(--scanner-size);
  aspect-ratio: 1;
  overflow: hidden;
  place-items: center;
  margin-bottom: 54px;
  border: 1px solid rgba(69, 184, 255, 0.22);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49.6%, rgba(69, 184, 255, 0.11) 50%, transparent 50.4%),
    linear-gradient(0deg, transparent 49.6%, rgba(69, 184, 255, 0.11) 50%, transparent 50.4%),
    radial-gradient(circle, rgba(13, 120, 232, 0.12), rgba(3, 12, 22, 0.74) 64%, rgba(2, 7, 13, 0.9));
  box-shadow:
    inset 0 0 34px rgba(13, 120, 232, 0.12),
    0 0 28px rgba(13, 120, 232, 0.11);
}

.ampoule-lock__ring {
  position: absolute;
  border-radius: 50%;
}

.ampoule-lock__ring--outer {
  inset: 10px;
  border: 1px dashed rgba(69, 184, 255, 0.62);
}

.ampoule-lock__ring--inner {
  inset: 40px;
  border: 1px solid rgba(225, 202, 147, 0.38);
  box-shadow:
    inset 0 0 20px rgba(69, 184, 255, 0.08),
    0 0 16px rgba(69, 184, 255, 0.08);
}

.ampoule-lock__reticle {
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(69, 184, 255, 0.1);
  transform: rotate(45deg);
}

.ampoule-lock__scanline {
  position: absolute;
  z-index: 2;
  top: 26px;
  right: 22px;
  left: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #b9e8ff 18% 82%, transparent);
  box-shadow:
    0 0 6px rgba(69, 184, 255, 0.95),
    0 8px 20px rgba(13, 120, 232, 0.44);
  opacity: 0.56;
}

.ampoule-lock__core {
  position: relative;
  z-index: 3;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(225, 202, 147, 0.52);
  border-radius: 50%;
  background: rgba(3, 11, 20, 0.88);
  box-shadow:
    inset 0 0 18px rgba(201, 168, 95, 0.08),
    0 0 20px rgba(69, 184, 255, 0.12);
  color: var(--gold-soft);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
}

.ampoule-lock__copy {
  position: absolute;
  right: 22px;
  bottom: 34px;
  left: 22px;
  display: grid;
  gap: 7px;
  padding-top: 18px;
  border-top: 1px solid rgba(69, 184, 255, 0.2);
  text-align: center;
}

.ampoule-lock__copy strong {
  color: #eaf8ff;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: clamp(0.74rem, 3vw, 0.9rem);
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-shadow: 0 0 14px rgba(69, 184, 255, 0.38);
}

.ampoule-lock__copy span {
  color: #9bc8e7;
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.055em;
  line-height: 1.45;
}

.ampoule-lock__corner {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-color: rgba(185, 232, 255, 0.82);
  filter: drop-shadow(0 0 5px rgba(69, 184, 255, 0.46));
}

.ampoule-lock__corner--top-left {
  top: 14px;
  left: 14px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.ampoule-lock__corner--top-right {
  top: 14px;
  right: 14px;
  border-top: 2px solid;
  border-right: 2px solid;
}

.ampoule-lock__corner--bottom-left {
  bottom: 14px;
  left: 14px;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.ampoule-lock__corner--bottom-right {
  right: 14px;
  bottom: 14px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.product-hero[data-ampoule-state="unlocking"] .ampoule-lock {
  border-color: rgba(69, 184, 255, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 90px rgba(13, 120, 232, 0.2),
    0 0 52px rgba(13, 120, 232, 0.25);
}

.product-hero[data-ampoule-state="unlocking"] .ampoule-lock::after {
  background: #b9e8ff;
  box-shadow:
    0 0 0 6px rgba(69, 184, 255, 0.12),
    0 0 22px rgba(69, 184, 255, 0.98);
}

.product-hero[data-ampoule-state="unlocking"] .ampoule-lock__ring--outer {
  animation: ampoule-scanner-rotate 1.7s linear infinite;
}

.product-hero[data-ampoule-state="unlocking"] .ampoule-lock__ring--inner {
  animation: ampoule-scanner-pulse 900ms ease-in-out infinite alternate;
}

.product-hero[data-ampoule-state="unlocking"] .ampoule-lock__scanline {
  animation: ampoule-scanner-sweep 1.15s ease-in-out infinite;
  opacity: 1;
}

.product-hero[data-ampoule-state="unlocked"] .ampoule-lock {
  visibility: hidden;
  opacity: 0;
  transform: scale(1.035);
}

.ampoule-unlocked-seal {
  --seal-accent: 225, 202, 147;
  position: absolute;
  z-index: 7;
  top: 1.5%;
  left: 50%;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 9px;
  border: 1px solid rgba(var(--seal-accent), 0.62);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 50%, rgba(var(--seal-accent), 0.15), transparent 42%),
    linear-gradient(135deg, rgba(7, 18, 27, 0.96), rgba(2, 8, 13, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 24px rgba(var(--seal-accent), 0.08),
    0 12px 36px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(var(--seal-accent), 0.16);
  color: #f3e7c7;
  transform: translateX(-50%);
  white-space: nowrap;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.ampoule-unlocked-seal::before {
  position: absolute;
  z-index: -1;
  inset: -9px -14px;
  border-radius: inherit;
  background: radial-gradient(ellipse, rgba(var(--seal-accent), 0.22), transparent 68%);
  content: "";
  opacity: 0.3;
  pointer-events: none;
  transform: scale(0.96);
  animation: ampoule-original-seal-halo 4.8s 1200ms ease-in-out infinite;
}

.ampoule-unlocked-seal::after {
  position: absolute;
  z-index: 0;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(
      108deg,
      transparent 24%,
      rgba(255, 255, 255, 0.04) 42%,
      rgba(var(--seal-accent), 0.24) 50%,
      rgba(255, 255, 255, 0.08) 57%,
      transparent 74%
    );
  background-position: 180% 50%;
  background-size: 320% 100%;
  content: "";
  opacity: 0;
  pointer-events: none;
  animation: ampoule-original-seal-sheen 6.4s 1500ms ease-in-out infinite;
}

.ampoule-unlocked-seal[hidden] {
  display: none;
}

.product-hero[data-ampoule-state="unlocked"] .ampoule-unlocked-seal:not([hidden]) {
  animation:
    ampoule-seal-in 720ms 340ms cubic-bezier(0.16, 1, 0.3, 1) both,
    ampoule-original-seal-breathe 4.8s 1300ms ease-in-out infinite;
}

.ampoule-unlocked-seal:is(
  [data-verdict="authenticated"],
  [data-verdict="product-original"]
) {
  --seal-accent: 102, 212, 173;
  border-color: rgba(102, 212, 173, 0.78);
  background:
    radial-gradient(circle at 18% 50%, rgba(102, 212, 173, 0.2), transparent 43%),
    linear-gradient(135deg, rgba(5, 31, 24, 0.97), rgba(2, 12, 10, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 28px rgba(102, 212, 173, 0.11),
    0 12px 38px rgba(0, 0, 0, 0.46),
    0 0 34px rgba(102, 212, 173, 0.24);
  color: #d9ffef;
}

.ampoule-unlocked-seal__check {
  position: relative;
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(var(--seal-accent), 0.42);
  border-radius: 50%;
  background: rgba(var(--seal-accent), 0.13);
  box-shadow:
    inset 0 0 12px rgba(var(--seal-accent), 0.08),
    0 0 14px rgba(var(--seal-accent), 0.14);
  color: rgb(var(--seal-accent));
  font-size: 0.9rem;
  font-weight: 900;
  animation: ampoule-original-check-pulse 2.8s 1300ms ease-in-out infinite;
}

.ampoule-unlocked-seal strong {
  position: relative;
  z-index: 1;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.67rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  line-height: 1;
  text-shadow: 0 0 12px rgba(var(--seal-accent), 0.22);
}

@keyframes ampoule-scanner-rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ampoule-scanner-pulse {
  from {
    opacity: 0.48;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes ampoule-scanner-sweep {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(var(--scanner-travel));
  }
}

@keyframes ampoule-cinematic-reveal {
  0% {
    filter:
      blur(9px)
      saturate(0.66)
      brightness(0.74)
      drop-shadow(0 28px 24px rgba(0, 0, 0, 0.56));
    opacity: 0.3;
    transform: translateY(28px) scale(0.91);
  }

  58% {
    filter:
      blur(1px)
      saturate(1.14)
      brightness(1.1)
      drop-shadow(0 38px 32px rgba(0, 0, 0, 0.58))
      drop-shadow(0 0 28px rgba(69, 184, 255, 0.26));
    opacity: 1;
    transform: translateY(-4px) scale(1.018);
  }

  100% {
    filter:
      saturate(1.06)
      brightness(1.04)
      drop-shadow(0 38px 32px rgba(0, 0, 0, 0.58))
      drop-shadow(0 0 22px rgba(69, 184, 255, 0.16));
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ampoule-idle-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes ampoule-halo-breathe {
  0%,
  100% {
    filter: saturate(1.04);
    opacity: 0.78;
    transform: scale(0.98);
  }

  50% {
    filter: saturate(1.18);
    opacity: 1;
    transform: scale(1.025);
  }
}

@keyframes ampoule-holo-ring-clockwise {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes ampoule-holo-ring-counter {
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@keyframes ampoule-glass-sweep {
  0% {
    opacity: 0;
    transform: translate3d(-180%, 0, 0) skewX(-14deg);
  }

  12% {
    opacity: 0.72;
  }

  50% {
    opacity: 1;
  }

  88% {
    opacity: 0.72;
  }

  100% {
    opacity: 0;
    transform: translate3d(360%, 0, 0) skewX(-14deg);
  }
}

@keyframes ampoule-particle-orbit {
  0% {
    opacity: 0;
    transform: rotate(var(--particle-angle)) translateX(var(--particle-radius)) scale(0.7);
  }

  14%,
  44% {
    opacity: 0.78;
  }

  58% {
    opacity: 0.16;
  }

  76% {
    opacity: 0.7;
  }

  100% {
    opacity: 0;
    transform: rotate(calc(var(--particle-angle) + 360deg)) translateX(var(--particle-radius)) scale(1);
  }
}

@keyframes ampoule-background-line-pulse {
  0%,
  72%,
  100% {
    opacity: 0.08;
    transform: scaleX(0.62);
  }

  80% {
    opacity: 0.36;
    transform: scaleX(0.94);
  }

  88% {
    opacity: 0.12;
    transform: scaleX(0.72);
  }
}

@keyframes ampoule-platform-wave {
  0%,
  68% {
    border-color: rgba(69, 184, 255, 0);
    opacity: 0;
    transform: scale(0.72);
  }

  76% {
    border-color: rgba(93, 200, 255, 0.42);
    opacity: 0.72;
  }

  92%,
  100% {
    border-color: rgba(69, 184, 255, 0);
    opacity: 0;
    transform: scale(1.28);
  }
}

@keyframes ampoule-area-release-pulse {
  0% {
    border-color: rgba(121, 213, 255, 0);
    opacity: 0;
    transform: scale(0.78);
  }

  28% {
    border-color: rgba(161, 229, 255, 0.48);
    opacity: 0.9;
  }

  100% {
    border-color: rgba(121, 213, 255, 0);
    opacity: 0;
    transform: scale(1.16);
  }
}

@keyframes ampoule-spectral-environment-dim {
  from {
    filter: blur(2px);
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    filter: blur(0);
    opacity: 0.38;
    transform: scale(1);
  }
}

@keyframes ampoule-optic-aperture-sample {
  0% {
    filter: brightness(0.92);
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-4deg) scale(0.82);
  }

  34%,
  72% {
    filter: brightness(1.08);
    opacity: var(--scan-opacity);
    transform: translate(-50%, -50%) rotate(0deg) scale(var(--scan-aperture));
  }

  100% {
    filter: brightness(1);
    opacity: 0;
    transform: translate(-50%, -50%) rotate(1deg) scale(1);
  }
}

@keyframes ampoule-optic-arc-sample {
  0%,
  100% {
    filter: brightness(0.94);
    opacity: 0.42;
    transform: rotate(var(--arc-rest));
  }

  38%,
  72% {
    filter: brightness(1.12);
    opacity: 1;
    transform: rotate(var(--arc-sample));
  }
}

@keyframes ampoule-spectral-shell-sample {
  0% {
    filter: blur(1px);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.96);
  }

  36%,
  72% {
    filter: blur(0);
    opacity: var(--scan-opacity);
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    filter: blur(0.6px);
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.01);
  }
}

@keyframes ampoule-spectral-presence-sample {
  0%,
  100% {
    filter: brightness(0.96);
    opacity: 0;
  }

  18%,
  82% {
    filter: brightness(1.08);
    opacity: 1;
  }
}

@keyframes ampoule-spectral-sweep {
  0% {
    filter: blur(0.6px) brightness(0.94);
    opacity: 0;
    transform: translateY(-160%);
  }

  18%,
  76% {
    filter: blur(0.2px) brightness(1.1);
    opacity: var(--scan-opacity);
  }

  100% {
    filter: blur(0.6px) brightness(0.96);
    opacity: 0;
    transform: translateY(1050%);
  }
}

@keyframes ampoule-focus-grid-sample {
  0%,
  100% {
    filter: blur(0.5px);
    opacity: 0;
    transform: scale(0.96);
  }

  38%,
  72% {
    filter: blur(0);
    opacity: var(--scan-opacity);
    transform: scale(1);
  }
}

@keyframes ampoule-touch-lens-focus {
  0% {
    filter: blur(0.8px);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.76);
  }

  34%,
  72% {
    filter: blur(0);
    opacity: var(--scan-opacity);
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    filter: blur(0.4px);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.94);
  }
}

@keyframes ampoule-contour-lock-sample {
  0%,
  100% {
    filter: brightness(0.94) drop-shadow(0 0 2px rgba(69, 184, 255, 0.22));
    opacity: 0;
    transform: scale(0.992);
  }

  42%,
  74% {
    filter: brightness(1.08) drop-shadow(0 0 3px rgba(69, 184, 255, 0.42));
    opacity: var(--scan-opacity);
    transform: scale(0.998);
  }
}

@keyframes ampoule-optic-aperture-deep {
  0% {
    filter: brightness(0.94);
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-3deg) scale(0.88);
  }

  24% {
    filter: brightness(1.12);
    opacity: 0.64;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }

  100% {
    filter: brightness(1.04);
    opacity: 0.46;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.96);
  }
}

@keyframes ampoule-optic-arc-align {
  from {
    filter: brightness(0.96);
    opacity: 0.54;
    transform: rotate(var(--arc-rest));
  }

  26%,
  100% {
    filter: brightness(1.12);
    opacity: 1;
    transform: rotate(var(--arc-lock));
  }
}

@keyframes ampoule-spectral-shell-deep {
  0% {
    filter: blur(1px);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.96);
  }

  28% {
    filter: blur(0);
    opacity: 0.54;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    filter: blur(0.3px);
    opacity: 0.38;
    transform: translate(-50%, -50%) scale(0.99);
  }
}

@keyframes ampoule-spectral-presence-deep {
  from {
    filter: brightness(0.94);
    opacity: 0;
  }

  18%,
  100% {
    filter: brightness(1.08);
    opacity: 1;
  }
}

@keyframes ampoule-spectral-double-sweep {
  0% {
    filter: blur(0.6px) brightness(0.94);
    opacity: 0;
    transform: translateY(-160%);
  }

  15%,
  80% {
    filter: blur(0.2px) brightness(1.12);
    opacity: 0.48;
  }

  100% {
    filter: blur(0.6px) brightness(0.96);
    opacity: 0;
    transform: translateY(1050%);
  }
}

@keyframes ampoule-focus-grid-deep {
  from {
    filter: blur(0.6px);
    opacity: 0;
    transform: scale(0.96);
  }

  28%,
  100% {
    filter: blur(0);
    opacity: 0.24;
    transform: scale(1);
  }
}

@keyframes ampoule-touch-lens-deep {
  from {
    filter: blur(0.8px);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.76);
  }

  28%,
  100% {
    filter: blur(0);
    opacity: 0.52;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes ampoule-contour-lock-deep {
  from {
    filter: brightness(0.94) drop-shadow(0 0 2px rgba(69, 184, 255, 0.2));
    opacity: 0;
    transform: scale(0.992);
  }

  38% {
    filter: brightness(1.12) drop-shadow(0 0 4px rgba(69, 184, 255, 0.5));
    opacity: 0.42;
    transform: scale(1);
  }

  100% {
    filter: brightness(1.04) drop-shadow(0 0 3px rgba(69, 184, 255, 0.34));
    opacity: 0.3;
    transform: scale(0.998);
  }
}

@keyframes ampoule-optic-settle {
  from {
    filter: blur(0) brightness(1.08);
    opacity: 0.46;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.96);
  }

  to {
    filter: blur(1.2px) brightness(0.94);
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.68);
  }
}

@keyframes ampoule-spectral-settle {
  from {
    filter: blur(0) brightness(1.06);
    opacity: 0.34;
  }

  to {
    filter: blur(1.4px) brightness(0.94);
    opacity: 0;
  }
}

@keyframes ampoule-contour-settle {
  0% {
    filter: brightness(1.08) drop-shadow(0 0 3px rgba(69, 184, 255, 0.4));
    opacity: 0.34;
    transform: scale(0.998);
  }

  38% {
    filter: brightness(1.12) drop-shadow(0 0 3px rgba(225, 202, 147, 0.3));
    opacity: 0.42;
    transform: scale(0.986);
  }

  100% {
    filter: brightness(0.94) drop-shadow(0 0 1px rgba(69, 184, 255, 0.12));
    opacity: 0;
    transform: scale(0.95);
  }
}

@keyframes ampoule-seal-in {
  from {
    opacity: 0;
    transform: translate(-50%, -12px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes ampoule-original-seal-breathe {
  0%,
  100% {
    filter: brightness(0.98) saturate(0.98);
  }

  50% {
    filter: brightness(1.08) saturate(1.08);
  }
}

@keyframes ampoule-original-seal-halo {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.48;
    transform: scale(1.05);
  }
}

@keyframes ampoule-original-seal-sheen {
  0%,
  64%,
  100% {
    background-position: 180% 50%;
    opacity: 0;
  }

  70% {
    opacity: 0.78;
  }

  88% {
    background-position: -80% 50%;
    opacity: 0.78;
  }

  94% {
    background-position: -80% 50%;
    opacity: 0;
  }
}

@keyframes ampoule-original-check-pulse {
  0%,
  100% {
    opacity: 0.78;
    transform: scale(0.94);
  }

  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

.product-floor {
  position: absolute;
  z-index: 1;
  bottom: -8px;
  width: min(85vw, 440px);
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(24, 100, 181, 0.22), transparent 68%);
  filter: blur(8px);
}

.product-floor::after {
  position: absolute;
  inset: 13% 4%;
  border: 1px solid rgba(69, 184, 255, 0);
  border-radius: inherit;
  content: "";
  opacity: 0;
  transform: scale(0.72);
}

.product-hero[data-ampoule-state="unlocked"] .product-floor::after {
  animation: ampoule-platform-wave 7.2s 1.6s ease-out infinite;
}

.product-image-note {
  position: absolute;
  z-index: 4;
  right: 5%;
  bottom: -30px;
  left: 5%;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.66rem;
  line-height: 1.5;
  text-align: center;
}

.product-copy {
  position: relative;
  z-index: 2;
}

.product-index {
  margin: 34px 0 11px;
  color: var(--text-muted);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

.product-copy h2 {
  max-width: 720px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 11vw, 5.4rem);
  font-weight: 590;
  letter-spacing: -0.06em;
  line-height: 0.92;
  overflow-wrap: anywhere;
}

.product-presentation {
  margin: 18px 0 0;
  color: var(--gold-soft);
  font-size: clamp(0.95rem, 4vw, 1.2rem);
  letter-spacing: 0.035em;
}

.product-status {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  margin: 26px 0 0;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

.product-status--verified {
  border-color: rgba(102, 212, 173, 0.28);
  background: rgba(35, 127, 104, 0.09);
  color: #ccf9e9;
}

.product-status--verified .product-status-dot {
  background: var(--success);
  box-shadow: 0 0 10px rgba(102, 212, 173, 0.58);
}

.product-status--unlocked {
  border-color: rgba(102, 212, 173, 0.35);
  background: rgba(35, 127, 104, 0.11);
  color: #ccf9e9;
  box-shadow:
    inset 0 0 18px rgba(102, 212, 173, 0.05),
    0 0 20px rgba(102, 212, 173, 0.08);
}

.product-status--unlocked .product-status-dot {
  background: var(--success);
  box-shadow: 0 0 12px rgba(102, 212, 173, 0.66);
}

.product-status--test {
  border-color: rgba(231, 183, 108, 0.34);
  background: rgba(141, 93, 27, 0.1);
  color: #ffe4b4;
}

.product-status--test .product-status-dot {
  background: var(--warning);
  box-shadow: 0 0 10px rgba(231, 183, 108, 0.46);
}

.product-status--error {
  border-color: rgba(255, 127, 134, 0.28);
  background: rgba(151, 44, 54, 0.08);
  color: #ffd4d7;
}

.product-status--error .product-status-dot {
  background: var(--danger);
}

.product-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 28px 0 0;
  border: 1px solid rgba(157, 187, 218, 0.13);
  border-radius: 14px;
  background: rgba(157, 187, 218, 0.1);
}

.product-data--test {
  border-color: rgba(231, 183, 108, 0.2);
  background: rgba(231, 183, 108, 0.12);
}

.product-data--test .product-data-item dd {
  color: #f7e7c9;
}

.product-data-item {
  min-width: 0;
  padding: 15px;
  background: rgba(4, 10, 17, 0.95);
}

.product-data-item dt {
  margin: 0 0 5px;
  color: var(--text-muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.product-data-item dd {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--text);
  font-size: 0.83rem;
}

.button--secondary {
  margin-top: 30px;
  border: 1px solid rgba(69, 184, 255, 0.32);
  background: rgba(10, 72, 137, 0.1);
  color: #dfeefb;
}

.button--secondary:hover {
  border-color: rgba(69, 184, 255, 0.62);
  background: rgba(10, 72, 137, 0.18);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

.leaflet-section {
  position: relative;
  padding: 96px 0 110px;
  background:
    linear-gradient(rgba(2, 5, 9, 0.78), rgba(2, 5, 9, 0.96)),
    radial-gradient(circle at 14% 8%, rgba(16, 89, 166, 0.14), transparent 26rem);
  content-visibility: auto;
  contain-intrinsic-size: 1600px;
}

.leaflet-header {
  display: grid;
  gap: 18px;
  margin-bottom: 34px;
}

.leaflet-header h2 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 15vw, 6.2rem);
  font-weight: 580;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.leaflet-header > p {
  max-width: 420px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.leaflet-identity {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid rgba(201, 168, 95, 0.2);
  border-radius: var(--radius-md);
  background:
    linear-gradient(115deg, rgba(201, 168, 95, 0.065), transparent 44%),
    rgba(7, 13, 21, 0.72);
}

.leaflet-identity::after {
  position: absolute;
  top: -50%;
  right: -16%;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(201, 168, 95, 0.09);
  border-radius: 50%;
  content: "";
}

.leaflet-identity p {
  margin: 0 0 10px;
  color: var(--gold-soft);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.2em;
}

.leaflet-identity h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 6vw, 2rem);
  font-weight: 620;
  letter-spacing: -0.025em;
}

.leaflet-identity span {
  display: block;
  margin-top: 7px;
  color: var(--silver);
  font-size: 0.82rem;
}

.medical-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  padding: 13px 15px;
  border: 1px solid rgba(231, 183, 108, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(126, 89, 35, 0.055);
  color: var(--text-soft);
}

.medical-note-mark {
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(231, 183, 108, 0.4);
  border-radius: 50%;
  color: var(--gold-soft);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.medical-note p {
  margin: 0;
  font-size: 0.76rem;
}

.leaflet-tools {
  display: grid;
  gap: 12px;
  margin-bottom: 10px;
}

.search-wrap {
  position: relative;
  display: block;
}

.search-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 18px;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--text-muted);
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}

.search-icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 1.5px;
  background: var(--text-muted);
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.search-wrap input {
  width: 100%;
  min-height: 54px;
  padding: 0 52px 0 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: 0;
  background: rgba(7, 14, 23, 0.82);
  color: var(--text);
  font-size: 0.9rem;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.search-wrap input::-webkit-search-cancel-button {
  display: none;
}

.search-wrap input:focus {
  border-color: rgba(69, 184, 255, 0.48);
  box-shadow: 0 0 0 3px rgba(37, 137, 234, 0.09);
}

.search-clear {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  transform: translateY(-50%);
}

.search-clear:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.leaflet-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tool-button {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(7, 14, 23, 0.7);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.tool-button:hover {
  border-color: rgba(69, 184, 255, 0.34);
  background: rgba(10, 67, 126, 0.12);
  color: var(--text);
}

.search-status {
  min-height: 20px;
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.accordion {
  border-top: 1px solid var(--line);
}

.accordion-item {
  --sigil-delay: 0s;
  border-bottom: 1px solid var(--line);
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.accordion-item:nth-child(2) {
  --sigil-delay: -0.8s;
}

.accordion-item:nth-child(3) {
  --sigil-delay: -1.6s;
}

.accordion-item:nth-child(4) {
  --sigil-delay: -2.4s;
}

.accordion-item:nth-child(5) {
  --sigil-delay: -3.2s;
}

.accordion-item:nth-child(6) {
  --sigil-delay: -4s;
}

.accordion-item:nth-child(7) {
  --sigil-delay: -4.8s;
}

.accordion-item:nth-child(8) {
  --sigil-delay: -5.6s;
}

.accordion-item[hidden] {
  display: none;
}

.accordion-item.is-open {
  border-color: rgba(69, 184, 255, 0.22);
  background: linear-gradient(90deg, rgba(16, 82, 151, 0.06), transparent 55%);
}

.accordion-item h3 {
  margin: 0;
}

.accordion-trigger {
  display: grid;
  width: 100%;
  min-height: 78px;
  grid-template-columns: 36px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  padding: 15px 4px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.accordion-sigil {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(69, 184, 255, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(69, 184, 255, 0.09), transparent 58%),
    rgba(3, 11, 19, 0.62);
  box-shadow:
    inset 0 0 12px rgba(13, 120, 232, 0.05),
    0 0 0 rgba(69, 184, 255, 0);
  overflow: hidden;
  transition:
    border-color 220ms ease,
    box-shadow 260ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.accordion-sigil::before,
.accordion-sigil::after {
  position: absolute;
  z-index: 1;
  background: rgba(97, 197, 255, 0.22);
  content: "";
}

.accordion-sigil::before {
  width: 20px;
  height: 1px;
}

.accordion-sigil::after {
  width: 1px;
  height: 20px;
}

.accordion-sigil__orbit {
  position: absolute;
  z-index: 2;
  inset: 3px;
  border: 1px solid transparent;
  border-top-color: rgba(117, 211, 255, 0.7);
  border-right-color: rgba(225, 202, 147, 0.34);
  border-radius: 50%;
  filter: drop-shadow(0 0 3px rgba(69, 184, 255, 0.42));
  animation: accordion-sigil-orbit 8.5s var(--sigil-delay) linear infinite;
}

.accordion-sigil__orbit::after {
  position: absolute;
  top: 1px;
  right: 2px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #8ed9ff;
  box-shadow: 0 0 6px rgba(69, 184, 255, 0.86);
  content: "";
}

.accordion-sigil__core {
  position: relative;
  z-index: 3;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(185, 232, 255, 0.62);
  border-radius: 50%;
  background: rgba(69, 184, 255, 0.46);
  box-shadow:
    inset 0 0 4px rgba(255, 255, 255, 0.42),
    0 0 8px rgba(69, 184, 255, 0.46);
  animation: accordion-sigil-core 5.8s var(--sigil-delay) ease-in-out infinite;
}

.accordion-sigil__scan {
  position: absolute;
  z-index: 4;
  top: 7px;
  right: 5px;
  left: 5px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185, 232, 255, 0.82), transparent);
  box-shadow: 0 0 4px rgba(69, 184, 255, 0.52);
  opacity: 0;
  animation: accordion-sigil-scan 6.4s var(--sigil-delay) ease-in-out infinite;
}

.accordion-title {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 4.4vw, 1.25rem);
  font-weight: 620;
  letter-spacing: 0.035em;
}

.accordion-toggle {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition:
    border-color 180ms ease,
    transform 240ms ease,
    background-color 180ms ease;
}

.accordion-toggle::before,
.accordion-toggle::after {
  position: absolute;
  width: 9px;
  height: 1px;
  background: var(--silver);
  content: "";
}

.accordion-toggle::after {
  transform: rotate(90deg);
  transition: transform 220ms ease;
}

.accordion-trigger:hover .accordion-title {
  color: var(--blue-bright);
}

.accordion-trigger:hover .accordion-sigil {
  border-color: rgba(105, 201, 255, 0.48);
  box-shadow:
    inset 0 0 14px rgba(13, 120, 232, 0.09),
    0 0 16px rgba(69, 184, 255, 0.11);
  transform: scale(1.06);
}

.accordion-trigger:hover .accordion-sigil__orbit {
  animation-duration: 5.2s;
}

.accordion-trigger:hover .accordion-toggle {
  border-color: rgba(69, 184, 255, 0.38);
  background: rgba(20, 105, 195, 0.09);
}

.accordion-item.is-open .accordion-sigil {
  border-color: rgba(117, 211, 255, 0.66);
  box-shadow:
    inset 0 0 16px rgba(13, 120, 232, 0.12),
    0 0 18px rgba(69, 184, 255, 0.18);
  transform: scale(1.09);
}

.accordion-item.is-open .accordion-sigil__orbit {
  border-top-color: rgba(164, 226, 255, 0.96);
  border-right-color: rgba(225, 202, 147, 0.58);
  animation-duration: 4.4s;
}

.accordion-item.is-open .accordion-sigil__core {
  background: rgba(103, 205, 255, 0.74);
  box-shadow:
    inset 0 0 5px rgba(255, 255, 255, 0.58),
    0 0 11px rgba(69, 184, 255, 0.72);
}

.accordion-item.is-open .accordion-sigil__scan {
  animation-duration: 3.6s;
}

.accordion-item.is-open .accordion-toggle {
  border-color: rgba(69, 184, 255, 0.42);
  transform: rotate(90deg);
}

.accordion-item.is-open .accordion-toggle::after {
  transform: rotate(0deg);
}

@keyframes accordion-sigil-orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes accordion-sigil-core {
  0%,
  74%,
  100% {
    opacity: 0.54;
    transform: scale(0.86);
  }

  82% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes accordion-sigil-scan {
  0%,
  68%,
  100% {
    top: 7px;
    opacity: 0;
  }

  73% {
    opacity: 0.72;
  }

  86% {
    top: 24px;
    opacity: 0.16;
  }
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition:
    grid-template-rows 260ms ease,
    visibility 260ms;
}

.accordion-item.is-open .accordion-panel {
  grid-template-rows: 1fr;
  visibility: visible;
}

.accordion-panel-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 4px;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.82;
  opacity: 0;
  transform: translateY(-5px);
  transition:
    opacity 200ms ease,
    transform 220ms ease,
    padding 260ms ease;
}

.accordion-item.is-open .accordion-panel-inner {
  padding: 0 4px 28px 50px;
  opacity: 1;
  transform: translateY(0);
}

.accordion-panel-inner p {
  margin: 0;
}

.accordion-panel-inner p + p {
  margin-top: 12px;
}

.formula-line {
  overflow-wrap: anywhere;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.78rem;
}

.leaflet-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaflet-list li {
  position: relative;
  padding-left: 18px;
}

.leaflet-list li::before {
  position: absolute;
  top: 0.76em;
  left: 1px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--blue-bright);
  content: "";
  transform: rotate(45deg);
}

.no-results {
  padding: 42px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-align: center;
}

.no-results strong,
.no-results span {
  display: block;
}

.no-results strong {
  color: var(--text);
}

.no-results span {
  margin-top: 4px;
  font-size: 0.84rem;
}

.consultation-live {
  --consultation-edge: 65, 184, 255;
  --consultation-value: 211, 239, 255;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(66px, 10vw, 128px) 0 clamp(78px, 11vw, 140px);
  border-top: 1px solid rgba(69, 184, 255, 0.07);
  background:
    radial-gradient(circle at 50% 36%, rgba(22, 111, 167, 0.12), transparent 39%),
    linear-gradient(
      180deg,
      rgba(2, 6, 10, 0.92) 0%,
      rgba(3, 9, 16, 0.88) 48%,
      rgba(2, 5, 9, 0.93) 100%
    );
}

.consultation-live::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(rgba(83, 190, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 190, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  opacity: 0.62;
  -webkit-mask-image: radial-gradient(circle at center, #000 8%, transparent 74%);
  mask-image: radial-gradient(circle at center, #000 8%, transparent 74%);
}

.consultation-live::after {
  position: absolute;
  z-index: -1;
  top: 14%;
  left: 50%;
  width: min(820px, 116vw);
  aspect-ratio: 1;
  border: 1px solid rgba(var(--consultation-edge), 0.07);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 60%, rgba(var(--consultation-edge), 0.035) 60.3%, transparent 61%),
    conic-gradient(
      from 20deg,
      transparent 0 20%,
      rgba(var(--consultation-edge), 0.13) 23%,
      transparent 27% 68%,
      rgba(var(--consultation-edge), 0.08) 72%,
      transparent 76%
    );
  content: "";
  filter: drop-shadow(0 0 28px rgba(var(--consultation-edge), 0.08));
  opacity: 0.68;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: consultation-orbit 24s linear infinite;
}

.consultation-live[data-result="validated"] {
  --consultation-edge: 81, 235, 166;
  --consultation-value: 193, 255, 222;
}

.consultation-live__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
  width: min(820px, 100%);
  margin: 0 auto;
}

.consultation-live__grid::before {
  position: absolute;
  z-index: -1;
  top: 26%;
  left: 50%;
  width: 72%;
  height: 58%;
  border-radius: 50%;
  background: rgba(var(--consultation-edge), 0.12);
  content: "";
  filter: blur(76px);
  opacity: 0.45;
  pointer-events: none;
  transform: translateX(-50%);
  animation: consultation-ambient 7s ease-in-out infinite;
}

.consultation-live__module {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(152px, 21vw, 190px);
  align-content: center;
  margin: 0;
  padding: clamp(28px, 4.4vw, 46px) clamp(20px, 4vw, 40px);
  overflow: hidden;
  border: 1px solid rgba(var(--consultation-edge), 0.17);
  border-radius: 3px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 42%),
    rgba(3, 10, 17, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    inset 0 -1px 0 rgba(var(--consultation-edge), 0.045),
    0 30px 80px rgba(0, 0, 0, 0.3);
  text-align: center;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.consultation-live__module::before {
  position: absolute;
  z-index: -1;
  top: -28%;
  bottom: -28%;
  left: -42%;
  width: 34%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(232, 248, 255, 0.12),
    rgba(var(--consultation-edge), 0.18),
    transparent
  );
  content: "";
  filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transform: skewX(-16deg);
  animation: consultation-sheen 11s 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.consultation-live__module::after {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(var(--consultation-edge), 0.045);
  content: "";
  pointer-events: none;
  clip-path: polygon(
    0 0,
    22px 0,
    22px 1px,
    1px 1px,
    1px 22px,
    0 22px,
    0 100%,
    calc(100% - 22px) 100%,
    calc(100% - 22px) calc(100% - 1px),
    calc(100% - 1px) calc(100% - 1px),
    calc(100% - 1px) calc(100% - 22px),
    100% calc(100% - 22px),
    100% 0
  );
}

.consultation-live__module--current {
  grid-column: 1 / -1;
  width: min(500px, 72%);
  min-height: clamp(142px, 18vw, 170px);
  justify-self: center;
}

.consultation-live dt,
.consultation-live dd {
  margin: 0;
}

.consultation-live dt {
  color: rgba(168, 199, 218, 0.58);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: clamp(0.62rem, 1.15vw, 0.75rem);
  font-weight: 700;
  letter-spacing: clamp(0.2em, 0.7vw, 0.34em);
  line-height: 1.35;
}

.consultation-live dd {
  margin-top: clamp(16px, 2.3vw, 23px);
  color: rgb(var(--consultation-value));
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: clamp(1.12rem, 3.1vw, 1.72rem);
  font-weight: 600;
  letter-spacing: clamp(0.06em, 0.55vw, 0.14em);
  line-height: 1.25;
  text-shadow:
    0 0 18px rgba(var(--consultation-edge), 0.2),
    0 0 46px rgba(var(--consultation-edge), 0.07);
}

.consultation-live[data-result="validated"] .consultation-live__module--status dd {
  animation: consultation-confirmed 3.8s ease-in-out infinite;
}

@keyframes consultation-orbit {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes consultation-ambient {
  0%,
  100% {
    opacity: 0.28;
    transform: translateX(-50%) scale(0.94);
  }
  50% {
    opacity: 0.52;
    transform: translateX(-50%) scale(1.04);
  }
}

@keyframes consultation-sheen {
  0%,
  73% {
    left: -42%;
    opacity: 0;
  }
  78% {
    opacity: 0.5;
  }
  88% {
    left: 118%;
    opacity: 0.18;
  }
  100% {
    left: 118%;
    opacity: 0;
  }
}

@keyframes consultation-confirmed {
  0%,
  100% {
    filter: brightness(0.96);
    opacity: 0.88;
  }
  50% {
    filter: brightness(1.18);
    opacity: 1;
  }
}

.site-footer {
  padding: 34px 0 calc(34px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(2, 4, 8, 0.94);
}

.footer-inner {
  display: grid;
  gap: 22px;
}

.footer-brand {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-brand::before {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  background: rgba(225, 202, 147, 0.44);
  content: "";
  filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.06);
  -webkit-mask: url("/media/brand/lex-symbol.png") center / contain no-repeat;
  mask: url("/media/brand/lex-symbol.png") center / contain no-repeat;
}

.footer-brand::after {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  background:
    linear-gradient(
      105deg,
      rgba(255, 255, 255, 0) 28%,
      rgba(255, 248, 218, 0.96) 48%,
      rgba(225, 202, 147, 0.9) 54%,
      rgba(255, 255, 255, 0) 72%
    );
  background-position: 180% 50%;
  background-size: 320% 100%;
  content: "";
  opacity: 0;
  pointer-events: none;
  -webkit-mask: url("/media/brand/lex-symbol.png") center / contain no-repeat;
  mask: url("/media/brand/lex-symbol.png") center / contain no-repeat;
}

.footer-brand img {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

html.site-opening-complete .footer-brand.is-logo-visible img {
  animation: lex-logo-initialize 1500ms 180ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

html.site-opening-complete .footer-brand.is-logo-visible::before {
  animation: lex-logo-halo 11s 1680ms ease-in-out infinite;
}

html.site-opening-complete .footer-brand.is-logo-visible::after {
  animation: lex-logo-metallic-sheen 12s 2400ms ease-in-out infinite;
}

.footer-brand > div {
  position: relative;
  display: grid;
}

.footer-brand > div::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(225, 202, 147, 0.08), rgba(225, 202, 147, 0.76), transparent);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: scaleX(0.08);
  transform-origin: left center;
}

html.site-opening-complete .footer-brand.is-logo-visible > div::after {
  animation: lex-footer-signature-line 12s 2800ms cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.footer-brand strong {
  color: var(--gold-soft);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.footer-brand span {
  color: var(--text-muted);
  font-size: 0.68rem;
}

.footer-inner > p {
  max-width: 560px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.6;
}

.back-to-top {
  position: fixed;
  z-index: 80;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(69, 184, 255, 0.34);
  border-radius: 50%;
  background: rgba(5, 14, 23, 0.84);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
  color: var(--blue-bright);
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.back-to-top:hover {
  border-color: rgba(69, 184, 255, 0.65);
}

.noscript-message {
  position: fixed;
  z-index: 900;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(231, 183, 108, 0.42);
  border-radius: 10px;
  background: #171107;
  color: #f3dfbd;
  font-size: 0.82rem;
}

@media (max-width: 520px) {
  .header-inner {
    gap: 10px;
  }

  .product-visual {
    perspective: 760px;
  }

  .header-actions {
    gap: 7px;
  }

  .header-link {
    gap: 6px;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }

  .header-link-flag {
    width: 21px;
    height: 16px;
    font-size: 0.78rem;
  }

  .header-link-arrow {
    display: none;
  }

  .language-toggle {
    min-height: 36px;
    gap: 6px;
    padding: 4px 8px 4px 4px;
  }

  .language-toggle__signal {
    width: 26px;
    height: 26px;
  }

  .language-toggle__label {
    display: none;
  }

  .consultation-live {
    padding: 64px 0 78px;
  }

  .consultation-live__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .consultation-live__module,
  .consultation-live__module--current {
    grid-column: auto;
    width: 100%;
    min-height: 136px;
  }

  .consultation-live__module {
    padding: 27px 18px;
  }

  .consultation-live dd {
    font-size: clamp(1.04rem, 5vw, 1.28rem);
    letter-spacing: 0.08em;
  }

  .ampoule-touch-lens {
    width: 62px;
  }

  .ampoule-lock {
    --scanner-size: 158px;
    --scanner-travel: 108px;
    inset: 4%;
    border-radius: 20px;
  }

  .ampoule-lock::before {
    inset: 8px;
    border-radius: 14px;
  }

  .ampoule-lock__scanner {
    margin-bottom: 48px;
  }

  .ampoule-lock__ring--inner {
    inset: 34px;
  }

  .ampoule-lock__reticle {
    inset: 23px;
  }

  .ampoule-lock__core {
    width: 54px;
    height: 54px;
  }

  .ampoule-lock__copy {
    right: 18px;
    bottom: 29px;
    left: 18px;
    gap: 5px;
    padding-top: 14px;
  }

  .ampoule-lock__copy strong {
    font-size: 0.72rem;
  }

  .ampoule-lock__copy span {
    font-size: 0.59rem;
  }

  .ampoule-unlocked-seal {
    top: 0.5%;
    right: auto;
    left: 50%;
  }

  .product-hero[data-ampoule-state="unlocked"] .ampoule-presence {
    scale: 1.12;
  }
}

@media (min-width: 560px) {
  .shell {
    width: min(calc(100% - 48px), var(--shell));
  }

  .button--primary {
    min-width: 148px;
  }

  .leaflet-tools {
    grid-template-columns: minmax(220px, 1fr) auto;
  }

  .leaflet-actions {
    display: flex;
  }

  .tool-button {
    min-width: 126px;
  }

  .accordion-trigger {
    grid-template-columns: 52px minmax(0, 1fr) 34px;
    padding-inline: 8px;
  }

  .accordion-item.is-open .accordion-panel-inner {
    padding-left: 68px;
  }
}

@media (min-width: 800px) {
  :root {
    --header-height: 82px;
  }

  .brand-image-wrap,
  .brand-wordmark {
    width: 138px;
    height: 54px;
  }

  .product-hero {
    padding-block: 120px;
  }

  .product-layout {
    grid-template-columns: minmax(340px, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(50px, 8vw, 110px);
  }

  .product-visual {
    min-height: 660px;
  }

  .product-frame {
    width: min(38vw, 460px);
    min-height: 630px;
  }

  .ampoule-image {
    max-height: 680px;
  }

  .product-halo {
    width: min(43vw, 550px);
  }

  .product-copy h2 {
    font-size: clamp(3.8rem, 7vw, 6.4rem);
  }

  .leaflet-section {
    padding-block: 130px 150px;
  }

  .leaflet-header {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
    align-items: end;
    margin-bottom: 46px;
  }

  .leaflet-header > p {
    justify-self: end;
    padding-bottom: 4px;
  }

  .leaflet-identity {
    padding: 28px 32px;
  }

  .accordion-trigger {
    min-height: 92px;
    grid-template-columns: 70px minmax(0, 1fr) 40px;
  }

  .accordion-item.is-open .accordion-panel-inner {
    padding: 0 64px 34px 86px;
  }

  .accordion-panel-inner {
    max-width: 920px;
    font-size: 1rem;
  }

  .formula-line {
    font-size: 0.9rem;
  }

  .footer-inner {
    grid-template-columns: auto minmax(260px, 560px);
    align-items: center;
    justify-content: space-between;
  }

  .footer-inner > p {
    text-align: right;
  }
}

@media (max-width: 374px) {
  .shell {
    width: min(calc(100% - 24px), var(--shell));
  }

  .product-data {
    grid-template-columns: 1fr;
  }

  .product-visual {
    min-height: 420px;
  }

  .product-frame {
    min-height: 410px;
  }

  .accordion-item.is-open .accordion-panel-inner {
    padding-left: 40px;
  }

  .formula-line {
    font-size: 0.7rem;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .product-visual {
    min-height: 420px;
  }
}

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

  .ambient-field *,
  .ambient-field *::before,
  .ambient-field *::after,
  .ambient-field::after,
  .ambient-touch-focus,
  [data-ambient-ripple] {
    animation: none !important;
    transition: none !important;
  }

  .ambient-field {
    opacity: 1;
  }

  .ambient-touch-layer {
    display: none;
  }

  .consultation-live::after,
  .consultation-live__grid::before,
  .consultation-live__module::before,
  .consultation-live[data-result="validated"] .consultation-live__module--status dd {
    animation: none !important;
  }

  .language-toggle::before {
    animation: none !important;
  }

  .opening-result-panel__content {
    animation: none !important;
  }

  .site-opening[data-phase="result"] .opening-result-panel__content {
    opacity: 1;
    transform: none;
  }

  html.site-opening-complete .brand-wordmark,
  html.site-opening-complete .brand::before,
  html.site-opening-complete .brand::after,
  html.site-opening-complete .brand-image-wrap::before,
  html.site-opening-complete .brand-image-wrap::after,
  html.site-opening-complete .footer-brand.is-logo-visible img,
  html.site-opening-complete .footer-brand.is-logo-visible::before,
  html.site-opening-complete .footer-brand.is-logo-visible::after,
  html.site-opening-complete .footer-brand.is-logo-visible > div::after {
    animation: none !important;
  }

  .product-hero[data-ampoule-state="unlocked"] .ampoule-unlocked-seal::before,
  .product-hero[data-ampoule-state="unlocked"] .ampoule-unlocked-seal::after,
  .product-hero[data-ampoule-state="unlocked"] .ampoule-unlocked-seal__check {
    animation: none !important;
  }

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

  .product-hero[data-ampoule-state="unlocked"] .ampoule-presence,
  .product-hero[data-ampoule-state="unlocked"] .ampoule-image,
  .product-hero[data-ampoule-state="unlocked"] .product-halo,
  .product-hero[data-ampoule-state="unlocked"] .ampoule-unlocked-seal,
  .product-hero[data-ampoule-state="unlocked"] .ampoule-holo-ring,
  .product-hero[data-ampoule-state="unlocked"] .ampoule-field-line,
  .product-hero[data-ampoule-state="unlocked"] .ampoule-orbit-particle,
  .product-hero[data-ampoule-state="unlocked"] .ampoule-glass-reflection,
  .product-hero[data-ampoule-state="unlocked"] .ampoule-glass-reflection::before,
  .product-hero[data-optic-state="deep-scan"] .product-visual::before,
  .product-frame:is(
    .is-spectral-sampling,
    .is-deep-scanning,
    .is-optic-settling
  ) .ampoule-optic-aperture,
  .product-frame:is(
    .is-spectral-sampling,
    .is-deep-scanning,
    .is-optic-settling
  ) .ampoule-optic-aperture__arc,
  .product-frame:is(
    .is-spectral-sampling,
    .is-deep-scanning,
    .is-optic-settling
  ) .ampoule-spectral-shell,
  .product-frame:is(
    .is-spectral-sampling,
    .is-deep-scanning,
    .is-optic-settling
  ) .ampoule-spectral-scan,
  .product-frame:is(
    .is-spectral-sampling,
    .is-deep-scanning,
    .is-optic-settling
  ) .ampoule-spectral-scan::before,
  .product-frame:is(
    .is-spectral-sampling,
    .is-deep-scanning,
    .is-optic-settling
  ) .ampoule-spectral-scan::after,
  .product-frame:is(
    .is-spectral-sampling,
    .is-deep-scanning,
    .is-optic-settling
  ) .ampoule-focus-grid,
  .product-frame:is(
    .is-spectral-sampling,
    .is-deep-scanning,
    .is-optic-settling
  ) .ampoule-touch-lens,
  .product-frame:is(
    .is-spectral-sampling,
    .is-deep-scanning,
    .is-optic-settling
  ) .ampoule-contour-lock,
  .product-hero[data-ampoule-state="unlocked"] .product-floor::after,
  .product-hero.is-release-pulse .product-visual::after,
  .product-hero[data-release-pulse="active"] .product-visual::after,
  .product-hero[data-ampoule-state="unlocking"] .ampoule-lock__ring,
  .product-hero[data-ampoule-state="unlocking"] .ampoule-lock__scanline,
  .accordion-sigil__orbit,
  .accordion-sigil__core,
  .accordion-sigil__scan {
    animation: none !important;
  }

  .product-frame:is(
    .is-spectral-sampling,
    .is-deep-scanning,
    .is-optic-settling
  ) :is(
    .ampoule-optic-aperture,
    .ampoule-optic-aperture__arc,
    .ampoule-spectral-shell,
    .ampoule-spectral-scan,
    .ampoule-focus-grid,
    .ampoule-touch-lens,
    .ampoule-contour-lock
  ),
  .product-frame:is(
    .is-spectral-sampling,
    .is-deep-scanning,
    .is-optic-settling
  ) .ampoule-spectral-scan::before,
  .product-frame:is(
    .is-spectral-sampling,
    .is-deep-scanning,
    .is-optic-settling
  ) .ampoule-spectral-scan::after {
    will-change: auto !important;
  }

  .product-frame:is(
    .is-spectral-sampling,
    .is-deep-scanning,
    .is-optic-settling
  ) :is(
    .ampoule-optic-aperture,
    .ampoule-spectral-shell,
    .ampoule-spectral-scan,
    .ampoule-focus-grid,
    .ampoule-touch-lens,
    .ampoule-contour-lock
  ) {
    opacity: 0;
  }

  .product-hero[data-ampoule-state="unlocked"] .ampoule-presence {
    scale: 1.14;
    transform: translateY(-4px);
  }

  .product-hero[data-ampoule-state="unlocked"] .ampoule-image {
    filter:
      saturate(1.06)
      brightness(1.04)
      drop-shadow(0 38px 32px rgba(0, 0, 0, 0.58));
    opacity: 1;
    transform: none;
  }

  .product-hero[data-ampoule-state="unlocked"] .ampoule-glass-reflection {
    opacity: 0.3;
  }

  .product-hero[data-ampoule-state="unlocked"] .ampoule-glass-reflection::before {
    opacity: 0.34;
    transform: translate3d(95%, 0, 0) skewX(-14deg);
  }

  .product-hero[data-ampoule-state="unlocked"] .product-halo {
    opacity: 1;
    transform: none;
  }

  .product-hero[data-ampoule-state="unlocked"] .ampoule-lock {
    display: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(195, 216, 238, 0.36);
    --text-soft: #d1d9e2;
    --text-muted: #a7b3c0;
  }

  .leaflet-identity,
  .search-wrap input,
  .tool-button {
    background-color: var(--ink-1);
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #fff;
    color: #111;
  }

  .ambient-layer,
  .ambient-touch-layer,
  .site-opening,
  .site-header,
  .product-hero,
  .leaflet-tools,
  .search-status,
  .site-footer,
  .back-to-top {
    display: none !important;
  }

  .leaflet-section {
    padding: 0;
    background: #fff;
  }

  .leaflet-header p,
  .leaflet-identity span,
  .accordion-panel-inner {
    color: #222;
  }

  .leaflet-identity,
  .accordion-item {
    border-color: #bbb;
    background: transparent;
  }

  .accordion-panel {
    grid-template-rows: 1fr !important;
    visibility: visible !important;
  }

  .accordion-panel-inner {
    padding: 0 0 20px !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .accordion-trigger {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .accordion-sigil {
    display: none !important;
  }

  .accordion-toggle {
    display: none;
  }
}
