/* Use the comparison section's display face throughout the main section titles. */
:root {
  --section-face: 'Barlow Condensed', 'Arial Narrow', sans-serif; }
#hero-title, #liquidity-title, .liquidity-static-label, #research-title,
#faq-title, .closing h2, .research-card h3 {
  font-family: var(--section-face);
  font-weight: 600;
  letter-spacing: -.035em;
}

.research-section {
  position: relative;
  padding: clamp(32px, 5.4vw, 90px) 4.5%;
  --research-shade: linear-gradient(105deg, #160d0ceb, #1f0d0b63 46%, #1a0b0833);
  background: var(--research-shade),
              #79340f url(research/dashboard-folds.webp) 52% center / cover no-repeat;
  border-bottom: 1px solid #332b25;
  color: #fff3df;
}
.research-waves {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.research-swell {
  position: absolute;
  inset: -6% -7%;
  animation: research-swell 7s ease-in-out infinite alternate;
}
.research-folds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 300%;
  height: 100%;
  animation: research-travel 28s linear infinite;
}
.research-folds::before, .research-folds i, .research-folds::after {
  content: '';
  background: url(research/dashboard-folds.webp) 52% center / cover no-repeat;
}
.research-folds i { transform: scaleX(-1); }
.research-waves::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--research-shade);
}
@keyframes research-travel {
  from { transform: translate3d(-66.6666667%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}
@keyframes research-swell {
  from { transform: translateY(-2%) skewX(-2.4deg); }
  to   { transform: translateY(2%) skewX(2.4deg); }
}
.research-section.wave-offscreen :is(.research-folds,.research-swell) {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .research-waves { display: none; }
}
.research-bookmark { position: absolute; top: 0; }
.research-board {
  --pad: clamp(25px, 2.65vw, 44px);
  position: relative;
  margin-inline: auto;
  max-width: 1480px;
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr);
  gap: clamp(14px, 1.5vw, 24px);
}
.research-stack { display: flex; flex-direction: column; gap: inherit; min-width: 0; }
.research-heading {
  grid-area: heading;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  padding: 0 var(--pad) clamp(16px, 2vw, 32px) 0;
}
.research-kicker, .research-chart-label, .research-file {
  font: 500 clamp(10px, .71vw, 12px)/1.4 var(--mono);
}
#research-title {
  max-width: 15ch;
  font-size: clamp(53px, 5.8vw, 100px);
  line-height: .94;
  margin: 0 0 18px;
  text-wrap: balance;
  color: #fff3df;
}
.research-heading p {
  max-width: 49ch;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.48;
  color: #ffead4;
}
.research-card {
  min-width: 0;
  position: relative;
  padding: var(--pad);
  border-radius: 24px;
}
/* Static rendering of LiquidButton's two decorative layers. Both sit
   behind the native controls so inputs and labels keep their hit targets. */
:where(.liquid-glass) { position: relative; }
.liquid-glass {
  isolation: isolate;
  --surface-tint: transparent;
}
.liquid-glass > :is(.liquid-lens,.liquid-rim) {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.liquid-glass > .liquid-lens {
  z-index: -2;
  overflow: hidden;
  isolation: isolate;
  background: var(--surface-tint);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.liquid-glass > .liquid-rim {
  z-index: -1;
  box-shadow: 0 0 8px rgba(0,0,0,0.03),
    0 2px 6px rgba(0,0,0,0.08),
    inset 3px 3px 0.5px -3.5px rgba(255,255,255,0.09),
    inset -3px -3px 0.5px -3.5px rgba(255,255,255,0.85),
    inset 1px 1px 1px -0.5px rgba(255,255,255,0.6),
    inset -1px -1px 1px -0.5px rgba(255,255,255,0.6),
    inset 0 0 6px 6px rgba(255,255,255,0.12),
    inset 0 0 2px 2px rgba(255,255,255,0.06),
    0 0 12px rgba(0,0,0,0.15);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .liquid-glass {
    transition: scale 300ms cubic-bezier(.4,0,.2,1), color 300ms, box-shadow 300ms;
  }
  .liquid-glass:hover:not(:disabled):not(:has(.liquid-glass:hover)) { scale: 1.05; }
}
.hero .pool-card {
  --pool-radius: 24px;
  position: relative;
  isolation: isolate;
  background: #000;
  box-shadow: none;
  border: 0;
  border-radius: var(--pool-radius);
  backdrop-filter: none;
}
.pool-metal-edge {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #686868, #343434 35%, #343434 76%, #e8e8e8 89%, #4b4b4b);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.pool-metal-edge canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
#swap-panel .amount-box { background: #000; }
.research-card, .liquidity-callout { --surface-tint: rgb(43 29 23 / 32%); }
.hero-ctas { display: flex; }
#preview-swap {
  --surface-tint: linear-gradient(115deg, rgb(164 164 164 / 15%), rgb(132 132 132 / 15%));
  background: transparent;
  color: #fff;
  border-radius: 9999px;
  box-shadow: none;
}
.hero .button-orange {
  --surface-tint: linear-gradient(115deg, #fa5726dc, #fa5726f0 62%, #ff7949df);
  border-radius: 12px;
}
.hero .button-orange:hover {
  --surface-tint: linear-gradient(115deg, #ff7346eb, #ff814ff0);
}
.hero-ctas .button, .hero .pool-card .button-orange, .scene-app-link.liquid-glass { border-radius: 9999px; }
.hero-ctas .button:hover {
  transform: none;
}
.hero-ctas .button, .pool-card .button-orange {
  background: transparent;
  box-shadow: none;
}
.pool-card .button-orange:hover { transform: none; }
.button .preview-label { display: contents; font: inherit; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  #orriss-nav .navbar-glass {
    transition: inset 700ms cubic-bezier(.175,.885,.32,2.2),
                border-radius 700ms cubic-bezier(.175,.885,.32,2.2);
  }
  #orriss-nav nav:hover > .navbar-glass { inset: -4px; }
}
.pool-card .amount-box { background: #1a1a17cc; border-radius: 12px; }
.pool-card .receive { background: #161613c9; }
.pool-card .token-chip { background: #252520db; }
.research-kicker {
  display: block;
  color: #f0b89a;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.research-card h3 {
  color: #fff3df;
  font-size: clamp(31px, 2.7vw, 46px);
  line-height: 1.04;
}
.research-kicker + h3 { margin-top: 3px; }
.research-trades { grid-area: trades; }
.research-fees {
  grid-area: fees;
}
.research-card dl, .research-card dd { margin: 0; }
.research-switch { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.research-sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.research-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 11px;
  margin-top: 13px;
  border-block: 1px solid #eac3a733;
  color: #dfc7b8;
  font-size: 13px;
}
.research-segment {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: #0c0a0bd9;
  border: 1px solid #c3a29455;
}
.research-segment label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 61px;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: inherit;
  color: #e3cbbb;
  cursor: pointer;
  font: 500 12px/1.15 var(--sans);
}
.research-segment label:hover { color: white; background: #4b3028; }
.research-first:checked ~ .research-controls label:first-child,
.research-second:checked ~ .research-controls label:last-child {
  background: #ff6932;
  color: #1b0c06;
}
.research-first:focus-visible ~ .research-controls label:first-child,
.research-second:focus-visible ~ .research-controls label:last-child,
.research-report:focus-visible { outline: 2px solid #fff6d9; outline-offset: 3px; }
.research-first:checked ~ .research-case-second,
.research-second:checked ~ .research-case-first { display: none; }
.research-stats, .research-sample-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 15px;
}
.research-stats, .research-fee-delta { padding-block: 15px; }
.research-stats strong, .research-fee-delta strong, .research-sample-stats dd {
  display: block;
  font: 600 clamp(46px, 4.25vw, 75px)/1 var(--section-face);
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}
.research-stats > div + div {
  border-left: 1px solid #dcb59840;
  padding-left: clamp(12px, 1.5vw, 24px);
}
.research-stats > div:first-child strong, .research-fee-delta strong { color: #ffa677; }
.research-stats span, .research-fee-delta span, .research-sample-stats dt {
  display: block; font-size: 13px; line-height: 1.35; color: #e3d0c1;
}
.research-stats span, .research-fee-delta span { margin-top: 4px; }
.research-chart-label {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  text-transform: uppercase; letter-spacing: .045em; color: #dfc6b4;
  padding-block: 7px 6px;
}
.research-bars > div {
  display: grid;
  grid-template-columns: 61px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding-block: 4px;
}
.research-bars dt, .research-ledger dt { font-size: 13px; color: #eddece; }
.research-bars dd { display: flex; align-items: center; gap: 10px; }
.research-bars i {
  display: block; flex: 1; height: 8px; border-radius: 4px;
  background: #fff0df14;
}
.research-bars i::after {
  content: ''; display: block; height: 100%; width: var(--bar); border-radius: inherit;
  background: #d9c4b5;
}
.research-bars > div + div i::after { background: linear-gradient(90deg,#da4b16,#ff9255); }
.research-bars dd span, .research-ledger dd {
  font: 500 13px/1.3 var(--mono);
  font-variant-numeric: tabular-nums;
}
.research-bars dd span { width: 6ch; text-align: right; }
.research-ledger > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  border-top: 1px solid #eac3a72b;
  padding-block: 8px;
}
.research-card .research-note, .research-sample > p {
  margin-top: 12px; color: #f4e3d7;
  font-size: clamp(12px, .85vw, 14px); line-height: 1.42;
}
.research-sample { grid-area: sample; padding-block: clamp(22px, 2vw, 34px); }
.research-sample h3 { font-size: clamp(23px, 1.8vw, 32px); }
.research-sample .research-sample-stats { margin-top: 10px; }
.research-sample-stats div { display: flex; flex-direction: column-reverse; align-items: flex-start; }
.research-sample-stats dd { font-size: clamp(32px, 2.7vw, 46px); }
.research-sample > p { margin-top: 8px; }
.research-report {
  grid-area: report;
  flex: 1;
  display: flex;
  justify-content: space-between; align-items: center; gap: 14px;
  text-decoration: none;
}
.research-report {
  --surface-tint: linear-gradient(115deg, #e16a33b8, #f78246cc 62%, #ffa253c4);
}
.research-report .research-kicker, .research-report h3, .research-file { color: #21110d; }
.research-report h3 { margin: 6px 0 8px; }
.research-file { font-weight: 500; }
.research-paper-icon {
  flex: none; display: grid; place-items: center; border-radius: 50%;
  width: 44px; height: 44px;
  background: #201211; color: #ffe8d0;
  border: 1px solid #edb68999;
}
.research-report:hover .research-paper-icon { background: #ffe6ce; color: #22100b; }
@media (max-width: 850px) {
  .research-stack { display: contents; }
  .research-section { padding-inline: 4%; }
  .research-board {
    grid-template-areas: 'heading heading' 'trades fees' 'sample report';
    grid-template-columns: repeat(2,minmax(0,1fr));
    grid-template-rows: auto;
  }
  .research-heading { padding-block: 22px 26px; }
  #research-title { max-width: 17ch; }
  .research-card { --pad: clamp(20px, 3vw, 25px); }
  .research-segment label { min-width: 53px; padding-inline: 9px; }
}
@media (max-width: 660px) {
  .research-board {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas: 'heading' 'trades' 'fees' 'sample' 'report';
  }
  .research-heading { padding: 0 0 16px; }
  #research-title { max-width: 18ch; font-size: clamp(37px, 10.6vw, 65px); }
  .research-stats strong, .research-fee-delta strong { font-size: clamp(45px, 10vw, 65px); }
  .research-report { padding-block: 20px; }
  .research-segment label { min-height: 34px; }
}
@media (max-width: 370px) {
  .research-card { --pad: 18px; }
  .research-controls { gap: 5px; }
  .research-stats { gap: 8px; }
  .research-stats > div + div { padding-left: 8px; }
}

@media (min-width: 851px) and (max-height: 1000px) {
  #research.research-section { padding-block: 84px clamp(12px, 2vh, 20px); }
  .research-board { --pad: clamp(12px, 2vh, 20px); gap: clamp(10px, 1.5vh, 15px); }
  .research-heading { padding-bottom: 4px; }
  #research-title { font-size: clamp(46px, 7vh, 70px); margin-bottom: 10px; }
  .research-heading p { font-size: 16px; }
  .research-card h3 { font-size: clamp(24px, 3.6vh, 34px); }
  .research-controls { margin-top: 7px; padding-block: 5px; }
  .research-stats, .research-fee-delta { padding-block: 8px; }
  .research-stats strong, .research-fee-delta strong { font-size: clamp(36px, 5.6vh, 55px); }
  .research-ledger > div { padding-block: 4px; }
  .research-card .research-note { margin-top: 7px; }
  .research-sample, .research-report { padding-block: var(--pad); }
  .research-sample-stats dd { font-size: clamp(28px, 4vh, 38px); }
  .research-report h3 { margin-block: 2px; }
}
@media (min-width: 851px) and (max-height: 680px) {
  .research-board { --pad: 10px; gap: 8px; }
  .research-sample .research-sample-stats { margin-top: 4px; }
}

/* Keep each navigation destination in view until the reader scrolls on. */
.research-section, .launch-vision {
  min-block-size: 100vh;
  min-block-size: 100dvh;
  align-content: center;
}
@media (min-height: 850px) {
  .hero { min-block-size: 100vh; min-block-size: 100dvh; }
}

#research[data-background="shader"] { background: #000; }
.research-shader { display: none; }
#research[data-background="shader"] .research-shader { display: block; position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#research[data-background="shader"] .research-waves { display: none; }
