:root {
  color-scheme: dark;
  --ink: #070b0f;
  --ink-raised: #0b1219;
  --ink-soft: #101a23;
  --navy: #132d46;
  --blue: #1698bd;
  --blue-deep: #107b9a;
  --ice: #edf5f8;
  --silver: #aebec8;
  --muted: #748997;
  --line: rgba(174, 205, 220, 0.17);
  --line-strong: rgba(174, 205, 220, 0.32);
  --danger: #e08b8b;
  --success: #8bc6b1;
  --max: 1440px;
  --nav-height: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 2%, rgba(22, 152, 189, 0.08), transparent 24rem),
    var(--ink);
  color: var(--ice);
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  content: "";
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

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

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

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

button,
select {
  cursor: pointer;
}

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

::selection {
  color: var(--ice);
  background: rgba(22, 152, 189, 0.55);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--ice);
  transform: translateY(-160%);
  transition: transform 160ms var(--ease);
}

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

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

.section {
  padding-block: clamp(76px, 10vw, 152px);
}

.section-tight {
  padding-block: clamp(48px, 6vw, 92px);
}

.kicker {
  margin: 0 0 18px;
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.5rem, 7.4vw, 7.8rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.3rem, 4.8vw, 5rem);
  line-height: 0.98;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.12;
}

.lede {
  max-width: 56ch;
  color: var(--silver);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.55;
}

.muted {
  color: var(--silver);
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition: color 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease);
}

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

.button:active {
  transform: translateY(1px) scale(0.99);
}

.button-primary {
  color: #051017;
  background: var(--blue);
}

.button-primary:hover {
  background: #34b0d4;
}

.button-secondary {
  color: var(--ice);
  border-color: var(--line-strong);
  background: rgba(7, 11, 15, 0.42);
}

.button-secondary:hover {
  border-color: var(--blue);
  background: rgba(22, 152, 189, 0.08);
}

.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--ice);
  border-bottom: 1px solid var(--blue);
  padding-bottom: 3px;
  font-weight: 650;
}

.research-notice {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  color: #c8dce6;
  border-bottom: 1px solid var(--line);
  background: #08131b;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.69rem;
  letter-spacing: 0.095em;
  text-align: center;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 15, 0.82);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.site-nav {
  height: var(--nav-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 34px;
  align-items: center;
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.brand-link img {
  width: 168px;
  height: 58px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 36px);
  font-size: 0.88rem;
}

.nav-links a {
  color: var(--silver);
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ice);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.list-button,
.menu-button {
  min-height: 40px;
  padding: 0 14px;
  color: var(--ice);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  white-space: nowrap;
}

.list-button:hover,
.menu-button:hover {
  border-color: var(--blue);
}

.menu-button {
  display: none;
}

.mobile-menu {
  display: none;
  padding: 18px 24px 24px;
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.mobile-menu[data-open="true"] {
  display: grid;
  gap: 14px;
}

.hero {
  position: relative;
  min-height: calc(100dvh - var(--nav-height) - 34px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(4, 8, 12, 0.98) 0%, rgba(4, 8, 12, 0.78) 35%, rgba(4, 8, 12, 0.1) 70%),
    linear-gradient(0deg, rgba(4, 8, 12, 0.8) 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(690px, 54vw);
  padding-block: 72px;
}

.hero h1 {
  max-width: 7.2ch;
}

.hero .lede {
  max-width: 43ch;
  margin-bottom: 34px;
  color: #c5d4dd;
}

.hero-mark {
  width: 112px;
  margin-bottom: 28px;
  filter: brightness(0) invert(1);
  opacity: 0.82;
}

.hero-content > * {
  opacity: 0;
  transform: translateY(22px);
  animation: hero-in 800ms var(--ease) forwards;
}

.hero-content > :nth-child(2) { animation-delay: 90ms; }
.hero-content > :nth-child(3) { animation-delay: 160ms; }
.hero-content > :nth-child(4) { animation-delay: 230ms; }

@keyframes hero-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.statement-bar {
  border-bottom: 1px solid var(--line);
  background: var(--ink-raised);
}

.statement-bar .shell {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
  padding-block: 34px;
}

.statement-bar p {
  margin: 0;
}

.statement-main {
  font-size: clamp(1.35rem, 2.2vw, 2.2rem);
  line-height: 1.15;
}

.statement-detail {
  color: var(--silver);
  font-size: 0.92rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 76px);
}

.section-heading p:last-child {
  margin-bottom: 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.featured-grid .product-card:nth-child(1),
.featured-grid .product-card:nth-child(4) {
  grid-column: span 7;
}

.featured-grid .product-card:nth-child(2),
.featured-grid .product-card:nth-child(3) {
  grid-column: span 5;
}

.featured-grid .product-card:nth-child(n + 5) {
  grid-column: span 6;
}

.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--ink-raised);
  transition: border-color 260ms var(--ease), transform 260ms var(--ease), background 260ms var(--ease);
}

.product-card:hover {
  border-color: rgba(22, 152, 189, 0.52);
  background: #0d1720;
  transform: translateY(-4px);
}

.product-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(24px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 35%, rgba(22, 152, 189, 0.16), transparent 40%),
    linear-gradient(145deg, #101c25, #070b0f 66%);
}

.product-visual::after {
  position: absolute;
  right: 14%;
  bottom: 12%;
  left: 14%;
  height: 18%;
  content: "";
  background: rgba(0, 0, 0, 0.55);
  filter: blur(24px);
}

.product-visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  box-shadow: 0 28px 58px rgba(1, 7, 11, 0.55);
  transition: transform 500ms var(--ease);
}

.product-card:hover .product-visual img {
  transform: scale(1.025);
}

.product-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding: 24px;
}

.product-copy h3 {
  margin: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
}

.product-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-action {
  display: flex;
  align-items: center;
  gap: 10px;
}

.add-button {
  min-height: 40px;
  padding: 0 13px;
  color: var(--ice);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  white-space: nowrap;
}

.add-button:hover {
  color: #061018;
  border-color: var(--blue);
  background: var(--blue);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.catalog-grid .product-action {
  justify-content: space-between;
}

.catalog-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 260px);
  gap: 12px;
  margin-bottom: 32px;
}

.field,
.select {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  color: var(--ice);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--ink-raised);
}

.field::placeholder,
textarea::placeholder {
  color: #7f929e;
}

.field:focus,
.select:focus,
textarea:focus {
  border-color: var(--blue);
}

.result-count {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.75rem;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 72px 24px;
  border: 1px solid var(--line);
  color: var(--silver);
  text-align: center;
}

.gallery-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 650px;
  border: 1px solid var(--line);
}

.gallery-split-media {
  min-height: 540px;
}

.gallery-split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 7vw, 100px);
  background: var(--ink-raised);
}

.gallery-split-copy h2 {
  font-size: clamp(2.4rem, 4vw, 4.4rem);
}

.principles-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr 0.8fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.principle {
  min-height: 280px;
  padding: clamp(30px, 4vw, 58px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-raised);
}

.principle:first-child {
  background:
    linear-gradient(rgba(7, 11, 15, 0.68), rgba(7, 11, 15, 0.88)),
    url("../images/midnight-mountain-atmosphere.webp") center / cover;
}

.principle strong {
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.principle p {
  margin: 0;
  color: var(--silver);
}

.process-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.process-item {
  position: relative;
  min-height: 300px;
  padding: 42px 40px;
  border-right: 1px solid var(--line);
}

.process-item:last-child {
  border-right: 0;
}

.process-item .mono {
  display: block;
  margin-bottom: 72px;
  color: var(--blue);
  font-size: 0.76rem;
}

.process-item p {
  margin-bottom: 0;
  color: var(--silver);
}

.faq-list {
  max-width: 980px;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 26px 0;
  cursor: pointer;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--blue);
  font-family: monospace;
  font-size: 1.4rem;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list details p {
  max-width: 70ch;
  padding: 0 52px 24px 0;
  color: var(--silver);
}

.page-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: end;
  padding-block: 96px 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(7, 11, 15, 0.96), rgba(7, 11, 15, 0.48)),
    url("../images/midnight-mountain-atmosphere.webp") center / cover;
}

.page-hero h1 {
  max-width: 10ch;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 7rem);
}

.page-hero .lede {
  margin-bottom: 0;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(42px, 7vw, 108px);
  align-items: start;
}

.product-detail-visual {
  position: sticky;
  top: 126px;
  min-height: 560px;
  display: grid;
  place-items: center;
  padding: clamp(36px, 6vw, 84px);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 36%, rgba(22, 152, 189, 0.16), transparent 42%),
    var(--ink-raised);
}

.product-detail-visual img {
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.48);
}

.product-detail-copy {
  padding-top: 24px;
}

.product-detail-copy h1 {
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 5vw, 5.6rem);
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 36px 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.data-cell {
  min-height: 118px;
  padding: 22px;
  background: var(--ink-raised);
}

.data-cell span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.67rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.data-cell strong {
  font-size: 1.15rem;
  font-weight: 550;
}

.notice-panel {
  margin: 28px 0;
  padding: 24px;
  border-left: 2px solid var(--blue);
  background: rgba(22, 152, 189, 0.07);
  color: #c4d4dc;
  font-size: 0.92rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(200px, 0.34fr) minmax(0, 1fr);
  gap: clamp(44px, 9vw, 138px);
  align-items: start;
}

.content-aside {
  position: sticky;
  top: 120px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prose {
  max-width: 780px;
}

.prose h2 {
  margin-top: 72px;
  font-size: clamp(1.9rem, 3.5vw, 3.1rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 38px;
}

.prose p,
.prose li {
  color: var(--silver);
}

.prose a {
  color: var(--ice);
  border-bottom: 1px solid var(--blue);
}

.prose ul {
  padding-left: 22px;
}

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

.form-group {
  display: grid;
  gap: 8px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label,
.checkbox-group legend {
  color: #d7e2e7;
  font-size: 0.86rem;
  font-weight: 600;
}

.form-group small {
  color: var(--muted);
}

textarea.field {
  min-height: 150px;
  padding-block: 13px;
  resize: vertical;
}

.checkbox {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--silver);
  font-size: 0.9rem;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.order-summary {
  position: sticky;
  top: 120px;
  border: 1px solid var(--line);
  background: var(--ink-raised);
}

.order-summary h2 {
  margin: 0;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  font-size: 1.45rem;
}

.order-items {
  padding: 8px 24px;
}

.order-item,
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.order-item:last-child,
.cart-item:last-child {
  border-bottom: 0;
}

.order-item strong,
.cart-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.93rem;
}

.order-item span,
.cart-item span {
  color: var(--muted);
  font-size: 0.8rem;
}

.qty-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.qty-controls button {
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--ice);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}

.cart-dialog,
.gate-dialog {
  padding: 0;
  color: var(--ice);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--ink-raised);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.72);
}

.cart-dialog::backdrop,
.gate-dialog::backdrop {
  background: rgba(1, 5, 8, 0.82);
  backdrop-filter: blur(8px);
}

.cart-dialog {
  width: min(520px, 100%);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  border-width: 0 0 0 1px;
}

.cart-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.cart-head,
.cart-foot {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.cart-close {
  padding: 6px 0;
  color: var(--silver);
  border: 0;
  background: transparent;
}

.cart-body {
  overflow-y: auto;
  padding: 4px 24px;
}

.cart-foot {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.cart-foot p {
  color: var(--muted);
  font-size: 0.78rem;
}

.cart-foot .button {
  width: 100%;
}

.gate-dialog {
  width: min(620px, calc(100% - 32px));
  max-width: 620px;
}

.gate-inner {
  padding: clamp(34px, 6vw, 62px);
}

.gate-inner img {
  width: 120px;
  margin-bottom: 30px;
  filter: brightness(0) invert(1);
}

.gate-inner h2 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
}

.gate-inner p {
  color: var(--silver);
}

.gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: min(380px, calc(100% - 48px));
  padding: 14px 18px;
  color: var(--ice);
  border: 1px solid rgba(22, 152, 189, 0.5);
  background: #0d1b24;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
  pointer-events: none;
}

.toast[data-show="true"] {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  padding: 72px 0 30px;
  border-top: 1px solid var(--line);
  background: #05090c;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(2, 0.7fr);
  gap: 56px;
}

.footer-brand img {
  width: 210px;
  margin-bottom: 22px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand p {
  max-width: 42ch;
  color: var(--muted);
}

.footer-column strong {
  display: block;
  margin-bottom: 18px;
  color: var(--ice);
  font-size: 0.84rem;
}

.footer-column a {
  display: block;
  width: fit-content;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-column a:hover {
  color: var(--ice);
}

.footer-bottom {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

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

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

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

  .hero-content > *,
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--ink);
    backdrop-filter: none;
  }
}

@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }

  .site-nav {
    grid-template-columns: auto 1fr auto;
  }

  .nav-actions .list-button {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
  }

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

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

  .principle:first-child {
    grid-row: span 2;
  }
}

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

  .section {
    padding-block: 72px;
  }

  .brand-link img {
    width: 138px;
  }

  .hero {
    min-height: 720px;
    align-items: end;
  }

  .hero-media {
    object-position: 65% center;
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(4, 8, 12, 0.99) 5%, rgba(4, 8, 12, 0.76) 56%, rgba(4, 8, 12, 0.18) 100%);
  }

  .hero-content {
    width: 100%;
    padding: 72px 0 54px;
  }

  .hero h1 {
    max-width: 8ch;
    font-size: clamp(3.3rem, 17vw, 5.7rem);
  }

  .statement-bar .shell,
  .gallery-split,
  .product-detail,
  .content-grid,
  .order-layout {
    grid-template-columns: 1fr;
  }

  .statement-bar .shell {
    gap: 14px;
  }

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

  .featured-grid .product-card:nth-child(n) {
    grid-column: auto;
  }

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

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

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

  .product-action {
    justify-content: space-between;
  }

  .gallery-split {
    min-height: 0;
  }

  .gallery-split-media {
    min-height: 420px;
  }

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

  .principle:first-child {
    grid-row: auto;
    min-height: 360px;
  }

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

  .process-item {
    min-height: 0;
    padding: 36px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-item .mono {
    margin-bottom: 28px;
  }

  .page-hero {
    min-height: 470px;
    padding-block: 80px 54px;
  }

  .product-detail-visual,
  .content-aside,
  .order-summary {
    position: static;
  }

  .product-detail-visual {
    min-height: 360px;
  }

  .content-aside {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
  }

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

  .form-group.full {
    grid-column: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .cart-dialog {
    width: 100%;
  }
}

@media (max-width: 440px) {
  .button-row,
  .gate-actions {
    flex-direction: column;
  }

  .button-row .button,
  .gate-actions .button {
    width: 100%;
  }

  .site-nav {
    gap: 12px;
  }

  .brand-link img {
    width: 118px;
  }
}

/* ================================================================
   MIDNIGHT INSTRUMENT — 2026 visual system
   Faithful to the approved instrument-panel direction.
   ================================================================ */

:root {
  --ink: #02070d;
  --ink-raised: #071019;
  --ink-soft: #0b1721;
  --navy: #0b2335;
  --blue: #16a8d4;
  --blue-deep: #0e7599;
  --ice: #f1f7fa;
  --silver: #b6c4cc;
  --muted: #718590;
  --line: rgba(188, 216, 229, 0.13);
  --line-strong: rgba(188, 216, 229, 0.29);
  --instrument-glow: rgba(84, 174, 220, 0.18);
  --max: 1500px;
  --nav-height: 76px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body.instrument-theme {
  background:
    radial-gradient(circle at 78% 4%, rgba(67, 145, 189, 0.08), transparent 32rem),
    #02070d;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

.instrument-theme h1,
.instrument-theme h2,
.instrument-theme h3 {
  text-wrap: balance;
}

.instrument-theme h1,
.instrument-theme h2 {
  font-weight: 300;
  letter-spacing: -0.045em;
}

.instrument-theme .kicker,
.hero-eyebrow,
.instrument-index,
.instrument-readout span,
.instrument-theme .nav-links,
.instrument-theme .button,
.catalog-offline-index {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}

.instrument-theme .kicker,
.hero-eyebrow {
  color: var(--blue);
  font-size: 0.71rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.instrument-theme .site-header {
  border: 0;
  background: rgba(3, 9, 15, 0.92);
  box-shadow: 0 16px 55px rgba(0, 13, 23, 0.24);
}

.instrument-theme:not(.home-page) .site-nav {
  height: 92px;
}

.instrument-theme .brand-link img {
  width: 174px;
  height: 86px;
  filter: none;
  opacity: 1;
}

.catalog-page .catalog-controls[hidden] {
  display: none !important;
}

.instrument-theme .nav-links {
  gap: clamp(24px, 3vw, 52px);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.instrument-theme .nav-links a {
  position: relative;
  color: #c9d5db;
}

.instrument-theme .nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 520ms var(--ease);
}

.instrument-theme .nav-links a:hover::after,
.instrument-theme .nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.instrument-bag {
  position: relative;
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.instrument-bag svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.instrument-bag .cart-count {
  position: absolute;
  right: -3px;
  bottom: -2px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  color: #001018;
  background: var(--blue);
  font-size: 0.58rem;
  font-weight: 750;
}

.home-page #site-shell {
  position: absolute;
  inset: 0 0 auto;
  z-index: 70;
}

.home-page .research-notice {
  display: none;
}

.home-page .site-header {
  position: relative;
  top: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-page .site-nav {
  height: 118px;
  grid-template-columns: minmax(215px, 0.8fr) minmax(520px, 1.35fr) minmax(58px, 0.8fr);
  gap: 28px;
  align-items: center;
}

.home-page .brand-link img {
  width: 246px;
  height: 132px;
}

.home-page .nav-links {
  width: min(100%, 690px);
  height: 58px;
  justify-self: center;
  align-items: center;
  padding: 0 clamp(26px, 3vw, 48px);
  border: 1px solid rgba(202, 218, 226, 0.25);
  border-radius: 999px;
  background: rgba(3, 10, 17, 0.34);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.03),
    0 18px 64px rgba(0, 7, 13, 0.2);
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
}

.home-page .nav-actions {
  justify-self: end;
}

.home-page .instrument-bag {
  margin-left: -86px;
  border-color: rgba(202, 218, 226, 0.28);
  background: rgba(13, 29, 42, 0.42);
}

.instrument-hero {
  min-height: max(720px, 100dvh);
  align-items: end;
  border: 0;
  isolation: isolate;
  background: #02070d;
}

.instrument-hero .hero-media {
  object-position: center 50%;
  transform: scale(1.002);
  animation: instrument-breathe 14s var(--ease) both;
}

@keyframes instrument-breathe {
  from { transform: scale(1.025); }
  to { transform: scale(1.002); }
}

.instrument-hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(1, 6, 12, 0.72) 0%, rgba(1, 6, 12, 0.3) 42%, rgba(1, 6, 12, 0) 66%),
    linear-gradient(0deg, rgba(1, 6, 11, 0.84) 0%, transparent 42%),
    radial-gradient(circle at 44% 78%, rgba(0, 19, 31, 0.18), transparent 30%);
}

.instrument-hero::after {
  z-index: 1;
  background: linear-gradient(180deg, rgba(1, 5, 10, 0.16), transparent 22%, transparent 78%, rgba(1, 5, 10, 0.42));
}

.instrument-hero .shell {
  position: relative;
  z-index: 3;
}

.instrument-hero .hero-content {
  width: min(790px, 55vw);
  padding: 210px 0 clamp(62px, 8vh, 104px);
}

.hero-eyebrow {
  margin-bottom: 24px;
}

.instrument-hero h1 {
  max-width: 10.8ch;
  margin-bottom: 24px;
  font-size: clamp(4.25rem, 6.8vw, 7.6rem);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.052em;
}

.instrument-hero .lede {
  max-width: 49ch;
  margin-bottom: 34px;
  color: #c5d0d6;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.52;
}

.instrument-hero .button-row {
  gap: 18px;
}

.instrument-button {
  min-height: 56px;
  gap: 18px;
  padding: 5px 6px 5px 24px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition:
    color 520ms var(--ease),
    background 520ms var(--ease),
    border-color 520ms var(--ease),
    transform 520ms var(--ease),
    box-shadow 520ms var(--ease);
}

.instrument-button.button-primary {
  background: linear-gradient(100deg, #1098c5, #21b4db);
  box-shadow: 0 20px 50px rgba(10, 137, 177, 0.18);
}

.instrument-button.button-primary:hover {
  background: linear-gradient(100deg, #20add7, #40c7e9);
  box-shadow: 0 22px 64px rgba(10, 137, 177, 0.28);
}

.instrument-button.button-secondary {
  padding-left: 28px;
  border-color: rgba(198, 216, 225, 0.31);
  background: rgba(3, 9, 15, 0.34);
}

.button-orbit {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 350;
  letter-spacing: 0;
  transition: transform 580ms var(--ease), background 580ms var(--ease);
}

.instrument-button:hover .button-orbit {
  transform: translateX(2px) rotate(-18deg);
}

.instrument-index {
  position: absolute;
  right: clamp(34px, 4.5vw, 88px);
  bottom: 50px;
  z-index: 4;
  color: #d0d9de;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.instrument-rail {
  position: absolute;
  top: 0;
  right: clamp(16px, 1.8vw, 36px);
  bottom: 0;
  z-index: 4;
  width: 1px;
  background: rgba(187, 216, 229, 0.23);
}

.instrument-rail span {
  position: absolute;
  top: 58%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 18px rgba(22, 168, 212, 0.75);
  transform: translate(-50%, -50%);
}

.statement-bar {
  border-color: var(--line);
  background: #030a11;
}

.statement-bar .shell {
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-block: 0;
}

.instrument-readout {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px clamp(20px, 3.5vw, 54px);
  border-right: 1px solid var(--line);
}

.instrument-readout:first-child {
  border-left: 1px solid var(--line);
}

.instrument-readout span {
  color: var(--blue);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.instrument-readout strong {
  color: #dce6eb;
  font-size: 0.9rem;
  font-weight: 450;
  letter-spacing: 0.04em;
}

.instrument-theme .section {
  padding-block: clamp(94px, 10vw, 150px);
}

.instrument-theme .section-heading {
  max-width: 920px;
  margin-bottom: clamp(54px, 7vw, 96px);
}

.instrument-theme .section-heading h2 {
  max-width: 14ch;
  font-size: clamp(3rem, 5.8vw, 6.6rem);
  line-height: 0.96;
}

.catalog-offline {
  grid-column: 1 / -1;
  min-height: 320px;
  display: grid;
  grid-template-columns: minmax(110px, 0.32fr) minmax(0, 1fr) auto;
  gap: clamp(32px, 5vw, 82px);
  align-items: center;
  padding: clamp(40px, 6vw, 78px) 0;
  border-top: 1px solid var(--line-strong);
  border-right: 0;
  border-bottom: 1px solid var(--line-strong);
  border-left: 0;
  background:
    radial-gradient(circle at 8% 48%, rgba(22, 168, 212, 0.08), transparent 25%),
    linear-gradient(90deg, rgba(9, 24, 35, 0.42), transparent 72%);
}

.catalog-offline-index {
  color: rgba(194, 216, 225, 0.14);
  font-size: clamp(5rem, 10vw, 10rem);
  font-weight: 300;
  letter-spacing: -0.07em;
  line-height: 0.72;
}

.catalog-offline h3,
.catalog-offline h2 {
  max-width: 16ch;
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.4vw, 4.3rem);
  font-weight: 300;
  line-height: 1;
}

.catalog-offline p:not(.kicker) {
  max-width: 56ch;
  margin: 0;
  color: var(--silver);
}

.catalog-offline .text-link {
  white-space: nowrap;
}

.gallery-split {
  overflow: hidden;
  border-color: rgba(191, 217, 228, 0.18);
  border-radius: 30px;
  background: rgba(7, 16, 25, 0.66);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.035),
    0 40px 110px rgba(0, 11, 20, 0.24);
}

.gallery-split-media {
  overflow: hidden;
}

.gallery-split-media img {
  transition: transform 1200ms var(--ease), filter 1200ms var(--ease);
}

.gallery-split:hover .gallery-split-media img {
  transform: scale(1.025);
  filter: contrast(1.03) brightness(1.04);
}

.gallery-split-copy {
  background:
    radial-gradient(circle at 10% 10%, rgba(22, 168, 212, 0.08), transparent 25rem),
    #071019;
}

.instrument-theme .principles-grid {
  border-color: var(--line);
}

.instrument-theme .principle {
  border-color: var(--line);
  background: #061019;
}

.instrument-theme .principle:first-child {
  background:
    linear-gradient(120deg, rgba(3, 9, 15, 0.84), rgba(3, 9, 15, 0.56)),
    url("../images/midnight-instrument-hero-v2.jpg") 74% 52% / cover;
}

.instrument-theme .process-track {
  border-color: var(--line-strong);
}

.instrument-theme .process-item {
  border-color: var(--line);
}

.instrument-theme .faq-list details {
  border-color: var(--line);
}

.instrument-theme .page-hero {
  min-height: 62vh;
  background:
    linear-gradient(90deg, rgba(2, 7, 13, 0.97) 0%, rgba(2, 7, 13, 0.75) 45%, rgba(2, 7, 13, 0.18) 74%),
    url("../images/midnight-instrument-hero-v2.jpg") 72% 50% / cover;
}

.instrument-theme .page-hero h1 {
  max-width: 11ch;
  font-size: clamp(3.5rem, 7vw, 7.8rem);
  line-height: 0.94;
}

.catalog-offline--page {
  min-height: 480px;
  grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr);
  text-align: left;
}

.catalog-offline--page .button-row {
  grid-column: 2;
  align-items: center;
  margin-top: -20px;
}

.catalog-page .result-count {
  margin-bottom: 28px;
  color: var(--blue);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.instrument-theme .text-link {
  border: 0;
  padding-bottom: 6px;
  background: linear-gradient(var(--blue), var(--blue)) left bottom / 100% 1px no-repeat;
  transition: color 420ms var(--ease), background-size 520ms var(--ease);
}

.instrument-theme .text-link:hover {
  color: #8fdaf0;
  background-size: 36% 1px;
}

.instrument-theme .site-footer {
  border-color: var(--line);
  background: #01060b;
}

.instrument-theme .footer-brand img {
  filter: none;
}

@media (max-width: 1080px) {
  .home-page .site-nav {
    height: 100px;
    grid-template-columns: auto 1fr auto;
  }

  .home-page .brand-link img {
    width: 205px;
    height: 110px;
  }

  .home-page .menu-button {
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    color: var(--ice);
    border-color: var(--line-strong);
    background: rgba(3, 10, 17, 0.5);
  }

  .home-page .mobile-menu {
    width: min(calc(100% - 48px), 520px);
    margin: 0 24px 0 auto;
    padding: 28px;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    background: rgba(3, 10, 17, 0.96);
    box-shadow: 0 34px 90px rgba(0, 5, 10, 0.52);
  }
}

@media (max-width: 767px) {
  .home-page .site-nav {
    width: calc(100% - 30px);
    height: 82px;
  }

  .home-page .brand-link img {
    width: 146px;
    height: 82px;
  }

  .home-page .mobile-menu {
    width: calc(100% - 30px);
    margin: 0 auto;
  }

  .instrument-hero {
    min-height: max(760px, 100dvh);
  }

  .instrument-hero .hero-media {
    object-position: 66% center;
  }

  .instrument-hero::before {
    background:
      linear-gradient(0deg, rgba(1, 6, 11, 0.99) 3%, rgba(1, 6, 11, 0.76) 49%, rgba(1, 6, 11, 0.18) 100%),
      linear-gradient(90deg, rgba(1, 6, 11, 0.28), transparent 65%);
  }

  .instrument-hero .hero-content {
    width: 100%;
    padding: 300px 0 52px;
  }

  .instrument-hero h1 {
    max-width: 9ch;
    font-size: clamp(3.35rem, 16vw, 5.2rem);
  }

  .instrument-hero .lede {
    max-width: 35ch;
    font-size: 0.98rem;
  }

  .instrument-hero .button-row {
    align-items: stretch;
  }

  .instrument-button {
    width: 100%;
    justify-content: space-between;
  }

  .instrument-index {
    display: none;
  }

  .instrument-rail {
    right: 10px;
  }

  .statement-bar .shell {
    grid-template-columns: 1fr;
  }

  .instrument-readout {
    min-height: 80px;
    grid-template-columns: 0.55fr 1fr;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .instrument-readout:first-child {
    border-left: 0;
  }

  .catalog-offline,
  .catalog-offline--page {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .catalog-offline-index {
    font-size: 6.5rem;
  }

  .catalog-offline--page .button-row {
    grid-column: auto;
    margin-top: 0;
  }

  .instrument-theme .page-hero {
    min-height: 560px;
    background-position: 68% center;
  }

  .instrument-theme .section-heading h2 {
    font-size: clamp(2.85rem, 13vw, 4.6rem);
  }
}

@media (max-width: 440px) {
  .home-page .brand-link img {
    width: 132px;
  }

  .home-page .menu-button {
    padding: 0 16px;
  }

  .instrument-hero .hero-content {
    padding-top: 280px;
  }

  .instrument-hero h1 {
    font-size: clamp(3rem, 15vw, 4.25rem);
  }
}
