:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
  --bg: #090e1a;
  --fg: #f1f6ff;
  --muted: #a2b2cc;
  --accent: #91d9ff;
  --accent2: #c1aaff;
  --line: #8fbff326;
  --surface: #111c31;
  --surface2: #162845;
  background: var(--bg);
  color: var(--fg);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden;
  background: radial-gradient(ellipse 620px 430px at 80% 0%, #263c7752, transparent 80%),
    radial-gradient(ellipse 480px 380px at 10% 24%, #1a286e3d, transparent 90%), var(--bg);
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, .tilt-card:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 4px;
}
.page { max-width: 1280px; margin: 0 auto; padding: 0 42px; }
.topbar { display: flex; align-items: center; gap: 24px; justify-content: space-between;
  padding: 26px 0; border-bottom: 1px solid var(--line); }
.brand { font-size: 15px; font-weight: 850; letter-spacing: .09em; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.mark { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 12px;
  border: 1px solid #8fcbef86; color: #e3f7ff;
  background: linear-gradient(145deg,#315e87,#182348); font-size: 24px; font-weight: 850; }
.brand-dot { color: var(--accent); }
.brand-light { color: var(--muted); font-weight: 500; }
nav { display: flex; gap: 26px; font-size: 13px; color: var(--muted); }
nav a { transition: color .16s ease; }
.controls { display: flex; gap: 8px; }
.controls button { padding: 11px 15px; color: var(--fg); background: #17243e;
  border: 1px solid var(--line); border-radius: 999px; font-size: 12px; white-space: nowrap; }
.controls button:hover { border-color: #76bcee81; }
.hero { padding: 88px 0 74px; max-width: 930px; }
.eyebrow, .serial, .flag { font-size: 11px; font-weight: 750; letter-spacing: .16em; color: var(--accent); }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 100%;
  background: #85e2d7; box-shadow: 0 0 0 5px #85e2d713; margin-right: 9px; vertical-align: 1px; }
h1 { font-size: clamp(44px, 6vw, 83px); letter-spacing: -.075em; line-height: 1.06;
  margin: 22px 0 22px; font-weight: 790; }
h1 span { background: linear-gradient(92deg,#d6e8ff,#83caf3 55%,#bfadff); background-clip: text;
  -webkit-background-clip: text; color: transparent; }
.intro { max-width: 720px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.facts { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 30px; }
.facts span { font-size: 12px; border: 1px solid var(--line); color: #bfd2ec;
  border-radius: 999px; padding: 10px 13px; background: #28416a35; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px;
  margin: 0 0 20px; scroll-margin-top: 30px; }
h2 { font-size: clamp(26px, 3vw, 35px); letter-spacing: -.05em; margin: 9px 0 0; }
.section-note { font-size: 12px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.specimen { min-width: 0; border: 1px solid var(--line); border-radius: 22px;
  background: linear-gradient(165deg,#172641dc,#0f1b31);
  overflow: hidden; box-shadow: 0 26px 50px #0307102c; }
.specimen-head { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 24px 25px 0; }
.serial { color: #9cc9e9; letter-spacing: .135em; }
.flag { color: #a5b6d0; font-size: 10px; letter-spacing: .1em; border: 1px solid var(--line);
  padding: 7px 10px; border-radius: 7px; }
.tilt-stage, .orbit-stage, .wave-stage { position: relative; display: grid;
  place-items: center; overflow: hidden; isolation: isolate; }
.tilt-stage, .orbit-stage { min-height: 360px; }
.tilt-stage { perspective: 800px; }
.tilt-stage::before { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle,#5591c850,transparent 68%); z-index: -1; }
.tilt-card { --rotate-x:0deg; --rotate-y:0deg; position: relative;
  width: min(64%,290px); aspect-ratio: 1.13; border-radius: 24px; cursor: default;
  background: linear-gradient(132deg,#a8d9ff32,#6e71b41c 43%,#5c94be25);
  border: 1px solid #c4e8ff66; box-shadow: inset 0 1px #fff6, 0 20px 75px #080f2799;
  transform: rotateX(var(--rotate-x)) rotateY(var(--rotate-y));
  transition: transform .17s ease-out; padding: 22px 26px; transform-style: preserve-3d;
  display: flex; flex-direction: column; justify-content: space-between;
}
.glass-glare { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(130deg,#e6f5ff26,transparent 44%);
  border-radius: inherit; }
.glass-overline { color: #bfdaf7; font-size: 10px; font-weight: 750; letter-spacing: .13em; }
.glass-monogram { position: relative; align-self: center; font-size: 90px; font-weight: 790;
  line-height: 1; color: #e1f6ff; text-shadow: 0 0 36px #8dd7ff65; }
.sparkle { position: absolute; font-size: 20px; top: 4px; right: -21px; color: #debdff; }
.glass-caption { display: flex; justify-content: space-between; align-items: center;
  color: #e4efff; font-size: 12px; }
.glass-caption span { color: #a9c6e4; font-size: 10px; }
.orbit-stage { background: radial-gradient(circle at 50% 50%, #25395f73, transparent 55%); }
.orbit-halo { width: 270px; height: 270px; border-radius: 50%;
  background: radial-gradient(circle,#7cace61a,transparent 72%); position: absolute; }
.orbit-core { width: 130px; height: 130px; border-radius: 50%; position: absolute;
  display: grid; place-items: center; font-weight: 790; font-size: 75px;
  color: #e1f5ff; background: #1b3152; box-shadow: 0 0 0 1px #a5d1f447, 0 0 0 18px #b3d4ff0a;
  z-index: 2; }
.orbital { position: absolute; border: 1px solid #a5ccff80; border-radius: 50%; }
.orbital::before { content: ""; position: absolute; top: 8%; left: 8%; width: 7px; height: 7px;
  border-radius: 50%; background: #9ddfff; box-shadow: 0 0 18px #7bdfff; }
.orbit-one { width: 224px; height: 224px; border-style: dashed; animation: orbit 32s linear infinite; }
.orbit-two { width: 204px; height: 260px; border-color: #bda2f7a1; animation: orbit 24s linear infinite reverse; }
.orbit-two::before { background: #debdff; box-shadow: 0 0 18px #debdff; }
.orbit-three { width: 263px; height: 145px; border-color: #b5def768; animation: orbit 29s linear infinite; }
.orb-star { position: absolute; height: 3px; width: 3px; border-radius: 100%; background: #b5ecff; }
.star-a { left: 20%; top: 22%; }.star-b { right: 22%; bottom: 25%; background: #e2c9fa; }
@keyframes orbit { to { transform: rotate(360deg); } }
.specimen-bottom { border-top: 1px solid var(--line); display: flex; align-items: end;
  justify-content: space-between; gap: 20px; padding: 22px 25px 25px; min-height: 138px; }
h3 { margin: 0 0 9px; font-size: 20px; letter-spacing: -.04em; }
.specimen-bottom p { margin: 0; max-width: 445px; color: var(--muted); line-height: 1.55; font-size: 12px; }
.copy { flex-shrink: 0; padding: 10px 12px; border: 1px solid #9cccf052;
  border-radius: 9px; color: #c6edff; background: #2b456d4d; font-size: 12px; white-space: nowrap; }
.copy:hover { border-color: var(--accent); background: #4986b04d; }
.wave-specimen { grid-column: 1 / -1; }
.wave-stage { min-height: 240px; }
.wave-grid { position: absolute; inset: 0; background-size: 40px 40px;
  background-image: linear-gradient(#7196c70c 1px,transparent 1px),
    linear-gradient(90deg,#7196c70c 1px,transparent 1px); }
.wave-track { display: flex; align-items: center; justify-content: center; width: 90%;
  height: 138px; gap: clamp(4px, .7vw, 11px); }
.wave-track span { width: min(13px,3%); min-width: 5px; height: calc(var(--h) * 1%);
  max-height: 112px; border-radius: 30px; transform-origin: center;
  background: linear-gradient(#b5dfff, #62a7e2 55%,#806dd0);
  box-shadow: 0 0 14px #82c3f03a;
  animation: wave 1.45s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -75ms); }
.wave-track.paused span { animation-play-state: paused; }
.specimen:not(.is-visible) .orbital,.specimen:not(.is-visible) .wave-track span {
  animation-play-state: paused !important;
}
@keyframes wave { 0% { transform: scaleY(.34); opacity: .58; } 100% { transform: scaleY(1); opacity: 1; } }
.buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.principles { margin: 90px 0 65px; display: grid; grid-template-columns: minmax(240px,.8fr) 1.2fr;
  gap: 60px; scroll-margin-top: 30px; }
.principles h2 { line-height: 1.2; }
.principles em { color: var(--accent2); font-style: normal; }
.principle-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.principle-grid div { padding: 10px 0; }
.principle-grid span { display: block; color: var(--accent); font-size: 13px; margin-bottom: 17px; }
.principle-grid strong { font-size: 13px; }
.principle-grid p { line-height: 1.65; font-size: 12px; color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 25px 0 40px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 12px; }
.screen-reader-only { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; }
html[data-motion="reduced"] .orbital,
html[data-motion="reduced"] .wave-track span { animation: none !important; }
html[data-motion="reduced"] .tilt-card,
html[data-motion="reduced"] * { transition-duration: 0s !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) .orbital,
  html:not([data-motion="full"]) .wave-track span { animation: none !important; }
  html:not([data-motion="full"]) * { transition-duration: 0s !important; scroll-behavior: auto !important; }
}
html[data-theme="light"] { color-scheme: light; --bg:#f4f8ff; --fg:#192843; --muted:#526783; --accent:#176da6;
  --accent2:#7057af; --line:#5579a03d; --surface:#eaf1fb; --surface2:#dae7f8; }
html[data-theme="light"] body { background: radial-gradient(ellipse 650px 350px at 80% 0%,#bfd7fa,transparent 78%),var(--bg); }
html[data-theme="light"] .specimen { background: linear-gradient(155deg,#dcecff,#c4d8f4); }
html[data-theme="light"] .controls button { background: #e4effc; color: #213c61; }
html[data-theme="light"] .facts span { color: #375375; background: #e9f2fc; }
html[data-theme="light"] .specimen-bottom p { color: #405575; }
html[data-theme="light"] .serial { color:#2d6794; }
html[data-theme="light"] .flag { color:#375c80; }
html[data-theme="light"] .copy { background:#d6e9fc; color:#2a5481; border-color:#5392c184; }
@media (max-width: 1110px) {
  .topbar { flex-wrap: wrap; } .topbar nav { order: 3; width: 100%; }
  .principles { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 760px) {
  .page { padding: 0 19px; } .hero { padding: 58px 0; }
  .gallery { grid-template-columns: 1fr; } .wave-specimen { grid-column: auto; }
  .section-note { display: none; } .principle-grid { gap: 14px; }
}
@media (max-width: 500px) {
  .topbar { gap: 15px; } .topbar nav { flex-wrap: wrap; gap: 16px; }
  .controls { width: 100%; } .controls button { flex: 1; }
  .intro { font-size: 15px; } .specimen-head { padding: 19px 16px 0; }
  .tilt-stage,.orbit-stage { min-height: 290px; } .tilt-card { width: 69%; padding: 16px; }
  .glass-monogram { font-size: 68px; }
  .specimen-bottom { padding: 18px 16px; align-items: start; flex-wrap: wrap; min-height: auto; }
  .principle-grid { grid-template-columns: 1fr; } .principle-grid div { padding: 0; }
  .wave-track { gap: 4px; } .wave-track span { width: 8px; min-width: 3px; }
}
