@font-face {
  font-family: Aeonik;
  src: url("/assets/fonts/Aeonik-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: Aeonik;
  src: url("/assets/fonts/Aeonik-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: block;
}

@font-face {
  font-family: "Be Vietnam Pro";
  src: url("/assets/fonts/BeVietnamPro-Regular-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range:
    U+000D, U+0020-007E, U+00A0-00FF, U+0102, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+2013-2014, U+2018-201A, U+201C-201E, U+2022,
    U+2026, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+2215;
}

@font-face {
  font-family: "Be Vietnam Pro";
  src: url("/assets/fonts/BeVietnamPro-Regular-vietnamese.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range:
    U+0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Be Vietnam Pro";
  src: url("/assets/fonts/BeVietnamPro-Medium-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range:
    U+000D, U+0020-007E, U+00A0-00FF, U+0102, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+2013-2014, U+2018-201A, U+201C-201E, U+2022,
    U+2026, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+2215;
}

@font-face {
  font-family: "Be Vietnam Pro";
  src: url("/assets/fonts/BeVietnamPro-Medium-vietnamese.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range:
    U+0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "XLAB Form Display";
  src: url("/web/portal/assets/fonts/XLAB-Form-Display-Latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range:
    U+000D, U+0020-007E, U+00A0-00FF, U+0102, U+0131, U+0152-0153, U+02C6,
    U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,
    U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A,
    U+2044, U+20AC, U+2122, U+2212, U+2215;
}

@font-face {
  font-family: "XLAB Form Display";
  src: url("/web/portal/assets/fonts/XLAB-Form-Display-Vietnamese.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range:
    U+0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0,
    U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: IBMPlexMono;
  src: url("/assets/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

:root {
  color-scheme: dark;
  --ink: #f3f7ff;
  --muted: #9aa8be;
  --faint: #6f7e96;
  --paper: #07111f;
  --surface: #0c192b;
  --surface-raised: #10233a;
  --surface-soft: #112a3f;
  --line: rgb(194 215 239 / 14%);
  --line-strong: rgb(194 215 239 / 27%);
  --accent: #65e9d5;
  --accent-deep: #27adac;
  --accent-soft: #153d4a;
  --warm: #ffb27e;
  --violet: #9398ff;
  --danger: #ff8d8d;
  --shadow: 0 30px 80px rgb(0 0 0 / 28%);
  --radius: 20px;
  --max-width: 1440px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: var(--paper);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 86% 8%, rgb(29 103 125 / 16%), transparent 28rem),
    linear-gradient(180deg, #07111f 0%, #081522 52%, #06101c 100%);
  color: var(--ink);
}

body.drawer-open {
  overflow: hidden;
}

.noscript-banner {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  padding: 24px;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  text-align: center;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(194 215 239 / 2%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(194 215 239 / 2%) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  mask-image: linear-gradient(180deg, black, transparent 65%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
select,
input[type="checkbox"],
input[type="radio"],
input[type="file"] {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

[hidden] {
  display: none !important;
}

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

.app-shell {
  position: relative;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 32px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand strong,
.footer-brand strong {
  display: block;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.brand-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  width: 25px;
  height: 25px;
  padding: 3px;
  border: 1px solid rgb(101 233 213 / 62%);
  border-radius: 8px;
  transform: rotate(-8deg);
}

.brand-mark span {
  display: block;
  flex: 1;
  min-width: 0;
  border-radius: 2px;
  background: var(--accent);
}

.brand-mark span:nth-child(1) {
  height: 50%;
  opacity: 0.62;
}

.brand-mark span:nth-child(2) {
  height: 74%;
  opacity: 0.82;
}

.brand-mark span:nth-child(3) {
  height: 100%;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.topnav-link {
  position: relative;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transition: color 160ms ease;
}

.topnav-link::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.topnav-link:hover,
.topnav-link.is-active {
  color: var(--ink);
}

.topnav-link:hover::after,
.topnav-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 1px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 60px;
  align-items: center;
  min-height: 650px;
  padding: 72px 0 88px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgb(101 233 213 / 10%);
}

.hero h1 {
  max-width: 780px;
  margin: 24px 0 24px;
  font-size: clamp(48px, 6.6vw, 88px);
  font-weight: 780;
  letter-spacing: -0.072em;
  line-height: 0.96;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-lede {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

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

.button span {
  font-size: 17px;
  font-weight: 500;
  line-height: 0;
}

.button-primary {
  background: var(--accent);
  color: #06151d;
  box-shadow: 0 10px 30px rgb(101 233 213 / 15%);
}

.button-primary:hover {
  background: #83f1e1;
}

.button-ghost,
.button-outline {
  border-color: var(--line-strong);
  background: rgb(10 27 44 / 38%);
  color: var(--ink);
}

.button-ghost:hover,
.button-outline:hover {
  border-color: var(--accent);
  background: rgb(101 233 213 / 8%);
  color: var(--accent);
}

.button-small {
  min-height: 38px;
  padding: 0 13px;
  font-size: 10px;
  letter-spacing: 0.03em;
}

.count-pill {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  border-radius: 20px;
  background: rgb(101 233 213 / 16%);
  color: var(--accent);
  font-size: 10px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 48px 0 0;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-meta strong {
  color: var(--ink);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-height: 470px;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgb(101 233 213 / 22%);
  border-radius: 50%;
}

.hero-orbit-one {
  top: 10px;
  right: 7%;
  width: 410px;
  height: 410px;
}

.hero-orbit-two {
  right: -20px;
  bottom: 0;
  width: 280px;
  height: 280px;
  border-color: rgb(147 152 255 / 22%);
}

.hero-board {
  position: absolute;
  top: 54px;
  right: 11%;
  width: min(76%, 410px);
  aspect-ratio: 1.26;
  overflow: hidden;
  border: 1px solid rgb(101 233 213 / 54%);
  background: #102b3a;
  box-shadow:
    22px 24px 0 rgb(101 233 213 / 5%),
    var(--shadow);
  transform: rotate(5deg);
}

.hero-board::after {
  position: absolute;
  top: -40%;
  right: -15%;
  width: 60%;
  height: 125%;
  border: 1px solid rgb(101 233 213 / 35%);
  border-radius: 50%;
  content: "";
  transform: rotate(18deg);
}

.hero-board-top,
.hero-board-footer {
  position: absolute;
  right: 22px;
  left: 22px;
  display: flex;
  justify-content: space-between;
  color: rgb(222 253 247 / 68%);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hero-board-top {
  top: 18px;
}

.hero-board-footer {
  bottom: 17px;
}

.hero-board-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(205 245 240 / 6%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(205 245 240 / 6%) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-board-copy {
  position: absolute;
  top: 100px;
  left: 38px;
  z-index: 1;
}

.hero-board-copy span {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.2em;
}

.hero-board-copy strong {
  display: block;
  color: #ecfffb;
  font-size: clamp(31px, 4.3vw, 57px);
  letter-spacing: -0.07em;
  line-height: 0.89;
}

.hero-board-copy em {
  color: var(--warm);
  font-style: normal;
}

.hero-board-accent {
  position: absolute;
  right: 34px;
  bottom: 63px;
  width: 58px;
  height: 58px;
  border: 1px solid var(--warm);
  border-radius: 50%;
}

.hero-board-accent::after {
  position: absolute;
  top: 13px;
  left: 13px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--warm);
  content: "";
  opacity: 0.78;
}

.floating-note {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgb(11 27 43 / 90%);
  box-shadow: 0 16px 32px rgb(0 0 0 / 18%);
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  backdrop-filter: blur(12px);
}

.floating-note-top {
  top: 48px;
  left: 0;
}

.floating-note-bottom {
  right: 0;
  bottom: 46px;
}

.note-icon {
  color: var(--warm);
  font-size: 16px;
}

.note-icon-check {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: rgb(101 233 213 / 15%);
  color: var(--accent);
  font-size: 11px;
}

.catalog-section,
.process-section {
  padding: 74px 0 100px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin: 14px 0 0;
  font-size: clamp(32px, 4vw, 53px);
  font-weight: 760;
  letter-spacing: -0.06em;
  line-height: 1;
}

.section-intro {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(10 26 43 / 82%);
}

.filter-heading,
.results-toolbar,
.sort-field,
.results-count,
.active-filters,
.tray-inner,
.tray-info,
.tray-selections,
.drawer-header,
.preview-modal-header,
.preview-modal-actions,
.success-actions {
  display: flex;
  align-items: center;
}

.filter-heading,
.results-toolbar,
.drawer-header,
.preview-modal-header {
  justify-content: space-between;
}

.filter-label {
  color: var(--ink);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 10px;
  font-weight: 750;
}

.text-button:hover {
  color: var(--ink);
  text-decoration: underline;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 39px;
  margin-top: 19px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(5 16 29 / 70%);
}

.search-icon {
  color: var(--accent);
  font-size: 23px;
  line-height: 0.5;
  transform: rotate(-20deg);
}

.search-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
}

.search-field input::placeholder {
  color: var(--faint);
}

kbd {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--faint);
  font-size: 10px;
}

.filter-group {
  margin-top: 21px;
}

.field-label,
.sort-field span,
.form-field > span,
.form-fieldset legend {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.select-field,
.sort-select,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #0a1a2c;
  color: var(--ink);
}

.select-field,
.sort-select {
  height: 39px;
  padding: 0 10px;
  font-size: 11px;
}

option {
  background: #0b1c2e;
  color: var(--ink);
}

.filter-divider {
  height: 1px;
  margin: 22px 0;
  background: var(--line);
}

.filter-tip {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.tip-mark {
  display: grid;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(101 233 213 / 48%);
  border-radius: 50%;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
}

.filter-tip p {
  margin: 0;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.5;
}

.filter-tip strong {
  color: var(--muted);
}

.source-status {
  margin: 19px 0 0;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.45;
}

.results-toolbar {
  min-height: 39px;
  border-bottom: 1px solid var(--line);
}

.results-count {
  color: var(--faint);
  font-size: 11px;
}

.results-count strong {
  color: var(--ink);
  font-size: 13px;
}

.sort-field {
  gap: 9px;
}

.sort-field span {
  margin: 0;
  white-space: nowrap;
}

.sort-select {
  width: auto;
  min-width: 135px;
  height: 32px;
  padding-right: 8px;
  font-size: 10px;
}

.active-filters {
  flex-wrap: wrap;
  gap: 7px;
  padding: 14px 0 0;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid rgb(101 233 213 / 28%);
  border-radius: 20px;
  background: rgb(101 233 213 / 7%);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
}

.filter-chip button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  line-height: 0.8;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  padding-top: 22px;
}

.template-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(11 28 47 / 78%);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.template-card:hover,
.template-card.is-selected {
  border-color: rgb(101 233 213 / 66%);
  box-shadow: 0 18px 38px rgb(0 0 0 / 17%);
  transform: translateY(-3px);
}

.template-card.is-selected {
  box-shadow:
    0 0 0 1px rgb(101 233 213 / 25%),
    0 18px 38px rgb(0 0 0 / 17%);
}

.template-visual {
  position: relative;
  aspect-ratio: 1.48;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--preview-paper);
  color: var(--preview-ink);
}

.template-visual::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 8%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 8%) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  opacity: 0.36;
}

.template-visual::after {
  position: absolute;
  right: -13%;
  bottom: -38%;
  width: 55%;
  aspect-ratio: 1;
  border: 1px solid var(--preview-accent);
  border-radius: 50%;
  content: "";
  opacity: 0.72;
}

.visual-top,
.visual-footer {
  position: absolute;
  right: 13px;
  left: 13px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  color: var(--preview-muted);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.visual-top {
  top: 12px;
}

.visual-footer {
  bottom: 10px;
}

.visual-copy {
  position: absolute;
  top: 31%;
  left: 13px;
  z-index: 1;
  max-width: 75%;
}

.visual-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--preview-accent);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.visual-title {
  display: block;
  color: var(--preview-ink);
  font-size: clamp(18px, 2vw, 29px);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.visual-lines {
  display: block;
  width: 80%;
  height: 2px;
  margin-top: 12px;
  background: var(--preview-accent);
  box-shadow: 0 5px 0 rgb(255 255 255 / 22%);
  opacity: 0.8;
}

.visual-shape {
  position: absolute;
  top: 21%;
  right: 12%;
  z-index: 1;
  width: 24%;
  aspect-ratio: 1;
  border: 1px solid var(--preview-accent);
  border-radius: 50%;
  background: var(--preview-art);
  opacity: 0.82;
}

.family-midnight .visual-shape,
.family-datanoir .visual-shape,
.family-retrofuture .visual-shape {
  border-radius: 0;
  box-shadow: 12px 12px 0 rgb(101 233 213 / 22%);
  transform: rotate(28deg);
}

.family-swiss .visual-shape,
.family-brutalist .visual-shape {
  border-radius: 0;
  box-shadow: 8px 8px 0 var(--preview-ink);
  transform: rotate(-9deg);
}

.family-organic .visual-shape {
  border-radius: 64% 36% 47% 53% / 38% 53% 47% 62%;
  transform: rotate(-20deg);
}

.family-luxury .visual-shape {
  border-width: 2px;
  border-radius: 3px;
  background: transparent;
  box-shadow: inset 0 0 0 8px var(--preview-art);
  transform: rotate(45deg);
}

.family-retrofuture::before {
  background-image:
    linear-gradient(rgb(246 167 255 / 18%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(246 167 255 / 18%) 1px, transparent 1px),
    linear-gradient(135deg, transparent 30%, rgb(31 212 255 / 28%));
}

.family-brutalist {
  border-color: rgb(35 27 15 / 30%);
}

.family-brutalist .visual-title {
  text-transform: uppercase;
}

.family-datanoir .visual-title {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(14px, 1.75vw, 24px);
  letter-spacing: -0.08em;
}

.card-check {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgb(6 21 29 / 25%);
  border-radius: 50%;
  background: var(--accent);
  color: #051820;
  font-size: 14px;
  font-weight: 900;
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.template-card.is-selected .card-check {
  opacity: 1;
  transform: scale(1);
}

.card-content {
  padding: 14px 14px 13px;
}

.card-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--preview-accent, var(--accent));
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-kicker span:last-child {
  overflow: hidden;
  color: var(--faint);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-content h3 {
  overflow: hidden;
  margin: 8px 0 6px;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-content p {
  display: -webkit-box;
  min-height: 31px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.card-action {
  min-height: 31px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.card-action:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.card-action-primary {
  flex: 1;
  border-color: rgb(101 233 213 / 35%);
  background: rgb(101 233 213 / 8%);
  color: var(--accent);
}

.template-card.is-selected .card-action-primary {
  background: var(--accent);
  color: #061820;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 32px;
}

.load-more-button {
  min-width: 190px;
  min-height: 41px;
  font-size: 10px;
}

.empty-state {
  padding: 82px 20px;
  text-align: center;
}

.empty-mark {
  display: block;
  color: var(--accent);
  font-size: 36px;
}

.empty-state h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
}

.process-section {
  padding-bottom: 130px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.process-card {
  position: relative;
  min-height: 245px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(10 26 43 / 62%);
}

.process-card-highlight {
  border-color: rgb(101 233 213 / 45%);
  background: linear-gradient(145deg, rgb(21 61 74 / 68%), rgb(10 26 43 / 74%));
}

.process-number {
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.process-icon {
  position: absolute;
  top: 20px;
  right: 22px;
  color: var(--warm);
  font-size: 25px;
}

.process-card h3 {
  margin: 76px 0 10px;
  font-size: 23px;
  letter-spacing: -0.05em;
}

.process-card p {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 10px;
}

.footer-brand {
  color: var(--ink);
}

.site-footer p {
  margin: 0;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgb(101 233 213 / 10%);
}

.selection-tray {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 20;
  border: 1px solid rgb(101 233 213 / 45%);
  border-radius: 13px;
  background: rgb(8 24 39 / 94%);
  box-shadow: 0 20px 60px rgb(0 0 0 / 32%);
  backdrop-filter: blur(18px);
}

.tray-inner {
  gap: 20px;
  max-width: var(--max-width);
  min-height: 70px;
  margin: 0 auto;
  padding: 10px 16px;
}

.tray-info {
  flex: 0 0 auto;
  gap: 10px;
}

.tray-check {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #061820;
  font-size: 14px;
  font-weight: 900;
}

.tray-info strong,
.tray-info small {
  display: block;
}

.tray-info strong {
  font-size: 11px;
}

.tray-info small {
  margin-top: 3px;
  color: var(--faint);
  font-size: 9px;
}

.tray-selections {
  min-width: 0;
  flex: 1;
  gap: 7px;
  overflow: hidden;
}

.tray-chip {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgb(255 255 255 / 3%);
  color: var(--muted);
  font-size: 9px;
}

.tray-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tray-chip button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--faint);
  font-size: 13px;
  line-height: 0.7;
}

.tray-chip button:hover {
  color: var(--danger);
}

.tray-action {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  font-size: 10px;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 29;
  background: rgb(1 7 14 / 70%);
  backdrop-filter: blur(4px);
}

.request-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  width: min(100%, 530px);
  flex-direction: column;
  border-left: 1px solid var(--line-strong);
  background: #091827;
  box-shadow: -24px 0 70px rgb(0 0 0 / 26%);
  transform: translateX(102%);
  transition: transform 260ms ease;
}

.request-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  flex: 0 0 auto;
  padding: 28px 30px 24px;
  border-bottom: 1px solid var(--line);
}

.drawer-header h2 {
  max-width: 370px;
  margin: 12px 0 0;
  font-size: 31px;
  letter-spacing: -0.06em;
  line-height: 1;
}

.icon-button {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 23px;
  font-weight: 300;
  line-height: 1;
}

.icon-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.drawer-body {
  flex: 1;
  padding: 22px 30px 35px;
  overflow: auto;
}

.drawer-lede {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.selected-list {
  display: grid;
  gap: 7px;
  margin-top: 18px;
}

.selected-template {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid rgb(101 233 213 / 28%);
  border-radius: 8px;
  background: rgb(101 233 213 / 6%);
}

.selected-template-index {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  background: var(--accent);
  color: #061820;
  font-size: 10px;
  font-weight: 900;
}

.selected-template span:nth-child(2) {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-template button {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--faint);
  font-size: 16px;
}

.selected-template button:hover {
  color: var(--danger);
}

.form-hint {
  margin: 18px 0 0;
  padding: 10px;
  border: 1px solid rgb(255 141 141 / 30%);
  border-radius: 8px;
  background: rgb(255 141 141 / 8%);
  color: var(--danger);
  font-size: 11px;
}

.request-form {
  margin-top: 27px;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 25px 0 17px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-section-title:first-child {
  margin-top: 0;
}

.form-section-title span {
  color: var(--accent);
  font-size: 10px;
}

.form-field {
  display: block;
  margin-top: 14px;
}

.form-field > span b,
.form-fieldset legend b {
  color: var(--warm);
  font-weight: 800;
}

.form-field input,
.form-field select {
  height: 42px;
  padding: 0 11px;
  font-size: 12px;
}

.form-field .field-hint {
  display: block;
  margin-top: 6px;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.35;
}

.form-field textarea {
  min-height: 88px;
  padding: 11px;
  resize: vertical;
  font-size: 12px;
  line-height: 1.45;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--faint);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.select-field:focus,
.sort-select:focus,
.search-field:focus-within {
  border-color: rgb(101 233 213 / 68%);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-fieldset {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.form-fieldset legend {
  padding: 0;
}

.radio-option,
.consent-option {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.radio-option input,
.consent-option input {
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.upload-field {
  position: relative;
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 16px;
  padding: 13px 11px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: rgb(255 255 255 / 2%);
  cursor: pointer;
}

.upload-field:hover {
  border-color: var(--accent);
}

.upload-field input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.upload-icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  background: rgb(101 233 213 / 11%);
  color: var(--accent);
  font-size: 17px;
}

.upload-field strong,
.upload-field small {
  display: block;
}

.upload-field strong {
  color: var(--ink);
  font-size: 10px;
}

.upload-field small {
  margin-top: 3px;
  color: var(--faint);
  font-size: 9px;
}

.upload-button {
  margin-left: auto;
  padding: 6px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.file-list {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.file-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 7px;
  border-radius: 4px;
  background: rgb(255 255 255 / 4%);
  color: var(--faint);
  font-size: 9px;
}

.file-item span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.consent-option {
  margin-top: 17px;
  color: var(--faint);
  font-size: 9px;
}

.submit-button {
  width: 100%;
  margin-top: 22px;
}

.submit-note {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 9px;
  text-align: center;
}

.submit-note span {
  color: var(--accent);
}

.success-view {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 30px;
}

.success-mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: rgb(101 233 213 / 13%);
  color: var(--accent);
  font-size: 28px;
}

.success-view h2 {
  max-width: 360px;
  margin: 13px 0 12px;
  font-size: 38px;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.success-view > p:not(.eyebrow):not(.success-footnote) {
  max-width: 350px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.request-reference {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 3%);
}

.request-reference span {
  color: var(--faint);
  font-size: 9px;
  text-transform: uppercase;
}

.request-reference strong {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.success-actions {
  gap: 9px;
  margin-top: 24px;
}

.success-footnote {
  max-width: 360px;
  margin: 22px 0 0;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.5;
}

.preview-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 40;
  width: min(1000px, calc(100% - 34px));
  max-height: calc(100vh - 34px);
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #091827;
  box-shadow: 0 30px 100px rgb(0 0 0 / 42%);
  transform: translate(-50%, -50%);
}

.preview-modal-header {
  gap: 18px;
  padding: 2px 2px 16px;
}

.preview-modal-header h2 {
  margin: 9px 0 0;
  font-size: 24px;
  letter-spacing: -0.05em;
}

.preview-modal-actions {
  gap: 9px;
}

.preview-viewport {
  display: grid;
  min-height: 240px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #030a12;
}

.preview-viewport iframe {
  display: block;
  width: 1600px;
  height: 900px;
  border: 0;
  background: #fff;
  transform-origin: center center;
}

.preview-modal-note {
  margin: 13px 2px 0;
  color: var(--faint);
  font-size: 10px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  max-width: min(370px, calc(100% - 48px));
  padding: 12px 14px;
  border: 1px solid rgb(101 233 213 / 45%);
  border-radius: 8px;
  background: #0d2536;
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .app-shell {
    padding: 0 24px;
  }

  .hero {
    gap: 30px;
  }

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

  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 0 16px;
  }

  .topbar {
    min-height: 72px;
  }

  .topnav {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    z-index: 10;
    display: none;
    padding: 14px;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: #0a1b2d;
    box-shadow: var(--shadow);
  }

  .topnav.is-open {
    display: grid;
    gap: 16px;
  }

  .topnav-link::after {
    display: none;
  }

  .topnav .button {
    width: 100%;
  }

  .menu-button {
    display: block;
  }

  .hero {
    display: block;
    min-height: 0;
    padding: 61px 0 66px;
  }

  .hero h1 {
    font-size: clamp(45px, 12vw, 68px);
  }

  .hero-visual {
    min-height: 390px;
    margin-top: 25px;
  }

  .hero-board {
    right: 7%;
    width: 75%;
  }

  .floating-note-top {
    left: 2%;
  }

  .floating-note-bottom {
    right: 0;
  }

  .section-heading {
    display: block;
  }

  .section-intro {
    margin-top: 16px;
  }

  .catalog-layout {
    display: block;
  }

  .filter-panel {
    position: static;
    margin-bottom: 28px;
  }

  .filter-group {
    display: inline-block;
    width: calc(50% - 7px);
    margin-right: 8px;
    vertical-align: top;
  }

  .filter-group:nth-of-type(4) {
    margin-right: 0;
  }

  .filter-tip,
  .source-status {
    display: none;
  }

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

  .card-content {
    padding: 11px;
  }

  .card-content h3 {
    font-size: 13px;
  }

  .card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .card-action {
    width: 100%;
  }

  .results-toolbar {
    align-items: flex-start;
    gap: 12px;
  }

  .sort-field {
    display: block;
  }

  .sort-field span {
    display: none;
  }

  .sort-select {
    min-width: 112px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-card {
    min-height: 185px;
  }

  .process-card h3 {
    margin-top: 50px;
  }

  .site-footer {
    display: grid;
    gap: 12px;
    padding: 22px 0;
  }

  .tray-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px;
  }

  .tray-selections {
    grid-column: 1 / -1;
    grid-row: 2;
    order: 3;
  }

  .tray-action {
    grid-column: 2;
    grid-row: 1;
  }

  .drawer-header,
  .drawer-body,
  .success-view {
    padding-right: 20px;
    padding-left: 20px;
  }

  .preview-modal {
    padding: 12px;
  }

  .preview-modal-header {
    align-items: flex-start;
  }

  .preview-modal-actions .button {
    display: none;
  }

  .preview-modal-note {
    line-height: 1.45;
  }
}

@media (max-width: 480px) {
  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-meta {
    display: grid;
    gap: 10px;
    margin-top: 31px;
  }

  .hero-visual {
    min-height: 315px;
  }

  .hero-orbit-one {
    top: 12px;
    right: 0;
    width: 280px;
    height: 280px;
  }

  .hero-orbit-two {
    right: -8px;
    width: 190px;
    height: 190px;
  }

  .hero-board {
    top: 40px;
    right: 8%;
    width: 78%;
  }

  .hero-board-copy {
    top: 27%;
    left: 25px;
  }

  .hero-board-copy strong {
    font-size: 39px;
  }

  .floating-note {
    padding: 9px;
    font-size: 9px;
  }

  .floating-note-top {
    top: 22px;
  }

  .floating-note-bottom {
    bottom: 22px;
  }

  .catalog-section,
  .process-section {
    padding-top: 54px;
    padding-bottom: 75px;
  }

  .filter-group {
    display: block;
    width: 100%;
    margin-right: 0;
  }

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

  .template-visual {
    aspect-ratio: 1.65;
  }

  .card-actions {
    display: flex;
  }

  .card-action {
    width: auto;
  }

  .card-action-primary {
    flex: 1;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .success-view h2 {
    font-size: 33px;
  }
}

/* Refined art-direction layer */
:root {
  --paper: #050a12;
  --surface: #0a1523;
  --surface-raised: #0e2032;
  --surface-soft: #102a3a;
  --line: rgb(190 220 232 / 13%);
  --line-strong: rgb(190 220 232 / 27%);
  --accent: #8ce8d8;
  --accent-deep: #2faeaa;
  --accent-soft: #163b49;
  --warm: #f6b78d;
  --shadow: 0 36px 100px rgb(0 0 0 / 34%);
}

html {
  overflow-x: clip;
}

body {
  background:
    radial-gradient(circle at 92% 4%, rgb(41 124 141 / 14%), transparent 26rem),
    radial-gradient(circle at 6% 34%, rgb(87 71 142 / 10%), transparent 34rem),
    linear-gradient(180deg, #050a12 0%, #07121f 48%, #040910 100%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, transparent 0, rgb(0 0 0 / 14%) 75%);
  content: "";
}

.app-shell {
  width: min(100%, 1500px);
  padding: 0 38px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  min-height: 84px;
  border-bottom-color: rgb(190 220 232 / 11%);
  background: rgb(5 10 18 / 76%);
  backdrop-filter: blur(18px);
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: linear-gradient(145deg, rgb(140 232 216 / 14%), transparent);
  box-shadow: inset 0 0 0 1px rgb(140 232 216 / 5%);
}

.brand strong,
.footer-brand strong {
  letter-spacing: 0.2em;
}

.topnav {
  gap: 5px;
}

.topnav-link {
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
}

.topnav-link::after {
  display: none;
}

.topnav-link:hover,
.topnav-link.is-active {
  border-color: var(--line);
  background: rgb(255 255 255 / 4%);
  color: var(--ink);
}

.topnav-link.is-active {
  border-color: rgb(140 232 216 / 23%);
  background: rgb(140 232 216 / 8%);
}

.hero {
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.88fr);
  gap: 76px;
  min-height: 710px;
  padding: 84px 0 102px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 820px;
  margin-top: 28px;
  font-size: clamp(54px, 6.7vw, 96px);
  letter-spacing: -0.082em;
  line-height: 0.91;
}

.hero h1 em {
  color: var(--accent);
  text-shadow: 0 0 38px rgb(140 232 216 / 12%);
}

.hero-lede {
  max-width: 545px;
  margin-top: 30px;
  font-size: 16px;
  line-height: 1.65;
}

.hero-actions {
  gap: 14px;
  margin-top: 38px;
}

.button {
  min-height: 51px;
  padding: 0 20px;
  border-radius: 12px;
  letter-spacing: 0.035em;
}

.button-primary {
  box-shadow:
    0 12px 30px rgb(140 232 216 / 11%),
    inset 0 1px 0 rgb(255 255 255 / 25%);
}

.button-ghost,
.button-outline {
  background: rgb(9 24 39 / 54%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 560px;
  margin-top: 54px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.hero-meta span {
  display: grid;
  gap: 7px;
}

.hero-meta strong {
  font-size: 18px;
  letter-spacing: -0.04em;
}

.hero-visual {
  min-height: 540px;
  isolation: isolate;
}

.hero-visual::before {
  position: absolute;
  top: 12%;
  right: 3%;
  width: 82%;
  height: 78%;
  border: 1px solid rgb(140 232 216 / 9%);
  border-radius: 50%;
  background: radial-gradient(circle, rgb(140 232 216 / 8%), transparent 63%);
  content: "";
  transform: rotate(-16deg);
}

.hero-visual-caption {
  position: absolute;
  top: 6px;
  right: 4%;
  left: 4%;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.hero-visual-caption span:last-child {
  color: var(--accent);
}

.hero-orbit {
  border-style: dashed;
  opacity: 0.75;
}

.hero-orbit-one {
  top: 50px;
  right: 3%;
  width: 465px;
  height: 465px;
}

.hero-orbit-two {
  right: -34px;
  bottom: 8px;
  width: 310px;
  height: 310px;
}

.hero-board-shadow {
  position: absolute;
  top: 91px;
  right: 6%;
  width: min(82%, 470px);
  aspect-ratio: 1.26;
  border: 1px solid rgb(246 183 141 / 20%);
  background: linear-gradient(135deg, rgb(246 183 141 / 9%), transparent 60%);
  box-shadow: 24px 27px 0 rgb(140 232 216 / 6%);
  transform: rotate(-4deg);
}

.hero-board {
  top: 75px;
  right: 10%;
  width: min(82%, 470px);
  border-color: rgb(140 232 216 / 65%);
  background: linear-gradient(135deg, #123644 0%, #0a202e 72%);
  box-shadow:
    20px 22px 0 rgb(140 232 216 / 7%),
    0 35px 70px rgb(0 0 0 / 36%);
  transform: rotate(5deg);
}

.hero-board::before {
  position: absolute;
  right: 16px;
  bottom: 34px;
  left: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(140 232 216 / 65%), transparent);
  content: "";
}

.hero-board-copy {
  top: 29%;
  left: 10%;
}

.hero-board-copy strong {
  font-size: clamp(35px, 4.5vw, 63px);
}

.hero-spec-card {
  position: absolute;
  bottom: 30px;
  left: 1%;
  z-index: 3;
  width: min(48%, 236px);
  padding: 16px;
  border: 1px solid rgb(190 220 232 / 21%);
  border-radius: 15px;
  background: linear-gradient(145deg, rgb(14 32 50 / 95%), rgb(7 18 31 / 92%));
  box-shadow: 0 22px 50px rgb(0 0 0 / 28%);
  backdrop-filter: blur(18px);
  transform: rotate(-4deg);
}

.hero-spec-top,
.hero-spec-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-spec-top {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.hero-spec-top span:last-child {
  color: var(--accent);
}

.hero-spec-card > strong {
  display: block;
  margin: 19px 0 21px;
  color: var(--ink);
  font-size: 23px;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero-spec-card > strong em {
  color: var(--warm);
  font-style: normal;
}

.hero-spec-list {
  display: grid;
  gap: 9px;
}

.hero-spec-list div {
  gap: 8px;
  color: var(--faint);
  font-size: 8px;
}

.hero-spec-list b {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  text-align: right;
}

.floating-note {
  z-index: 4;
  border-color: rgb(190 220 232 / 27%);
  border-radius: 13px;
  background: rgb(8 22 36 / 92%);
  box-shadow: 0 18px 38px rgb(0 0 0 / 26%);
}

.floating-note-top {
  top: 76px;
  left: -1%;
}

.floating-note-bottom {
  right: -1%;
  bottom: 66px;
}

.catalog-section,
.process-section {
  padding: 96px 0 124px;
  border-top-color: rgb(190 220 232 / 12%);
}

.section-heading {
  position: relative;
  margin-bottom: 48px;
}

.section-heading > div:first-child {
  position: relative;
}

.section-heading > div:first-child::after {
  display: block;
  width: 54px;
  height: 2px;
  margin-top: 23px;
  background: linear-gradient(90deg, var(--accent), transparent);
  content: "";
}

.section-heading h2 {
  font-size: clamp(35px, 4.4vw, 58px);
  letter-spacing: -0.072em;
  line-height: 0.94;
}

.section-intro {
  max-width: 360px;
  font-size: 13px;
  line-height: 1.7;
}

.catalog-layout {
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 34px;
}

.filter-panel {
  top: 104px;
  padding: 21px;
  border-color: rgb(190 220 232 / 18%);
  border-radius: 18px;
  background: linear-gradient(160deg, rgb(11 29 47 / 92%), rgb(7 18 31 / 86%));
  box-shadow: 0 18px 48px rgb(0 0 0 / 13%);
}

.search-field {
  height: 43px;
  border-radius: 10px;
  background: rgb(3 11 20 / 62%);
}

.select-field,
.sort-select {
  border-radius: 10px;
  background: rgb(5 16 28 / 76%);
}

.results-toolbar {
  min-height: 45px;
  padding-bottom: 15px;
}

.results-count strong {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.template-grid {
  gap: 19px;
  padding-top: 25px;
}

.template-card {
  border-color: rgb(190 220 232 / 14%);
  border-radius: 18px;
  background: linear-gradient(155deg, rgb(13 31 50 / 88%), rgb(7 19 32 / 86%));
  box-shadow: 0 9px 28px rgb(0 0 0 / 9%);
}

.template-card::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border: 1px solid transparent;
  border-radius: inherit;
  background: linear-gradient(135deg, rgb(255 255 255 / 8%), transparent 28%) border-box;
  content: "";
  mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.template-card:hover,
.template-card.is-selected {
  border-color: rgb(140 232 216 / 69%);
  box-shadow:
    0 20px 44px rgb(0 0 0 / 23%),
    0 0 0 1px rgb(140 232 216 / 9%);
  transform: translateY(-5px);
}

.template-visual {
  aspect-ratio: 1.52;
  border-bottom-color: rgb(10 22 33 / 16%);
}

.template-visual::before {
  opacity: 0.26;
}

.visual-copy {
  left: 16px;
}

.visual-title {
  font-size: clamp(19px, 2.1vw, 31px);
}

.card-content {
  padding: 16px 16px 15px;
}

.card-kicker {
  font-size: 8px;
  letter-spacing: 0.1em;
}

.card-content h3 {
  margin-top: 10px;
  font-size: 17px;
}

.card-content p {
  min-height: 34px;
  line-height: 1.55;
}

.card-actions {
  gap: 9px;
  margin-top: 17px;
}

.card-action {
  min-height: 34px;
  border-radius: 9px;
  font-size: 9px;
}

.card-action-primary {
  border-color: rgb(140 232 216 / 35%);
  background: rgb(140 232 216 / 7%);
}

.process-section {
  position: relative;
  overflow: hidden;
  padding-bottom: 148px;
  background: linear-gradient(180deg, transparent, rgb(10 31 45 / 22%));
}

.process-section::after {
  position: absolute;
  right: -12%;
  bottom: -38%;
  width: 55%;
  aspect-ratio: 1;
  border: 1px solid rgb(140 232 216 / 9%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.process-grid {
  position: relative;
  gap: 19px;
}

.process-grid::before {
  position: absolute;
  top: 42px;
  right: 13%;
  left: 13%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(140 232 216 / 35%), transparent);
  content: "";
}

.process-card {
  z-index: 1;
  min-height: 265px;
  padding: 25px;
  border-color: rgb(190 220 232 / 15%);
  border-radius: 20px;
  background: linear-gradient(155deg, rgb(12 31 49 / 86%), rgb(7 18 31 / 78%));
  box-shadow: 0 18px 50px rgb(0 0 0 / 11%);
}

.process-card::after {
  position: absolute;
  top: 36px;
  right: 29px;
  width: 12px;
  height: 12px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 5px rgb(140 232 216 / 9%);
  content: "";
}

.process-card-highlight {
  border-color: rgb(140 232 216 / 42%);
  background: linear-gradient(145deg, rgb(17 61 73 / 73%), rgb(8 25 40 / 86%));
  box-shadow: 0 22px 58px rgb(0 0 0 / 18%);
}

.process-number {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgb(140 232 216 / 40%);
  border-radius: 50%;
  background: var(--paper);
  font-size: 9px;
}

.process-icon {
  top: 20px;
  right: 25px;
  opacity: 0.8;
}

.process-card h3 {
  margin-top: 74px;
  font-size: 25px;
}

.process-card p {
  font-size: 12px;
  line-height: 1.65;
}

.site-footer {
  min-height: 104px;
  border-top-color: rgb(190 220 232 / 12%);
}

.selection-tray {
  right: 24px;
  bottom: 24px;
  left: 24px;
  border-color: rgb(140 232 216 / 44%);
  border-radius: 17px;
  background: rgb(7 22 35 / 94%);
  box-shadow: 0 24px 70px rgb(0 0 0 / 40%);
}

.tray-inner {
  min-height: 78px;
  padding: 12px 19px;
}

.tray-check {
  width: 31px;
  height: 31px;
}

.tray-chip {
  border-radius: 9px;
  background: rgb(255 255 255 / 4%);
}

.request-drawer {
  width: min(100%, 560px);
  border-left-color: rgb(140 232 216 / 22%);
  background: radial-gradient(circle at 100% 0, rgb(34 102 109 / 15%), transparent 20rem), #071522;
  box-shadow: -30px 0 90px rgb(0 0 0 / 40%);
  transform: translateX(100%);
}

.drawer-header {
  padding: 31px 32px 26px;
  background: rgb(7 18 31 / 54%);
}

.drawer-body {
  padding: 25px 32px 40px;
}

.selected-template {
  border-radius: 10px;
  background: rgb(140 232 216 / 7%);
}

.form-section-title {
  margin-top: 29px;
  padding-bottom: 12px;
  border-bottom-color: rgb(190 220 232 / 15%);
}

.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 10px;
  background: rgb(3 12 22 / 72%);
}

.upload-field {
  border-radius: 11px;
  background: rgb(255 255 255 / 3%);
}

.preview-modal {
  width: min(1080px, calc(100% - 34px));
  padding: 23px;
  border-color: rgb(140 232 216 / 25%);
  border-radius: 20px;
  background: #071522;
  box-shadow: 0 35px 120px rgb(0 0 0 / 55%);
}

.preview-viewport {
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgb(140 232 216 / 5%) 25%, transparent 25%) 0 0 / 18px 18px,
    #030a12;
}

@media (max-width: 1100px) {
  .app-shell {
    padding: 0 24px;
  }

  .hero {
    gap: 40px;
  }

  .hero-visual {
    min-height: 490px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 0 16px;
  }

  .topbar {
    min-height: 72px;
  }

  .topnav {
    top: 72px;
    padding: 15px;
    border-color: rgb(190 220 232 / 22%);
    border-radius: 15px;
    background: rgb(7 20 34 / 97%);
  }

  .topnav-link {
    padding: 11px 12px;
  }

  .hero {
    padding: 66px 0 78px;
  }

  .hero h1 {
    font-size: clamp(47px, 12vw, 72px);
  }

  .hero-lede {
    font-size: 15px;
  }

  .hero-meta {
    gap: 12px;
  }

  .hero-meta strong {
    font-size: 16px;
  }

  .hero-visual {
    min-height: 420px;
    margin-top: 34px;
  }

  .hero-visual-caption {
    top: 0;
  }

  .hero-orbit-one {
    top: 32px;
    right: -2%;
    width: 370px;
    height: 370px;
  }

  .hero-orbit-two {
    right: -24px;
    bottom: 4px;
    width: 245px;
    height: 245px;
  }

  .hero-board-shadow,
  .hero-board {
    top: 62px;
    right: 5%;
    width: 78%;
  }

  .hero-spec-card {
    bottom: 14px;
    left: 0;
    width: min(54%, 220px);
  }

  .floating-note-top {
    top: 52px;
    left: 0;
  }

  .floating-note-bottom {
    right: -1%;
    bottom: 38px;
  }

  .catalog-section,
  .process-section {
    padding-top: 76px;
    padding-bottom: 92px;
  }

  .catalog-layout {
    gap: 25px;
  }

  .filter-panel {
    border-radius: 16px;
  }

  .process-grid::before {
    display: none;
  }

  .process-card {
    min-height: 215px;
  }

  .process-card h3 {
    margin-top: 58px;
  }

  .selection-tray {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .tray-inner {
    padding: 11px 13px;
  }

  .drawer-header,
  .drawer-body,
  .success-view {
    padding-right: 22px;
    padding-left: 22px;
  }

  .preview-modal {
    padding: 14px;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .hero-visual::before {
    transform: none;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 355px;
  }

  .hero-visual-caption {
    font-size: 8px;
  }

  .hero-orbit-one {
    top: 22px;
    right: 0;
    width: 285px;
    height: 285px;
  }

  .hero-orbit-two {
    right: -16px;
    width: 190px;
    height: 190px;
  }

  .hero-board-shadow,
  .hero-board {
    top: 49px;
    right: 6%;
    width: 80%;
  }

  .hero-board-copy {
    top: 29%;
    left: 9%;
  }

  .hero-board-copy strong {
    font-size: 40px;
  }

  .hero-spec-card {
    bottom: 3px;
    width: 58%;
    padding: 12px;
  }

  .hero-spec-card > strong {
    margin: 13px 0 15px;
    font-size: 19px;
  }

  .hero-spec-list div,
  .hero-spec-list b {
    font-size: 7px;
  }

  .floating-note {
    padding: 8px 10px;
    font-size: 9px;
  }

  .floating-note-top {
    top: 30px;
  }

  .floating-note-bottom {
    bottom: 22px;
  }

  .process-card {
    min-height: 190px;
  }
}

/* Locale switcher */
.locale-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 3%);
  color: var(--muted);
}

.locale-globe {
  color: var(--accent);
  font-size: 13px;
  line-height: 1;
}

.locale-picker select {
  min-width: 42px;
  padding: 0 2px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.locale-picker option {
  background: #0b1c2e;
  color: var(--ink);
}

.locale-picker:focus-within {
  border-color: rgb(140 232 216 / 65%);
}

.hero-meta > span {
  display: grid;
}

.hero-meta .meta-label {
  display: block;
}

@media (max-width: 760px) {
  .locale-picker {
    justify-content: center;
    min-height: 40px;
  }

  .topnav .locale-picker {
    width: 100%;
    border-radius: 10px;
  }

  .topnav .locale-picker select {
    flex: 1;
  }
}

/* Showcase motion system */
:root {
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-padding-top: 110px;
}

.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 101;
  overflow: hidden;
  background: #000;
  pointer-events: auto;
}

.page-curtain-canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  max-width: none;
}

.page-curtain-count {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  height: 0.75em;
  overflow: hidden;
  color: #fff;
  font-family: Aeonik;
  font-size: clamp(7em, 8vw, 20em);
  font-weight: 400;
  line-height: 0.75em;
}

.page-curtain-digit {
  position: relative;
  float: left;
  width: 1ch;
  text-align: center;
  transform: translateY(-0.05em);
}

.page-curtain-digit > span {
  display: block;
  height: 0.75em;
  line-height: 0.75em;
}

@media (max-width: 812px) {
  .page-curtain-count {
    font-size: 13vw;
  }
}

.page-curtain.is-complete {
  display: none;
}

html.js:not(.is-ready) .app-shell {
  visibility: hidden;
}

html.js:not(.is-ready) .scroll-progress {
  visibility: hidden;
}

.scroll-progress {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 80;
  height: 2px;
  overflow: hidden;
  background: rgb(140 232 216 / 8%);
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  box-shadow: 0 0 14px rgb(140 232 216 / 80%);
  transform: scaleX(0);
  transform-origin: left;
}

.signal-rail {
  position: relative;
  display: flex;
  height: 53px;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid rgb(190 220 232 / 13%);
  border-bottom: 1px solid rgb(190 220 232 / 13%);
  background: rgb(140 232 216 / 3%);
  transform: rotate(-1.2deg) scale(1.02);
}

.signal-rail::before,
.signal-rail::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 90px;
  pointer-events: none;
  content: "";
}

.signal-rail::before {
  left: 0;
  background: linear-gradient(90deg, var(--paper), transparent);
}

.signal-rail::after {
  right: 0;
  background: linear-gradient(-90deg, var(--paper), transparent);
}

.signal-track {
  position: absolute;
  top: 50%;
  left: 0;
  display: flex;
  min-width: max-content;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.18em;
  white-space: nowrap;
  transform: translateY(-50%);
  animation: signal-marquee 26s linear infinite;
}

.signal-track:nth-child(2) {
  left: 100%;
  animation-delay: 0s;
}

.signal-track i {
  color: var(--accent);
  font-size: 14px;
  font-style: normal;
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(27px);
  transition:
    opacity 800ms var(--ease-expo),
    transform 900ms var(--ease-expo);
}

html.js [data-reveal="hero-visual"] {
  transform: translateY(20px) scale(0.97);
  transition-delay: 110ms;
}

html.js [data-reveal="process-card"] {
  transition-delay: calc(var(--reveal-index, 0) * 90ms);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.hero-visual .hero-board,
.hero-visual .hero-board-shadow,
.hero-visual .hero-spec-card,
.hero-visual .floating-note,
.hero-visual .hero-orbit {
  transition: transform 900ms var(--ease-spring);
}

.hero-visual .hero-board {
  transform: translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0) rotate(5deg);
}

.hero-visual .hero-board-shadow {
  transform: translate3d(
      calc(var(--parallax-x, 0px) * 0.55),
      calc(var(--parallax-y, 0px) * 0.55),
      0
    )
    rotate(-4deg);
}

.hero-visual .hero-spec-card {
  transform: translate3d(
      calc(var(--parallax-x, 0px) * -0.65),
      calc(var(--parallax-y, 0px) * -0.65),
      0
    )
    rotate(-4deg);
}

.hero-visual .floating-note-top {
  transform: translate3d(
    calc(var(--parallax-x, 0px) * -0.9),
    calc(var(--parallax-y, 0px) * -0.9),
    0
  );
}

.hero-visual .floating-note-bottom {
  transform: translate3d(
    calc(var(--parallax-x, 0px) * 0.75),
    calc(var(--parallax-y, 0px) * 0.75),
    0
  );
}

.hero-visual .hero-orbit-one {
  transform: translate3d(
    calc(var(--parallax-x, 0px) * 0.35),
    calc(var(--parallax-y, 0px) * 0.35),
    0
  );
}

.hero-visual .hero-orbit-two {
  transform: translate3d(
    calc(var(--parallax-x, 0px) * -0.4),
    calc(var(--parallax-y, 0px) * -0.4),
    0
  );
}

.template-grid {
  perspective: 1600px;
  view-transition-name: template-grid;
}

html.js .template-card:not(.is-in) {
  opacity: 0;
  transform: perspective(1200px) translateY(22px) rotateX(2deg) scale(0.98);
}

.template-card {
  --card-rx: 0deg;
  --card-ry: 0deg;
  --card-lift: 0px;
  transform: perspective(1200px) rotateX(var(--card-rx)) rotateY(var(--card-ry))
    translateY(var(--card-lift));
  transition:
    opacity 650ms var(--ease-expo),
    transform 650ms var(--ease-spring),
    border-color 240ms ease,
    box-shadow 300ms ease;
  transition-delay: calc(var(--card-index, 0) * 34ms);
  will-change: transform;
}

.template-card:hover {
  --card-lift: -9px;
}

.template-card.is-selected {
  --card-lift: -5px;
}

.template-card::after {
  position: absolute;
  inset: 10px;
  z-index: -1;
  border-radius: 15px;
  background: radial-gradient(circle at 50% 0, rgb(140 232 216 / 20%), transparent 62%);
  content: "";
  opacity: 0;
  transition: opacity 300ms ease;
}

.template-card:hover::after,
.template-card.is-selected::after {
  opacity: 1;
}

.preview-modal {
  width: min(1280px, calc(100% - 32px));
  max-height: calc(100vh - 28px);
  padding: 27px;
  border-color: rgb(140 232 216 / 35%);
  border-radius: 26px;
  background:
    radial-gradient(circle at 0 0, rgb(140 232 216 / 7%), transparent 24rem),
    linear-gradient(145deg, #0a1e2d, #050d18 68%);
  box-shadow:
    0 40px 140px rgb(0 0 0 / 62%),
    inset 0 1px 0 rgb(255 255 255 / 8%);
  opacity: 0;
  transform: translate(-50%, -46%) scale(0.94);
  transition:
    opacity 280ms ease,
    transform 650ms var(--ease-expo);
}

.preview-modal.is-open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.preview-modal.is-switching .preview-stage,
.preview-modal.is-switching .preview-details {
  animation: preview-swap 400ms var(--ease-expo);
}

.preview-modal-header {
  align-items: center;
  padding: 0 0 20px;
}

.preview-modal-heading {
  min-width: 0;
}

.preview-modal-header h2 {
  max-width: min(52vw, 680px);
  margin: 8px 0 0;
  overflow: hidden;
  font-size: clamp(24px, 3vw, 42px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-modal-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.preview-nav-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgb(255 255 255 / 3%);
  color: var(--ink);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.preview-nav-button:hover:not(:disabled) {
  border-color: rgb(140 232 216 / 50%);
  background: rgb(140 232 216 / 8%);
  transform: translateY(-2px);
}

.preview-nav-button small {
  color: var(--faint);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.preview-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  color: var(--accent);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.14em;
  vertical-align: middle;
}

.preview-live span:first-child {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgb(140 232 216 / 12%);
  animation: live-pulse 1500ms ease-in-out infinite;
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 235px;
  gap: 18px;
  align-items: stretch;
}

.preview-stage {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgb(190 220 232 / 15%);
  border-radius: 17px;
  background: rgb(3 10 18 / 68%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
}

.preview-browser-bar,
.preview-stage-footer {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.preview-browser-bar {
  padding: 0 5px 9px;
}

.preview-browser-dots {
  display: flex;
  gap: 4px;
}

.preview-browser-dots span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(190 220 232 / 25%);
}

.preview-browser-dots span:first-child {
  background: var(--warm);
}

.preview-browser-dots span:nth-child(2) {
  background: #d9d27f;
}

.preview-browser-dots span:nth-child(3) {
  background: var(--accent);
}

.preview-browser-index {
  color: var(--accent);
}

.preview-viewport {
  position: relative;
  display: block;
  min-height: 260px;
  border-color: rgb(190 220 232 / 15%);
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgb(140 232 216 / 6%) 25%, transparent 25%) 0 0 / 18px 18px,
    #020810;
  box-shadow: 0 18px 45px rgb(0 0 0 / 23%);
}

.preview-viewport iframe {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
}

.preview-stage-footer {
  min-height: 34px;
  padding: 8px 4px 0;
  text-transform: none;
}

.preview-stage-footer > span:last-child {
  color: var(--accent);
  text-transform: uppercase;
}

.preview-progress {
  display: block;
  height: 1px;
  flex: 1;
  overflow: hidden;
  background: rgb(190 220 232 / 15%);
}

.preview-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  transition: width 450ms var(--ease-expo);
}

.preview-details {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px 19px 19px;
  border: 1px solid rgb(190 220 232 / 15%);
  border-radius: 17px;
  background: linear-gradient(160deg, rgb(14 36 52 / 86%), rgb(6 17 29 / 88%));
}

.preview-detail-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.preview-details h3 {
  margin: 19px 0 11px;
  color: var(--ink);
  font-size: 23px;
  letter-spacing: -0.06em;
  line-height: 1.04;
}

.preview-detail-copy {
  min-height: 86px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.preview-specs {
  display: grid;
  gap: 10px;
  margin: auto 0 22px;
  padding: 15px 0 0;
  border-top: 1px solid var(--line);
}

.preview-specs div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.preview-specs dt,
.preview-specs dd {
  margin: 0;
  font-size: 8px;
  line-height: 1.35;
}

.preview-specs dt {
  color: var(--faint);
  text-transform: uppercase;
}

.preview-specs dd {
  color: var(--ink);
  font-weight: 750;
  text-align: right;
}

.preview-select-button {
  width: 100%;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 10px;
}

.preview-modal-note {
  max-width: 800px;
  margin: 15px 3px 0;
  line-height: 1.5;
}

@keyframes curtain-pulse {
  from {
    opacity: 0.35;
    transform: scaleX(0.65);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes signal-marquee {
  from {
    transform: translate(0, -50%);
  }
  to {
    transform: translate(-100%, -50%);
  }
}

@keyframes live-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes preview-swap {
  0% {
    opacity: 0.35;
    transform: translateX(20px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@media (max-width: 900px) {
  .preview-layout {
    grid-template-columns: 1fr;
  }

  .preview-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 0.7fr);
    column-gap: 20px;
  }

  .preview-detail-kicker,
  .preview-details h3,
  .preview-detail-copy {
    grid-column: 1;
  }

  .preview-specs,
  .preview-select-button {
    grid-column: 2;
  }

  .preview-specs {
    grid-row: 1 / span 3;
    align-self: center;
    margin: 0 0 18px;
  }

  .preview-select-button {
    align-self: end;
  }
}

@media (max-width: 760px) {
  .signal-rail {
    margin-right: -16px;
    margin-left: -16px;
    transform: none;
  }

  .preview-modal {
    width: min(100% - 18px, 660px);
    max-height: calc(100vh - 18px);
    padding: 15px;
    border-radius: 19px;
    overflow-y: auto;
  }

  .preview-modal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-modal-actions {
    width: 100%;
    justify-content: space-between;
  }

  .preview-modal-actions .button {
    flex: 1;
  }

  .preview-nav-button {
    flex: 0 0 auto;
  }

  .preview-details {
    display: block;
  }

  .preview-specs {
    margin: 20px 0;
  }

  .preview-stage-footer {
    gap: 8px;
    font-size: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .page-curtain {
    display: none;
  }

  html.js [data-reveal],
  html.js .template-card:not(.is-in) {
    opacity: 1;
    transform: none;
  }
}

/* Light / dark art direction */
html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
  --paper: #f4efe4;
  --surface: #fbf8f0;
  --surface-raised: #fffdf7;
  --surface-soft: #e9edf8;
  --ink: #17213a;
  --muted: #606a7d;
  --faint: #8b8f9c;
  --line: rgb(30 46 82 / 14%);
  --line-strong: rgb(30 46 82 / 28%);
  --accent: #2f50b7;
  --accent-deep: #1d347f;
  --accent-soft: #d8e1ff;
  --warm: #c8752e;
  --violet: #6a62cf;
  --danger: #b64e5b;
  --shadow: 0 30px 80px rgb(44 50 77 / 18%);
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 86% 6%, rgb(47 80 183 / 12%), transparent 27rem),
    radial-gradient(circle at 6% 40%, rgb(200 117 46 / 9%), transparent 30rem),
    linear-gradient(180deg, #f8f3e9 0%, #f1f2f7 52%, #eaeef8 100%);
  color: var(--ink);
}

html[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgb(30 46 82 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(30 46 82 / 4%) 1px, transparent 1px);
}

html[data-theme="light"] body::after {
  background: radial-gradient(circle at 50% 0, transparent 0, rgb(33 45 83 / 7%) 75%);
}

html[data-theme="light"] .topbar {
  border-bottom-color: rgb(30 46 82 / 14%);
  background: rgb(248 244 235 / 78%);
}

html[data-theme="light"] .topnav-link:hover,
html[data-theme="light"] .topnav-link.is-active {
  border-color: rgb(47 80 183 / 22%);
  background: rgb(47 80 183 / 7%);
}

html[data-theme="light"] .button-ghost,
html[data-theme="light"] .button-outline,
html[data-theme="light"] .preview-nav-button {
  border-color: rgb(30 46 82 / 20%);
  background: rgb(255 253 247 / 70%);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%);
}

html[data-theme="light"] .button-ghost:hover,
html[data-theme="light"] .button-outline:hover,
html[data-theme="light"] .preview-nav-button:hover:not(:disabled) {
  border-color: rgb(47 80 183 / 48%);
  background: rgb(47 80 183 / 9%);
}

html[data-theme="light"] .button-primary {
  background: linear-gradient(135deg, #2f50b7, #4866c5);
  box-shadow:
    0 14px 30px rgb(47 80 183 / 19%),
    inset 0 1px 0 rgb(255 255 255 / 42%);
  color: #fffdf7;
}

html[data-theme="light"] .hero h1 em {
  color: #2f50b7;
  text-shadow: 0 0 34px rgb(47 80 183 / 12%);
}

html[data-theme="light"] .hero-visual::before {
  border-color: rgb(47 80 183 / 15%);
  background: radial-gradient(circle, rgb(47 80 183 / 12%), transparent 63%);
}

html[data-theme="light"] .hero-board {
  border-color: rgb(216 225 255 / 88%);
  background: linear-gradient(135deg, #1e347f 0%, #16285f 72%);
  box-shadow:
    20px 22px 0 rgb(47 80 183 / 11%),
    0 35px 70px rgb(32 44 82 / 24%);
}

html[data-theme="light"] .hero-board-grid {
  background-image:
    linear-gradient(rgb(225 232 255 / 11%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(225 232 255 / 11%) 1px, transparent 1px);
}

html[data-theme="light"] .hero-board-shadow {
  border-color: rgb(200 117 46 / 32%);
  background: linear-gradient(135deg, rgb(200 117 46 / 13%), transparent 60%);
  box-shadow: 24px 27px 0 rgb(47 80 183 / 9%);
}

html[data-theme="light"] .hero-spec-card,
html[data-theme="light"] .floating-note {
  border-color: rgb(30 46 82 / 18%);
  background: linear-gradient(145deg, rgb(255 253 247 / 95%), rgb(237 240 249 / 94%));
  box-shadow: 0 22px 50px rgb(44 50 77 / 17%);
}

html[data-theme="light"] .floating-note {
  background: rgb(255 253 247 / 94%);
}

html[data-theme="light"] .hero-orbit {
  border-color: rgb(47 80 183 / 25%);
}

html[data-theme="light"] .hero-orbit-two {
  border-color: rgb(200 117 46 / 28%);
}

html[data-theme="light"] .signal-rail {
  border-color: rgb(30 46 82 / 14%);
  background: rgb(47 80 183 / 5%);
}

html[data-theme="light"] .signal-rail::before {
  background: linear-gradient(90deg, var(--paper), transparent);
}

html[data-theme="light"] .signal-rail::after {
  background: linear-gradient(-90deg, var(--paper), transparent);
}

html[data-theme="light"] .filter-panel,
html[data-theme="light"] .template-card,
html[data-theme="light"] .process-card {
  border-color: rgb(30 46 82 / 16%);
  background: linear-gradient(155deg, rgb(255 253 247 / 92%), rgb(236 240 249 / 92%));
  box-shadow: 0 18px 48px rgb(44 50 77 / 10%);
}

html[data-theme="light"] .search-field,
html[data-theme="light"] .select-field,
html[data-theme="light"] .sort-select,
html[data-theme="light"] .form-field input,
html[data-theme="light"] .form-field select,
html[data-theme="light"] .form-field textarea {
  border-color: rgb(30 46 82 / 16%);
  background: rgb(255 253 247 / 72%);
  color: var(--ink);
}

html[data-theme="light"] .process-section {
  background: linear-gradient(180deg, transparent, rgb(47 80 183 / 6%));
}

html[data-theme="light"] .process-card-highlight {
  border-color: rgb(47 80 183 / 36%);
  background: linear-gradient(145deg, rgb(216 225 255 / 78%), rgb(245 237 222 / 90%));
}

html[data-theme="light"] .selection-tray {
  border-color: rgb(47 80 183 / 34%);
  background: rgb(255 253 247 / 94%);
  box-shadow: 0 24px 70px rgb(44 50 77 / 22%);
}

html[data-theme="light"] .request-drawer {
  border-left-color: rgb(47 80 183 / 28%);
  background: radial-gradient(circle at 100% 0, rgb(47 80 183 / 9%), transparent 20rem), #f8f3e9;
  box-shadow: -30px 0 90px rgb(44 50 77 / 20%);
}

html[data-theme="light"] .drawer-header {
  background: rgb(248 243 233 / 72%);
}

html[data-theme="light"] .preview-modal {
  border-color: rgb(47 80 183 / 32%);
  background:
    radial-gradient(circle at 0 0, rgb(47 80 183 / 8%), transparent 24rem),
    linear-gradient(145deg, #f9f5ec, #e8edf8 68%);
  box-shadow:
    0 40px 140px rgb(44 50 77 / 34%),
    inset 0 1px 0 rgb(255 255 255 / 74%);
}

html[data-theme="light"] .preview-stage,
html[data-theme="light"] .preview-details {
  border-color: rgb(30 46 82 / 15%);
  background: rgb(255 253 247 / 64%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 68%);
}

html[data-theme="light"] .preview-viewport {
  background:
    linear-gradient(135deg, rgb(47 80 183 / 6%) 25%, transparent 25%) 0 0 / 18px 18px,
    #e4e9f4;
  box-shadow: 0 18px 45px rgb(44 50 77 / 15%);
}

html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .locale-picker {
  border-color: rgb(30 46 82 / 18%);
  background: rgb(255 253 247 / 64%);
}

.theme-toggle {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 9px 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 3%);
  color: var(--ink);
  transition:
    border-color 220ms ease,
    background 220ms ease,
    transform 260ms var(--ease-spring);
}

.theme-toggle:hover {
  border-color: rgb(140 232 216 / 45%);
  background: rgb(140 232 216 / 8%);
  transform: translateY(-2px);
}

.theme-toggle-icon {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  color: var(--warm);
  font-size: 14px;
  line-height: 1;
}

.theme-toggle-label {
  min-width: 25px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.theme-toggle-track {
  position: relative;
  display: block;
  width: 27px;
  height: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(255 255 255 / 5%);
}

.theme-toggle-track span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px rgb(140 232 216 / 55%);
  transition:
    transform 360ms var(--ease-spring),
    background 260ms ease,
    box-shadow 260ms ease;
}

html[data-theme="light"] .theme-toggle-track span {
  background: var(--warm);
  box-shadow: 0 0 9px rgb(200 117 46 / 40%);
  transform: translateX(12px);
}

html[data-theme="light"] .theme-toggle:hover {
  border-color: rgb(47 80 183 / 42%);
  background: rgb(47 80 183 / 8%);
}

.hero-visual::after {
  position: absolute;
  inset: 7% 0 6% 3%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 18%, rgb(246 183 141 / 32%) 0 2px, transparent 3px) 0 0 / 44px
      44px,
    repeating-radial-gradient(
      ellipse at 46% 45%,
      transparent 0 28px,
      rgb(140 232 216 / 8%) 30px 31px,
      transparent 34px 62px
    );
  opacity: 0.72;
  animation: starry-drift 22s linear infinite;
  content: "";
}

html[data-theme="light"] .hero-visual::after {
  background:
    radial-gradient(circle at 15% 18%, rgb(200 117 46 / 34%) 0 2px, transparent 3px) 0 0 / 44px 44px,
    repeating-radial-gradient(
      ellipse at 46% 45%,
      transparent 0 28px,
      rgb(47 80 183 / 10%) 30px 31px,
      transparent 34px 62px
    );
  opacity: 0.6;
}

.hero-board-grid {
  animation: grid-drift 18s linear infinite;
}

.hero-board-accent {
  animation: accent-orbit 7s ease-in-out infinite;
}

.hero-board-accent::after {
  animation: accent-core 4s ease-in-out infinite alternate;
}

.hero-orbit-one {
  animation: orbit-breathe 7s ease-in-out infinite;
}

.hero-orbit-two {
  animation: orbit-breathe 9s ease-in-out -2s infinite reverse;
}

.hero-spec-card {
  animation: card-breathe 8s ease-in-out -1s infinite;
}

.theme-toggle.is-changing {
  animation: theme-toggle-pop 520ms var(--ease-spring);
}

html.theme-switching .hero-visual,
html.theme-switching .template-grid,
html.theme-switching .process-grid {
  animation: theme-settle 520ms var(--ease-expo);
}

@supports (view-transition-name: root) {
  ::view-transition-group(root) {
    animation-duration: 620ms;
    animation-timing-function: var(--ease-expo);
  }

  ::view-transition-old(root) {
    animation: theme-old 420ms ease both;
  }

  ::view-transition-new(root) {
    animation: theme-new 620ms var(--ease-expo) both;
  }
}

@keyframes starry-drift {
  from {
    background-position:
      0 0,
      0 0;
  }
  to {
    background-position:
      44px 18px,
      38px -26px;
  }
}

@keyframes grid-drift {
  from {
    background-position:
      0 0,
      0 0;
  }
  to {
    background-position:
      40px 40px,
      -40px 40px;
  }
}

@keyframes orbit-breathe {
  0%,
  100% {
    opacity: 0.48;
  }
  50% {
    opacity: 0.92;
  }
}

@keyframes accent-orbit {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(246 183 141 / 0%);
  }
  50% {
    box-shadow: 0 0 0 12px rgb(246 183 141 / 9%);
  }
}

@keyframes accent-core {
  from {
    opacity: 0.65;
    transform: scale(0.88);
  }
  to {
    opacity: 0.95;
    transform: scale(1.08);
  }
}

@keyframes card-breathe {
  0%,
  100% {
    filter: saturate(1);
  }
  50% {
    filter: saturate(1.08) brightness(1.03);
  }
}

@keyframes theme-toggle-pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes theme-settle {
  0% {
    opacity: 0.68;
    filter: saturate(0.72);
  }
  100% {
    opacity: 1;
    filter: saturate(1);
  }
}

@keyframes theme-old {
  from {
    opacity: 1;
    filter: blur(0);
  }
  to {
    opacity: 0;
    filter: blur(8px);
  }
}

@keyframes theme-new {
  from {
    opacity: 0;
    filter: blur(8px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@media (max-width: 760px) {
  .topnav .theme-toggle {
    width: 100%;
    justify-content: space-between;
    border-radius: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual::after,
  .hero-board-grid,
  .hero-board-accent,
  .hero-board-accent::after,
  .hero-orbit-one,
  .hero-orbit-two,
  .hero-spec-card,
  .theme-toggle.is-changing,
  html.theme-switching .hero-visual,
  html.theme-switching .template-grid,
  html.theme-switching .process-grid {
    animation: none;
  }
}

.hero {
  position: relative;
  isolation: isolate;
  --hero-progress: 0;
}

.hero::after {
  position: absolute;
  inset: -24% 0 -18%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 58% 38%, rgb(140 232 216 / 12%), transparent 24rem),
    conic-gradient(from 120deg at 58% 42%, transparent, rgb(246 183 141 / 7%), transparent 30%);
  opacity: calc(0.9 - var(--hero-progress) * 0.3);
  transform: translate3d(0, calc(var(--hero-progress) * 46px), 0) scale(1.04);
  transition: opacity 180ms linear;
  content: "";
}

html.js [data-reveal="hero-copy"].is-visible {
  filter: blur(var(--hero-copy-blur, 0px));
  transform: translate3d(0, var(--hero-copy-shift, 0px), 0);
  transition:
    opacity 800ms var(--ease-expo),
    transform 140ms linear,
    filter 180ms linear;
}

html.js [data-reveal="hero-visual"].is-visible {
  transform: translate3d(0, var(--hero-visual-shift, 0px), 0) scale(var(--hero-visual-scale, 1));
  transition:
    opacity 800ms var(--ease-expo),
    transform 150ms linear;
}

.hero-scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  color: var(--faint);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.hero-scroll-cue-line {
  position: relative;
  display: block;
  width: 60px;
  height: 1px;
  overflow: hidden;
  background: var(--line-strong);
}

.hero-scroll-cue-line::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 12px rgb(140 232 216 / 70%);
  content: "";
  animation: cue-scan 2.4s var(--ease-expo) infinite;
}

.hero-visual {
  background: radial-gradient(
    circle at var(--pointer-x, 50%) var(--pointer-y, 50%),
    rgb(140 232 216 / 8%),
    transparent 34%
  );
  transition: background 240ms ease;
}

.hero-visual .hero-board {
  transform: translate3d(
      calc(var(--parallax-x, 0px) + 0px),
      calc(var(--parallax-y, 0px) + var(--hero-board-y, 0px)),
      0
    )
    rotate(calc(5deg + var(--hero-board-rotate, 0deg)));
}

.hero-visual .hero-board-shadow {
  transform: translate3d(
      calc(var(--parallax-x, 0px) * 0.55),
      calc(var(--parallax-y, 0px) * 0.55 + var(--hero-board-y, 0px) * 0.65),
      0
    )
    rotate(calc(-4deg + var(--hero-board-rotate, 0deg) * 0.5));
}

.hero-visual .hero-spec-card {
  transform: translate3d(
      calc(var(--parallax-x, 0px) * -0.65),
      calc(var(--parallax-y, 0px) * -0.65 + var(--hero-board-y, 0px) * -0.35),
      0
    )
    rotate(calc(-4deg + var(--hero-board-rotate, 0deg) * -0.45));
}

.hero-board-grid {
  background-position:
    0 var(--hero-grid-shift, 0px),
    var(--hero-grid-shift, 0px) 0;
}

.catalog-section,
.process-section {
  position: relative;
  isolation: isolate;
  --section-progress: 0;
}

.catalog-section::before,
.process-section::before {
  position: absolute;
  inset: 5% 0 -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 20%, rgb(140 232 216 / 9%), transparent 24rem),
    radial-gradient(circle at 12% 68%, rgb(147 152 255 / 7%), transparent 22rem);
  opacity: calc(0.25 + var(--section-progress) * 0.75);
  transform: translate3d(0, calc((1 - var(--section-progress)) * 80px), 0) scale(0.96);
  transition:
    opacity 220ms linear,
    transform 220ms linear;
  content: "";
}

.process-section::before {
  background:
    radial-gradient(circle at 72% 46%, rgb(246 183 141 / 10%), transparent 22rem),
    radial-gradient(circle at 28% 80%, rgb(140 232 216 / 9%), transparent 26rem);
}

.process-grid {
  transform: translate3d(0, calc((1 - var(--section-progress)) * 12px), 0);
  transition: transform 220ms linear;
}

html.js .process-card.is-visible {
  transform: perspective(1200px) translate3d(0, calc((1 - var(--section-progress)) * 18px), 0)
    rotateX(calc((1 - var(--section-progress)) * 1.4deg));
}

.template-card {
  --pointer-x: 50%;
  --pointer-y: 50%;
}

.template-card::after {
  z-index: 0;
  background: radial-gradient(
    circle at var(--pointer-x) var(--pointer-y),
    rgb(140 232 216 / 19%),
    transparent 44%
  );
}

.template-card > .template-visual,
.template-card > .card-content,
.template-card > .card-check {
  position: relative;
  z-index: 1;
}

.process-card {
  --pointer-x: 50%;
  --pointer-y: 50%;
}

.process-card::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--pointer-x) var(--pointer-y),
    rgb(140 232 216 / 14%),
    transparent 52%
  );
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.process-card:hover::before {
  opacity: 1;
}

[data-magnetic] {
  --mag-x: 0px;
  --mag-y: 0px;
  transform: translate3d(var(--mag-x), var(--mag-y), 0);
  transition:
    transform 280ms var(--ease-spring),
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

[data-magnetic]:hover {
  transform: translate3d(var(--mag-x), var(--mag-y), 0) translateY(-2px);
}

@keyframes cue-scan {
  from {
    transform: translateX(-28px);
  }
  to {
    transform: translateX(64px);
  }
}

@media (max-width: 760px) {
  .hero-scroll-cue {
    margin-top: 27px;
  }

  .process-grid {
    transform: none;
  }

  html.js .process-card.is-visible {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after,
  .hero-scroll-cue-line::after {
    animation: none;
  }

  html.js [data-reveal="hero-copy"].is-visible,
  html.js [data-reveal="hero-visual"].is-visible,
  html.js .process-card.is-visible,
  .process-grid {
    filter: none;
    transform: none;
    transition: none;
  }

  [data-magnetic] {
    transform: none !important;
    transition: none;
  }
}

/* Scroll-led closing scene */
.hero-scroll-cue {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  text-decoration: none;
  transition:
    color 220ms ease,
    transform 420ms var(--ease-expo);
}

.hero-scroll-cue:hover {
  color: var(--ink);
}

html.js [data-reveal="scroll-cue"].is-visible:hover {
  transform: translate3d(7px, 0, 0);
}

.next-scene-cue {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 44px;
  padding: 26px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition:
    border-color 260ms ease,
    color 260ms ease,
    transform 420ms var(--ease-expo);
}

.next-scene-cue::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(140 232 216 / 9%), transparent 42%, rgb(246 183 141 / 8%));
  content: "";
  opacity: 0;
  transform: translateX(-14%);
  transition:
    opacity 320ms ease,
    transform 520ms var(--ease-expo);
}

.next-scene-cue:hover {
  border-color: var(--line-strong);
  transform: translate3d(0, -3px, 0);
}

.next-scene-cue:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.next-scene-kicker {
  color: var(--accent);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.next-scene-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.next-scene-copy strong {
  font-size: clamp(18px, 2.2vw, 27px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.next-scene-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.next-scene-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  font-size: 18px;
  transition:
    background 240ms ease,
    border-color 240ms ease,
    transform 420ms var(--ease-expo);
}

.next-scene-cue:hover .next-scene-arrow {
  border-color: var(--accent);
  background: rgb(140 232 216 / 10%);
  transform: translateY(5px);
}

.process-close {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 52px;
  padding: 29px 30px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgb(246 183 141 / 11%), transparent 20rem),
    linear-gradient(135deg, rgb(140 232 216 / 9%), rgb(147 152 255 / 5%) 48%, transparent);
  box-shadow: 0 25px 70px rgb(0 0 0 / 13%);
}

.process-close::after {
  position: absolute;
  right: 25%;
  bottom: -72px;
  width: 220px;
  height: 220px;
  border: 1px solid rgb(140 232 216 / 14%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.process-close-copy {
  position: relative;
  z-index: 1;
  max-width: 630px;
}

.process-close-copy .eyebrow {
  margin: 0 0 11px;
  color: var(--accent);
}

.process-close-copy h3 {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 43px);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.process-close-copy p:last-child {
  max-width: 540px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.process-close .button {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.catalog-section,
.process-section {
  scroll-margin-top: 110px;
}

.app-shell {
  overflow-x: clip;
}

@media (max-width: 1120px) {
  .catalog-layout {
    grid-template-columns: minmax(218px, 238px) minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 72px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    min-height: 520px;
    margin-top: 8px;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: relative;
    top: auto;
  }

  .filter-heading {
    align-items: center;
  }

  .process-close {
    gap: 24px;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 56px;
    padding-bottom: 68px;
  }

  .hero h1 {
    font-size: clamp(45px, 13vw, 68px);
  }

  .hero-visual {
    min-height: 420px;
    margin-top: 20px;
  }

  .catalog-section,
  .process-section {
    scroll-margin-top: 84px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .section-intro {
    max-width: 520px;
  }

  .next-scene-cue {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 13px 18px;
    margin-top: 34px;
    padding: 22px 0;
  }

  .next-scene-kicker {
    grid-column: 1;
  }

  .next-scene-copy {
    grid-column: 1;
  }

  .next-scene-arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .process-close {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 38px;
    padding: 24px 20px;
    border-radius: 19px;
  }

  .process-close .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-visual {
    min-height: 355px;
  }

  .next-scene-copy strong {
    font-size: 19px;
  }

  .next-scene-copy small {
    font-size: 11px;
  }

  .process-close-copy h3 {
    font-size: 29px;
  }

  .process-close-copy p:last-child {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue,
  .next-scene-cue,
  .next-scene-cue::before,
  .next-scene-arrow {
    transition: none;
  }

  html.js [data-reveal="scroll-cue"].is-visible:hover,
  .next-scene-cue:hover,
  .next-scene-cue:hover .next-scene-arrow {
    transform: none;
  }
}

/* XLab-inspired color system: slate neutrals, teal brand, mint secondary */
:root,
html[data-theme="dark"] {
  --paper: #1e293b;
  --surface: #334155;
  --surface-raised: #475569;
  --surface-soft: #64748b;
  --ink: #f7f9fb;
  --muted: #c9d1d9;
  --faint: #8b949e;
  --line: rgb(148 163 184 / 28%);
  --line-strong: rgb(148 163 184 / 50%);
  --accent: #00d4aa;
  --accent-deep: #00a19a;
  --accent-soft: #134e4a;
  --warm: #37c88f;
  --violet: #818cf8;
  --danger: #f85149;
  --shadow: 0 30px 80px rgb(2 6 23 / 30%);
}

html[data-theme="light"] {
  --paper: #ffffff;
  --surface: #f9fafb;
  --surface-raised: #ffffff;
  --surface-soft: #f3f4f6;
  --ink: #111827;
  --muted: #4b5563;
  --faint: #6b7280;
  --line: rgb(229 231 235 / 100%);
  --line-strong: rgb(209 213 219 / 100%);
  --accent: #00a19a;
  --accent-deep: #00726a;
  --accent-soft: #ccfbf1;
  --warm: #37c88f;
  --violet: #6366f1;
  --danger: #dc2626;
  --shadow: 0 30px 80px rgb(15 23 42 / 12%);
}

body {
  background:
    radial-gradient(circle at 88% 3%, rgb(0 212 170 / 10%), transparent 28rem),
    radial-gradient(circle at 4% 36%, rgb(55 200 143 / 8%), transparent 31rem),
    linear-gradient(180deg, #1e293b 0%, #172033 54%, #0f172a 100%);
}

body::before {
  background-image:
    linear-gradient(rgb(148 163 184 / 6%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(148 163 184 / 6%) 1px, transparent 1px);
}

body::after {
  background: radial-gradient(circle at 50% 0, transparent 0, rgb(2 6 23 / 18%) 78%);
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 88% 3%, rgb(0 161 154 / 9%), transparent 28rem),
    radial-gradient(circle at 4% 36%, rgb(55 200 143 / 7%), transparent 31rem),
    linear-gradient(180deg, #ffffff 0%, #f9fafb 54%, #f3f4f6 100%);
}

html[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgb(15 23 42 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(15 23 42 / 4%) 1px, transparent 1px);
}

html[data-theme="light"] body::after {
  background: radial-gradient(circle at 50% 0, transparent 0, rgb(15 23 42 / 5%) 78%);
}

.topbar {
  border-bottom-color: rgb(148 163 184 / 24%);
  background: rgb(30 41 59 / 84%);
}

html[data-theme="light"] .topbar {
  border-bottom-color: rgb(229 231 235 / 92%);
  background: rgb(255 255 255 / 86%);
}

.brand-mark {
  background: linear-gradient(145deg, rgb(0 212 170 / 22%), rgb(55 200 143 / 7%));
  box-shadow:
    inset 0 0 0 1px rgb(0 212 170 / 22%),
    0 8px 24px rgb(0 212 170 / 12%);
}

.topnav-link:hover,
.topnav-link.is-active {
  border-color: rgb(0 212 170 / 36%);
  background: rgb(0 212 170 / 10%);
}

html[data-theme="light"] .topnav-link:hover,
html[data-theme="light"] .topnav-link.is-active {
  border-color: rgb(0 161 154 / 30%);
  background: rgb(0 161 154 / 8%);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #042f2e;
  box-shadow:
    0 14px 30px rgb(0 212 170 / 18%),
    inset 0 1px 0 rgb(255 255 255 / 28%);
}

.button-primary:hover {
  background: linear-gradient(135deg, #2dd4bf, var(--accent));
}

html[data-theme="light"] .button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #042f2e;
  box-shadow:
    0 14px 30px rgb(0 161 154 / 18%),
    inset 0 1px 0 rgb(255 255 255 / 36%);
}

html[data-theme="light"] .button-primary:hover {
  background: linear-gradient(135deg, #2dd4bf, var(--accent));
}

.button-ghost,
.button-outline {
  border-color: var(--line-strong);
  background: rgb(71 85 105 / 38%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%);
}

.button-ghost:hover,
.button-outline:hover {
  border-color: var(--accent);
  background: rgb(0 212 170 / 12%);
  color: var(--accent);
}

html[data-theme="light"] .button-ghost,
html[data-theme="light"] .button-outline {
  border-color: var(--line-strong);
  background: rgb(255 255 255 / 82%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 90%);
}

html[data-theme="light"] .button-ghost:hover,
html[data-theme="light"] .button-outline:hover {
  border-color: var(--accent);
  background: rgb(0 161 154 / 8%);
}

.hero h1 em {
  color: var(--accent);
  text-shadow: 0 0 38px rgb(0 212 170 / 18%);
}

html[data-theme="light"] .hero h1 em {
  color: var(--accent-deep);
  text-shadow: 0 0 34px rgb(0 161 154 / 12%);
}

.hero-visual::before {
  border-color: rgb(0 212 170 / 18%);
  background: radial-gradient(circle, rgb(0 212 170 / 12%), transparent 63%);
}

.hero-board-shadow {
  border-color: rgb(55 200 143 / 36%);
  background: linear-gradient(135deg, rgb(55 200 143 / 15%), transparent 62%);
  box-shadow: 24px 27px 0 rgb(0 212 170 / 9%);
}

.hero-board {
  border-color: rgb(0 212 170 / 72%);
  background: linear-gradient(135deg, #0f766e 0%, #134e4a 60%, #1e293b 100%);
  box-shadow:
    20px 22px 0 rgb(55 200 143 / 18%),
    0 35px 70px rgb(2 6 23 / 48%);
}

.hero-board::before {
  background: linear-gradient(90deg, transparent, rgb(0 212 170 / 75%), transparent);
}

.hero-board-copy span,
.hero-spec-top span:last-child,
.hero-visual-caption span:last-child {
  color: var(--accent);
}

.hero-board-copy em,
.hero-spec-card > strong em {
  color: var(--warm);
}

.hero-spec-card,
.floating-note {
  border-color: rgb(148 163 184 / 34%);
  background: linear-gradient(145deg, rgb(51 65 85 / 94%), rgb(30 41 59 / 92%));
  box-shadow: 0 22px 50px rgb(2 6 23 / 30%);
}

html[data-theme="light"] .hero-board-shadow {
  border-color: rgb(55 200 143 / 34%);
  background: linear-gradient(135deg, rgb(55 200 143 / 13%), transparent 62%);
  box-shadow: 24px 27px 0 rgb(0 161 154 / 10%);
}

html[data-theme="light"] .hero-board {
  border-color: rgb(0 161 154 / 74%);
  background: linear-gradient(135deg, #0f766e 0%, #134e4a 60%, #1e293b 100%);
  box-shadow:
    20px 22px 0 rgb(55 200 143 / 16%),
    0 35px 70px rgb(15 23 42 / 22%);
}

html[data-theme="light"] .hero-spec-card,
html[data-theme="light"] .floating-note {
  border-color: rgb(209 213 219 / 100%);
  background: linear-gradient(145deg, rgb(255 255 255 / 96%), rgb(243 244 246 / 94%));
  box-shadow: 0 22px 50px rgb(15 23 42 / 13%);
}

.signal-rail {
  border-color: rgb(148 163 184 / 28%);
  background: rgb(0 212 170 / 5%);
}

html[data-theme="light"] .signal-rail {
  border-color: rgb(229 231 235 / 100%);
  background: rgb(0 161 154 / 5%);
}

.filter-panel,
.template-card,
.process-card {
  border-color: rgb(148 163 184 / 32%);
  background: linear-gradient(155deg, rgb(51 65 85 / 92%), rgb(30 41 59 / 90%));
  box-shadow: 0 18px 48px rgb(2 6 23 / 20%);
}

.template-card:hover,
.template-card.is-selected {
  border-color: rgb(0 212 170 / 80%);
  box-shadow:
    0 20px 44px rgb(2 6 23 / 34%),
    0 0 0 1px rgb(0 212 170 / 15%);
}

.search-field,
.select-field,
.sort-select {
  border-color: rgb(148 163 184 / 34%);
  background: rgb(15 23 42 / 58%);
}

.process-card-highlight {
  border-color: rgb(0 212 170 / 58%);
  background: linear-gradient(145deg, rgb(19 78 74 / 88%), rgb(51 65 85 / 88%));
  box-shadow: 0 22px 58px rgb(2 6 23 / 27%);
}

html[data-theme="light"] .filter-panel,
html[data-theme="light"] .template-card,
html[data-theme="light"] .process-card {
  border-color: rgb(229 231 235 / 100%);
  background: linear-gradient(155deg, rgb(255 255 255 / 98%), rgb(249 250 251 / 96%));
  box-shadow: 0 18px 48px rgb(15 23 42 / 10%);
}

html[data-theme="light"] .template-card:hover,
html[data-theme="light"] .template-card.is-selected {
  border-color: rgb(0 161 154 / 62%);
  box-shadow:
    0 20px 44px rgb(15 23 42 / 15%),
    0 0 0 1px rgb(0 161 154 / 10%);
}

html[data-theme="light"] .search-field,
html[data-theme="light"] .select-field,
html[data-theme="light"] .sort-select {
  border-color: rgb(229 231 235 / 100%);
  background: rgb(255 255 255 / 94%);
}

html[data-theme="light"] .process-card-highlight {
  border-color: rgb(0 161 154 / 48%);
  background: linear-gradient(145deg, rgb(204 251 241 / 86%), rgb(249 250 251 / 96%));
}

.selection-tray {
  border-color: rgb(0 212 170 / 58%);
  background: rgb(30 41 59 / 96%);
  box-shadow: 0 24px 70px rgb(2 6 23 / 42%);
}

.tray-check,
.selected-template-index {
  background: var(--accent);
  color: #042f2e;
}

.selected-template {
  border-color: rgb(0 212 170 / 34%);
  background: rgb(0 212 170 / 9%);
}

.request-drawer {
  border-left-color: rgb(0 212 170 / 34%);
  background: radial-gradient(circle at 100% 0, rgb(0 212 170 / 12%), transparent 20rem), #1e293b;
  box-shadow: -30px 0 90px rgb(2 6 23 / 42%);
}

.overlay {
  background: rgb(2 6 23 / 72%);
}

.preview-modal {
  border-color: rgb(0 212 170 / 36%);
  background:
    radial-gradient(circle at 0 0, rgb(0 212 170 / 10%), transparent 24rem),
    linear-gradient(145deg, #334155, #1e293b 72%);
  box-shadow: 0 40px 140px rgb(2 6 23 / 48%);
}

.preview-viewport {
  background:
    linear-gradient(135deg, rgb(0 212 170 / 6%) 25%, transparent 25%) 0 0 / 18px 18px,
    #1e293b;
}

.process-section {
  background: linear-gradient(180deg, transparent, rgb(0 212 170 / 7%));
}

.process-close {
  border-color: rgb(0 212 170 / 34%);
  background:
    radial-gradient(circle at 100% 0, rgb(55 200 143 / 13%), transparent 20rem),
    linear-gradient(135deg, rgb(0 212 170 / 10%), rgb(55 200 143 / 7%) 48%, transparent);
  box-shadow: 0 25px 70px rgb(2 6 23 / 20%);
}

.next-scene-cue::before {
  background: linear-gradient(90deg, rgb(0 212 170 / 10%), transparent 42%, rgb(55 200 143 / 9%));
}

html[data-theme="light"] .selection-tray {
  border-color: rgb(0 161 154 / 38%);
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 24px 70px rgb(15 23 42 / 18%);
}

html[data-theme="light"] .selected-template {
  border-color: rgb(0 161 154 / 28%);
  background: rgb(0 161 154 / 7%);
}

html[data-theme="light"] .request-drawer {
  border-left-color: rgb(0 161 154 / 30%);
  background: radial-gradient(circle at 100% 0, rgb(0 161 154 / 9%), transparent 20rem), #ffffff;
  box-shadow: -30px 0 90px rgb(15 23 42 / 20%);
}

html[data-theme="light"] .overlay {
  background: rgb(15 23 42 / 28%);
}

html[data-theme="light"] .preview-modal {
  border-color: rgb(0 161 154 / 30%);
  background:
    radial-gradient(circle at 0 0, rgb(0 161 154 / 7%), transparent 24rem),
    linear-gradient(145deg, #ffffff, #f3f4f6 72%);
  box-shadow: 0 40px 140px rgb(15 23 42 / 22%);
}

html[data-theme="light"] .preview-viewport {
  background:
    linear-gradient(135deg, rgb(0 161 154 / 5%) 25%, transparent 25%) 0 0 / 18px 18px,
    #f3f4f6;
}

html[data-theme="light"] .process-section {
  background: linear-gradient(180deg, transparent, rgb(0 161 154 / 5%));
}

html[data-theme="light"] .process-close {
  border-color: rgb(0 161 154 / 28%);
  background:
    radial-gradient(circle at 100% 0, rgb(55 200 143 / 10%), transparent 20rem),
    linear-gradient(135deg, rgb(0 161 154 / 7%), rgb(55 200 143 / 6%) 48%, transparent);
  box-shadow: 0 25px 70px rgb(15 23 42 / 11%);
}

/* Motion intensity pass */
:root {
  --motion-velocity: 0px;
}

.hero-visual::after {
  animation-duration: 12s;
}

.hero-board-grid {
  animation-duration: 10s;
}

.hero-board::after {
  animation: board-ring-sweep 4.8s ease-in-out infinite;
}

.hero-board-accent {
  animation: xlab-accent-orbit 4.6s ease-in-out infinite;
}

.hero-board-accent::after {
  animation-duration: 2.4s;
}

.hero-spec-card {
  animation: xlab-card-breathe 5.5s ease-in-out -0.8s infinite;
}

.hero-scroll-cue-line::after {
  animation-duration: 1.55s;
}

.catalog-section,
.process-section {
  --scene-shift: 0px;
}

.catalog-section::after {
  position: absolute;
  top: 11%;
  right: -17%;
  z-index: -1;
  width: min(54vw, 720px);
  aspect-ratio: 1;
  border: 1px dashed rgb(0 212 170 / 20%);
  border-radius: 50%;
  opacity: calc(0.12 + var(--section-progress) * 0.5);
  pointer-events: none;
  transform: translate3d(0, calc(var(--scene-shift, 0px) * 0.35), 0) rotate(-8deg);
  transition:
    opacity 220ms linear,
    transform 220ms linear;
  content: "";
}

.process-section::after {
  opacity: calc(0.12 + var(--section-progress) * 0.54);
  transform: translate3d(0, calc(var(--scene-shift, 0px) * 0.35), 0);
  transition:
    opacity 220ms linear,
    transform 220ms linear;
}

.catalog-section.is-active-scene::after,
.process-section.is-active-scene::after {
  animation: scene-ring-bloom 1.5s var(--ease-expo) both;
}

.section-heading > div:first-child::after {
  background: linear-gradient(90deg, transparent, var(--accent) 36%, var(--warm) 58%, transparent) 0
    0 / 220% 100%;
  animation: heading-line-shimmer 3.6s linear infinite;
}

html.js [data-reveal="section-heading"].is-visible {
  transform: translate3d(0, calc(var(--scene-shift, 0px) * -0.12), 0);
  transition:
    opacity 800ms var(--ease-expo),
    transform 150ms linear;
}

html.js [data-reveal="filter-panel"].is-visible {
  transform: translate3d(0, calc(var(--scene-shift, 0px) * -0.08), 0);
  transition:
    opacity 800ms var(--ease-expo),
    transform 170ms linear;
}

html.js [data-reveal="results-panel"].is-visible {
  transform: translate3d(0, calc(var(--scene-shift, 0px) * 0.1), 0);
  transition:
    opacity 800ms var(--ease-expo),
    transform 170ms linear;
}

.process-grid {
  transform: translate3d(
    0,
    calc((1 - var(--section-progress)) * 12px + var(--scene-shift, 0px) * 0.08),
    0
  );
}

html.js .process-card.is-visible {
  transform: perspective(1200px)
    translate3d(0, calc((1 - var(--section-progress)) * 18px + var(--scene-shift, 0px) * 0.12), 0)
    rotateX(calc((1 - var(--section-progress)) * 1.4deg));
  transition:
    opacity 800ms var(--ease-expo),
    transform 240ms linear;
  transition-delay: calc(var(--reveal-index, 0) * 90ms);
}

.template-card {
  transition-delay: calc(var(--card-index, 0) * 52ms);
}

.template-card:hover .template-visual {
  transform: scale(1.035);
}

.template-visual {
  transition: transform 650ms var(--ease-spring);
}

.template-visual::before {
  animation: template-grid-glide 11s linear infinite;
}

.template-visual::after {
  animation: template-ring-orbit 9s linear infinite;
}

.process-grid::after {
  position: absolute;
  top: 39px;
  left: 13%;
  z-index: 2;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 5px rgb(0 212 170 / 12%),
    0 0 20px rgb(0 212 170 / 55%);
  pointer-events: none;
  animation: process-route 3.8s var(--ease-expo) infinite;
  content: "";
}

.process-card:hover::after,
.process-card-highlight::after {
  animation: process-node-pulse 2.2s ease-in-out infinite;
}

.next-scene-cue {
  isolation: isolate;
}

.next-scene-cue::before {
  z-index: 0;
  background: linear-gradient(
      110deg,
      transparent 22%,
      rgb(0 212 170 / 14%) 42%,
      rgb(55 200 143 / 9%) 52%,
      transparent 72%
    )
    0 0 / 220% 100%;
}

.next-scene-cue > * {
  position: relative;
  z-index: 1;
}

html.js [data-reveal="next-scene-cue"].is-visible::before {
  opacity: 0.22;
  animation: next-scene-sweep 5.5s linear infinite;
}

html.js [data-reveal="next-scene-cue"].is-visible .next-scene-arrow {
  animation: next-arrow-bounce 2.2s var(--ease-spring) infinite;
}

.next-scene-cue:hover .next-scene-arrow {
  animation-play-state: paused;
}

.process-close {
  isolation: isolate;
}

.process-close::before {
  position: absolute;
  inset: -55% -18%;
  z-index: 0;
  background: linear-gradient(
    112deg,
    transparent 35%,
    rgb(0 212 170 / 12%) 46%,
    rgb(55 200 143 / 10%) 51%,
    transparent 63%
  );
  opacity: 0.6;
  pointer-events: none;
  transform: translateX(-42%) rotate(-11deg);
  animation: close-scan 7s linear infinite;
  content: "";
}

.process-close::after {
  animation: close-orbit 12s linear infinite;
}

.process-close-copy,
.process-close .button {
  z-index: 1;
}

@keyframes board-ring-sweep {
  0%,
  100% {
    border-color: rgb(0 212 170 / 25%);
    box-shadow: 0 0 0 rgb(0 212 170 / 0%);
    opacity: 0.55;
  }
  50% {
    border-color: rgb(55 200 143 / 72%);
    box-shadow: 0 0 28px rgb(0 212 170 / 18%);
    opacity: 1;
  }
}

@keyframes xlab-accent-orbit {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgb(0 212 170 / 0%),
      inset 0 0 0 rgb(55 200 143 / 0%);
  }
  50% {
    box-shadow:
      0 0 0 13px rgb(0 212 170 / 12%),
      inset 0 0 18px rgb(55 200 143 / 18%);
  }
}

@keyframes xlab-card-breathe {
  0%,
  100% {
    filter: saturate(1) brightness(1);
  }
  50% {
    filter: saturate(1.12) brightness(1.06) drop-shadow(0 0 18px rgb(0 212 170 / 14%));
  }
}

@keyframes scene-wash-sweep {
  0% {
    opacity: 0;
    transform: rotate(-8deg) translateX(-26%);
  }
  35%,
  70% {
    opacity: 1;
    transform: rotate(-8deg) translateX(0);
  }
  100% {
    opacity: 0;
    transform: rotate(-8deg) translateX(26%);
  }
}

@keyframes scene-ring-bloom {
  0% {
    opacity: 0;
    transform: scale(0.82) rotate(-12deg);
  }
  55% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.56;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes heading-line-shimmer {
  from {
    background-position: 180% 0;
  }
  to {
    background-position: -40% 0;
  }
}

@keyframes template-grid-glide {
  from {
    background-position:
      0 0,
      0 0;
  }
  to {
    background-position:
      34px 20px,
      -22px 34px;
  }
}

@keyframes template-ring-orbit {
  0%,
  100% {
    opacity: 0.44;
    transform: rotate(-8deg) scale(0.94);
  }
  50% {
    opacity: 0.88;
    transform: rotate(9deg) scale(1.06);
  }
}

@keyframes process-route {
  0%,
  12% {
    left: 13%;
    opacity: 0.25;
  }
  45% {
    opacity: 1;
  }
  88%,
  100% {
    left: calc(87% - 7px);
    opacity: 0.35;
  }
}

@keyframes process-node-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 5px rgb(0 212 170 / 9%),
      0 0 0 rgb(0 212 170 / 0%);
  }
  50% {
    box-shadow:
      0 0 0 9px rgb(0 212 170 / 14%),
      0 0 22px rgb(0 212 170 / 48%);
  }
}

@keyframes next-arrow-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  48% {
    transform: translateY(6px);
  }
  64% {
    transform: translateY(2px);
  }
}

@keyframes next-scene-sweep {
  from {
    background-position: 180% 0;
  }
  to {
    background-position: -40% 0;
  }
}

@keyframes close-scan {
  from {
    transform: translateX(-42%) rotate(-11deg);
  }
  to {
    transform: translateX(42%) rotate(-11deg);
  }
}

@keyframes close-orbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
  .process-grid {
    transform: translate3d(0, calc((1 - var(--section-progress)) * 8px), 0);
  }

  .process-grid::after {
    display: none;
  }

  .catalog-section::after {
    right: -44%;
    width: 92vw;
  }

  .process-section::after {
    right: -32%;
    width: 86vw;
  }

  .process-close::before {
    opacity: 0.38;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual::after,
  .hero-board-grid,
  .hero-board::after,
  .hero-board-accent,
  .hero-board-accent::after,
  .hero-spec-card,
  .hero-scroll-cue-line::after,
  .section-heading > div:first-child::after,
  .template-visual::before,
  .template-visual::after,
  .process-grid::after,
  .process-card::after,
  .next-scene-cue::before,
  .next-scene-arrow,
  .process-close::before,
  .process-close::after {
    animation: none !important;
  }

  .catalog-section::after,
  .process-section::after,
  .process-grid {
    transform: none !important;
  }

  html.js [data-reveal="section-heading"].is-visible,
  html.js [data-reveal="filter-panel"].is-visible,
  html.js [data-reveal="results-panel"].is-visible,
  html.js [data-reveal="process-card"].is-visible,
  html.js [data-reveal="process-close"].is-visible {
    transform: none !important;
    transition: none !important;
  }
}

/* Full-page motion field */
body::before {
  background-size: 72px 72px;
  animation: page-grid-drift 30s linear infinite;
}

body::after {
  animation: page-vignette-breathe 16s ease-in-out infinite;
}

.topbar {
  isolation: isolate;
  overflow: visible;
}

@media (max-width: 760px) {
  .topnav {
    right: 0;
    left: 0;
    border-radius: 0 0 16px 16px;
    background: #071422;
  }

  .topnav .topnav-link {
    color: rgb(222 242 242 / 82%);
  }

  .topnav .topnav-link:hover,
  .topnav .topnav-link.is-active {
    color: var(--accent);
  }
}

/* XLab source mark: keep the original wordmark legible over both themes. */
.brand-logo-frame {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 46px;
  padding: 4px 7px;
  border: 0;
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: none;
  transition: transform 220ms ease;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-logo-frame > picture {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-copy {
  min-width: 0;
}

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

html[data-theme="light"] .brand-logo-frame {
  box-shadow: none;
}

html[data-theme="light"] .brand:hover .brand-logo-frame,
html[data-theme="light"] .brand:focus-visible .brand-logo-frame {
  transform: translateY(-1px);
}

.footer-brand .brand-logo-frame {
  width: 86px;
  height: 43px;
}

@media (max-width: 760px) {
  .brand-logo-frame {
    width: 78px;
    height: 40px;
    padding: 4px 5px;
  }

  .footer-brand .brand-logo-frame {
    width: 78px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo-frame {
    transition: none;
  }
}

.topbar::after {
  position: absolute;
  right: -12%;
  bottom: -1px;
  left: -12%;
  height: 1px;
  background: linear-gradient(
      90deg,
      transparent 0%,
      rgb(0 212 170 / 0%) 18%,
      rgb(0 212 170 / 75%) 43%,
      rgb(55 200 143 / 60%) 57%,
      transparent 82%
    )
    0 0 / 220% 100%;
  opacity: 0.72;
  pointer-events: none;
  animation: nav-scan 7s linear infinite;
  content: "";
}

.brand-mark {
  animation: brand-float 6s ease-in-out -1.5s infinite;
}

.brand-mark span {
  transform-origin: bottom;
  animation: brand-bars 3.4s ease-in-out infinite;
}

.brand-mark span:nth-child(2) {
  animation-delay: -1.1s;
}

.brand-mark span:nth-child(3) {
  animation-delay: -2.2s;
}

.topnav-link.is-active {
  animation: active-link-breathe 3.8s ease-in-out infinite;
}

.signal-rail {
  transform: translate3d(calc(var(--motion-velocity, 0px) * 0.16), 0, 0) rotate(-1.2deg) scale(1.02);
  animation: signal-rail-breathe 8s ease-in-out infinite;
}

.signal-track {
  animation-duration: 22s;
}

.signal-track:nth-child(2) {
  animation-delay: -7s;
  animation-direction: reverse;
}

.catalog-section::before,
.process-section::before {
  background-size:
    145% 145%,
    145% 145%;
  animation: section-ambient-flow 18s ease-in-out infinite;
}

.filter-panel {
  animation: panel-atmosphere 8.5s ease-in-out -2.5s infinite;
}

.results-toolbar {
  position: relative;
  overflow: hidden;
}

.results-toolbar::after {
  position: absolute;
  right: -35%;
  bottom: 0;
  left: -35%;
  height: 1px;
  background: linear-gradient(
      90deg,
      transparent,
      rgb(0 212 170 / 0%) 26%,
      rgb(0 212 170 / 72%) 47%,
      transparent 70%
    )
    0 0 / 220% 100%;
  opacity: 0.6;
  pointer-events: none;
  animation: results-scan 6.5s linear infinite;
  content: "";
}

.filter-chip {
  animation: filter-chip-breathe 4.8s ease-in-out infinite;
}

.filter-chip:nth-child(2) {
  animation-delay: -1.6s;
}

.filter-chip:nth-child(3) {
  animation-delay: -3.2s;
}

.tip-mark {
  animation: tip-pulse 3.8s ease-in-out infinite;
}

.template-card::before {
  background: linear-gradient(
      112deg,
      rgb(255 255 255 / 8%) 0%,
      transparent 22%,
      transparent 62%,
      rgb(0 212 170 / 34%) 76%,
      transparent 88%
    )
    border-box;
  background-size: 220% 100%;
  animation: card-sheen 8s linear infinite;
}

.template-card:nth-child(3n + 2)::before {
  animation-delay: -2.6s;
}

.template-card:nth-child(3n)::before {
  animation-delay: -5.2s;
}

.load-more-wrap {
  position: relative;
}

.load-more-wrap::before {
  position: absolute;
  top: 13px;
  right: 8%;
  left: 8%;
  height: 1px;
  background: linear-gradient(
      90deg,
      transparent,
      rgb(0 212 170 / 0%) 22%,
      rgb(0 212 170 / 36%) 50%,
      transparent 78%
    )
    0 0 / 220% 100%;
  opacity: 0.46;
  pointer-events: none;
  animation: results-scan 8s linear infinite reverse;
  content: "";
}

.load-more-button:not(:hover) {
  animation: load-more-breathe 4.5s ease-in-out infinite;
}

.process-grid::before {
  background-size: 220% 100%;
  animation: process-line-flow 5.5s linear infinite;
}

.process-card {
  background-size: 180% 180%;
  animation: process-card-flow 9s ease-in-out infinite;
}

.process-card:nth-child(2) {
  animation-delay: -3s;
}

.process-card:nth-child(3) {
  animation-delay: -6s;
}

.process-card-highlight {
  animation-name: process-highlight-flow;
}

.process-card::after {
  animation: process-node-pulse 3.6s ease-in-out infinite;
}

.process-card:nth-child(2)::after {
  animation-delay: -1.2s;
}

.process-card:nth-child(3)::after {
  animation-delay: -2.4s;
}

.process-card-highlight::after {
  animation-duration: 2.2s;
}

.process-number {
  animation: process-number-pulse 3.6s ease-in-out infinite;
}

.process-card:nth-child(2) .process-number {
  animation-delay: -1.2s;
}

.process-card:nth-child(3) .process-number {
  animation-delay: -2.4s;
}

.process-icon {
  transform-origin: center;
  animation: process-icon-orbit 5.5s ease-in-out infinite;
}

.process-card:nth-child(2) .process-icon {
  animation-delay: -1.8s;
}

.process-card:nth-child(3) .process-icon {
  animation-delay: -3.6s;
}

.process-close {
  background-size: 180% 180%;
  animation: process-close-flow 11s ease-in-out infinite;
}

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.site-footer::before {
  position: absolute;
  top: -1px;
  right: -30%;
  left: -30%;
  height: 1px;
  background: linear-gradient(
      90deg,
      transparent,
      rgb(0 212 170 / 0%) 24%,
      rgb(0 212 170 / 72%) 48%,
      rgb(55 200 143 / 54%) 58%,
      transparent 78%
    )
    0 0 / 220% 100%;
  opacity: 0.7;
  pointer-events: none;
  animation: footer-scan 8s linear infinite;
  content: "";
}

.site-footer::after {
  position: absolute;
  right: -72px;
  bottom: -150px;
  width: 250px;
  height: 250px;
  border: 1px solid rgb(0 212 170 / 16%);
  border-radius: 50%;
  pointer-events: none;
  animation: footer-orbit 14s linear infinite;
  content: "";
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.footer-status span {
  animation: live-pulse 2.3s ease-in-out infinite;
}

.scroll-progress span {
  animation: progress-glow 3.5s ease-in-out infinite;
}

.selection-tray:not([hidden]) {
  animation: tray-arrive 650ms var(--ease-expo) both;
}

.tray-check {
  animation: tray-check-pulse 2.8s ease-in-out infinite;
}

.request-drawer.is-open {
  animation: drawer-atmosphere 9s ease-in-out infinite;
}

.preview-modal.is-open {
  animation: modal-atmosphere 8s ease-in-out infinite;
}


@keyframes page-grid-drift {
  from {
    background-position:
      0 0,
      0 0;
  }
  to {
    background-position:
      72px 36px,
      -36px 72px;
  }
}

@keyframes page-vignette-breathe {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

@keyframes nav-scan {
  from {
    background-position: 160% 0;
  }
  to {
    background-position: -60% 0;
  }
}

@keyframes brand-float {
  0%,
  100% {
    transform: rotate(-8deg) translateY(0);
  }
  50% {
    transform: rotate(-5deg) translateY(-2px);
  }
}

@keyframes brand-bars {
  0%,
  100% {
    transform: scaleY(0.86);
  }
  50% {
    transform: scaleY(1.12);
  }
}

@keyframes active-link-breathe {
  0%,
  100% {
    box-shadow: 0 0 0 rgb(0 212 170 / 0%);
  }
  50% {
    box-shadow: 0 0 18px rgb(0 212 170 / 13%);
  }
}

@keyframes signal-rail-breathe {
  0%,
  100% {
    border-color: rgb(148 163 184 / 22%);
    opacity: 0.9;
  }
  50% {
    border-color: rgb(0 212 170 / 38%);
    opacity: 1;
  }
}

@keyframes section-ambient-flow {
  0%,
  100% {
    background-position:
      0% 0%,
      100% 100%;
  }
  50% {
    background-position:
      32% 18%,
      68% 82%;
  }
}

@keyframes panel-atmosphere {
  0%,
  100% {
    box-shadow: 0 18px 48px rgb(2 6 23 / 18%);
  }
  50% {
    box-shadow:
      0 22px 54px rgb(2 6 23 / 25%),
      0 0 0 1px rgb(0 212 170 / 7%);
  }
}

@keyframes results-scan {
  from {
    background-position: 160% 0;
  }
  to {
    background-position: -60% 0;
  }
}

@keyframes filter-chip-breathe {
  0%,
  100% {
    box-shadow: 0 0 0 rgb(0 212 170 / 0%);
  }
  50% {
    box-shadow: 0 0 14px rgb(0 212 170 / 10%);
  }
}

@keyframes tip-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(0 212 170 / 0%);
  }
  50% {
    box-shadow: 0 0 0 5px rgb(0 212 170 / 10%);
  }
}

@keyframes card-sheen {
  from {
    background-position: 180% 0;
  }
  to {
    background-position: -40% 0;
  }
}

@keyframes load-more-breathe {
  0%,
  100% {
    box-shadow: 0 0 0 rgb(0 212 170 / 0%);
  }
  50% {
    box-shadow: 0 0 22px rgb(0 212 170 / 12%);
  }
}

@keyframes process-line-flow {
  from {
    background-position: 180% 0;
  }
  to {
    background-position: -40% 0;
  }
}

@keyframes process-card-flow {
  0%,
  100% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
}

@keyframes process-highlight-flow {
  0%,
  100% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 38%;
  }
}

@keyframes process-number-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(0 212 170 / 0%);
  }
  50% {
    box-shadow: 0 0 0 6px rgb(0 212 170 / 9%);
  }
}

@keyframes process-icon-orbit {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-3px) rotate(7deg);
  }
}

@keyframes process-close-flow {
  0%,
  100% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
}

@keyframes footer-scan {
  from {
    background-position: 160% 0;
  }
  to {
    background-position: -60% 0;
  }
}

@keyframes footer-orbit {
  from {
    opacity: 0.35;
    transform: rotate(0deg) scale(0.94);
  }
  50% {
    opacity: 0.8;
    transform: rotate(180deg) scale(1.05);
  }
  to {
    opacity: 0.35;
    transform: rotate(360deg) scale(0.94);
  }
}

@keyframes tray-arrive {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tray-check-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(0 212 170 / 0%);
  }
  50% {
    box-shadow: 0 0 0 7px rgb(0 212 170 / 12%);
  }
}

@keyframes drawer-atmosphere {
  0%,
  100% {
    box-shadow: -30px 0 90px rgb(2 6 23 / 34%);
  }
  50% {
    box-shadow:
      -30px 0 100px rgb(2 6 23 / 46%),
      -1px 0 0 rgb(0 212 170 / 18%);
  }
}

@keyframes modal-atmosphere {
  0%,
  100% {
    box-shadow: 0 40px 140px rgb(2 6 23 / 42%);
  }
  50% {
    box-shadow:
      0 46px 160px rgb(2 6 23 / 54%),
      0 0 0 1px rgb(0 212 170 / 12%);
  }
}

@keyframes progress-glow {
  0%,
  100% {
    box-shadow: 0 0 12px rgb(0 212 170 / 66%);
  }
  50% {
    box-shadow: 0 0 22px rgb(55 200 143 / 88%);
  }
}


@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .topbar::after,
  .brand-mark,
  .brand-mark span,
  .topnav-link.is-active,
  .signal-rail,
  .signal-track,
  .catalog-section::before,
  .process-section::before,
  .filter-panel,
  .results-toolbar::after,
  .filter-chip,
  .tip-mark,
  .template-card::before,
  .load-more-wrap::before,
  .load-more-button,
  .process-grid::before,
  .process-card,
  .process-card::after,
  .process-number,
  .process-icon,
  .process-close,
  .site-footer::before,
  .site-footer::after,
  .footer-status span,
  .selection-tray:not([hidden]),
  .tray-check,
  .request-drawer.is-open,
  .preview-modal.is-open,
  .scroll-progress span {
    animation: none !important;
  }

  .signal-rail {
    transform: rotate(-1.2deg) scale(1.02);
  }
}

/* Compact editorial header + visual-first landing scene. */
.topbar {
  min-height: 72px;
  margin-top: 14px;
  padding: 9px 12px 9px 14px;
  border: 1px solid rgb(148 163 184 / 26%);
  border-radius: 20px;
  background: rgb(30 41 59 / 72%);
  box-shadow:
    0 18px 44px rgb(2 6 23 / 14%),
    inset 0 1px 0 rgb(255 255 255 / 5%);
}

html[data-theme="light"] .topbar {
  border-color: rgb(15 23 42 / 12%);
  background: rgb(255 255 255 / 82%);
  box-shadow:
    0 18px 44px rgb(15 23 42 / 8%),
    inset 0 1px 0 rgb(255 255 255 / 90%);
}

.topnav {
  margin-left: auto;
}

.topnav-link {
  padding: 9px 12px;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.locale-picker,
.theme-toggle {
  min-height: 38px;
  border-radius: 999px;
}

.hero {
  display: block;
  min-height: min(820px, calc(100svh - 96px));
  padding: 18px 0 76px;
}

.hero-copy {
  display: none !important;
}

.hero-visual {
  width: min(100%, 1180px);
  min-height: clamp(560px, 76svh, 760px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgb(148 163 184 / 22%);
  border-radius: 30px;
  background:
    radial-gradient(circle at 52% 46%, rgb(0 212 170 / 8%), transparent 30%),
    linear-gradient(135deg, rgb(255 255 255 / 2%), transparent 52%);
  box-shadow:
    0 28px 90px rgb(2 6 23 / 20%),
    inset 0 1px 0 rgb(255 255 255 / 6%);
}

html[data-theme="light"] .hero-visual {
  border-color: rgb(15 23 42 / 10%);
  background:
    radial-gradient(circle at 52% 46%, rgb(0 161 154 / 8%), transparent 30%),
    linear-gradient(135deg, rgb(255 255 255 / 78%), transparent 52%);
  box-shadow:
    0 28px 90px rgb(15 23 42 / 10%),
    inset 0 1px 0 rgb(255 255 255 / 92%);
}

.hero-visual-caption {
  top: 22px;
  right: 8%;
  left: 8%;
}

.hero-orbit-one {
  top: 74px;
  right: 11%;
  width: min(52%, 560px);
  height: min(52%, 560px);
}

.hero-orbit-two {
  right: 3%;
  bottom: 12%;
  width: min(36%, 360px);
  height: min(36%, 360px);
}

.hero-board-shadow {
  top: 145px;
  right: 13%;
  width: min(63%, 650px);
}

.hero-board {
  top: 126px;
  right: 16%;
  width: min(63%, 650px);
}

.hero-board-copy {
  top: 28%;
  left: 10%;
}

.hero-board-copy strong {
  font-size: clamp(42px, 5.2vw, 76px);
}

.hero-spec-card {
  bottom: 12%;
  left: 10%;
  width: min(30%, 270px);
}

.floating-note-top {
  top: 21%;
  left: 7%;
}

.floating-note-bottom {
  right: 7%;
  bottom: 13%;
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
    padding-top: 18px;
  }

  .hero-visual {
    min-height: 600px;
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 68px;
    margin-top: 8px;
    padding: 8px 9px 8px 10px;
    border-radius: 17px;
  }

  .topnav {
    top: 74px;
    right: 0;
    left: 0;
    margin-left: 0;
    border-radius: 0 0 18px 18px;
  }

  .hero {
    padding: 14px 0 58px;
  }

  .hero-visual {
    min-height: 510px;
    border-radius: 24px;
  }

  .hero-visual-caption {
    top: 18px;
    right: 5%;
    left: 5%;
    font-size: 8px;
  }

  .hero-orbit-one {
    top: 72px;
    right: -12%;
    width: 420px;
    height: 420px;
  }

  .hero-orbit-two {
    right: -14%;
    bottom: 7%;
    width: 270px;
    height: 270px;
  }

  .hero-board-shadow,
  .hero-board {
    top: 108px;
    right: 5%;
    width: 88%;
  }

  .hero-board-copy {
    top: 27%;
    left: 9%;
  }

  .hero-board-copy strong {
    font-size: clamp(33px, 10vw, 48px);
  }

  .hero-spec-card {
    bottom: 6%;
    left: 4%;
    width: min(58%, 226px);
    padding: 14px;
  }

  .floating-note-top {
    top: 17%;
    left: 4%;
  }

  .floating-note-bottom {
    right: 4%;
    bottom: 8%;
  }
}

@media (max-width: 480px) {
  .brand-logo-frame {
    width: 72px;
    height: 37px;
  }

  .brand strong {
    font-size: 10px;
  }

  .brand small {
    font-size: 7px;
  }

  .hero-visual {
    min-height: 450px;
  }

  .hero-board-shadow,
  .hero-board {
    top: 92px;
    right: 2%;
    width: 96%;
  }

  .hero-board-copy strong {
    font-size: clamp(29px, 10vw, 40px);
  }

  .hero-spec-card {
    bottom: 5%;
    left: 3%;
    width: 62%;
  }

  .hero-spec-list {
    gap: 6px;
  }

  .hero-spec-list div,
  .hero-spec-list b {
    font-size: 7px;
  }

  .floating-note {
    padding: 10px 11px;
    font-size: 9px;
  }
}

/* Full-viewport theatre curtain: the whole scene changes, not only the cards. */

/* Data-rich board motion: make the green canvas feel like a live production desk. */
.hero-board {
  isolation: isolate;
  translate: 0 0;
  animation: board-hover 7.4s var(--ease-spring) -2.2s infinite;
}

.hero-board::after {
  z-index: 0;
  pointer-events: none;
}

.hero-board::before {
  z-index: 1;
}

.hero-board-grid {
  z-index: 0;
  animation: grid-drift 10s linear infinite;
}

.hero-board-scan {
  position: absolute;
  top: -26%;
  left: -18%;
  z-index: 3;
  width: 17%;
  height: 152%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(101 233 213 / 8%) 35%,
    rgb(140 255 226 / 44%) 50%,
    rgb(101 233 213 / 8%) 65%,
    transparent
  );
  filter: blur(1px);
  opacity: 0.7;
  transform: rotate(16deg) translateX(-420%);
  animation: board-scan 6.8s var(--ease-expo) infinite;
}

.hero-board-data {
  position: absolute;
  top: 13%;
  right: 5.5%;
  z-index: 2;
  width: 31%;
  padding: 10px 11px 9px;
  border: 1px solid rgb(205 245 240 / 18%);
  border-radius: 8px;
  background: linear-gradient(145deg, rgb(4 26 38 / 58%), rgb(8 45 52 / 30%));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 8%),
    0 12px 24px rgb(0 0 0 / 12%);
  color: rgb(222 253 247 / 78%);
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.1em;
  line-height: 1.25;
  transform: rotate(-1deg);
  animation: board-data-float 5.8s ease-in-out -1.6s infinite;
}

.hero-board-data-head,
.hero-board-data-foot,
.hero-board-data-row {
  display: grid;
  align-items: center;
  gap: 7px;
}

.hero-board-data-head,
.hero-board-data-foot {
  grid-template-columns: 1fr auto;
}

.hero-board-data-head {
  color: rgb(205 245 240 / 62%);
  font-size: 6px;
  letter-spacing: 0.13em;
}

.hero-board-data-head b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 6px;
}

.hero-board-data-head i {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgb(101 233 213 / 80%);
  animation: data-live-pulse 1.6s ease-in-out infinite;
}

.hero-board-data-rule {
  height: 1px;
  margin: 8px 0 3px;
  background: linear-gradient(90deg, rgb(205 245 240 / 28%), transparent);
}

.hero-board-data-row {
  grid-template-columns: 0.62fr 1.28fr auto;
  min-height: 25px;
  border-bottom: 1px solid rgb(205 245 240 / 9%);
  color: rgb(205 245 240 / 46%);
  animation: board-data-row-in 4.8s var(--ease-expo) infinite;
}

.hero-board-data-row:nth-of-type(4) {
  animation-delay: 240ms;
}

.hero-board-data-row:nth-of-type(5) {
  animation-delay: 480ms;
}

.hero-board-data-row strong {
  overflow: hidden;
  color: rgb(236 255 251 / 90%);
  font-size: 6px;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-board-data-row b,
.hero-board-data-foot strong {
  color: var(--accent);
  font-size: 6px;
  letter-spacing: 0.08em;
}

.hero-board-data-chart {
  display: flex;
  height: 40px;
  align-items: end;
  gap: 4px;
  padding: 8px 0 6px;
}

.hero-board-data-chart i {
  display: block;
  flex: 1;
  min-width: 3px;
  height: 45%;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--accent), rgb(55 200 143 / 20%));
  box-shadow: 0 0 10px rgb(101 233 213 / 18%);
  transform-origin: bottom;
  animation: board-chart-pulse 2.8s ease-in-out infinite alternate;
}

.hero-board-data-chart i:nth-child(2) {
  height: 68%;
  animation-delay: -500ms;
}

.hero-board-data-chart i:nth-child(3) {
  height: 38%;
  animation-delay: -900ms;
}

.hero-board-data-chart i:nth-child(4) {
  height: 86%;
  animation-delay: -1.2s;
}

.hero-board-data-chart i:nth-child(5) {
  height: 57%;
  animation-delay: -1.7s;
}

.hero-board-data-chart i:nth-child(6) {
  height: 74%;
  animation-delay: -2.1s;
}

.hero-board-data-chart i:nth-child(7) {
  height: 94%;
  animation-delay: -2.6s;
}

.hero-board-data-foot {
  padding-top: 7px;
  color: rgb(205 245 240 / 46%);
  font-size: 6px;
  letter-spacing: 0.12em;
}

.hero-board-copy {
  translate: 0 0;
  animation: board-copy-drift 6.2s ease-in-out -1.1s infinite;
}

.hero-board-shadow {
  translate: 0 0;
  animation: board-shadow-hover 7.4s var(--ease-spring) -2.2s infinite;
}

.hero-visual::before {
  animation: halo-drift 11s ease-in-out infinite;
}

.hero-orbit-one {
  animation:
    orbit-breathe 7s ease-in-out infinite,
    orbit-spin 26s linear infinite;
}

.hero-orbit-two {
  animation:
    orbit-breathe 9s ease-in-out -2s infinite reverse,
    orbit-spin-reverse 32s linear infinite;
}

.hero-spec-card {
  translate: 0 0;
  animation:
    xlab-card-breathe 5.5s ease-in-out -0.8s infinite,
    spec-card-float 6.8s ease-in-out -1.2s infinite;
}

.floating-note-top,
.floating-note-bottom {
  translate: 0 0;
}

.floating-note-top {
  animation: note-float-top 5.2s ease-in-out -1.1s infinite;
}

.floating-note-bottom {
  animation: note-float-bottom 5.8s ease-in-out -2.2s infinite;
}

@keyframes board-hover {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -9px;
  }
}

@keyframes board-shadow-hover {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 7px;
  }
}

@keyframes board-scan {
  0%,
  18% {
    opacity: 0;
    transform: rotate(16deg) translateX(-420%);
  }
  35%,
  72% {
    opacity: 0.74;
  }
  100% {
    opacity: 0;
    transform: rotate(16deg) translateX(840%);
  }
}

@keyframes board-data-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -4px;
  }
}

@keyframes board-data-row-in {
  0%,
  100% {
    opacity: 0.72;
    transform: translateX(0);
  }
  45% {
    opacity: 1;
    transform: translateX(2px);
  }
}

@keyframes board-chart-pulse {
  from {
    opacity: 0.55;
    transform: scaleY(0.78);
  }
  to {
    opacity: 1;
    transform: scaleY(1.08);
  }
}

@keyframes data-live-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

@keyframes board-copy-drift {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -4px;
  }
}

@keyframes halo-drift {
  0%,
  100% {
    opacity: 0.5;
    transform: rotate(-16deg) scale(0.98);
  }
  50% {
    opacity: 0.9;
    transform: rotate(-9deg) scale(1.04);
  }
}

@keyframes orbit-spin {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes orbit-spin-reverse {
  from {
    transform: rotate(360deg) scale(1);
  }
  to {
    transform: rotate(0deg) scale(1);
  }
}

@keyframes spec-card-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -7px;
  }
}

@keyframes note-float-top {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 5px -8px;
  }
}

@keyframes note-float-bottom {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: -5px 7px;
  }
}

@media (max-width: 900px) {
  .hero-board-data {
    top: 12%;
    right: 4.5%;
    width: 34%;
    padding: 8px 9px 7px;
  }

  .hero-board-data-chart {
    height: 32px;
  }
}

@media (max-width: 760px) {
  .hero-board-data {
    top: 13%;
    right: 5%;
    width: 36%;
    padding: 7px 8px 6px;
    font-size: 6px;
  }

  .hero-board-data-row {
    min-height: 21px;
    gap: 4px;
  }

  .hero-board-data-row strong,
  .hero-board-data-row b,
  .hero-board-data-foot,
  .hero-board-data-head,
  .hero-board-data-head b {
    font-size: 5px;
  }

  .hero-board-data-chart {
    height: 27px;
    gap: 2px;
  }
}

@media (max-width: 480px) {
  .hero-board-data {
    top: 14%;
    right: 4%;
    width: 40%;
    padding: 6px 7px 5px;
  }

  .hero-board-data-row:nth-of-type(5),
  .hero-board-data-chart {
    display: none;
  }

  .hero-board-data-rule {
    margin: 5px 0 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-board,
  .hero-board-shadow,
  .hero-board-scan,
  .hero-board-data,
  .hero-board-data-row,
  .hero-board-data-chart i,
  .hero-board-copy,
  .hero-visual::before,
  .hero-orbit-one,
  .hero-orbit-two,
  .hero-spec-card,
  .floating-note-top,
  .floating-note-bottom {
    animation: none !important;
    translate: none;
  }
}

/* Immersive hero stage: the library should feel like a living production desk. */
.hero-visual {
  min-height: clamp(620px, 78svh, 820px);
  border-color: rgb(101 233 213 / 24%);
  background:
    radial-gradient(
      circle at var(--pointer-x, 52%) var(--pointer-y, 42%),
      rgb(101 233 213 / 14%),
      transparent 28%
    ),
    radial-gradient(circle at 86% 12%, rgb(147 152 255 / 12%), transparent 28%),
    linear-gradient(135deg, rgb(12 37 51 / 96%), rgb(5 18 31 / 98%) 68%, rgb(9 29 39 / 98%));
  box-shadow:
    0 36px 100px rgb(2 6 23 / 30%),
    inset 0 1px 0 rgb(255 255 255 / 9%),
    inset 0 0 0 1px rgb(101 233 213 / 7%);
  perspective: 1400px;
}

.hero-visual::before {
  inset: 0;
  z-index: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 78%, rgb(255 178 126 / 11%), transparent 23%),
    radial-gradient(circle at 76% 38%, rgb(101 233 213 / 13%), transparent 30%);
  opacity: 0.72;
  transform: translate3d(0, calc(var(--hero-progress, 0) * -26px), 0);
  animation: stage-aura 9s ease-in-out infinite;
}

.hero-visual::after {
  inset: 0;
  z-index: 1;
  border: 0;
  border-radius: inherit;
  background:
    linear-gradient(110deg, transparent 18%, rgb(101 233 213 / 10%) 43%, transparent 57%) 180% 0 /
      42% 100% no-repeat,
    linear-gradient(135deg, transparent 20%, rgb(255 255 255 / 4%) 50%, transparent 80%);
  opacity: 0.75;
  pointer-events: none;
  animation: stage-scan 10s linear infinite;
}

.hero-visual-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(rgb(154 242 230 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(154 242 230 / 5%) 1px, transparent 1px);
  background-position: calc(var(--hero-progress, 0) * 40px) 0;
  background-size: 54px 54px;
  mask-image: linear-gradient(135deg, black 0 62%, transparent 93%);
  opacity: 0.65;
  transform: translate3d(0, calc(var(--hero-progress, 0) * -34px), 0);
  transition: transform 180ms linear;
}

.hero-visual-field::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgb(205 245 240 / 55%) 0 1px, transparent 1.5px);
  background-position: 12px 18px;
  background-size: 42px 42px;
  content: "";
  opacity: 0.44;
  animation: field-drift 18s linear infinite;
}

.hero-visual-field::after {
  position: absolute;
  inset: -26%;
  border: 1px solid rgb(101 233 213 / 15%);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgb(101 233 213 / 3%),
    0 0 0 108px rgb(147 152 255 / 3%);
  content: "";
  transform: rotate(-18deg) scaleX(1.34);
  animation: field-breathe 8s ease-in-out infinite;
}

.hero-field-orbit {
  position: absolute;
  border: 1px solid rgb(101 233 213 / 25%);
  border-radius: 50%;
  opacity: 0.7;
  transform: rotate(-18deg) scaleX(1.32);
}

.hero-field-orbit-one {
  top: 14%;
  left: 8%;
  width: 75%;
  aspect-ratio: 1.55;
  animation: field-orbit 15s linear infinite;
}

.hero-field-orbit-two {
  right: -8%;
  bottom: 3%;
  width: 52%;
  aspect-ratio: 1.1;
  border-color: rgb(147 152 255 / 26%);
  transform: rotate(22deg) scaleX(1.24);
  animation: field-orbit-reverse 19s linear infinite;
}

.hero-field-cross {
  position: absolute;
  z-index: 1;
  color: var(--accent);
  font-size: 16px;
  font-weight: 300;
  text-shadow: 0 0 18px rgb(101 233 213 / 80%);
  animation: field-cross-pulse 3.8s ease-in-out infinite;
}

.hero-field-cross-one {
  top: 24%;
  left: 17%;
}

.hero-field-cross-two {
  right: 20%;
  bottom: 19%;
  color: var(--warm);
  animation-delay: -1.8s;
}

.hero-field-particle {
  position: absolute;
  z-index: 1;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 5px rgb(101 233 213 / 8%),
    0 0 22px rgb(101 233 213 / 85%);
  animation: field-particle 4.8s ease-in-out infinite;
}

.hero-field-particle-one {
  top: 25%;
  left: 31%;
}

.hero-field-particle-two {
  top: 71%;
  left: 15%;
  animation-delay: -1.2s;
}

.hero-field-particle-three {
  top: 22%;
  right: 25%;
  background: var(--warm);
  box-shadow:
    0 0 0 5px rgb(255 178 126 / 9%),
    0 0 22px rgb(255 178 126 / 75%);
  animation-delay: -2.4s;
}

.hero-field-particle-four {
  right: 13%;
  bottom: 28%;
  animation-delay: -3.3s;
}

.hero-visual-cursor {
  position: absolute;
  top: var(--pointer-y, 44%);
  left: var(--pointer-x, 52%);
  z-index: 8;
  width: 30px;
  height: 30px;
  border: 1px solid rgb(101 233 213 / 62%);
  border-radius: 50%;
  opacity: 0.65;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition:
    top 160ms ease-out,
    left 160ms ease-out,
    opacity 240ms ease;
  animation: cursor-orbit 4.4s linear infinite;
}

.hero-visual.is-pointer-active .hero-visual-cursor {
  opacity: 1;
}

.hero-visual .hero-board,
.hero-visual .hero-board-shadow,
.hero-visual .hero-board-data,
.hero-visual .hero-command-card {
  transition: transform 180ms var(--ease-spring);
}

.hero-visual-cursor::before,
.hero-visual-cursor::after {
  position: absolute;
  content: "";
}

.hero-visual-cursor::before {
  inset: 7px;
  border: 1px dashed rgb(255 178 126 / 76%);
  border-radius: 50%;
}

.hero-visual-cursor::after {
  top: 50%;
  left: -8px;
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hero-visual-cursor span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 16px rgb(255 178 126 / 80%);
  transform: translate(-50%, -50%);
}

.hero-visual-caption {
  z-index: 6;
  color: rgb(205 245 240 / 62%);
}

.hero-command-card {
  position: absolute;
  top: 58px;
  right: 7%;
  z-index: 7;
  width: min(29%, 205px);
  padding: 14px 15px 13px;
  border: 1px solid rgb(101 233 213 / 34%);
  border-radius: 13px;
  background: linear-gradient(145deg, rgb(9 31 45 / 90%), rgb(9 22 37 / 82%));
  box-shadow:
    0 18px 44px rgb(2 6 23 / 32%),
    inset 0 1px 0 rgb(255 255 255 / 10%);
  backdrop-filter: blur(16px);
  color: rgb(222 253 247 / 74%);
  transform: translate3d(
      calc(var(--parallax-x, 0px) * 0.42),
      calc(var(--parallax-y, 0px) * 0.42 - var(--hero-progress, 0) * 32px),
      0
    )
    rotate(-3deg);
  animation: command-float 6.4s ease-in-out -1.6s infinite;
}

.hero-command-head,
.hero-command-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-command-head {
  padding-bottom: 10px;
  border-bottom: 1px solid rgb(205 245 240 / 13%);
  color: rgb(205 245 240 / 50%);
}

.hero-command-head span:last-child,
.hero-command-foot b {
  color: var(--accent);
}

.hero-command-readout {
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 14px 0 11px;
}

.hero-command-readout strong {
  color: #ecfffb;
  font-size: 36px;
  font-weight: 780;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.hero-command-readout span {
  padding-bottom: 2px;
  color: rgb(205 245 240 / 58%);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-command-meter {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(205 245 240 / 12%);
}

.hero-command-meter i {
  display: block;
  width: 98%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--warm), var(--accent));
  box-shadow: 0 0 14px rgb(101 233 213 / 50%);
  transform-origin: left;
  animation: meter-pulse 3.6s ease-in-out infinite;
}

.hero-command-foot {
  padding-top: 10px;
  color: rgb(205 245 240 / 48%);
}

.hero-board-shadow {
  z-index: 2;
  top: 154px;
  right: 12%;
  width: min(76%, 650px);
  opacity: 0.82;
  transform: translate3d(
      calc(var(--parallax-x, 0px) * 0.5),
      calc(var(--parallax-y, 0px) * 0.5 + var(--hero-board-y, 0px) * 0.7),
      0
    )
    rotate(-4deg);
}

.hero-board {
  z-index: 4;
  top: 136px;
  right: 14%;
  width: min(76%, 650px);
  border-color: rgb(101 233 213 / 82%);
  background:
    radial-gradient(circle at 74% 32%, rgb(101 233 213 / 18%), transparent 27%),
    linear-gradient(135deg, #11786f 0%, #0d4b4b 46%, #102f3c 100%);
  box-shadow:
    22px 24px 0 rgb(101 233 213 / 13%),
    0 38px 84px rgb(2 6 23 / 52%),
    inset 0 1px 0 rgb(255 255 255 / 18%);
  transform: translate3d(
      calc(var(--parallax-x, 0px) + var(--hero-progress, 0) * -8px),
      calc(var(--parallax-y, 0px) + var(--hero-board-y, 0px)),
      0
    )
    rotate(calc(5deg + var(--hero-board-rotate, 0deg)));
  transform-origin: 50% 56%;
  will-change: transform;
}

.hero-board-grid {
  z-index: 0;
  opacity: 0.75;
  background-size: 34px 34px;
  mix-blend-mode: screen;
}

.hero-board-copy {
  z-index: 4;
  top: 31%;
  left: 10%;
  transform: translate3d(calc(var(--parallax-x, 0px) * -0.2), 0, 0);
}

.hero-board-copy strong {
  font-size: clamp(48px, 6.4vw, 82px);
  text-shadow: 0 12px 28px rgb(2 6 23 / 20%);
}

.hero-board-data {
  top: 10%;
  right: 4.5%;
  z-index: 5;
  width: 39%;
  padding: 14px 15px 12px;
  border-color: rgb(205 245 240 / 32%);
  border-radius: 12px;
  background: linear-gradient(145deg, rgb(3 28 40 / 72%), rgb(6 51 54 / 48%));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 12%),
    0 18px 34px rgb(0 0 0 / 18%);
  font-size: 8px;
  transform: rotate(-1deg) translate3d(calc(var(--parallax-x, 0px) * 0.18), 0, 0);
}

.hero-board-data-row {
  min-height: 28px;
  gap: 8px;
}

.hero-board-data-row strong,
.hero-board-data-row b,
.hero-board-data-head,
.hero-board-data-head b,
.hero-board-data-foot,
.hero-board-data-foot strong {
  font-size: 7px;
}

.hero-board-data-chart {
  height: 48px;
  gap: 5px;
  padding-top: 10px;
}

.hero-board-signal {
  position: absolute;
  right: 11%;
  bottom: 17%;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgb(205 245 240 / 54%);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(5deg);
}

.hero-board-signal i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 12px rgb(255 178 126 / 88%);
  animation: signal-pulse 1.7s ease-in-out infinite;
}

.hero-board-signal b {
  color: var(--warm);
  font-size: 8px;
}

.hero-route {
  position: absolute;
  right: 8%;
  bottom: 27px;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgb(205 245 240 / 48%);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.hero-route span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.hero-route span.is-active {
  color: var(--accent);
}

.hero-route i {
  font-style: normal;
  color: rgb(205 245 240 / 42%);
}

.hero-route span.is-active i {
  color: var(--warm);
}

.hero-route b {
  display: block;
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, rgb(101 233 213 / 75%), transparent);
}

html[data-theme="light"] .hero-visual {
  border-color: rgb(0 161 154 / 20%);
  background:
    radial-gradient(
      circle at var(--pointer-x, 52%) var(--pointer-y, 42%),
      rgb(0 161 154 / 13%),
      transparent 28%
    ),
    radial-gradient(circle at 86% 12%, rgb(147 152 255 / 9%), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f3f8f7 62%, #eef5f4 100%);
  box-shadow:
    0 36px 100px rgb(15 23 42 / 14%),
    inset 0 1px 0 rgb(255 255 255 / 96%),
    inset 0 0 0 1px rgb(0 161 154 / 5%);
}

html[data-theme="light"] .hero-visual-field {
  background:
    linear-gradient(rgb(15 23 42 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(15 23 42 / 5%) 1px, transparent 1px);
}

html[data-theme="light"] .hero-visual-field::before {
  background-image: radial-gradient(circle, rgb(15 23 42 / 30%) 0 1px, transparent 1.5px);
}

html[data-theme="light"] .hero-command-card {
  border-color: rgb(0 161 154 / 28%);
  background: linear-gradient(145deg, rgb(255 255 255 / 92%), rgb(232 247 244 / 88%));
  box-shadow:
    0 18px 44px rgb(15 23 42 / 16%),
    inset 0 1px 0 rgb(255 255 255 / 96%);
  color: rgb(15 64 72 / 76%);
}

html[data-theme="light"] .hero-command-head,
html[data-theme="light"] .hero-command-readout span,
html[data-theme="light"] .hero-command-foot,
html[data-theme="light"] .hero-board-signal,
html[data-theme="light"] .hero-route {
  color: rgb(15 64 72 / 58%);
}

html[data-theme="light"] .hero-command-readout strong {
  color: #0f4d4e;
}

@keyframes stage-aura {
  0%,
  100% {
    opacity: 0.5;
    transform: translate3d(0, -12px, 0) scale(0.98);
  }
  50% {
    opacity: 0.92;
    transform: translate3d(0, 12px, 0) scale(1.04);
  }
}

@keyframes stage-scan {
  0%,
  42% {
    background-position:
      180% 0,
      0 0;
  }
  70%,
  100% {
    background-position:
      -42% 0,
      0 0;
  }
}

@keyframes field-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(42px, 42px, 0);
  }
}

@keyframes field-breathe {
  0%,
  100% {
    opacity: 0.35;
    transform: rotate(-18deg) scaleX(1.27) scale(0.98);
  }
  50% {
    opacity: 0.82;
    transform: rotate(-12deg) scaleX(1.36) scale(1.03);
  }
}

@keyframes field-orbit {
  from {
    transform: rotate(-18deg) scaleX(1.32);
  }
  to {
    transform: rotate(342deg) scaleX(1.32);
  }
}

@keyframes field-orbit-reverse {
  from {
    transform: rotate(22deg) scaleX(1.24);
  }
  to {
    transform: rotate(-338deg) scaleX(1.24);
  }
}

@keyframes field-cross-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.8) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.15) rotate(90deg);
  }
}

@keyframes field-particle {
  0%,
  100% {
    opacity: 0.28;
    transform: translate3d(0, 0, 0) scale(0.7);
  }
  50% {
    opacity: 1;
    transform: translate3d(10px, -16px, 0) scale(1.3);
  }
}

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

@keyframes command-float {
  0%,
  100% {
    margin-top: 0;
  }
  50% {
    margin-top: -8px;
  }
}

@keyframes meter-pulse {
  0%,
  100% {
    transform: scaleX(0.88);
    opacity: 0.75;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes signal-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

@media (max-width: 900px) {
  .hero-visual {
    min-height: 600px;
  }

  .hero-board-shadow,
  .hero-board {
    width: min(78%, 610px);
  }

  .hero-command-card {
    width: min(31%, 188px);
  }
}

@media (max-width: 760px) {
  .hero-visual {
    min-height: 570px;
    border-radius: 24px;
  }

  .hero-command-card {
    top: 42px;
    right: 5%;
    width: 174px;
    padding: 11px 12px;
  }

  .hero-command-readout strong {
    font-size: 30px;
  }

  .hero-board-shadow,
  .hero-board {
    top: 116px;
    right: 4%;
    width: 92%;
  }

  .hero-board-data {
    top: 9%;
    right: 4%;
    width: 41%;
    padding: 10px 10px 8px;
  }

  .hero-board-data-row {
    min-height: 22px;
    gap: 5px;
  }

  .hero-board-data-row strong,
  .hero-board-data-row b,
  .hero-board-data-head,
  .hero-board-data-head b,
  .hero-board-data-foot,
  .hero-board-data-foot strong {
    font-size: 5.5px;
  }

  .hero-board-data-chart {
    height: 32px;
    gap: 3px;
  }

  .hero-board-copy {
    top: 33%;
  }

  .hero-board-copy strong {
    font-size: clamp(35px, 10vw, 52px);
  }

  .hero-board-signal {
    right: 8%;
    bottom: 14%;
    font-size: 5px;
  }

  .hero-route {
    right: 7%;
    bottom: 22px;
    gap: 5px;
    font-size: 6px;
  }

  .hero-route b {
    width: 16px;
  }
}

@media (max-width: 480px) {
  .hero-visual {
    min-height: 500px;
  }

  .hero-command-card {
    top: 34px;
    right: 4%;
    width: 148px;
    padding: 9px 10px;
  }

  .hero-command-head,
  .hero-command-foot {
    font-size: 5px;
  }

  .hero-command-readout {
    gap: 5px;
    padding: 10px 0 8px;
  }

  .hero-command-readout strong {
    font-size: 24px;
  }

  .hero-command-readout span {
    font-size: 6px;
  }

  .hero-board-shadow,
  .hero-board {
    top: 92px;
    right: 1%;
    width: 97%;
  }

  .hero-board-data {
    top: 8%;
    right: 3%;
    width: 43%;
    padding: 7px 7px 6px;
  }

  .hero-board-data-row:nth-of-type(5),
  .hero-board-data-chart {
    display: grid;
  }

  .hero-board-data-row {
    min-height: 17px;
  }

  .hero-board-data-row strong,
  .hero-board-data-row b,
  .hero-board-data-head,
  .hero-board-data-head b,
  .hero-board-data-foot,
  .hero-board-data-foot strong {
    font-size: 4.5px;
  }

  .hero-board-data-chart {
    height: 23px;
    padding: 5px 0 3px;
  }

  .hero-board-copy {
    top: 34%;
  }

  .hero-board-copy strong {
    font-size: clamp(29px, 10vw, 40px);
  }

  .hero-board-signal {
    right: 7%;
    bottom: 12%;
    gap: 4px;
    font-size: 4px;
  }

  .hero-route {
    right: 5%;
    bottom: 18px;
    font-size: 5px;
  }

  .hero-route b {
    width: 10px;
  }

  .hero-field-orbit-one {
    width: 96%;
    left: -4%;
  }

  .hero-field-orbit-two {
    width: 70%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual-field,
  .hero-visual-field::before,
  .hero-visual-field::after,
  .hero-visual::before,
  .hero-visual::after,
  .hero-visual-cursor,
  .hero-field-orbit,
  .hero-field-cross,
  .hero-field-particle,
  .hero-command-card,
  .hero-command-meter i,
  .hero-board-signal i {
    animation: none !important;
  }

  .hero-visual-cursor {
    display: none;
  }

  .hero-visual-field,
  .hero-visual::before,
  .hero-visual::after,
  .hero-board,
  .hero-board-shadow,
  .hero-board-data,
  .hero-command-card {
    transform: none !important;
  }
}

/* XLab Web space: a lightweight 3D layer that keeps the portal fast and self-contained. */
.hero-visual {
  isolation: isolate;
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at 74% 38%, rgb(140 232 216 / 12%), transparent 24%),
    radial-gradient(circle at 16% 86%, rgb(246 183 141 / 10%), transparent 28%),
    linear-gradient(135deg, #0c1e2b 0%, #06101c 58%, #090e1d 100%);
  box-shadow:
    0 40px 100px rgb(0 0 0 / 38%),
    inset 0 1px 0 rgb(255 255 255 / 12%),
    inset 0 0 0 1px rgb(140 232 216 / 7%);
}

.hero-space-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
  mix-blend-mode: screen;
}

.hero-space-stamp {
  position: absolute;
  top: 24px;
  left: 26px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgb(205 245 240 / 56%);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-space-stamp i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 14px rgb(246 183 141 / 80%);
}

.hero-space-stamp::after {
  position: absolute;
  top: 17px;
  left: 0;
  width: 84px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  content: "";
  opacity: 0.7;
}

.hero-visual::after {
  z-index: 3;
  opacity: 0.52;
}

.hero-visual .hero-board,
.hero-visual .hero-board-shadow {
  transform-style: preserve-3d;
}

.hero-visual .hero-board {
  border-radius: 2px;
  box-shadow:
    24px 26px 0 rgb(140 232 216 / 12%),
    0 40px 92px rgb(0 0 0 / 56%),
    inset 0 1px 0 rgb(255 255 255 / 18%);
}

.hero-visual .hero-board::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(115deg, transparent 22%, rgb(255 255 255 / 12%) 46%, transparent 58%);
  content: "";
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translateX(calc(var(--pointer-depth, 0) * 20%));
  transition: transform 280ms ease-out;
}

.hero-visual .hero-command-card,
.hero-visual .floating-note,
.hero-space-stamp {
  backdrop-filter: blur(18px) saturate(130%);
}

.hero-visual .floating-note {
  border-color: rgb(140 232 216 / 28%);
  background: rgb(5 16 28 / 78%);
}

.hero-visual .hero-route {
  padding: 7px 10px;
  border: 1px solid rgb(140 232 216 / 20%);
  border-radius: 999px;
  background: rgb(5 16 28 / 54%);
  backdrop-filter: blur(12px);
}

html[data-theme="light"] .hero-visual {
  background:
    radial-gradient(circle at 74% 38%, rgb(0 161 154 / 10%), transparent 24%),
    radial-gradient(circle at 16% 86%, rgb(200 117 46 / 10%), transparent 28%),
    linear-gradient(135deg, #fbfffd 0%, #eef5f4 58%, #eef0fb 100%);
}

html[data-theme="light"] .hero-space-stamp {
  color: rgb(15 64 72 / 66%);
}

html[data-theme="light"] .hero-visual .floating-note,
html[data-theme="light"] .hero-visual .hero-route {
  border-color: rgb(0 161 154 / 22%);
  background: rgb(255 255 255 / 72%);
}

@media (max-width: 760px) {
  .hero-space-stamp {
    top: 18px;
    left: 18px;
    font-size: 7px;
  }

  .hero-visual {
    border-radius: 24px;
  }

  .hero-space-canvas {
    opacity: 0.72;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-space-canvas {
    opacity: 0.56;
  }

  .hero-visual .hero-board::before {
    transform: none;
  }
}

/* Scroll-driven mission journal */
.journey-section {
  --journey-progress: 0;
  --journey-ink: #e8f5ff;
  --journey-muted: #a3bbd9;
  --journey-line: rgb(140 201 255 / 18%);
  position: relative;
  isolation: isolate;
  overflow: visible;
  color: var(--journey-ink);
  background:
    radial-gradient(ellipse at 74% 42%, rgb(13 103 198 / 23%), transparent 43%),
    linear-gradient(180deg, #061a35 0%, #092b5a 46%, #05172e 100%);
}

.journey-track {
  position: relative;
  height: 360svh;
  min-height: 2200px;
}

.journey-sticky {
  position: sticky;
  top: 0;
  display: flex;
  height: 100svh;
  min-height: 680px;
  max-height: 100svh;
  padding: clamp(94px, 12vh, 128px) clamp(24px, 5.3vw, 88px) clamp(28px, 4vh, 48px);
  overflow: hidden;
  isolation: isolate;
}

.journey-backdrop,
.journey-backdrop-glow,
.journey-backdrop-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.journey-backdrop {
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 83% 57%, rgb(25 138 250 / 12%), transparent 45%),
    linear-gradient(110deg, rgb(3 20 43 / 28%), transparent 62%);
}

.journey-backdrop-glow {
  inset: auto;
  width: min(65vw, 820px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(2px);
}

.journey-backdrop-glow--one {
  top: 8%;
  right: -18%;
  background: radial-gradient(circle, rgb(37 162 255 / 15%), transparent 68%);
  transform: translate3d(0, calc((0.5 - var(--journey-progress)) * 60px), 0);
}

.journey-backdrop-glow--two {
  bottom: -62%;
  left: 10%;
  width: min(55vw, 690px);
  background: radial-gradient(circle, rgb(34 111 232 / 16%), transparent 70%);
}

.journey-backdrop-grid {
  opacity: 0.2;
  background-image:
    linear-gradient(rgb(119 184 255 / 8%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(119 184 255 / 8%) 1px, transparent 1px);
  background-position: center;
  background-size: 88px 88px;
  mask-image: linear-gradient(90deg, transparent, #000 54%, transparent);
}

.journey-frame {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1460px, 100%);
  min-height: 0;
  margin: 0 auto;
  flex-direction: column;
}

.journey-topline,
.journey-stage-header,
.journey-stage-footer {
  color: var(--journey-muted);
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.journey-topline {
  display: flex;
  min-height: 22px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--journey-line);
  padding: 0 2px 12px;
}

.journey-topline i,
.journey-stage-footer i,
.journey-card-label i {
  color: #65d9ff;
  font-style: normal;
}

.journey-layout {
  display: grid;
  min-height: 0;
  flex: 1;
  align-items: center;
  column-gap: clamp(24px, 4.2vw, 72px);
  grid-template-areas:
    "copy stage"
    "steps stage"
    "actions stage";
  grid-template-columns: minmax(340px, 0.86fr) minmax(0, 1.14fr);
  grid-template-rows: auto 1fr auto;
  padding-top: clamp(16px, 2vh, 28px);
}

.journey-copy {
  grid-area: copy;
  max-width: 590px;
}

.journey-eyebrow {
  margin: 0 0 16px;
  color: #73d5ff;
}

.journey-copy h2 {
  max-width: 12ch;
  margin: 0;
  color: var(--journey-ink);
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.99;
  text-wrap: balance;
}

.journey-intro {
  max-width: 48ch;
  margin: 18px 0 0;
  color: var(--journey-muted);
  font-size: clamp(14px, 1.08vw, 16px);
  line-height: 1.65;
}

.journey-steps {
  display: grid;
  grid-area: steps;
  align-content: center;
  gap: 5px;
  margin: 13px 0 14px;
  padding: 0;
  list-style: none;
}

.journey-step {
  display: grid;
  min-width: 0;
  align-items: start;
  gap: 12px;
  border-left: 1px solid transparent;
  border-radius: 2px 10px 10px 2px;
  padding: 9px 11px;
  color: var(--journey-muted);
  grid-template-columns: 28px minmax(0, 1fr) 16px;
  opacity: 0.67;
  transition:
    opacity 320ms ease,
    background-color 320ms ease,
    border-color 320ms ease,
    transform 320ms ease;
}

.journey-step.is-active {
  border-color: #4dcfff;
  background: linear-gradient(90deg, rgb(47 162 255 / 12%), transparent 92%);
  color: var(--journey-ink);
  opacity: 1;
  transform: translateX(5px);
}

.journey-step-index {
  padding-top: 2px;
  color: #72caff;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.journey-step strong,
.journey-step small {
  display: block;
}

.journey-step strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.journey-step small {
  margin-top: 3px;
  color: var(--journey-muted);
  font-size: 11px;
  line-height: 1.45;
}

.journey-step-state {
  padding-top: 1px;
  color: #71dfff;
  font-size: 12px;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}

.journey-step.is-active .journey-step-state {
  opacity: 1;
  transform: translate(0, 0);
}

.journey-actions {
  display: flex;
  grid-area: actions;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px 22px;
}

.journey-brief-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 24px;
  border: 1px solid rgb(113 220 255 / 55%);
  background: linear-gradient(120deg, #1687dd, #1560bd);
  box-shadow: 0 12px 34px rgb(0 91 194 / 23%);
  color: white;
}

.journey-brief-button:hover {
  border-color: #b0f1ff;
  background: linear-gradient(120deg, #229eea, #1872d1);
  box-shadow: 0 14px 42px rgb(0 130 225 / 35%);
}

.journey-process-link {
  color: #b9d5f3;
  font-size: 12px;
  text-decoration-color: rgb(185 213 243 / 45%);
  text-underline-offset: 4px;
}

.journey-process-link:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.journey-stage {
  position: relative;
  display: flex;
  width: 100%;
  height: min(69vh, 730px);
  min-height: 510px;
  max-height: calc(100svh - 174px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgb(147 205 255 / 22%);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 49% 48%, rgb(23 114 215 / 23%), transparent 49%),
    linear-gradient(145deg, rgb(11 39 78 / 78%), rgb(4 19 43 / 86%));
  box-shadow:
    inset 0 1px 0 rgb(233 247 255 / 7%),
    0 28px 90px rgb(0 9 27 / 34%);
  grid-area: stage;
}

.journey-stage-header {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgb(151 204 255 / 16%);
  padding: 16px 19px 13px;
}

.journey-stage-header span:first-child {
  color: #7ad8ff;
}

.journey-artboard {
  position: relative;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  isolation: isolate;
}

.journey-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  border: 1px solid rgb(87 184 255 / 27%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.journey-orbit--outer {
  width: min(84%, 580px);
  aspect-ratio: 1;
  border-color: rgb(118 197 255 / 27%);
  transform: translate(-50%, -50%) rotate(calc((var(--journey-progress) - 0.5) * 42deg));
}

.journey-orbit--inner {
  width: min(63%, 430px);
  aspect-ratio: 1;
  border-style: dashed;
  border-color: rgb(95 204 255 / 24%);
  transform: translate(-50%, -50%) rotate(calc((0.5 - var(--journey-progress)) * 58deg));
}

.journey-orbit--dash {
  width: min(105%, 730px);
  aspect-ratio: 1.22;
  border-style: dashed;
  border-color: rgb(91 160 230 / 19%);
  transform: translate(-50%, -50%) rotate(calc((var(--journey-progress) - 0.5) * -16deg));
}

.journey-orbit-point {
  position: absolute;
  z-index: 1;
  width: 9px;
  aspect-ratio: 1;
  border: 2px solid #c9f5ff;
  border-radius: 50%;
  background: #31bfff;
  box-shadow: 0 0 19px 5px rgb(54 188 255 / 63%);
}

.journey-orbit-point--top {
  top: 17%;
  left: 61%;
  transform: translate3d(0, calc((var(--journey-progress) - 0.5) * 46px), 0);
}

.journey-orbit-point--bottom {
  right: 14%;
  bottom: 21%;
  width: 6px;
  opacity: 0.75;
}

.journey-astronaut {
  position: absolute;
  z-index: 2;
  top: 49%;
  left: 50%;
  display: block;
  width: min(76%, 500px);
  height: 100%;
  overflow: visible;
  transform: translate3d(
      calc(-50% + (var(--journey-progress) - 0.5) * 62px),
      calc(-50% + (0.5 - var(--journey-progress)) * 34px),
      0
    )
    rotate(calc((var(--journey-progress) - 0.5) * 8deg));
  transform-origin: 50% 54%;
  transition: filter 300ms ease;
}

.journey-tether {
  fill: none;
  stroke: #48d3ff;
  stroke-dasharray: 5 8;
  stroke-linecap: round;
  stroke-width: 5;
}

.journey-pack {
  fill: #7d9db9;
  stroke: #d1e5f6;
  stroke-width: 5;
}

.journey-pack-detail,
.journey-arm-trim,
.journey-torso-seam,
.journey-chest-line,
.journey-visor-glint,
.journey-glove-line {
  fill: none;
  stroke: #7694b1;
  stroke-linecap: round;
  stroke-width: 5;
}

.journey-arm,
.journey-leg {
  fill: none;
  stroke: url(#journeySuit);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 48;
}

.journey-arm-trim {
  stroke: #85a9c9;
  stroke-width: 8;
}

.journey-leg {
  stroke-width: 65;
}

.journey-boot,
.journey-glove {
  fill: #b7cce0;
  stroke: #f2f9ff;
  stroke-width: 5;
}

.journey-torso {
  fill: url(#journeySuit);
  stroke: #f4faff;
  stroke-width: 6;
}

.journey-torso-seam {
  stroke: #7694b1;
  stroke-width: 4;
}

.journey-collar,
.journey-helmet-ring {
  fill: #dbe9f5;
  stroke: #f8fcff;
  stroke-width: 8;
}

.journey-visor {
  fill: url(#journeyVisor);
  stroke: #84e4ff;
  stroke-width: 5;
}

.journey-visor-glint {
  stroke: rgb(228 251 255 / 80%);
  stroke-width: 7;
}

.journey-helmet-rim {
  fill: none;
  stroke: #7ba4c6;
  stroke-linecap: round;
  stroke-width: 4;
}

.journey-chest-panel {
  fill: #0c3670;
  stroke: #78dfff;
  stroke-width: 4;
}

.journey-chest-line {
  stroke: #8adfff;
  stroke-width: 3;
}

.journey-chest-light,
.journey-shoulder-mark {
  fill: #5eeaff;
  stroke: #e2fbff;
  stroke-width: 3;
}

.journey-float-card {
  position: absolute;
  z-index: 4;
  display: grid;
  border: 1px solid rgb(148 205 255 / 27%);
  border-radius: 12px;
  background: rgb(7 27 57 / 82%);
  box-shadow: 0 14px 34px rgb(0 9 30 / 25%);
  color: var(--journey-ink);
  backdrop-filter: blur(14px);
  transition:
    border-color 400ms ease,
    background-color 400ms ease;
}

.journey-float-card--brief {
  top: 17%;
  left: 4%;
  min-width: 116px;
  gap: 8px;
  padding: 12px 14px;
  transform: translate3d(calc(var(--journey-progress) * 22px), 0, 0);
}

.journey-card-label {
  color: #94b5d9;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 8px;
  letter-spacing: 0.11em;
}

.journey-float-card--brief strong {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.journey-card-meter {
  display: flex;
  height: 3px;
  gap: 3px;
}

.journey-card-meter i {
  flex: 1;
  border-radius: 3px;
  background: #389fe9;
}

.journey-card-meter i:nth-child(n + 4) {
  background: rgb(109 161 208 / 28%);
}

.journey-float-card--deck {
  right: 3%;
  bottom: 15%;
  width: min(235px, 48%);
  gap: 10px;
  padding: 13px;
  transform: translate3d(calc((0.5 - var(--journey-progress)) * 30px), 0, 0);
}

.journey-mini-deck {
  display: grid;
  height: 37px;
  gap: 5px;
  grid-template-columns: repeat(3, 1fr);
}

.journey-mini-deck i {
  position: relative;
  display: flex;
  overflow: hidden;
  align-items: end;
  gap: 3px;
  border: 1px solid rgb(164 211 255 / 35%);
  border-radius: 4px;
  padding: 5px 4px;
  background:
    radial-gradient(circle at 72% 26%, rgb(112 222 255 / 74%) 0 3px, transparent 4px),
    linear-gradient(140deg, #176fc0, #0b2654 78%);
}

.journey-mini-deck i:nth-child(2) {
  background:
    radial-gradient(circle at 36% 33%, rgb(255 206 132 / 88%) 0 3px, transparent 4px),
    linear-gradient(140deg, #3168a0, #101f44 78%);
}

.journey-mini-deck i:nth-child(3) {
  background:
    radial-gradient(circle at 74% 31%, rgb(106 234 255 / 82%) 0 3px, transparent 4px),
    linear-gradient(140deg, #255999, #101f44 78%);
}

.journey-mini-deck b {
  display: block;
  width: 44%;
  height: 2px;
  border-radius: 2px;
  background: rgb(223 246 255 / 85%);
}

.journey-mini-deck b + b {
  width: 25%;
  opacity: 0.52;
}

.journey-float-card--deck strong {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

.journey-stage-caption {
  position: absolute;
  bottom: 4%;
  left: 5%;
  color: rgb(145 184 222 / 67%);
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 8px;
  letter-spacing: 0.17em;
}

.journey-stage-footer {
  display: grid;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgb(151 204 255 / 16%);
  padding: 13px 19px 15px;
  font-size: 8px;
  grid-template-columns: auto auto minmax(36px, 1fr) auto;
}

.journey-stage-footer > span:nth-child(2) {
  color: #e1f3ff;
  letter-spacing: 0.1em;
}

.journey-progress-track {
  position: relative;
  height: 2px;
  overflow: hidden;
  background: rgb(135 179 222 / 25%);
}

.journey-progress-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  background: linear-gradient(90deg, #1e99ea, #72e6ff);
  transform: scaleX(var(--journey-progress));
  transform-origin: left center;
}

html[data-theme="light"] .journey-section {
  --journey-ink: #102a48;
  --journey-muted: #4f6c8b;
  --journey-line: rgb(35 93 147 / 19%);
  background:
    radial-gradient(ellipse at 75% 40%, rgb(46 158 245 / 17%), transparent 44%),
    linear-gradient(180deg, #d9efff 0%, #b8dbf7 49%, #e6f5ff 100%);
}

html[data-theme="light"] .journey-backdrop {
  background:
    radial-gradient(ellipse at 83% 57%, rgb(22 126 222 / 11%), transparent 45%),
    linear-gradient(110deg, rgb(227 244 255 / 24%), transparent 62%);
}

html[data-theme="light"] .journey-backdrop-grid {
  background-image:
    linear-gradient(rgb(32 91 146 / 9%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(32 91 146 / 9%) 1px, transparent 1px);
}

html[data-theme="light"] .journey-stage {
  border-color: rgb(45 109 166 / 23%);
  background:
    radial-gradient(ellipse at 49% 48%, rgb(52 161 245 / 22%), transparent 49%),
    linear-gradient(145deg, rgb(243 250 255 / 84%), rgb(207 231 252 / 93%));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 85%),
    0 26px 74px rgb(25 75 119 / 17%);
}

html[data-theme="light"] .journey-stage-header,
html[data-theme="light"] .journey-stage-footer {
  border-color: rgb(50 111 167 / 18%);
}

html[data-theme="light"] .journey-float-card {
  border-color: rgb(66 127 183 / 27%);
  background: rgb(232 246 255 / 87%);
  box-shadow: 0 14px 34px rgb(25 75 119 / 15%);
}

html[data-theme="light"] .journey-float-card--deck strong,
html[data-theme="light"] .journey-float-card--brief strong {
  color: #102a48;
}

@media (max-width: 1080px) {
  .journey-layout {
    column-gap: 24px;
    grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  }

  .journey-copy h2 {
    font-size: clamp(40px, 5vw, 62px);
  }

  .journey-stage {
    min-height: 480px;
  }

  .journey-float-card--brief {
    left: 0;
  }
}

@media (max-width: 760px) {
  .journey-track {
    height: auto;
    min-height: 0;
  }

  .journey-sticky {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    padding: 112px 20px 54px;
  }

  .journey-frame {
    min-height: 0;
  }

  .journey-topline {
    font-size: 7px;
    letter-spacing: 0.11em;
  }

  .journey-layout {
    align-items: start;
    gap: 12px;
    grid-template-areas:
      "copy"
      "stage"
      "steps"
      "actions";
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    padding-top: 22px;
  }

  .journey-eyebrow {
    margin-bottom: 12px;
  }

  .journey-copy h2 {
    max-width: 13ch;
    font-size: clamp(38px, 10.7vw, 57px);
  }

  .journey-intro {
    max-width: 42ch;
    margin-top: 13px;
    font-size: 14px;
  }

  .journey-stage {
    width: 100%;
    height: min(112vw, 530px);
    min-height: 360px;
    max-height: none;
    margin-top: 8px;
    border-radius: 22px;
  }

  .journey-artboard {
    min-height: 275px;
  }

  .journey-astronaut {
    top: 51%;
    width: min(91%, 430px);
    transform: translate(-50%, -50%);
  }

  .journey-orbit--outer {
    width: 91%;
    transform: translate(-50%, -50%);
  }

  .journey-orbit--inner {
    width: 70%;
    transform: translate(-50%, -50%);
  }

  .journey-orbit--dash {
    width: 115%;
    transform: translate(-50%, -50%);
  }

  .journey-float-card--brief {
    top: 13%;
    left: 3%;
    min-width: 102px;
    padding: 10px 11px;
    transform: none;
  }

  .journey-float-card--deck {
    right: 3%;
    bottom: 11%;
    width: min(205px, 54%);
    padding: 11px;
    transform: none;
  }

  .journey-stage-caption {
    bottom: 3%;
    font-size: 7px;
  }

  .journey-stage-footer {
    gap: 8px;
    padding: 12px 13px 14px;
    font-size: 7px;
    grid-template-columns: auto auto minmax(24px, 1fr);
  }

  .journey-scroll-hint {
    display: none;
  }

  .journey-steps {
    gap: 4px;
    margin: 12px 0 8px;
  }

  .journey-step {
    grid-template-columns: 28px minmax(0, 1fr) 16px;
    padding: 11px 10px;
  }

  .journey-step strong {
    font-size: 13px;
  }

  .journey-step small {
    font-size: 11px;
  }

  .journey-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    padding-top: 4px;
  }
}

@media (max-width: 420px) {
  .journey-sticky {
    padding-right: 16px;
    padding-left: 16px;
  }

  .journey-stage-header {
    padding-right: 13px;
    padding-left: 13px;
    font-size: 7px;
  }

  .journey-stage {
    height: 112vw;
    min-height: 340px;
  }

  .journey-float-card--deck {
    width: 55%;
  }

  .journey-stage-footer {
    grid-template-columns: 1fr auto minmax(22px, 0.7fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .journey-backdrop-glow,
  .journey-orbit,
  .journey-orbit-point,
  .journey-astronaut,
  .journey-float-card,
  .journey-progress-track i,
  .journey-step,
  .journey-step-state {
    animation: none !important;
    transition: none !important;
  }

  .journey-orbit,
  .journey-orbit--outer,
  .journey-orbit--inner,
  .journey-orbit--dash {
    transform: translate(-50%, -50%) !important;
  }

  .journey-astronaut {
    transform: translate(-50%, -50%) !important;
  }

  .journey-backdrop-glow--one,
  .journey-orbit-point--top,
  .journey-float-card--brief,
  .journey-float-card--deck {
    transform: none !important;
  }

  .journey-progress-track i {
    transform: scaleX(var(--journey-progress)) !important;
  }
}

html.is-astronaut-scene-visible .portal-header-brand,
html.is-astronaut-scene-visible .portal-header-actions {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
