:root {
  color-scheme: dark;
  --bg: #201f1b;
  --surface: #292823;
  --surface-strong: #33312b;
  --text: #f2efe8;
  --muted: #aaa69d;
  --line: #3c3a34;
  --accent: #d5ff4f;
  --coral: #f07862;
  --blue: #93b9ff;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Noto Sans SC", sans-serif;
  transition: background 0.25s ease, color 0.25s ease;
}

body.light {
  color-scheme: light;
  --bg: #f4f2ec;
  --surface: #e9e6de;
  --surface-strong: #dedad0;
  --text: #22211e;
  --muted: #706d66;
  --line: #d2cec4;
  --accent: #375f00;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

a {
  text-decoration: none;
}

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

.site-header {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.identity-mark {
  width: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  grid-template-columns: 6px 6px;
  place-content: center;
  gap: 5px;
  background: var(--surface-strong);
}

.identity-mark i {
  width: 6px;
  height: 22px;
  border-radius: 6px;
  background: var(--text);
}

.identity-mark i:last-child {
  height: 14px;
}

.identity strong,
.identity small {
  display: block;
}

.identity strong {
  font-size: 14px;
  margin-bottom: 3px;
}

.identity small {
  color: var(--muted);
  font-size: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.local-time,
.project-number,
.section-index,
.eyebrow,
.project-meta {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.local-time {
  color: var(--muted);
}

.language-switch {
  display: flex;
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 6px;
}

.language-button {
  width: 34px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.language-button.active {
  background: var(--surface-strong);
  color: var(--text);
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.icon-button svg,
.contact-row svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button svg {
  width: 17px;
}

.moon-icon {
  display: none;
}

body.light .sun-icon {
  display: none;
}

body.light .moon-icon {
  display: block;
}

.hero {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 88px;
  padding: 70px 0 110px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 999px;
  padding: 0 13px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  margin: 0 0 24px;
  font-size: 13px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero h2 {
  max-width: 620px;
  margin: 0 0 34px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -14px 0 30px;
}

.hero-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--text);
  background: var(--surface);
  font: 500 11px/1 "DM Mono", monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.intro p {
  margin: 0 0 20px;
}

.contact-list {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.contact-row {
  width: 100%;
  min-height: 55px;
  display: grid;
  grid-template-columns: 90px 1fr 20px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.contact-row span {
  color: var(--muted);
  font-size: 12px;
}

.contact-row strong {
  font-size: 13px;
  font-weight: 500;
}

.contact-row svg {
  width: 16px;
}

.hero-visual {
  position: sticky;
  top: 70px;
  margin: 0;
}

.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  filter: saturate(0.78) contrast(1.02);
}

.hero-visual figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

.work-intro {
  padding: 130px 0 70px;
  border-top: 1px solid var(--line);
}

.section-index {
  color: var(--muted);
  margin: 0 0 24px;
}

.work-intro h2,
footer h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
}

.project {
  padding: 95px 0 130px;
  border-top: 1px solid var(--line);
}

.project-header {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-end;
}

.project-number {
  color: var(--muted);
  margin: 0 0 14px;
}

.project h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  letter-spacing: 0;
}

.project-meta {
  display: flex;
  gap: 24px;
  color: var(--muted);
  padding-bottom: 8px;
}

.project-description {
  max-width: 650px;
  margin: 36px 0 56px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.case-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: -24px 0 56px;
  border: 1px solid var(--line);
  background: var(--line);
}

.case-strip article {
  min-height: 132px;
  padding: 18px;
  background: var(--bg);
}

.case-strip span,
.loop-step span {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font: 500 11px/1 "DM Mono", monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}

.case-strip p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.project-visual {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border-radius: 6px;
}

.visual-dashboard {
  padding: 44px;
  background:
    linear-gradient(rgba(14, 27, 32, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 27, 32, 0.04) 1px, transparent 1px),
    #bfc7bf;
  background-size: 18px 18px, 18px 18px, auto;
  color: #172124;
}

.legacy-window {
  min-height: 522px;
  border: 2px solid #263239;
  background: #e9eee8;
  box-shadow: 0 34px 70px rgba(20, 28, 26, 0.26);
  font-family: "DM Mono", monospace;
}

.legacy-titlebar {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 2px solid #263239;
  color: #dbe7df;
  background: #263239;
  font-size: 11px;
}

.legacy-titlebar div {
  display: flex;
  gap: 6px;
}

.legacy-titlebar i {
  width: 10px;
  height: 10px;
  border: 1px solid #aeb9b0;
  background: #52615e;
}

.legacy-toolbar {
  display: flex;
  gap: 7px;
  padding: 9px 10px;
  border-bottom: 1px solid #9daaa1;
  background: #d6ddd6;
}

.legacy-toolbar button,
.template-item,
.condition-row,
.research-card,
.mentor-card,
.news-card {
  font-family: inherit;
}

.legacy-toolbar button {
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid #7a877f;
  border-radius: 0;
  color: #1f2c30;
  background: #eef2ec;
  font-size: 10px;
}

.legacy-toolbar button.active {
  background: #d5ff4f;
}

.legacy-body {
  display: grid;
  grid-template-columns: 190px 1fr 230px;
  gap: 10px;
  padding: 10px;
}

.template-library,
.condition-builder,
.valuation-preview {
  min-height: 450px;
  padding: 10px;
  border: 1px solid #8b9991;
  background: #f6f8f2;
}

.legacy-panel-title {
  margin: -10px -10px 10px;
  padding: 8px 10px;
  border-bottom: 1px solid #8b9991;
  color: #d5ff4f;
  background: #324045;
  font-size: 10px;
}

.template-item {
  width: 100%;
  display: block;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid #adb8af;
  border-radius: 0;
  color: #243034;
  background: #e5ebe3;
  text-align: left;
  cursor: pointer;
}

.template-item:hover,
.template-item.active {
  border-color: #263239;
  background: #d5ff4f;
}

.template-item b,
.template-item span {
  display: block;
}

.template-item b {
  margin-bottom: 5px;
  font-size: 11px;
}

.template-item span {
  color: #58635d;
  font-size: 9px;
}

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

.form-grid label {
  min-height: 54px;
  padding: 9px;
  border: 1px solid #b2bcb5;
  color: #5a665f;
  background: #eef2ec;
  font-size: 9px;
}

.form-grid label span {
  display: block;
  margin-top: 7px;
  color: #172124;
  font-size: 11px;
}

.condition-table {
  margin-top: 13px;
  border: 1px solid #8b9991;
}

.table-head,
.condition-row {
  display: grid;
  grid-template-columns: 0.7fr 1.45fr 1.55fr 0.9fr;
  align-items: center;
}

.table-head {
  min-height: 30px;
  padding: 0 10px;
  border-bottom: 1px solid #8b9991;
  color: #d5ff4f;
  background: #52615e;
  font-size: 9px;
}

.condition-row {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-bottom: 1px solid #c6cec7;
  color: #243034;
  background: #f9fbf6;
  font-size: 10px;
  text-align: left;
  cursor: pointer;
}

.condition-row:last-child {
  border-bottom: 0;
}

.condition-row:hover,
.condition-row.active {
  background: #eefbd1;
}

.option-config,
.swap-config,
.snowball-config {
  display: grid;
  gap: 9px;
  padding: 10px;
  background: #f9fbf6;
}

.config-field {
  min-height: 48px;
  padding: 9px;
  border: 1px solid #b2bcb5;
  background: #eef2ec;
}

.config-field small {
  display: block;
  margin-bottom: 6px;
  color: #5a665f;
  font-size: 9px;
}

.config-field strong {
  display: block;
  color: #172124;
  font-size: 12px;
  line-height: 1.3;
}

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

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

.swap-leg {
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid #8b9991;
  background: #eef2ec;
}

.swap-leg-title {
  margin: -9px -9px 0;
  padding: 7px 9px;
  border-bottom: 1px solid #8b9991;
  color: #d5ff4f;
  background: #52615e;
  font-size: 9px;
}

.snowball-config {
  grid-template-columns: repeat(3, 1fr);
}

.snowball-config .config-field {
  min-height: 76px;
}

.generated-model {
  margin-top: 13px;
  padding: 11px;
  border: 1px solid #8b9991;
  background: #263239;
  color: #dbe7df;
}

.generated-model span {
  display: block;
  margin-bottom: 8px;
  color: #d5ff4f;
  font-size: 9px;
}

.generated-model code {
  display: block;
  color: #dbe7df;
  font-size: 10px;
  line-height: 1.5;
  white-space: normal;
}

.mc-chart {
  height: 130px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 12px;
  border: 1px solid #8b9991;
  background:
    linear-gradient(rgba(38, 50, 57, 0.08) 1px, transparent 1px),
    #eef2ec;
  background-size: 100% 25%;
}

.mc-chart span {
  flex: 1;
  min-width: 5px;
  background: #52615e;
}

.valuation-metrics {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.valuation-metrics div {
  padding: 10px;
  border: 1px solid #b2bcb5;
  background: #f9fbf6;
}

.valuation-metrics small,
.valuation-metrics strong {
  display: block;
}

.valuation-metrics small {
  margin-bottom: 6px;
  color: #5a665f;
  font-size: 9px;
}

.valuation-metrics strong {
  color: #172124;
  font-size: 13px;
  line-height: 1.3;
}

.visual-mobile {
  min-height: 680px;
  background: #d96d58;
}

.visual-infra {
  min-height: 680px;
  padding: 42px;
  background:
    radial-gradient(circle at 22% 24%, rgba(213, 255, 79, 0.13), transparent 24%),
    radial-gradient(circle at 80% 14%, rgba(95, 166, 255, 0.18), transparent 24%),
    linear-gradient(135deg, #0d1420 0%, #121c2b 54%, #0a111a 100%);
  color: #dbe7f1;
}

.infra-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(147, 185, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 185, 255, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(135deg, black 30%, transparent 92%);
}

.infra-title,
.exchange-cloud,
.normalization-layer,
.recon-workbench,
.ai-sop-agent {
  position: absolute;
  z-index: 1;
}

.infra-title {
  top: 42px;
  left: 42px;
  max-width: 360px;
}

.infra-title span,
.normalization-layer small,
.recon-head span,
.ai-sop-agent span {
  display: block;
  color: rgba(213, 255, 79, 0.82);
  font: 500 10px/1.2 "DM Mono", monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}

.infra-title strong {
  display: block;
  margin-top: 14px;
  color: #f5f9ff;
  font-size: clamp(30px, 4.1vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.exchange-cloud {
  left: 44px;
  bottom: 52px;
  width: 300px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.exchange-node {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(147, 185, 255, 0.28);
  padding: 12px;
  background: rgba(13, 22, 34, 0.72);
  box-shadow: inset 0 0 22px rgba(147, 185, 255, 0.05);
}

.exchange-node span,
.pipeline-row span,
.pipeline-row strong,
.recon-table span,
.recon-table strong,
.recon-table em {
  font-family: "DM Mono", monospace;
}

.exchange-node span {
  color: #f5f9ff;
  font-size: 12px;
}

.exchange-node b {
  color: rgba(147, 185, 255, 0.86);
  font: 500 10px/1 "DM Mono", monospace;
  text-transform: uppercase;
}

.exchange-node.active {
  border-color: rgba(213, 255, 79, 0.72);
  background: rgba(213, 255, 79, 0.1);
}

.exchange-node.ghost {
  border-style: dashed;
}

.normalization-layer {
  left: 50%;
  top: 172px;
  width: min(410px, 36%);
  transform: translateX(-50%);
  border: 1px solid rgba(213, 255, 79, 0.5);
  padding: 18px;
  background: rgba(213, 255, 79, 0.08);
  box-shadow: 0 0 70px rgba(213, 255, 79, 0.08);
}

.pipeline-row {
  display: grid;
  grid-template-columns: 95px 1fr 1.2fr;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.pipeline-row span,
.pipeline-row strong {
  color: #dbe7f1;
  font-size: 11px;
  font-weight: 500;
}

.pipeline-row i {
  height: 1px;
  background: linear-gradient(90deg, rgba(213, 255, 79, 0.2), rgba(213, 255, 79, 0.9));
}

.recon-workbench {
  right: 44px;
  top: 82px;
  width: min(390px, 36%);
  border: 1px solid rgba(147, 185, 255, 0.3);
  background: rgba(9, 15, 24, 0.82);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.26);
}

.recon-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px;
  border-bottom: 1px solid rgba(147, 185, 255, 0.22);
}

.recon-head b {
  color: #f5f9ff;
  font: 500 11px/1 "DM Mono", monospace;
}

.recon-table div {
  display: grid;
  grid-template-columns: 1fr 1fr 58px;
  gap: 10px;
  align-items: center;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(147, 185, 255, 0.14);
}

.recon-table div:last-child {
  border-bottom: 0;
}

.recon-table span {
  color: rgba(219, 231, 241, 0.7);
  font-size: 10px;
}

.recon-table strong {
  color: #f5f9ff;
  font-size: 11px;
  font-weight: 500;
}

.recon-table em {
  border: 1px solid rgba(147, 185, 255, 0.28);
  padding: 4px 6px;
  color: rgba(213, 255, 79, 0.86);
  font-size: 9px;
  font-style: normal;
  text-align: center;
  text-transform: uppercase;
}

.ai-sop-agent {
  right: 74px;
  bottom: 58px;
  width: 310px;
  border: 1px solid rgba(213, 255, 79, 0.52);
  padding: 16px;
  background: rgba(213, 255, 79, 0.1);
}

.ai-sop-agent p {
  margin: 12px 0 14px;
  color: rgba(219, 231, 241, 0.78);
  font-size: 13px;
  line-height: 1.5;
}

.ai-sop-agent div {
  display: grid;
  gap: 7px;
}

.ai-sop-agent i {
  height: 8px;
  background: linear-gradient(90deg, rgba(213, 255, 79, 0.88), rgba(95, 166, 255, 0.25));
}

.ai-sop-agent i:nth-child(2) {
  width: 78%;
}

.ai-sop-agent i:nth-child(3) {
  width: 54%;
}

.map-copy {
  position: absolute;
  top: 110px;
  left: 8%;
}

.map-copy span {
  font: 500 11px "DM Mono", monospace;
}

.map-copy strong {
  display: block;
  margin-top: 20px;
  color: #2b211e;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.98;
}

.route-line {
  width: 190px;
  height: 120px;
  margin: 45px 0 0 35px;
  border-left: 2px dashed #2b211e;
  border-bottom: 2px dashed #2b211e;
  border-radius: 0 0 0 70px;
  opacity: 0.45;
}

.phone {
  position: absolute;
  width: 250px;
  height: 510px;
  padding: 9px;
  border: 7px solid #1c1b18;
  border-radius: 38px;
  background: #1c1b18;
  box-shadow: 0 35px 70px rgba(42, 24, 20, 0.28);
}

.phone-one {
  right: 29%;
  top: 105px;
  transform: rotate(-5deg);
}

.phone-two {
  right: 7%;
  top: 55px;
  transform: rotate(6deg);
}

.phone-screen {
  width: 100%;
  height: 100%;
  padding: 25px 18px;
  overflow: hidden;
  border-radius: 23px;
  background: #f2eee2;
  color: #27231e;
}

.phone-screen small {
  font: 500 9px "DM Mono", monospace;
}

.map-canvas {
  position: relative;
  height: 245px;
  margin: 20px -18px 24px;
  background:
    linear-gradient(31deg, transparent 43%, #c8c7a8 44%, #c8c7a8 46%, transparent 47%),
    linear-gradient(112deg, transparent 55%, #cdcaaa 56%, #cdcaaa 58%, transparent 59%),
    #dce0c9;
}

.map-canvas i {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 4px solid #d96d58;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.map-canvas i:nth-child(1) { left: 25%; top: 27%; }
.map-canvas i:nth-child(2) { left: 65%; top: 44%; }
.map-canvas i:nth-child(3) { left: 43%; top: 72%; }

.map-canvas b {
  position: absolute;
  left: 42%;
  top: 34%;
  width: 52px;
  height: 52px;
  border: 2px dashed #27231e;
  border-radius: 50%;
}

.place-card {
  display: block;
  height: 82px;
  margin-top: 18px;
  border-radius: 5px;
  background: #c2a98b;
}

.detail-screen {
  padding: 0 0 30px;
}

.place-photo {
  height: 240px;
  margin-bottom: 26px;
  background:
    linear-gradient(90deg, transparent 47%, #6b755e 47% 53%, transparent 53%),
    linear-gradient(#adc0a2 56%, #87735d 56%);
}

.detail-screen small,
.detail-screen strong,
.detail-screen p {
  display: block;
  margin-inline: 20px;
}

.detail-screen strong {
  margin-top: 12px;
  font-size: 25px;
  line-height: 1.1;
}

.detail-screen p {
  color: #70695e;
  font-size: 11px;
  line-height: 1.6;
}

.visual-lab {
  min-height: 650px;
  background:
    radial-gradient(circle at 50% 47%, rgba(213, 255, 79, 0.11), transparent 18%),
    radial-gradient(circle at 16% 22%, rgba(147, 185, 255, 0.16), transparent 24%),
    linear-gradient(135deg, #101827 0%, #141c2f 52%, #0e1422 100%);
}

.agent-loop {
  display: grid;
  grid-template-columns: 1fr 30px 1fr 30px 1fr 30px 1fr;
  align-items: stretch;
  gap: 10px;
  margin: -24px 0 56px;
}

.agent-loop > i {
  position: relative;
  align-self: center;
  height: 1px;
  background: var(--line);
}

.agent-loop > i::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transform: rotate(45deg);
}

.loop-step {
  min-height: 118px;
  border: 1px solid var(--line);
  padding: 16px;
  background: var(--surface);
}

.loop-step strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 16px;
}

.loop-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.lab-core,
.lab-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.lab-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(147, 185, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 185, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
}

.lab-core {
  width: 168px;
  height: 168px;
  display: grid;
  align-content: center;
  place-items: center;
  border: 1px solid rgba(213, 255, 79, 0.72);
  background: rgba(213, 255, 79, 0.94);
  color: #111827;
  box-shadow:
    0 0 0 12px rgba(213, 255, 79, 0.06),
    0 0 90px rgba(213, 255, 79, 0.35);
}

.lab-core span {
  font: 500 42px "DM Mono", monospace;
}

.lab-core small {
  max-width: 96px;
  margin-top: 8px;
  color: rgba(17, 24, 39, 0.7);
  font: 500 9px/1.35 "DM Mono", monospace;
  text-align: center;
}

.lab-orbit {
  border: 1px solid rgba(147, 185, 255, 0.36);
}

.orbit-one {
  width: 314px;
  height: 314px;
}

.orbit-two {
  width: 510px;
  height: 510px;
  border-style: dashed;
}

.orbit-three {
  width: 690px;
  height: 690px;
  border-color: rgba(213, 255, 79, 0.12);
}

.lab-thread {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 260px;
  background: linear-gradient(to bottom, rgba(213, 255, 79, 0.78), rgba(147, 185, 255, 0));
  transform-origin: top center;
}

.thread-one { transform: rotate(52deg); }
.thread-two { transform: rotate(168deg); }
.thread-three { transform: rotate(286deg); }

.lab-node,
.news-agent-ui,
.reading-agent-ui,
.research-agent-ui {
  position: absolute;
  width: min(220px, 27vw);
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(147, 185, 255, 0.34);
  border-radius: 6px;
  color: #d7e4ff;
  background: rgba(20, 28, 47, 0.78);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}

.lab-node b {
  display: block;
  margin-bottom: 8px;
  color: #d5ff4f;
  font: 500 12px "DM Mono", monospace;
}

.lab-node span {
  display: block;
  margin-bottom: 18px;
  color: #91a6cf;
  font: 400 11px "DM Mono", monospace;
}

.lab-node i {
  display: block;
  height: 7px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(147, 185, 255, 0.22);
}

.lab-node i:nth-of-type(2) { width: 74%; }
.lab-node i:nth-of-type(3) { width: 48%; background: rgba(213, 255, 79, 0.42); }

.news-agent-ui {
  left: 6%;
  top: 11%;
  overflow: visible;
  z-index: 3;
}

.reading-agent-ui {
  overflow: visible;
  z-index: 3;
}

.research-agent-ui {
  overflow: visible;
  z-index: 3;
}

.news-agent-ui:hover,
.news-agent-ui:focus-within,
.reading-agent-ui:hover,
.reading-agent-ui:focus-within,
.research-agent-ui:hover,
.research-agent-ui:focus-within {
  z-index: 8;
}

.agent-compact b {
  display: block;
  margin-bottom: 8px;
  color: #d5ff4f;
  font: 500 12px "DM Mono", monospace;
}

.agent-compact span {
  display: block;
  margin-bottom: 18px;
  color: #91a6cf;
  font: 400 11px "DM Mono", monospace;
}

.agent-compact i {
  display: block;
  height: 7px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(147, 185, 255, 0.22);
}

.agent-compact i:nth-of-type(2) { width: 74%; }
.agent-compact i:nth-of-type(3) { width: 48%; background: rgba(213, 255, 79, 0.42); }

.agent-popover {
  position: absolute;
  left: 18px;
  top: calc(100% + 14px);
  width: min(360px, 38vw);
  min-height: 310px;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(147, 185, 255, 0.34);
  border-radius: 6px;
  background: rgba(20, 28, 47, 0.92);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transform-origin: 24px top;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.news-agent-ui:hover .agent-popover,
.news-agent-ui:focus-within .agent-popover,
.reading-agent-ui:hover .agent-popover,
.reading-agent-ui:focus-within .agent-popover,
.research-agent-ui:hover .agent-popover,
.research-agent-ui:focus-within .agent-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.agent-popover::before,
.agent-popover::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.agent-popover::before {
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(213, 255, 79, 0.2), transparent 28%, rgba(147, 185, 255, 0.16));
  opacity: 0.55;
}

.agent-popover::after {
  left: 40px;
  right: 40px;
  bottom: 52px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(213, 255, 79, 0.72), transparent);
  transform: scaleX(0.45);
  transform-origin: left center;
  opacity: 0.35;
}

.news-agent-ui.synced .agent-popover::after,
.reading-agent-ui.synced .agent-popover::after,
.research-agent-ui.synced .agent-popover::after {
  animation: syncFlow 0.9s ease;
}

.signal-radar,
.agent-panel,
.agent-decision,
.sync-vault {
  position: relative;
  z-index: 1;
}

.signal-radar {
  width: 108px;
  height: 108px;
  align-self: start;
  border-radius: 50%;
  border: 1px solid rgba(147, 185, 255, 0.35);
  background:
    radial-gradient(circle, rgba(213, 255, 79, 0.3) 0 5px, transparent 6px),
    radial-gradient(circle, rgba(147, 185, 255, 0.12), transparent 64%);
  box-shadow: inset 0 0 42px rgba(147, 185, 255, 0.08);
}

.radar-ring,
.radar-sweep,
.signal-dot {
  position: absolute;
  display: block;
}

.radar-ring {
  left: 50%;
  top: 50%;
  border: 1px solid rgba(147, 185, 255, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-one { width: 52px; height: 52px; }
.ring-two { width: 82px; height: 82px; }

.radar-sweep {
  left: 50%;
  top: 50%;
  width: 52px;
  height: 1px;
  background: linear-gradient(90deg, rgba(213, 255, 79, 0.85), transparent);
  transform-origin: left center;
  animation: radarSweep 4.6s linear infinite;
}

.signal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d5ff4f;
  box-shadow: 0 0 18px rgba(213, 255, 79, 0.72);
}

.dot-one { left: 26px; top: 22px; }
.dot-two { right: 18px; top: 38px; animation-delay: 0.2s; }
.dot-three { left: 48px; bottom: 20px; animation-delay: 0.4s; }
.dot-four { right: 32px; bottom: 34px; animation-delay: 0.6s; }

.news-agent-ui:hover .signal-dot,
.news-agent-ui.synced .signal-dot {
  animation: signalPulse 1.2s ease infinite;
}

.reading-popover {
  left: auto;
  right: 18px;
  width: min(420px, 42vw);
  grid-template-columns: 1fr;
  transform-origin: calc(100% - 24px) top;
}

.mentor-chat,
.mentor-actions,
.mentor-vault,
.research-brief,
.research-output,
.research-actions,
.research-vault {
  position: relative;
  z-index: 1;
}

.chat-thread {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.chat-bubble {
  max-width: 86%;
  padding: 12px;
  border: 1px solid rgba(147, 185, 255, 0.2);
  border-radius: 6px;
  background: rgba(13, 21, 36, 0.7);
}

.chat-bubble.user {
  justify-self: end;
  border-color: rgba(213, 255, 79, 0.28);
  background: rgba(213, 255, 79, 0.08);
}

.chat-bubble.mentor {
  justify-self: start;
}

.chat-bubble small {
  display: block;
  margin-bottom: 6px;
  color: #d5ff4f;
  font: 500 9px "DM Mono", monospace;
}

.chat-bubble p {
  margin: 0;
  color: #d7e4ff;
  font-size: 12px;
  line-height: 1.45;
}

.mentor-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mentor-actions .mentor-card {
  min-height: 86px;
  align-content: start;
  padding: 10px;
}

.mentor-actions .mentor-card:hover,
.mentor-actions .mentor-card.active {
  transform: translateY(-3px);
}

.mentor-actions .mentor-card b {
  min-height: 34px;
  margin-top: 4px;
  font-size: 11px;
}

.mentor-actions .mentor-card small {
  grid-column: 1 / -1;
  grid-row: auto;
  justify-self: start;
  margin-top: 3px;
}

.research-popover {
  left: 50%;
  top: auto;
  bottom: calc(100% + 14px);
  width: min(440px, 48vw);
  grid-template-columns: 1fr;
  transform: translate(-50%, 12px) scale(0.98);
  transform-origin: center bottom;
}

.research-agent-ui:hover .research-popover,
.research-agent-ui:focus-within .research-popover {
  transform: translate(-50%, 0) scale(1);
}

.research-query {
  margin-top: 16px;
  padding: 13px;
  border: 1px solid rgba(147, 185, 255, 0.2);
  border-radius: 6px;
  background: rgba(13, 21, 36, 0.68);
}

.research-query small,
.research-output span {
  display: block;
  margin-bottom: 7px;
  color: #d5ff4f;
  font: 500 9px "DM Mono", monospace;
}

.research-query p,
.research-output p {
  margin: 0;
  color: #d7e4ff;
  font-size: 12px;
  line-height: 1.45;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.source-list span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(147, 185, 255, 0.16);
  border-radius: 5px;
  color: #91a6cf;
  background: rgba(12, 18, 31, 0.46);
  font: 400 9px "DM Mono", monospace;
}

.source-list i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d5ff4f;
  box-shadow: 0 0 12px rgba(213, 255, 79, 0.72);
}

.research-output {
  padding: 13px;
  border: 1px solid rgba(213, 255, 79, 0.2);
  border-radius: 6px;
  background: rgba(213, 255, 79, 0.06);
}

.research-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.research-actions .research-card {
  min-height: 86px;
  align-content: start;
  padding: 10px;
}

.research-actions .research-card:hover,
.research-actions .research-card.active {
  transform: translateY(-3px);
}

.research-actions .research-card b {
  min-height: 34px;
  margin-top: 4px;
  font-size: 11px;
}

.research-actions .research-card small {
  grid-column: 1 / -1;
  grid-row: auto;
  justify-self: start;
  margin-top: 3px;
}

.agent-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.agent-title b,
.agent-decision span,
.sync-vault span {
  color: #d5ff4f;
  font: 500 11px "DM Mono", monospace;
}

.agent-title span,
.agent-metric small,
.news-card span,
.news-card small,
.mentor-card span,
.mentor-card small,
.research-card span,
.research-card small,
.sync-vault b {
  color: #91a6cf;
  font: 400 9px "DM Mono", monospace;
}

.agent-metric {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 14px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(147, 185, 255, 0.18);
}

.agent-metric strong {
  color: #eef4ff;
  font: 500 24px "DM Mono", monospace;
}

.news-card,
.mentor-card,
.research-card {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(147, 185, 255, 0.2);
  border-radius: 5px;
  color: #d7e4ff;
  background: rgba(13, 21, 36, 0.64);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.news-card:hover,
.news-card.active,
.mentor-card:hover,
.mentor-card.active,
.research-card:hover,
.research-card.active {
  border-color: rgba(213, 255, 79, 0.72);
  background: rgba(213, 255, 79, 0.08);
  transform: translateX(4px);
}

.news-card b,
.mentor-card b,
.research-card b {
  grid-column: 1 / -1;
  color: #eef4ff;
  font: 500 12px/1.25 "Inter", sans-serif;
}

.news-card small,
.mentor-card small,
.research-card small {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.agent-decision {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px solid rgba(213, 255, 79, 0.2);
  border-radius: 5px;
  background: rgba(213, 255, 79, 0.06);
}

.agent-decision p {
  min-height: 34px;
  margin: 8px 0 12px;
  color: #d7e4ff;
  font-size: 12px;
  line-height: 1.45;
}

.sync-button {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(213, 255, 79, 0.52);
  border-radius: 4px;
  color: #111827;
  background: #d5ff4f;
  font: 500 10px "DM Mono", monospace;
  cursor: pointer;
}

.sync-vault {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(147, 185, 255, 0.22);
  border-radius: 5px;
  background: rgba(12, 18, 31, 0.68);
}

.news-agent-ui.synced .sync-vault,
.reading-agent-ui.synced .sync-vault,
.research-agent-ui.synced .sync-vault {
  border-color: rgba(213, 255, 79, 0.72);
  box-shadow: inset 0 0 22px rgba(213, 255, 79, 0.1);
}

@keyframes radarSweep {
  to { transform: rotate(360deg); }
}

@keyframes signalPulse {
  50% {
    transform: scale(1.45);
    box-shadow: 0 0 24px rgba(213, 255, 79, 0.92);
  }
}

@keyframes syncFlow {
  0% { transform: scaleX(0); opacity: 0; }
  45% { opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

.node-reading { right: 8%; top: 24%; }
.node-sop { left: 50%; bottom: 9%; transform: translateX(-50%); }

.lab-note {
  position: absolute;
  padding: 12px 15px;
  border: 1px solid rgba(147, 185, 255, 0.45);
  border-radius: 4px;
  color: #c5d7ff;
  background: rgba(20, 28, 47, 0.7);
  font: 400 10px "DM Mono", monospace;
}

.note-one { left: 21%; top: 44%; }
.note-two { right: 20%; top: 52%; }
.note-three { left: 50%; top: 21%; transform: translateX(-50%); }
.note-four { right: 19%; bottom: 18%; }

footer {
  background: #d5ff4f;
  color: #1e2517;
}

.footer-inner {
  padding: 120px 0 46px;
}

footer .section-index {
  color: #536528;
}

.footer-copy {
  max-width: 600px;
  margin: 34px 0 60px;
  color: #53603f;
  font-size: 18px;
  line-height: 1.7;
}

.footer-email {
  display: inline-block;
  border-bottom: 2px solid currentColor;
  font-size: clamp(25px, 5vw, 56px);
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: space-between;
  margin-top: 120px;
  padding-top: 25px;
  border-top: 1px solid rgba(30, 37, 23, 0.25);
  font: 500 10px "DM Mono", monospace;
}

.icp-link {
  color: inherit;
}

.icp-link:hover,
.icp-link:focus-visible {
  text-decoration: underline;
}

.page-jump {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9;
  min-width: 172px;
  min-height: 54px;
  display: grid;
  grid-template-columns: 1fr 18px;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px 10px 18px;
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.page-jump span,
.page-jump strong {
  grid-column: 1;
  text-align: left;
}

.page-jump span {
  color: var(--muted);
  font: 500 10px/1 "DM Mono", monospace;
}

.page-jump strong {
  margin-top: 4px;
  font: 500 12px/1 "DM Mono", monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-jump svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.page-jump:hover svg {
  transform: translateY(3px);
}

.page-jump.is-top svg {
  transform: rotate(180deg);
}

.page-jump.is-top:hover svg {
  transform: rotate(180deg) translateY(3px);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  z-index: 10;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

  .hero-visual {
    position: static;
    order: -1;
    max-width: 620px;
  }

  .project-visual {
    min-height: 530px;
  }

  .visual-dashboard {
    padding: 50px;
  }

  .legacy-body {
    grid-template-columns: 170px 1fr;
  }

  .valuation-preview {
    grid-column: 1 / -1;
    min-height: auto;
  }

  .valuation-metrics {
    grid-template-columns: repeat(4, 1fr);
  }

  .visual-infra {
    min-height: 860px;
    padding: 30px;
  }

  .infra-title,
  .exchange-cloud,
  .normalization-layer,
  .recon-workbench,
  .ai-sop-agent {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
  }

  .infra-title {
    max-width: 520px;
    margin-bottom: 28px;
  }

  .exchange-cloud {
    width: 100%;
    margin-bottom: 18px;
  }

  .normalization-layer,
  .recon-workbench,
  .ai-sop-agent {
    margin-top: 18px;
  }

  .map-copy {
    left: 6%;
  }

  .map-copy strong {
    font-size: 43px;
  }

  .phone-one {
    right: 26%;
  }

  .phone-two {
    right: 3%;
  }
}

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

  .site-header {
    height: 92px;
  }

  .local-time {
    display: none;
  }

  .header-actions {
    gap: 9px;
  }

  .hero {
    min-height: auto;
    padding: 35px 0 90px;
  }

  .eyebrow {
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero h2 {
    font-size: 26px;
  }

  .hero-tags {
    gap: 6px;
  }

  .hero-tags span {
    padding: 7px 9px;
    font-size: 10px;
  }

  .intro {
    font-size: 15px;
  }

  .contact-row {
    grid-template-columns: 68px 1fr 18px;
  }

  .contact-row strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .page-jump {
    right: 16px;
    bottom: 16px;
    min-width: 138px;
    min-height: 48px;
    padding: 9px 12px 9px 14px;
  }

  .page-jump strong {
    font-size: 10px;
  }

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

  .visual-infra {
    min-height: 1010px;
    padding: 22px;
  }

  .infra-title strong {
    font-size: 30px;
  }

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

  .exchange-node {
    min-height: 58px;
  }

  .pipeline-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .pipeline-row i {
    width: 44px;
  }

  .recon-table div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .recon-table em {
    width: fit-content;
  }

  .work-intro {
    padding: 90px 0 55px;
  }

  .project {
    padding: 70px 0 90px;
  }

  .project-header {
    display: block;
  }

  .project-meta {
    justify-content: space-between;
    margin-top: 20px;
    padding: 0;
  }

  .project-description {
    margin: 28px 0 38px;
    font-size: 16px;
  }

  .case-strip {
    grid-template-columns: 1fr 1fr;
    margin: -18px 0 38px;
  }

  .case-strip article {
    min-height: 116px;
    padding: 14px;
  }

  .agent-loop {
    grid-template-columns: 1fr;
    margin: -18px 0 38px;
  }

  .agent-loop > i {
    width: 1px;
    height: 20px;
    justify-self: center;
  }

  .agent-loop > i::after {
    right: -3px;
    top: auto;
    bottom: -1px;
    transform: rotate(135deg);
  }

  .loop-step {
    min-height: 0;
  }

  .project-visual,
  .visual-mobile,
  .visual-lab {
    min-height: 440px;
  }

  .visual-dashboard {
    padding: 28px 18px;
  }

  .legacy-window {
    min-height: 0;
  }

  .legacy-toolbar {
    flex-wrap: wrap;
  }

  .legacy-body {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .template-library,
  .condition-builder,
  .valuation-preview {
    min-height: 0;
  }

  .form-grid,
  .valuation-metrics,
  .option-config,
  .swap-config,
  .snowball-config {
    grid-template-columns: 1fr;
  }

  .table-head,
  .condition-row {
    grid-template-columns: 0.45fr 1.1fr 1.25fr 0.7fr;
  }

  .condition-row {
    font-size: 8px;
  }

  .generated-model code {
    font-size: 8px;
  }

  .mc-chart {
    height: 95px;
  }

  .map-copy {
    top: 34px;
  }

  .map-copy strong {
    font-size: 32px;
  }

  .route-line {
    display: none;
  }

  .phone {
    width: 165px;
    height: 342px;
    border-width: 5px;
    border-radius: 27px;
  }

  .phone-one {
    top: 105px;
    right: 43%;
  }

  .phone-two {
    top: 74px;
    right: 2%;
  }

  .phone-screen {
    padding: 17px 12px;
    border-radius: 16px;
  }

  .map-canvas {
    height: 150px;
    margin: 14px -12px 16px;
  }

  .place-card {
    height: 50px;
  }

  .place-photo {
    height: 145px;
  }

  .detail-screen strong {
    margin-top: 8px;
    font-size: 17px;
  }

  .detail-screen p {
    display: none;
  }

  .orbit-one {
    width: 230px;
    height: 230px;
  }

  .orbit-two {
    width: 370px;
    height: 370px;
  }

  .orbit-three {
    width: 470px;
    height: 470px;
  }

  .lab-core {
    width: 105px;
    height: 105px;
  }

  .lab-core span {
    font-size: 28px;
  }

  .lab-core small {
    max-width: 72px;
    font-size: 7px;
  }

  .lab-thread {
    height: 185px;
  }

  .lab-node,
  .news-agent-ui,
  .reading-agent-ui,
  .research-agent-ui {
    width: 150px;
    min-height: 104px;
    padding: 13px;
  }

  .lab-node b,
  .agent-compact b {
    font-size: 9px;
  }

  .lab-node span,
  .agent-compact span,
  .lab-note {
    font-size: 8px;
  }

  .news-agent-ui {
    left: 5%;
    top: 8%;
  }

  .agent-popover {
    left: 0;
    right: auto;
    top: calc(100% + 10px);
    width: min(310px, 90vw);
    min-height: 260px;
    grid-template-columns: 78px 1fr;
    gap: 10px;
    padding: 12px;
  }

  .reading-popover {
    width: min(320px, 90vw);
    grid-template-columns: 1fr;
  }

  .research-popover {
    left: 50%;
    right: auto;
    width: min(330px, 92vw);
    grid-template-columns: 1fr;
  }

  .mentor-actions,
  .research-actions,
  .source-list {
    grid-template-columns: 1fr;
  }

  .mentor-actions .mentor-card,
  .research-actions .research-card {
    min-height: 58px;
  }

  .mentor-actions .mentor-card b,
  .research-actions .research-card b {
    min-height: 0;
  }

  .chat-bubble {
    max-width: 94%;
  }

  .chat-bubble p {
    font-size: 10px;
  }

  .research-query p,
  .research-output p {
    font-size: 10px;
  }

  .signal-radar {
    width: 74px;
    height: 74px;
  }

  .ring-one {
    width: 38px;
    height: 38px;
  }

  .ring-two {
    width: 58px;
    height: 58px;
  }

  .radar-sweep {
    width: 36px;
  }

  .news-card {
    min-height: 46px;
    padding: 8px;
  }

  .agent-title {
    display: block;
  }

  .agent-title span {
    display: block;
    margin-top: 4px;
  }

  .agent-metric {
    margin: 9px 0 8px;
    padding-bottom: 8px;
  }

  .agent-metric strong {
    font-size: 18px;
  }

  .agent-decision {
    padding: 10px;
  }

  .agent-decision p {
    min-height: 30px;
    margin: 6px 0 10px;
    font-size: 10px;
  }

  .node-reading {
    right: 5%;
    top: 31%;
  }

  .node-sop {
    bottom: 8%;
  }

  .note-one {
    left: 8%;
    top: 50%;
  }

  .note-two {
    right: 5%;
    top: 58%;
  }

  .note-three {
    left: 50%;
    top: 21%;
  }

  .note-four {
    right: 7%;
    bottom: 26%;
  }

  .footer-inner {
    padding-top: 90px;
  }

  .footer-bottom {
    margin-top: 90px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
