:where(body.theme-linked, body.theme-pure) {
  --font-display: "arboria", "Jost", "Avenir", sans-serif;
  --font-body: "arboria", "Jost", "Avenir", -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 10vh, 140px);
}

body.theme-linked {
  --linked-bg: #FFFFFF;
  --linked-paper: #EDEDED;
  --linked-ink: #000000;
  --linked-mute: #6B6B6B;
  --linked-line: #E6E6E6;
  --pure-bg: #000000;
  --pure-paper: #0A0A0A;
  --pure-ink: #FFFFFF;
  --pure-mute: #8A8A8A;
  --pure-line: #1E1E1E;
}

body.theme-pure {
  --pure-bg: #000000;
  --pure-paper: #0A0A0A;
  --pure-ink: #FFFFFF;
  --pure-mute: #8A8A8A;
  --pure-line: #1E1E1E;
  --linked-bg: var(--pure-bg);
  --linked-paper: var(--pure-paper);
  --linked-ink: var(--pure-ink);
  --linked-mute: var(--pure-mute);
  --linked-line: var(--pure-line);
}

body.theme-hydrafine { --accent: #00539E; }
body.theme-sublimelip { --accent: #CA0A22; }
body.theme-dynamic { --accent: #8E9383; }
body.theme-deeplift { --accent: #A2388D; }
body.theme-restore-32 { --accent: #A3C4E9; }
body.theme-puresense-64 { --accent: #3E7C4E; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--linked-bg);
  color: var(--linked-ink);
  font-size: calc(16px * var(--type-scale, 1));
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: none; font-family: inherit; background: none; border: none; color: inherit; }
::selection { background: var(--linked-ink); color: var(--linked-bg); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--linked-mute);
}
.pure .eyebrow { color: var(--pure-mute); }


.cursor {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--linked-ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, background 0.25s;
  mix-blend-mode: difference;
}
.cursor.big { width: 48px; height: 48px; background: transparent; border: 1px solid #fff; }
.cursor-label {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--linked-ink); mix-blend-mode: difference;
  transform: translate(20px, 12px);
  opacity: 0; transition: opacity 0.2s;
}
.cursor-label.show { opacity: 1; }
@media (max-width: 900px) {
  body { cursor: auto; }
  .cursor, .cursor-label { display: none; }
  button, a { cursor: pointer; }
}


.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  mix-blend-mode: difference;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease, padding 0.35s ease;
}
.nav.scrolled {
  mix-blend-mode: normal;
  background-color: rgba(10, 10, 10, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
  padding-bottom: 14px;
  color: #fff;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  height: 32px;
  line-height: 0;
}
.nav-logo img {
  height: 22px;
  width: auto;
  display: block;
}
.nav-logo.nav-logo--rheolyse img {
  height: 48px;
}
.nav-menu {
  display: flex; gap: 28px; justify-self: center; list-style: none;
}
.nav-menu a { position: relative; padding: 4px 0; }
.nav-menu a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
}
.nav-menu a:hover::after { transform: scaleX(1); }
.nav-right {
  justify-self: end; display: flex; gap: 20px; align-items: center;
}
.nav-cta {
  padding: 10px 18px; border: 1px solid currentColor;
  border-radius: calc(var(--radius, 100px));
  transition: background 0.3s, color 0.3s;
}
.nav-cta:hover { background: #fff; color: #000; }
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-menu { display: none; }
}


.breadcrumb {
  position: absolute;
  top: 88px;
  left: var(--gutter);
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--linked-mute);
  display: flex;
  gap: 14px;
  align-items: center;
}
.breadcrumb a:hover { color: var(--linked-ink); }
.breadcrumb .sep { opacity: 0.4; }


.ph-hero {
  min-height: 100vh;
  position: relative;
  background: var(--linked-bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 160px var(--gutter) 80px;
  overflow: hidden;
}


.ph-hero::before {
  content: attr(data-idx);
  position: absolute;
  right: -40px;
  bottom: -120px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(400px, 60vw, 900px);
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: var(--accent);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.ph-hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.ph-pack {
  width: clamp(380px, 44vw, 680px);
  aspect-ratio: 26 / 54;
  max-height: calc(100vh - 240px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.1));
}
.ph-pack img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ph-pack-body {
  position: absolute;
  inset: 0;
  background: #fff;
  border: 1px solid var(--linked-line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}
.ph-pack-band {
  position: absolute;
  left: 0; right: 0;
  top: 25%;
  height: 30%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ph-pack-topnote {
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--linked-mute);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}
.ph-pack-botnote {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--linked-ink);
  text-transform: uppercase;
  line-height: 1.6;
}
.ph-pack-botnote strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.ph-hero-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  z-index: 1;
  position: relative;
}

.ph-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--linked-mute);
  display: flex;
  gap: 14px;
  align-items: center;
}
.ph-idx .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.ph-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(72px, 12vw, 220px);
  line-height: 0.82;
  letter-spacing: -0.055em;
  margin-top: 20px;
}
.ph-claim {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--linked-ink);
  max-width: 480px;
  margin-top: 32px;
}


.ph-keyspecs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--linked-line);
  padding-top: 28px;
}
.ph-keyspec .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--linked-mute);
  margin-bottom: 10px;
}
.ph-keyspec .v {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--linked-ink);
}
.ph-keyspec .u {
  font-family: var(--font-mono);
  font-size: 11px;
  margin-left: 4px;
  color: var(--linked-mute);
}

.ph-hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: calc(var(--radius, 100px));
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 0.25s, background 0.3s, color 0.3s;
}
.btn.primary {
  background: var(--linked-ink);
  color: var(--linked-bg);
}
.btn.primary:hover { transform: translateY(-2px); }
.btn.ghost {
  border: 1px solid var(--linked-ink);
}
.btn.ghost:hover { background: var(--linked-ink); color: var(--linked-bg); }
.btn .arr {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
}

@media (max-width: 900px) {
  .ph-hero { grid-template-columns: 1fr; padding: 120px 24px 60px; min-height: auto; }
  .ph-hero::before { font-size: clamp(180px, 50vw, 400px); right: -20px; bottom: -60px; }
  .ph-hero-media { order: -1; min-height: auto; padding: 24px 0; }
  .ph-pack { width: min(60vw, 220px); height: auto; aspect-ratio: 26/54; max-height: 50vh; }
  .ph-keyspecs { grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 20px; }
  .ph-keyspec .v { font-size: 28px; }
  .ph-keyspec .u { font-size: 9px; }
  .breadcrumb { top: 72px; left: 24px; }
}


.section {
  padding: var(--section-y) var(--gutter);
  position: relative;
}
.pure { background: var(--pure-bg); color: var(--pure-ink); }
.linked { background: var(--linked-bg); color: var(--linked-ink); }

.grid-max {
  max-width: 1680px;
  margin: 0 auto;
}

.chapter { display: none !important;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: baseline;
  padding-bottom: 20px;
  border-bottom: 1px solid currentColor;
  margin-bottom: 60px;
  border-color: rgba(0,0,0,0.12);
}
.pure .chapter { border-color: rgba(255,255,255,0.15); }
.chapter-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--linked-mute);
}
.pure .chapter-num { color: var(--pure-mute); }
.chapter-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.h-display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 6.5vw, 100px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  max-width: 1200px;
}


.anat {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.anat-text h2 { margin-bottom: 28px; }
.anat-text p {
  font-size: 17px;
  line-height: 1.6;
  max-width: 480px;
  color: var(--linked-ink);
}
.anat-zones {
  margin-top: 40px;
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--linked-line);
}
.anat-zone {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--linked-line);
  transition: padding 0.3s;
}
.anat-zone:hover { padding-left: 8px; }
.anat-zone .n {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.anat-zone .name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.anat-zone .depth {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--linked-mute);
}


.anat-diagram {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--linked-paper);
  border-radius: 2px;
  overflow: hidden;
}
.anat-diagram img { width: 100%; height: 100%; object-fit: cover; display: block; }
.anat-diagram svg { width: 100%; height: 100%; }
.anat-diagram .face-path {
  fill: none;
  stroke: var(--linked-ink);
  stroke-width: 0.8;
}
.anat-diagram .feature {
  fill: none;
  stroke: var(--linked-ink);
  stroke-width: 0.5;
  opacity: 0.4;
}
.anat-diagram .zone-marker {
  fill: var(--accent);
  opacity: 0.18;
  stroke: var(--accent);
  stroke-width: 0.6;
  stroke-dasharray: 2 2;
}
.anat-diagram .zone-pin {
  fill: var(--accent);
}
.anat-diagram .zone-label {
  font-family: var(--font-mono);
  font-size: 5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  fill: var(--linked-ink);
}

@media (max-width: 900px) {
  .anat { grid-template-columns: 1fr; gap: 40px; }
}


.rheo {
  background: var(--linked-bg);
  color: var(--linked-ink);
  padding: var(--section-y) var(--gutter);
}
.rheo .chapter { border-color: rgba(0,0,0,0.10); }
.rheo-head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
}
.rheo-head p {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  color: var(--linked-mute);
  max-width: 420px;
  align-self: end;
}

.rheo-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--linked-line);
  border: 1px solid var(--linked-line);
}
.rheo-card {
  background: var(--linked-bg);
  padding: 40px 32px;
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}
.rheo-card .sym {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.rheo-card .sym em { font-style: italic; font-weight: 300; color: var(--accent); }
.rheo-card .nm {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--linked-mute);
  margin-top: 8px;
}
.rheo-card .val {
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 88px;
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.rheo-card .val .unit {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--linked-mute);
  margin-left: 8px;
  letter-spacing: 0.1em;
}
.rheo-card .scale {
  margin-top: 20px;
  height: 6px;
  position: relative;
  background: rgba(0,0,0,0.06);
  overflow: hidden;
}
.rheo-card .scale .fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--accent);
  transform-origin: left;
  animation: grow 1.4s cubic-bezier(.7,0,.2,1) both;
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.rheo-card .range {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--linked-mute);
  text-transform: uppercase;
}
.rheo-card .desc {
  margin-top: auto;
  font-size: 13px;
  line-height: 1.55;
  color: var(--linked-ink);
  opacity: 0.75;
  padding-top: 28px;
}


.rheo-compare {
  margin-top: 96px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: start;
}
.rheo-compare-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--linked-mute);
}
.rheo-compare-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  align-items: end;
  height: 240px;
  position: relative;
  border-bottom: 1px solid var(--linked-line);
  padding-bottom: 8px;
}
.rheo-compare-bar {
  background: var(--linked-line);
  position: relative;
  transform-origin: bottom;
  transform: scaleY(0);
  animation: grow-up 1s cubic-bezier(.7,0,.2,1) forwards;
}
@keyframes grow-up { to { transform: scaleY(1); } }
.rheo-compare-bar.active { background: var(--accent); }
.rheo-compare-bar .v {
  position: absolute;
  top: -24px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--linked-ink);
  letter-spacing: 0.1em;
}
.rheo-compare-labels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 14px;
}
.rheo-compare-labels span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--linked-mute);
  text-align: center;
  line-height: 1.4;
}
.rheo-compare-labels span.active { color: var(--accent); }

@media (max-width: 900px) {
  .rheo-head { grid-template-columns: 1fr; margin-bottom: 48px; }
  .rheo-cards { grid-template-columns: 1fr; }
  .rheo-card { padding: 28px 24px; min-height: auto; }
  .rheo-card .sym { font-size: 40px; }
  .rheo-card .val { font-size: 56px; margin-top: 20px; }
  .rheo-card .val .unit { font-size: 12px; }
  .rheo-card .desc { padding-top: 20px; font-size: 12px; }
  .rheo-compare { grid-template-columns: 1fr; gap: 16px; margin-top: 56px; }
  .rheo-compare-bars { gap: 6px; height: 200px; }
  .rheo-compare-labels { gap: 6px; }
  .rheo-compare-labels span { font-size: 8px; letter-spacing: 0.08em; line-height: 1.2; }
  .rheo-compare-bar .v { font-size: 9px; top: -20px; }
}


.indic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--linked-line);
  border: 1px solid var(--linked-line);
}
.indic-item {
  background: var(--linked-bg);
  padding: 40px 32px 48px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.3s;
}
.indic-item:hover { background: var(--linked-paper); }
.indic-item .n {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.indic-item h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.indic-item p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--linked-mute);
  margin-top: auto;
}

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


.behaviour {
  background: var(--linked-bg);
}
.behaviour-copy {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 1400px;
  margin: 0 auto;
}
.behaviour-copy .mute { color: var(--linked-mute); }
.behaviour-copy em {
  font-style: italic;
  color: var(--accent);
}

.behaviour-trio {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
.behaviour-trio .item { padding-top: 24px; border-top: 1px solid var(--linked-line); }
.behaviour-trio .eyebrow { margin-bottom: 14px; }
.behaviour-trio p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--linked-ink);
}

@media (max-width: 900px) {
  .behaviour-trio { grid-template-columns: 1fr; gap: 32px; }
}


.specs {
  background: var(--linked-bg);
  color: var(--linked-ink);
  padding: var(--section-y) var(--gutter);
}
.specs .chapter { border-color: rgba(0,0,0,0.10); }
.specs .chapter-num, .specs .chapter-title { color: var(--linked-ink); }
.specs .chapter-num { color: var(--linked-mute); }

.spec-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 60px;
  align-items: end;
}
.spec-head h2 { color: var(--linked-ink); }
.spec-head p {
  color: var(--linked-mute);
  font-size: 17px;
  line-height: 1.55;
  max-width: 420px;
}

.spec-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
}
.spec-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--linked-line);
  align-items: baseline;
}
.spec-row:last-child { border-bottom: 1px solid var(--linked-line); }
.spec-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--linked-mute);
}
.spec-val {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.spec-val em {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--linked-mute);
  margin-left: 8px;
  font-style: normal;
}

@media (max-width: 900px) {
  .spec-head { grid-template-columns: 1fr; }
  .spec-table { grid-template-columns: 1fr; }
}


.protocol {
  padding: var(--section-y) var(--gutter);
}
.protocol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--linked-line);
  border: 1px solid var(--linked-line);
  margin-top: 40px;
}
.proto-cell {
  background: var(--linked-bg);
  padding: 40px 36px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.proto-cell.wide { grid-column: 1 / -1; }
.proto-cell .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.proto-cell h4 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.proto-cell .detail {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--linked-mute);
  margin-bottom: 16px;
}
.proto-cell p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--linked-ink);
}


.depth-diagram {
  margin-top: 24px;
  border-top: 1px solid var(--linked-line);
  padding-top: 20px;
}
.depth-diagram .layer {
  display: grid;
  grid-template-columns: 120px 1fr 60px;
  gap: 16px;
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  align-items: center;
}
.depth-diagram .layer .n { color: var(--linked-mute); }
.depth-diagram .layer .bar {
  height: 10px;
  background: var(--linked-line);
  position: relative;
}
.depth-diagram .layer .bar .mark {
  position: absolute;
  top: -3px; bottom: -3px;
  background: var(--accent);
  border-radius: 2px;
}
.depth-diagram .layer .d { color: var(--linked-ink); text-align: right; }

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


.ba {
  background: var(--linked-paper);
  padding: var(--section-y) var(--gutter);
}
.ba-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 48px;
  gap: 32px;
  flex-wrap: wrap;
}
.ba-head p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--linked-mute);
  max-width: 420px;
}
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #ddd;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  max-width: 1400px;
  margin: 0 auto;
}
.ba-slider.is-dragging { cursor: grabbing; }
.ba-slider.is-dragging .ba-handle { cursor: grabbing; }
.ba-slider.is-dragging .ba-drag,
.ba-slider.is-dragging .ba-handle {
  transition: none;
}
.ba-half {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 72px;
  letter-spacing: -0.04em;
  color: rgba(0,0,0,0.12);
}
.ba-half.before {
  background: linear-gradient(135deg, #e8e8e8, #c8c8c8);
}
.ba-half.after {
  background: linear-gradient(135deg, #EDEDED, #e0e0e0);
  clip-path: inset(0 0 0 50%);
}
.ba-half img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.ba-drag {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  transform: translateX(-1px);
  pointer-events: none;
  box-shadow: 0 0 24px rgba(0,0,0,0.3);
}
.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.ba-label {
  position: absolute;
  top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 8px 14px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  pointer-events: none;
}
.ba-label.l { left: 20px; }
.ba-label.r { right: 20px; }
.ba-note {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--linked-mute);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}


.cross {
  padding: var(--section-y) var(--gutter);
  background: var(--linked-bg);
}
.cross-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 48px;
}
.cross-head h2 { max-width: 700px; }
.cross-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cross-card {
  position: relative;
  padding: 32px;
  min-height: 360px;
  border: 1px solid var(--linked-line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s, border-color 0.3s;
  overflow: hidden;
}
.cross-card:hover {
  transform: translateY(-4px);
  border-color: var(--linked-ink);
}
.cross-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 3px;
  width: 48px;
  background: var(--_a);
  transition: width 0.4s;
}
.cross-card:hover::before { width: 100%; }
.cross-card-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--linked-mute);
}
.cross-card-top .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--_a);
}
.cross-img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  min-height: 240px;
}
.cross-img img {
  width: auto;
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.10));
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.cross-card:hover .cross-img img { transform: translateY(-4px) scale(1.04); }
.cross-card h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.cross-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--linked-mute);
}
.cross-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-top: 16px;
  border-top: 1px solid var(--linked-line);
}

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


.cta-prod {
  background: var(--pure-bg);
  color: var(--pure-ink);
  padding: calc(var(--section-y) * 1.1) var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-prod::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at center, var(--accent) 0%, transparent 40%);
  opacity: 0.12;
  pointer-events: none;
}
.cta-prod h2 {
  position: relative;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 7vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  max-width: 1400px;
  margin: 0 auto 48px;
}
.cta-prod h2 em { font-style: italic; color: var(--accent); }
.cta-prod .actions {
  position: relative;
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-prod .btn.primary { background: var(--pure-ink); color: var(--pure-bg); }
.cta-prod .btn.ghost  { border: 1px solid var(--pure-line); color: var(--pure-ink); }
.cta-prod .btn.ghost:hover { background: var(--pure-ink); color: var(--pure-bg); border-color: var(--pure-ink); }
.cta-prod .meta {
  position: relative;
  margin-top: 64px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pure-mute);
}


.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s, transform 0.9s; }
.reveal.in-view { opacity: 1; transform: none; }


.footer { position: relative; }
.back-to-top {
  position: absolute;
  right: var(--gutter, 48px);
  top: -32px;
  z-index: 4;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--pure-line, rgba(0,0,0,0.12));
  background: var(--pure-bg, #fff);
  color: var(--pure-ink, #000);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}
.back-to-top:hover {
  background: var(--pure-ink, #000);
  color: var(--pure-bg, #fff);
  border-color: var(--pure-ink, #000);
  transform: translateY(-4px);
}
.back-to-top svg { width: 18px; height: 18px; transition: transform 0.35s ease; }
.back-to-top:hover svg { transform: translateY(-2px); }
.back-to-top .btt-label {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--pure-mute, rgba(0,0,0,0.5));
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.back-to-top:hover .btt-label { opacity: 1; transform: translateY(-50%) translateX(-4px); }
@media (max-width: 900px) {
  .back-to-top { top: -24px; right: 24px; width: 48px; height: 48px; }
  .back-to-top .btt-label { display: none; }
}

body.theme-hydrafine .ba {
  background: var(--linked-bg);
}

body.theme-pure {
  background: var(--pure-bg);
  color: var(--pure-ink);
}
body.theme-pure ::selection { background: var(--accent); color: var(--pure-ink); }
body.theme-pure .ph-num { opacity: 0.16; }
body.theme-pure .ph-pack { filter: drop-shadow(0 40px 80px rgba(0,0,0,0.6)); }
body.theme-pure .ph-pack-card {
  background: var(--pure-paper);
  border-color: var(--pure-line);
}
body.theme-pure .linked { background: var(--pure-bg); color: var(--pure-ink); }
body.theme-pure .linked .chapter { border-color: rgba(255,255,255,0.15); }
body.theme-pure .linked .chapter-num { color: var(--pure-mute); }
body.theme-pure .rheo {
  background: var(--pure-bg);
  color: var(--pure-ink);
}
body.theme-pure .rheo .chapter { border-color: rgba(255,255,255,0.15); }
body.theme-pure .rheo-grid {
  background: var(--pure-line);
  border-color: var(--pure-line);
}
body.theme-pure .rheo-card { background: var(--pure-bg); }
body.theme-pure .scale { background: rgba(255,255,255,0.08); }
body.theme-pure .rheo-compare-bar { background: var(--pure-line); }
body.theme-pure .specs {
  background: var(--pure-bg);
  color: var(--pure-ink);
}
body.theme-pure .specs .chapter { border-color: rgba(255,255,255,0.15); }
body.theme-pure .specs .chapter-num,
body.theme-pure .specs .chapter-title,
body.theme-pure .spec-head h2 { color: var(--pure-ink); }
body.theme-pure .specs .chapter-num,
body.theme-pure .spec-head p,
body.theme-pure .spec-label,
body.theme-pure .spec-note { color: var(--pure-mute); }
body.theme-pure .spec-row { border-top-color: var(--pure-line); }
body.theme-pure .spec-row:last-child { border-bottom-color: var(--pure-line); }
body.theme-pure .cross-img img { filter: drop-shadow(0 12px 24px rgba(0,0,0,0.45)); }
body.theme-pure .cross-card--light {
  background: #fff;
  color: #000;
  border-color: rgba(0,0,0,0.10);
}
body.theme-pure .cross-card--light:hover { border-color: rgba(0,0,0,0.85); }
body.theme-pure .cross-card--light .cross-card-top { color: rgba(0,0,0,0.55); }
body.theme-pure .cross-card--light h4 { color: #000; }
body.theme-pure .cross-card--light p { color: rgba(0,0,0,0.65); }
body.theme-pure .cross-card--light .cross-card-foot {
  color: rgba(0,0,0,0.55);
  border-top-color: rgba(0,0,0,0.10);
}
body.theme-pure .cross-card--light .cross-img img {
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.15));
}
