:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body.quant-lab-page {
  --accent: #d7c16a;
  --accent-2: #79e7ff;
  --accent-3: #ff6fb7;
  --bg: #070806;
  --fg: #f5f0e7;
  --muted: rgba(245, 240, 231, .68);
  --line: rgba(245, 240, 231, .16);
  --panel: rgba(255, 255, 255, .055);
  --panel-strong: rgba(0, 0, 0, .54);
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 15%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 31rem),
    radial-gradient(circle at 13% 76%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 28rem),
    linear-gradient(145deg, #050605 0%, var(--bg) 48%, #0b0d0a 100%);
  color: var(--fg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.quant-lab-page:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../noise.jpg");
  background-size: 360px;
  opacity: .18;
  mix-blend-mode: screen;
}

body.quant-lab-page:after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(circle at 50% 46%, black 0%, transparent 72%);
  opacity: .45;
}

.ql-page-shell {
  position: relative;
  z-index: 1;
}

.ql-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 64px);
  mix-blend-mode: difference;
}

.ql-nav img {
  width: 86px;
  height: auto;
  display: block;
}

.ql-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.ql-nav a {
  color: inherit;
  text-decoration: none;
}

.ql-hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(380px, 1.12fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: end;
  padding: 128px clamp(20px, 5vw, 78px) 58px;
}

.ql-hero > *,
.ql-narrative > * {
  min-width: 0;
}

.ql-kicker,
.ql-section-label {
  display: inline-flex;
  border-bottom: 1px solid currentColor;
  padding-bottom: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 12px;
  font-weight: 800;
}

.ql-hero h1,
.ql-story h2 {
  margin: 22px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.ql-hero h1 {
  max-width: 780px;
  font-size: clamp(56px, 8.4vw, 142px);
  line-height: .91;
}

.ql-hero-copy {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(17px, 1.75vw, 24px);
  line-height: 1.52;
  overflow-wrap: anywhere;
}

.ql-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
  max-width: 720px;
}

.ql-stat {
  min-height: 98px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(0, 0, 0, .22);
  backdrop-filter: blur(14px);
}

.ql-stat strong {
  display: block;
  color: var(--fg);
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 500;
  line-height: 1;
}

.ql-stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.ql-visual-card {
  position: relative;
  min-height: min(64vh, 700px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel-strong);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .46);
}

.ql-visual-card:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent);
}

.ql-visual-card canvas {
  width: 100%;
  height: 100%;
  min-height: min(64vh, 700px);
  display: block;
}

.ql-chart-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.ql-scenario {
  color: var(--accent);
}

.ql-control-row {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.ql-control-row button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 10px 13px;
  background: rgba(0, 0, 0, .42);
  color: var(--fg);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .11em;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.ql-control-row button:hover,
.ql-control-row button[aria-pressed="true"] {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 78%, white 10%);
  background: color-mix(in srgb, var(--accent) 18%, rgba(0,0,0,.55));
}

.ql-narrative {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
  padding: 28px clamp(20px, 5vw, 78px) 96px;
}

.ql-story {
  position: sticky;
  top: 108px;
}

.ql-story h2 {
  max-width: 780px;
  font-size: clamp(42px, 6.5vw, 106px);
  line-height: .94;
}

.ql-story p {
  max-width: 670px;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.ql-story p + p {
  margin-top: 18px;
}

.ql-extra-narrative {
  padding-top: 0;
}

.ql-extra-narrative .ql-story {
  position: static;
}

.ql-extra-narrative .ql-story-secondary h2 {
  font-size: clamp(38px, 5.2vw, 82px);
}

.ql-points {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.ql-point {
  border-left: 2px solid color-mix(in srgb, var(--accent) 64%, white 6%);
  padding: 5px 0 5px 18px;
  color: rgba(245, 240, 231, .84);
  font-size: 15px;
  line-height: 1.5;
}

.ql-code-panel,
.ql-theory-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, .43);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.ql-panel-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 15px 17px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.ql-code-panel pre {
  margin: 0;
  padding: 21px;
  max-height: 440px;
  overflow: auto;
  color: rgba(245, 240, 231, .82);
  font-size: clamp(11px, 1.35vw, 14px);
  line-height: 1.65;
  tab-size: 2;
}

.ql-theory-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.ql-theory-item {
  min-height: 128px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, .035);
}

.ql-theory-item strong {
  display: block;
  margin-bottom: 10px;
  color: var(--fg);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.ql-theory-item span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.ql-footer-cta {
  padding: 10px clamp(20px, 5vw, 78px) 72px;
}

.ql-footer-cta a,
.ql-project-nav a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 900;
}

.ql-footer-cta a:after {
  content: "";
  width: 72px;
  height: 1px;
  background: currentColor;
}

.ql-project-nav {
  padding: 0 clamp(20px, 5vw, 78px) 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}

.ql-project-nav a {
  min-width: 120px;
}

.ql-project-nav a:nth-child(2) {
  justify-content: center;
}

.ql-project-nav a:last-child {
  justify-content: flex-end;
}

.ql-project-nav .ql-disabled {
  opacity: .26;
  pointer-events: none;
}

.ql-gallery-section {
  padding: 0 clamp(20px, 5vw, 78px) 84px;
}

.ql-gallery-head {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 28px;
  margin-bottom: 24px;
}

.ql-gallery-head p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.55;
}

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

.ql-gallery-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, .38);
}

.ql-gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.ql-gallery-card figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.ql-gallery-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--fg);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.fisher-page {
  --accent: #d7c16a;
  --accent-2: #f5f0e7;
  --accent-3: #88937f;
  --bg: #090907;
}

.fisher-hero,
.kuramoto-hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(360px, 1.22fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
  padding: 122px clamp(18px, 5vw, 78px) 58px;
}

@media (min-width: 1201px) {
  .fisher-hero {
    grid-template-columns: minmax(0, .9fr) minmax(360px, .86fr);
    align-items: end;
  }

  .fisher-board-main {
    max-width: 760px;
    align-self: center;
    justify-self: end;
  }

  .fisher-gallery {
    max-width: 1180px;
    margin: 0 auto;
  }

  .fisher-board img {
    height: auto;
    min-height: 0;
    max-height: 620px;
    object-fit: contain;
  }
}

.fisher-copy h1,
.kuramoto-copy h1 {
  max-width: 860px;
  margin: 22px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 7.2vw, 118px);
  font-style: italic;
  font-weight: 400;
  line-height: .94;
}

.fisher-copy p,
.kuramoto-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.55;
}

.fisher-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 38px);
  padding: 22px clamp(18px, 5vw, 78px) 90px;
}

.fisher-board {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, .34);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .28);
}

.fisher-board-main {
  align-self: stretch;
}

.fisher-board-wide {
  grid-column: 1 / -1;
}

.fisher-board img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.quant-board-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  padding: 0 clamp(20px, 5vw, 78px) 84px;
}

.quant-board-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, .36);
}

.quant-text-section {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
  padding: 0 clamp(20px, 5vw, 78px) 96px;
}

.quant-text-card {
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

.quant-text-card span,
.mf-case-kicker {
  display: inline-flex;
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.quant-text-card h2 {
  margin: 22px 0 16px;
  color: var(--fg);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6.5vw, 106px);
  font-style: italic;
  font-weight: 400;
  line-height: .94;
  overflow-wrap: anywhere;
}

.quant-text-card p,
.quant-text-card li {
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.55;
}

.quant-text-card ul {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding-left: 0;
  list-style: none;
}

.quant-text-card li {
  border-left: 2px solid color-mix(in srgb, var(--accent) 64%, white 6%);
  padding: 5px 0 5px 18px;
  color: rgba(245, 240, 231, .84);
  font-size: 15px;
  line-height: 1.5;
}

.mf-case-page {
  --accent: #ff9800;
  --accent-2: #f6d365;
  --accent-3: #64c7ff;
  --bg: #07100d;
}

body.quant-lab-page.mf-case-page {
  --fg: rgb(0, 0, 0);
  --muted: rgba(0, 0, 0, .62);
  --line: rgba(0, 0, 0, .12);
  color-scheme: light;
  background: rgb(255, 255, 255);
  color: rgb(0, 0, 0);
}

body.quant-lab-page.mf-case-page:before,
body.quant-lab-page.mf-case-page:after {
  display: none;
}

.mf-case-page .mil-wrapper,
.mf-case-page .mil-content,
.mf-case-page .mil-main-transition,
.mf-case-page .ens-case-study {
  background: rgb(255, 255, 255);
}

.mf-case-page .mil-frame .ql-nav-links {
  color: rgb(0, 0, 0);
}

.mf-case-page .mil-frame .mil-logo-img {
  filter: invert(1);
}

.mf-case-hero {
  min-height: 94svh;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, .88fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  padding: 128px clamp(20px, 5vw, 78px) 66px;
}

.mf-case-hero h1 {
  max-width: 850px;
  margin: 24px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 8vw, 128px);
  font-style: italic;
  font-weight: 400;
  line-height: .92;
}

.mf-case-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.55;
}

.mf-case-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 44px);
  background: rgba(0, 0, 0, .4);
}

.mf-case-panel strong {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: clamp(36px, 5vw, 76px);
  font-weight: 500;
  line-height: .95;
}

.mf-case-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 5vw, 76px);
  padding: 20px clamp(20px, 5vw, 78px) 92px;
}

.mf-case-story {
  display: grid;
  gap: 22px;
}

.mf-case-story article {
  border-left: 2px solid color-mix(in srgb, var(--accent) 62%, white 6%);
  padding-left: 22px;
}

.mf-case-story h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.8vw, 72px);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}

.mf-case-story p,
.mf-case-story li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.mf-case-story ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.mf-case-visual {
  position: sticky;
  top: 96px;
  align-self: start;
}

.mf-case-visual .ql-visual-card,
.mf-case-visual .ql-visual-card canvas {
  min-height: 720px;
}

.mf-project-graph {
  overflow: visible;
  background: transparent;
}

.mf-project-graph .ql-visual-card {
  min-height: 760px;
  margin-bottom: 90px;
  border-color: rgba(0, 0, 0, .12);
  background: rgb(255, 255, 255);
  box-shadow: 0 28px 95px rgba(0, 0, 0, .14);
}

.mf-project-graph .ql-visual-card canvas {
  min-height: 760px;
}

.mf-project-graph .ql-chart-head {
  color: rgba(0, 0, 0, .58);
  border-bottom-color: rgba(0, 0, 0, .1);
}

.mf-project-graph .ql-control-row button {
  border-color: rgba(0, 0, 0, .16);
  background: rgba(255, 255, 255, .72);
  color: rgb(0, 0, 0);
}

.mf-project-graph .ql-control-row button:hover,
.mf-project-graph .ql-control-row button[aria-pressed="true"] {
  border-color: rgba(0, 0, 0, .34);
  background: rgba(255, 152, 0, .18);
}

.mf-project-graph .ql-control-row button {
  white-space: nowrap;
}

.mf-case-page .mil-inner-banner h1,
.mf-case-page .mil-inner-banner .mil-thin,
.mf-case-page .mil-breadcrumbs li,
.mf-case-page .mil-breadcrumbs a,
.mf-case-page .mil-link.mil-dark,
.mf-case-page .ens-case-study h3,
.mf-case-page .ens-case-study h4,
.mf-case-page .ens-case-study p,
.mf-case-page .ens-case-study li,
.mf-case-page .mil-info,
.mf-case-page .mil-info .mil-dark,
.mf-case-page .mil-works-nav .mil-link {
  color: rgb(0, 0, 0);
}

.mf-case-page .mil-breadcrumbs,
.mf-case-page .ens-case-study p,
.mf-case-page .mil-info {
  opacity: .74;
}

.mf-case-page .ens-case-index,
.mf-case-page .ens-case-band span,
.mf-case-page .ens-theory-grid article span {
  color: var(--accent);
}

.mf-case-page .ens-case-band,
.mf-case-page .ens-theory-grid article {
  border-color: rgba(0, 0, 0, .12);
  background: rgb(242, 242, 242);
}

.mf-math-band p {
  font-size: 15px;
}

.mf-code-snippet {
  margin: 0;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 8px;
  padding: 24px;
  background: rgb(242, 242, 242);
  color: rgb(0, 0, 0);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-x: auto;
}

.kuramoto-page {
  --accent: #79e7ff;
  --accent-2: #d7c16a;
  --accent-3: #ff6fb7;
  --bg: #061017;
}

.kuramoto-hero {
  grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr);
}

.kuramoto-copy h1 {
  font-size: clamp(50px, 5.2vw, 92px);
}

.kuramoto-video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, .45);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .38);
}

.kuramoto-video-card video {
  display: block;
  width: 100%;
  min-height: min(62vh, 680px);
  object-fit: cover;
}

.kuramoto-lab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  padding: 20px clamp(18px, 5vw, 78px) 96px;
}

.kuramoto-panel,
.kuramoto-controls {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, .42);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.kuramoto-panel canvas {
  display: block;
  width: 100%;
  height: min(72vh, 720px);
  min-height: 520px;
}

.kuramoto-controls {
  align-self: stretch;
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 22px;
}

.kuramoto-controls label {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.kuramoto-controls input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.kuramoto-switches {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.kuramoto-switches button,
.kuramoto-reset {
  appearance: none;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--fg);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .11em;
  cursor: pointer;
}

.kuramoto-switches button[aria-pressed="true"],
.kuramoto-reset {
  border-color: color-mix(in srgb, var(--accent) 62%, white 10%);
  background: color-mix(in srgb, var(--accent) 18%, rgba(0, 0, 0, .48));
}

.kuramoto-narrative {
  padding-top: 0;
}

.kuramoto-narrative .ql-story h2 {
  font-size: clamp(46px, 5vw, 84px);
}

.ql-site-footer {
  margin-top: 40px;
  padding: 76px clamp(18px, 5vw, 78px) 54px;
  background: #000;
  color: var(--fg);
}

.ql-site-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(160px, .35fr));
  gap: clamp(34px, 5vw, 76px);
}

.ql-site-footer .mil-logo-img {
  width: 92px;
  height: auto;
  display: block;
  margin-bottom: 24px;
}

.ql-site-footer p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.ql-site-footer h6 {
  margin: 0 0 22px;
  color: var(--fg);
  font-size: 16px;
}

.ql-site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ql-site-footer li {
  margin-bottom: 14px;
}

.ql-site-footer a {
  color: rgba(245, 240, 231, .72);
  text-decoration: none;
  transition: color .25s ease;
}

.ql-site-footer a:hover,
.ql-site-footer .mil-active a {
  color: #ff9800;
}

.ql-site-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 62px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(245, 240, 231, .5);
  font-size: 13px;
}

@media (max-width: 1200px) {
  .ql-hero,
  .ql-narrative {
    grid-template-columns: 1fr;
  }

  .ql-story {
    position: static;
  }

  .ql-gallery-head {
    grid-template-columns: 1fr;
  }

  .fisher-hero,
  .kuramoto-hero,
  .kuramoto-lab {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 990px) {

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

  .ql-theory-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  body.quant-lab-page {
    overflow-x: hidden;
  }

  .ql-nav {
    height: 70px;
    padding: 0 18px;
    mix-blend-mode: normal;
    background: linear-gradient(180deg, rgba(7, 8, 6, .72), transparent);
  }

  .ql-nav img {
    width: 72px;
  }

  .ql-nav-links {
    max-width: 58%;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    font-size: 10px;
    text-align: right;
  }

  .ql-hero {
    padding: 104px 18px 42px;
  }

  .ql-hero h1 {
    font-size: clamp(44px, 13vw, 56px);
    line-height: .96;
  }

  .ql-story h2 {
    font-size: clamp(34px, 11vw, 52px);
    line-height: .98;
  }

  .ql-narrative,
  .ql-footer-cta,
  .ql-gallery-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .ql-code-panel,
  .ql-theory-panel {
    max-width: 100%;
  }

  .ql-panel-title {
    flex-wrap: wrap;
    row-gap: 6px;
    padding: 14px;
    font-size: 10px;
    line-height: 1.45;
  }

  .ql-code-panel pre {
    max-height: none;
    padding: 16px;
    white-space: pre-wrap;
    overflow-x: hidden;
    overflow-wrap: anywhere;
    font-size: 10px;
    line-height: 1.7;
  }

  .ql-project-nav {
    padding: 0 18px 42px;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .ql-project-nav a {
    flex: 1 1 0;
    min-width: 0;
    font-size: 10px;
    letter-spacing: .08em;
    white-space: nowrap;
  }

  .ql-project-nav a:nth-child(2) {
    justify-content: center;
  }

  .ql-visual-card,
  .ql-visual-card canvas {
    min-height: 520px;
  }

  .ql-chart-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .ql-control-row {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 14px;
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, .4);
  }

  .ql-control-row button {
    flex: 1 1 auto;
    min-width: 128px;
  }

  .fisher-hero,
  .kuramoto-hero {
    padding: 104px 18px 42px;
  }

  .fisher-copy h1,
  .kuramoto-copy h1 {
    font-size: clamp(42px, 12vw, 56px);
  }

  .fisher-gallery,
  .kuramoto-lab,
  .quant-board-strip,
  .quant-text-section,
  .mf-case-hero,
  .mf-case-grid {
    grid-template-columns: 1fr;
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: 54px;
  }

  .mf-case-hero {
    min-height: auto;
    padding-top: 104px;
  }

  .mf-case-hero h1 {
    font-size: clamp(46px, 13vw, 62px);
  }

  .mf-case-visual {
    position: static;
  }

  .mf-case-visual .ql-visual-card,
  .mf-case-visual .ql-visual-card canvas,
  .mf-project-graph .ql-visual-card,
  .mf-project-graph .ql-visual-card canvas {
    min-height: 560px;
  }

  .fisher-board-wide {
    grid-column: auto;
  }

  .fisher-board img {
    min-height: auto;
    object-fit: contain;
  }

  .kuramoto-video-card video {
    min-height: 360px;
  }

  .kuramoto-panel canvas {
    min-height: 500px;
  }

  .kuramoto-controls {
    padding: 18px;
  }

  .ql-site-footer {
    padding-top: 62px;
    padding-bottom: 42px;
  }

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

  .ql-site-footer-bottom {
    flex-direction: column;
    margin-top: 44px;
  }
}
