:root {
  color-scheme: dark;
  --ink: #ece7dc;
  --muted: #aaa49a;
  --soft: #171a18;
  --paper: #0b0d0c;
  --white: #121612;
  --line: #2a302b;
  --teal: #a0b49a;
  --teal-2: #c2cbb5;
  --blue: #a7b1c6;
  --amber: #c8a96a;
  --red: #c98f7a;
  --green: #9fb59b;
  --cyan: #9db7b5;
  --surface: rgba(18, 22, 19, 0.88);
  --surface-strong: rgba(22, 26, 23, 0.96);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.32);
  --radius: 8px;
  --max: 1180px;
  --header-height: 76px;
  --ease-productive: cubic-bezier(.2, 0, .38, .9);
  --ease-expressive: cubic-bezier(.16, 1, .3, 1);
  --fast: 170ms var(--ease-productive);
  --slow: 680ms var(--ease-expressive);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 27% 24%, rgba(160, 180, 154, 0.1), transparent 22%),
    radial-gradient(circle at 67% 66%, rgba(157, 183, 181, 0.05), transparent 25%),
    linear-gradient(90deg, rgba(160, 180, 154, 0.024) 1px, transparent 1px),
    linear-gradient(180deg, rgba(160, 180, 154, 0.022) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
}

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

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

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

table {
  width: 100%;
  border-collapse: collapse;
}

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

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 100;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 90;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--amber));
  box-shadow: 0 0 18px rgba(107, 132, 128, 0.3);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(9, 10, 9, 0.84);
  border-bottom: 1px solid rgba(54, 61, 54, 0.72);
  backdrop-filter: blur(18px);
  transition: background var(--fast), border-color var(--fast), box-shadow var(--fast);
}

.site-header.is-scrolled {
  background: rgba(9, 10, 9, 0.95);
  border-bottom-color: rgba(160, 180, 154, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  color: #11140f;
  background: linear-gradient(135deg, var(--teal), #d7ddcf);
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 10px 24px rgba(16, 32, 30, 0.14);
}

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

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a,
.project-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  transition: color var(--fast), background var(--fast), transform var(--fast), box-shadow var(--fast);
}

.site-nav a:hover,
.site-nav a.is-active,
.project-nav a:hover {
  color: var(--teal);
  background: rgba(160, 180, 154, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(16, 32, 30, 0.06);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

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

.section-band {
  padding: 60px 0;
  background: rgba(13, 15, 13, 0.92);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
  min-height: auto;
  padding: clamp(42px, 6vw, 72px) 0 58px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 5.8vw, 70px);
  line-height: 1.04;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.25;
}

h4 {
  margin: 0 0 16px;
  font-size: 17px;
}

.hero-lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 750;
  transition: transform var(--fast), border-color var(--fast), background var(--fast);
}

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

.button-primary {
  color: var(--white);
  background: var(--teal);
}

.button-primary:hover {
  background: var(--teal-2);
}

.button-secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.skill-tags,
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.skill-tags li,
.case-tags li {
  padding: 7px 10px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
}

.hero-workbench {
  padding: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.profile-feature {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 16px;
  align-items: end;
  padding: 12px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(22, 26, 22, 0.92), rgba(14, 16, 14, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.profile-feature img {
  width: 172px;
  aspect-ratio: 0.82;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(20, 32, 31, 0.14);
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: 0 12px 28px rgba(16, 32, 30, 0.12);
  transition: transform var(--fast), filter var(--fast), box-shadow var(--fast);
}

.profile-feature:hover img {
  transform: translateY(-2px);
  filter: contrast(1.02) saturate(1.02);
  box-shadow: 0 18px 38px rgba(16, 32, 30, 0.16);
}

.profile-feature span {
  display: block;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.profile-feature strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.18;
}

.profile-feature p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.workbench-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.workbench-header strong {
  color: var(--teal);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.metric-tile,
.metric-row-grid > div,
.taxonomy-grid > div,
.evidence-wall article {
  min-width: 0;
  padding: 16px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform var(--fast), border-color var(--fast), box-shadow var(--fast), background var(--fast);
}

.metric-tile:hover,
.metric-row-grid > div:hover,
.taxonomy-grid > div:hover,
.evidence-wall article:hover {
  transform: translateY(-2px);
  border-color: rgba(107, 132, 128, 0.3);
  background: #151915;
  box-shadow: 0 18px 42px rgba(16, 32, 30, 0.11);
}

.metric-tile span,
.metric-row-grid span,
.taxonomy-grid span,
.contact-panel span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-tile strong,
.metric-row-grid strong,
.taxonomy-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.1;
}

.metric-tile small,
.taxonomy-grid small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.hero-media-strip {
  display: grid;
  grid-template-columns: 0.65fr 1fr 1.1fr;
  gap: 10px;
  margin-top: 14px;
}

.hero-media-strip img {
  width: 100%;
  height: 126px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  transition: transform var(--fast), filter var(--fast), border-color var(--fast), box-shadow var(--fast);
}

.hero-media-strip img:hover {
  transform: translateY(-2px);
  border-color: rgba(107, 132, 128, 0.32);
  filter: saturate(1.02) contrast(1.03);
  box-shadow: 0 16px 36px rgba(16, 32, 30, 0.12);
}

.bento-hero {
  width: min(1840px, calc(100% - 70px));
  display: block;
  min-height: auto;
  padding: clamp(24px, 3.2vw, 40px) 0 clamp(42px, 4.8vw, 68px);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(112px, auto);
  gap: 12px;
}

.bento-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 42%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform var(--fast), border-color var(--fast), box-shadow var(--fast), background var(--fast);
}

.bento-card:hover,
.bento-signal-grid span:hover {
  transform: translateY(-3px);
  border-color: rgba(160, 180, 154, 0.28);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.42);
}

.bento-photo {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}

.bento-photo img {
  width: 100%;
  height: 100%;
  min-height: 248px;
  object-fit: cover;
  object-position: center top;
  filter: none;
}

.bento-intro {
  grid-column: 3 / span 5;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 58px);
}

.bento-intro::before,
.bento-about::before,
.bento-stack::before,
.bento-contact::before {
  content: "";
  position: absolute;
  inset: auto auto -42% 5%;
  width: 72%;
  height: 78%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09), transparent 64%);
  filter: blur(10px);
  pointer-events: none;
}

.bento-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.bento-intro h1 {
  max-width: 720px;
  font-size: clamp(34px, 3.2vw, 48px);
  line-height: 1.03;
  white-space: nowrap;
}

.bento-card h1,
.bento-card h2 {
  word-break: keep-all;
  overflow-wrap: normal;
}

.bento-intro p:not(.bento-kicker),
.bento-service p,
.bento-highlight p {
  max-width: 650px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 17px);
}

.bento-route {
  grid-column: 8 / span 2;
  grid-row: 1 / span 2;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 26px;
}

.bento-route span {
  color: var(--ink);
  font-size: 30px;
}

.bento-route strong,
.bento-highlight h2,
.bento-service h2,
.bento-stack h2 {
  color: var(--ink);
  font-size: clamp(23px, 2.2vw, 34px);
  line-height: 1.08;
}

.bento-route small {
  color: var(--muted);
}

.bento-resource {
  grid-column: 10 / span 3;
  grid-row: 1 / span 2;
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 34px 38px;
}

.bento-resource h2,
.bento-about h2,
.bento-contact h2 {
  max-width: 440px;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.04;
}

.bento-resource a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--ink);
  border: 1px solid rgba(242, 245, 239, 0.6);
  border-radius: 999px;
  font-size: 26px;
}

.bento-about {
  grid-column: 1 / span 5;
  grid-row: 3 / span 2;
  display: grid;
  align-content: center;
  padding: clamp(28px, 4vw, 60px);
}

.bento-about a {
  display: inline-flex;
  width: fit-content;
  margin-top: 24px;
  color: var(--teal);
  font-weight: 850;
}

.bento-highlight {
  grid-column: 6 / span 2;
  grid-row: 3 / span 2;
  display: grid;
  align-content: end;
  padding: 30px;
}

.bento-highlight h2 {
  font-size: clamp(34px, 3.6vw, 52px);
}

.bento-highlight span {
  margin-top: 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.bento-orbit {
  position: absolute;
  top: 30px;
  left: 50%;
  width: 126px;
  height: 84px;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 45%, #c98f7a 0 12px, transparent 13px),
    radial-gradient(circle at 82% 50%, var(--cyan) 0 12px, transparent 13px),
    linear-gradient(135deg, #c8a96a, #b99662);
  box-shadow: inset 0 12px 26px rgba(0, 0, 0, 0.2);
}

.bento-signal-grid {
  grid-column: 8 / span 3;
  grid-row: 3 / span 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bento-signal-grid span {
  display: grid;
  place-items: center;
  min-height: 112px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 850;
  transition: transform var(--fast), border-color var(--fast), color var(--fast), box-shadow var(--fast);
}

.bento-signal-grid span:hover {
  color: var(--teal);
}

.bento-media {
  grid-column: 11 / span 2;
  grid-row: 3 / span 2;
}

.bento-media img,
.bento-paper img {
  width: 100%;
  height: 100%;
  min-height: 232px;
  object-fit: cover;
  filter: grayscale(0.88) contrast(1.05);
}

.bento-stack {
  grid-column: 1 / span 4;
  grid-row: 5 / span 2;
  display: grid;
  align-content: center;
  gap: 28px;
  padding: 34px 38px;
}

.bento-stack-slider {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 86%, transparent);
}

.bento-stack-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: stackSlide 24s linear infinite;
  will-change: transform;
}

.bento-stack-slider:hover .bento-stack-track {
  animation-play-state: paused;
}

.bento-stack span {
  flex: 0 0 auto;
  padding: 13px 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 850;
}

.bento-paper {
  grid-column: 5 / span 2;
  grid-row: 5 / span 2;
}

.bento-service {
  grid-column: 7 / span 3;
  grid-row: 5 / span 2;
  display: grid;
  align-content: center;
  padding: 38px 42px;
}

.bento-service > div {
  display: flex;
  gap: 7px;
  margin-top: 34px;
}

.bento-service > div span {
  width: 10px;
  height: 10px;
  background: rgba(242, 245, 239, 0.26);
  border-radius: 999px;
}

.bento-contact {
  grid-column: 10 / span 3;
  grid-row: 5 / span 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  padding: 34px;
  text-align: center;
}

.bento-contact span {
  color: var(--teal);
}

.bento-contact strong {
  font-size: 24px;
  font-weight: 500;
}

.bento-contact small {
  color: var(--muted);
  font-weight: 700;
}

.section-heading {
  max-width: 760px;
  padding: 62px 0 24px;
}

.section-heading p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

#strengths .section-heading {
  max-width: 100%;
}

#strengths .section-heading h2 {
  max-width: 100%;
  font-size: clamp(30px, 2.75vw, 38px);
  white-space: nowrap;
}

.capability-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 84px;
}

.capability-matrix article {
  position: relative;
  min-width: 0;
  padding: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform var(--fast), border-color var(--fast), box-shadow var(--fast), background var(--fast);
}

.capability-matrix article:hover {
  transform: translateY(-4px);
  border-color: rgba(107, 132, 128, 0.42);
  background: var(--white);
  box-shadow: 0 20px 46px rgba(16, 32, 30, 0.11);
}

.matrix-index {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--amber);
  font-weight: 900;
}

.capability-matrix h3 {
  font-size: 20px;
}

.capability-matrix p,
.case-header p,
.research-card p,
.timeline p,
.truth-note,
.evidence-wall p {
  color: var(--muted);
}

.capability-matrix strong {
  display: block;
  margin-top: 16px;
  color: var(--teal);
  font-size: 13px;
}

.project-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}

.project-nav a {
  background: var(--white);
  border: 1px solid var(--line);
}

.case-study {
  padding: 46px 0;
  border-top: 1px solid var(--line);
}

.case-study:last-child {
  padding-bottom: 0;
}

.case-kicker {
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 330px);
  gap: 28px;
  align-items: start;
}

.case-header p {
  margin: 14px 0 0;
  font-size: 17px;
}

.case-tags {
  justify-content: flex-end;
  margin: 4px 0 0;
}

.metric-row-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 18px;
}

.star-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.star-grid section {
  min-width: 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform var(--fast), border-color var(--fast), box-shadow var(--fast), background var(--fast);
}

.star-grid section:hover {
  transform: translateY(-2px);
  border-color: rgba(180, 147, 91, 0.28);
  background: var(--white);
  box-shadow: 0 16px 38px rgba(16, 32, 30, 0.1);
}

.star-grid span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  color: var(--white);
  background: var(--teal);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 900;
}

.star-grid h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.star-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.metric-row-grid > div {
  border-top: 3px solid var(--teal);
}

.metric-row-grid.accent-blue > div {
  border-top-color: var(--blue);
}

.metric-row-grid.accent-amber > div {
  border-top-color: var(--amber);
}

.metric-row-grid.accent-red > div {
  border-top-color: var(--red);
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
  gap: 16px;
  align-items: stretch;
}

.case-layout.balanced-layout {
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.pipeline-panel,
.sample-panel,
.analysis-grid section,
.result-tables section,
.research-card,
.contact-panel {
  min-width: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.pipeline-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: pipeline;
}

.pipeline-list li {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 12px 12px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  counter-increment: pipeline;
  transition: border-color var(--fast), background var(--fast), box-shadow var(--fast), transform var(--fast);
}

.pipeline-list li::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--amber));
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: opacity var(--fast), transform var(--slow);
}

.pipeline-list li::before {
  content: counter(pipeline, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 900;
  grid-row: 1 / span 2;
  transition: background var(--fast), box-shadow var(--fast), transform var(--fast);
}

.pipeline-list li span {
  display: block;
  grid-column: 2;
  font-weight: 850;
}

.pipeline-list li small {
  display: block;
  grid-column: 2;
  color: var(--muted);
}

.pipeline-list.compact li {
  grid-template-columns: 38px minmax(0, 1fr);
  padding: 10px 8px 10px 0;
}

.balanced-layout .pipeline-panel {
  padding: 20px;
}

.balanced-layout .pipeline-list {
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 12px;
}

.balanced-layout .pipeline-list li,
.balanced-layout .pipeline-list.compact li {
  min-height: 126px;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  padding: 13px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pipeline-list li:hover,
.pipeline-list li.is-active-step {
  border-color: rgba(160, 180, 154, 0.28);
  background: linear-gradient(135deg, rgba(160, 180, 154, 0.065), rgba(19, 22, 19, 0.98));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.pipeline-list li:hover::before,
.pipeline-list li.is-active-step::before {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(124, 145, 137, 0.12);
}

.pipeline-list li.is-active-step::after {
  opacity: 1;
  transform: scaleX(1);
}

.balanced-layout .pipeline-list li::before {
  width: 32px;
  height: 32px;
}

.balanced-layout .sample-panel {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: 16px;
  align-items: start;
}

.balanced-layout .sample-panel h4 {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.balanced-layout .sample-panel pre {
  min-height: 100%;
  margin: 0;
}

.balanced-layout .product-strip img {
  max-height: 156px;
}

.product-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.product-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  transition: transform var(--fast), filter var(--fast), border-color var(--fast), box-shadow var(--fast);
}

.product-strip img:hover {
  transform: translateY(-2px);
  border-color: rgba(107, 132, 128, 0.32);
  filter: saturate(1.02) contrast(1.03);
  box-shadow: 0 14px 30px rgba(16, 32, 30, 0.12);
}

pre {
  max-width: 100%;
  margin: 16px 0 0;
  padding: 16px;
  overflow: auto;
  color: #ece7dc;
  background: #16211f;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.55;
}

.tabs {
  margin-top: 20px;
  padding: 0;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tab-button {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.tab-button.is-active {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.tab-panel {
  display: none;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tab-panel.is-active {
  display: block;
}

.evidence-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.evidence-list li {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.evidence-list strong,
.evidence-list span {
  display: block;
}

.evidence-list span {
  margin-top: 6px;
  color: var(--muted);
}

.bar-chart {
  display: grid;
  gap: 12px;
}

.bar-chart > div {
  position: relative;
  display: grid;
  grid-template-columns: minmax(130px, 180px) 64px;
  gap: 12px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.bar-chart > div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  background: linear-gradient(90deg, rgba(107, 132, 128, 0.14), rgba(157, 183, 181, 0.1));
  transform-origin: left center;
  animation: growBar 900ms var(--ease-expressive) both;
}

.bar-chart span,
.bar-chart strong {
  position: relative;
  z-index: 1;
}

.figure-stack {
  display: grid;
  gap: 12px;
}

.figure-stack img,
.research-media-grid img,
.wide-figure-grid img {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform var(--fast), filter var(--fast), border-color var(--fast), box-shadow var(--fast);
}

.figure-stack img:hover,
.research-media-grid img:hover,
.wide-figure-grid img:hover {
  transform: translateY(-2px);
  border-color: rgba(112, 127, 160, 0.25);
  filter: saturate(1.02) contrast(1.02);
  box-shadow: 0 18px 42px rgba(16, 32, 30, 0.12);
}

.figure-stack img {
  height: 246px;
  object-fit: contain;
  padding: 8px;
}

.figure-stack.readable-figures {
  gap: 16px;
}

.figure-stack.readable-figures img {
  height: auto;
  max-height: none;
  padding: 10px;
}

.vlmeval-result-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.vlmeval-result-showcase.compact {
  grid-template-columns: 1fr;
  padding: 12px;
}

.vlm-result-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 20px;
  background:
    radial-gradient(circle at 12% 8%, rgba(160, 180, 154, 0.095), transparent 28%),
    linear-gradient(145deg, rgba(17, 19, 17, 0.98), rgba(8, 10, 9, 0.96));
  border: 1px solid rgba(160, 180, 154, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.vlm-result-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--amber));
  opacity: 0.9;
}

.vlm-result-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.vlm-result-head span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.vlm-result-head strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
  text-align: right;
}

.vlm-result-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vlm-result-metrics article {
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.vlm-result-metrics span,
.answer-row > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.vlm-result-metrics strong {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1;
}

.vlm-result-metrics small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.vlm-result-conclusion {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.answer-balance-grid {
  display: grid;
  gap: 12px;
}

.answer-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.answer-row > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(48px, 1fr));
  gap: 6px;
  min-width: 0;
}

.answer-row i {
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 8px 6px;
  color: var(--ink);
  background: rgba(160, 180, 154, 0.08);
  border: 1px solid rgba(160, 180, 154, 0.16);
  border-radius: calc(var(--radius) - 2px);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.answer-row i:nth-child(2) {
  background: rgba(157, 183, 181, 0.075);
  border-color: rgba(157, 183, 181, 0.16);
}

.answer-row i:nth-child(3) {
  background: rgba(167, 177, 198, 0.075);
  border-color: rgba(167, 177, 198, 0.16);
}

.answer-row i:nth-child(4) {
  background: rgba(200, 169, 106, 0.075);
  border-color: rgba(200, 169, 106, 0.16);
}

.analysis-grid,
.result-tables,
.wide-figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.rank-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rank-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.rank-list strong {
  white-space: nowrap;
}

.rank-list.good strong {
  color: var(--green);
}

.rank-list.risk strong {
  color: var(--red);
}

.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.taxonomy-grid > div {
  border-top: 3px solid var(--blue);
}

.research-media-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.05fr 1.05fr;
  gap: 14px;
  margin-top: 18px;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.research-media-grid img {
  height: 260px;
  object-fit: contain;
  padding: 8px;
}

.result-tables table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

th {
  color: var(--ink);
  background: var(--soft);
}

tr:last-child td {
  border-bottom: 0;
}

.highlight-row td {
  color: var(--teal);
  background: rgba(160, 180, 154, 0.075);
  font-weight: 850;
}

.wide-figure-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wide-figure-grid img {
  height: 230px;
  object-fit: contain;
  padding: 8px;
}

.sar-channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.sar-channel-grid img {
  width: 100%;
  height: 154px;
  aspect-ratio: 1.45;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: var(--shadow-soft);
  transition: transform var(--fast), filter var(--fast), border-color var(--fast), box-shadow var(--fast);
}

.sar-channel-grid img:hover {
  transform: translateY(-2px);
  border-color: rgba(112, 127, 160, 0.25);
  filter: saturate(1.02) contrast(1.03);
  box-shadow: 0 18px 42px rgba(16, 32, 30, 0.12);
}

.evidence-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 82px;
}

.evidence-wall h3 {
  font-size: 20px;
}

.evidence-wall span {
  display: inline-flex;
  margin-top: 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.evidence-project-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.evidence-card-head span {
  margin-top: 0;
}

.evidence-card-head h3 {
  margin-top: 4px;
}

.evidence-mini-list,
.source-list,
.detail-check-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.evidence-mini-list li,
.source-list li,
.detail-check-list li {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: rgba(160, 180, 154, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.evidence-mini-list strong,
.source-list strong,
.detail-check-list strong {
  font-size: 13px;
}

.evidence-mini-list span,
.source-list span,
.detail-check-list span {
  display: block;
  margin-top: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  text-transform: none;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: auto;
  padding: 8px 12px;
  color: var(--white);
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 850;
  transition: transform var(--fast), background var(--fast), box-shadow var(--fast);
}

.detail-link:hover {
  transform: translateY(-2px);
  background: var(--teal-2);
  box-shadow: 0 14px 30px rgba(16, 32, 30, 0.12);
}

.detail-page {
  background:
    linear-gradient(145deg, rgba(107, 132, 128, 0.052), transparent 36%),
    linear-gradient(315deg, rgba(180, 147, 91, 0.04), transparent 44%),
    var(--paper);
}

.detail-main {
  padding-bottom: 70px;
}

.detail-hero {
  padding: clamp(42px, 6vw, 78px) 0 34px;
}

.detail-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-hero h1 {
  max-width: 980px;
  font-size: clamp(34px, 5vw, 58px);
}

.detail-lead {
  max-width: 880px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 19px);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.detail-section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.detail-section h2 {
  margin-bottom: 16px;
  font-size: clamp(24px, 3vw, 34px);
}

.detail-grid,
.artifact-grid,
.code-map,
.detail-two-col {
  display: grid;
  gap: 14px;
}

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

.detail-gap {
  margin-top: 14px;
}

.detail-two-col {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

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

.code-map {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-panel,
.artifact-card,
.code-node {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.detail-panel h3,
.artifact-card h3,
.code-node h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.detail-panel p,
.artifact-card p,
.code-node p {
  margin: 0;
  color: var(--muted);
}

.artifact-card strong {
  display: block;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
}

.artifact-card span,
.path-chip {
  display: inline-flex;
  margin-top: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
}

.code-path {
  display: block;
  margin-top: 10px;
  color: #c8c2b8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.detail-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.detail-table-wrap table {
  min-width: 620px;
}

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

.detail-figure-grid img {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.source-list > span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 10px;
  color: #c8c2b8;
  background: rgba(160, 180, 154, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 750;
}

.detail-blueprint {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 14px;
  align-items: stretch;
}

.architecture-canvas,
.script-matrix,
.artifact-flow,
.paper-showcase,
.design-source-note {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.architecture-canvas {
  display: grid;
  gap: 10px;
}

.arch-stage {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 14px 14px 14px 46px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26, 30, 26, 0.92), rgba(14, 16, 14, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--fast), border-color var(--fast), box-shadow var(--fast);
}

.arch-stage::before {
  content: attr(data-step);
  position: absolute;
  left: 12px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--white);
  background: var(--ink);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
}

.arch-stage::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 42px;
  bottom: -18px;
  width: 2px;
  background: linear-gradient(var(--teal), transparent);
  opacity: 0.32;
}

.arch-stage:last-child::after {
  display: none;
}

.arch-stage:hover,
.script-card:hover,
.figure-card:hover {
  transform: translateY(-2px);
  border-color: rgba(107, 132, 128, 0.32);
  box-shadow: 0 16px 34px rgba(16, 32, 30, 0.11);
}

.arch-stage strong,
.script-card strong,
.flow-card strong {
  display: block;
  line-height: 1.3;
}

.arch-stage small,
.script-card span,
.flow-card span {
  color: var(--muted);
  font-size: 13px;
}

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

.script-card {
  min-width: 0;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--fast), border-color var(--fast), box-shadow var(--fast);
}

.script-card code,
.flow-card code,
.artifact-flow code {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.script-card[data-role="entry"] code,
.arch-stage[data-tone="blue"]::before {
  color: var(--white);
  background: var(--blue);
}

.script-card[data-role="eval"] code,
.arch-stage[data-tone="teal"]::before {
  color: var(--white);
  background: var(--teal);
}

.script-card[data-role="figure"] code,
.arch-stage[data-tone="amber"]::before {
  color: var(--white);
  background: var(--amber);
}

.script-card[data-role="test"] code,
.arch-stage[data-tone="green"]::before {
  color: var(--white);
  background: var(--green);
}

.detail-tab-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  align-items: start;
}

.flow-grid,
.artifact-flow {
  display: grid;
  gap: 10px;
}

.artifact-flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow-card {
  min-width: 0;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.source-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.source-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  color: #c8c2b8;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 820;
}

.metric-bars {
  display: grid;
  gap: 11px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(124px, 0.42fr) minmax(0, 1fr) 70px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.bar-track {
  height: 10px;
  overflow: hidden;
  background: #242a24;
  border-radius: 999px;
}

.bar-fill {
  width: calc(var(--value, 0) * 1%);
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--amber));
  border-radius: inherit;
  transform-origin: left center;
}

.motion-ready .reveal.is-visible .bar-fill {
  animation: growBar 760ms var(--ease-productive) both;
}

.paper-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 14px;
  align-items: start;
}

.paper-showcase h3 {
  margin: 0 0 8px;
}

.paper-showcase p {
  margin: 0;
  color: var(--muted);
}

.paper-visual-grid,
.figure-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.figure-gallery.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.figure-card {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform var(--fast), border-color var(--fast), box-shadow var(--fast);
}

.figure-card img {
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  cursor: zoom-in;
}

.vlm-result-figure .vlmeval-result-showcase {
  border-bottom: 1px solid var(--line);
}

.vlm-result-figure .vlm-result-card {
  border-radius: 0;
  box-shadow: none;
}

.figure-card figcaption {
  padding: 12px 13px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.figure-card figcaption strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 14px;
}

.wide-figure {
  grid-column: 1 / -1;
}

.design-source-note {
  border-left: 4px solid var(--blue);
}

.design-source-note p {
  margin: 0;
  color: var(--muted);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(16, 32, 30, 0.78);
}

.image-lightbox.is-open {
  display: grid;
}

.image-lightbox figure {
  width: min(1120px, 100%);
  max-height: min(86vh, 920px);
  margin: 0;
  overflow: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-lightbox img {
  width: 100%;
}

.image-lightbox figcaption {
  padding: 12px 14px;
  color: var(--muted);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: rgba(16, 32, 30, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  cursor: pointer;
}

.detail-note {
  margin-top: 14px;
  padding: 14px;
  color: var(--muted);
  background: rgba(160, 180, 154, 0.055);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
}

.research-layout {
  padding-bottom: 64px;
}

.research-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
}

.publication-badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 9px;
  color: var(--white);
  background: var(--amber);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 900;
}

.publication-points {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.publication-points li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 8px;
}

.timeline article {
  min-width: 0;
  padding: 22px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
}

.timeline span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.timeline h3 {
  margin-top: 10px;
  font-size: 19px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 28px;
  align-items: start;
  padding: 64px 0;
}

.contact-copy h2 span {
  display: block;
}

.contact-title-first,
.contact-title-second {
  white-space: nowrap;
}

.contact-copy p:last-child {
  color: var(--muted);
}

.contact-panel {
  display: grid;
  gap: 12px;
}

.contact-panel a {
  color: var(--teal);
  font-size: 22px;
  font-weight: 900;
  word-break: break-all;
}

.contact-panel small {
  min-height: 20px;
  color: var(--teal);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(20px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--white);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--slow), transform var(--slow);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

.motion-ready .reveal.is-visible .metric-tile,
.motion-ready .reveal.is-visible .metric-row-grid > div,
.motion-ready .reveal.is-visible .star-grid section,
.motion-ready .reveal.is-visible .evidence-wall article,
.motion-ready .reveal.is-visible .timeline article {
  animation: itemRise 520ms var(--ease-expressive) both;
  animation-delay: var(--stagger, 0ms);
}

.motion-ready .pipeline-list li.is-active-step::before {
  animation: stepPulse 780ms var(--ease-expressive) both;
}

.motion-ready .reveal.is-visible .arch-stage,
.motion-ready .reveal.is-visible .script-card,
.motion-ready .reveal.is-visible .figure-card {
  animation: itemRise 520ms var(--ease-productive) both;
  animation-delay: var(--stagger, 0ms);
}

@keyframes growBar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes itemRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stackSlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 6px));
  }
}

@keyframes stepPulse {
  0% {
    transform: scale(0.92);
  }
  55% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 1080px) {
  .hero,
  .case-layout,
  .contact-section,
  .research-card {
    grid-template-columns: 1fr;
  }

  .bento-hero {
    width: min(100% - 36px, 980px);
  }

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

  .bento-photo {
    grid-column: 1 / span 2;
    grid-row: auto;
  }

  .bento-intro {
    grid-column: 3 / span 4;
    grid-row: auto;
  }

  .bento-route,
  .bento-highlight {
    grid-column: span 2;
    grid-row: auto;
  }

  .bento-resource,
  .bento-about,
  .bento-signal-grid,
  .bento-stack,
  .bento-service,
  .bento-contact {
    grid-column: span 3;
    grid-row: auto;
  }

  .bento-media,
  .bento-paper {
    grid-column: span 3;
    grid-row: auto;
  }

  .capability-matrix,
  .evidence-wall,
  .timeline,
  .artifact-grid,
  .artifact-flow,
  .code-map,
  .detail-grid,
  .script-matrix,
  .figure-gallery.three-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-two-col,
  .detail-blueprint,
  .detail-tab-layout,
  .paper-showcase {
    grid-template-columns: 1fr;
  }

  .metric-row-grid,
  .taxonomy-grid,
  .star-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .case-tags {
    justify-content: flex-start;
  }

  .balanced-layout .sample-panel {
    grid-template-columns: 1fr;
  }

  .balanced-layout .sample-panel pre {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 66px;
  }

  body {
    background-size: 32px 32px;
  }

  .site-header {
    padding: 10px 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 18px 16px;
    background: rgba(9, 10, 9, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--line);
  }

  .section-shell {
    width: min(100% - 28px, var(--max));
  }

  .section-band {
    padding: 30px 0;
  }

  .hero {
    min-height: auto;
    padding: 42px 0 56px;
  }

  .bento-hero {
    width: min(100% - 28px, var(--max));
    padding-top: 24px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 12px;
  }

  .bento-photo,
  .bento-intro,
  .bento-route,
  .bento-resource,
  .bento-about,
  .bento-highlight,
  .bento-signal-grid,
  .bento-media,
  .bento-stack,
  .bento-paper,
  .bento-service,
  .bento-contact {
    grid-column: 1;
    grid-row: auto;
  }

  .bento-intro,
  .bento-about,
  .bento-resource,
  .bento-stack,
  .bento-service,
  .bento-contact {
    padding: 24px;
  }

  .bento-intro h1,
  .bento-card h2 {
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .bento-photo img {
    min-height: 360px;
  }

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

  .bento-signal-grid span {
    min-height: 96px;
  }

  .bento-media img,
  .bento-paper img {
    min-height: 230px;
  }

  h1 {
    font-size: clamp(34px, 10.8vw, 46px);
  }

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

  .button {
    justify-content: center;
  }

  .dashboard-grid,
  .capability-matrix,
  .metric-row-grid,
  .star-grid,
  .analysis-grid,
  .vlmeval-result-showcase,
  .taxonomy-grid,
  .research-media-grid,
  .result-tables,
  .wide-figure-grid,
  .artifact-grid,
  .artifact-flow,
  .code-map,
  .detail-grid,
  .detail-two-col,
  .detail-blueprint,
  .detail-tab-layout,
  .detail-figure-grid,
  .script-matrix,
  .paper-showcase,
  .paper-visual-grid,
  .figure-gallery,
  .figure-gallery.three-col,
  .evidence-wall,
  .timeline,
  .case-header,
  .evidence-list {
    grid-template-columns: 1fr;
  }

  .vlm-result-metrics,
  .answer-row {
    grid-template-columns: 1fr;
  }

  .answer-row > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero-media-strip img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .section-heading {
    padding: 42px 0 18px;
  }

  #strengths .section-heading h2 {
    white-space: normal;
  }

  .contact-title-first {
    white-space: normal;
  }

  .case-study {
    padding: 30px 0;
  }

  .star-grid {
    gap: 10px;
    margin-bottom: 14px;
  }

  .star-grid section {
    padding: 14px;
  }

  .project-nav {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 12px;
  }

  .project-nav a {
    justify-content: center;
  }

  .product-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-feature {
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: center;
  }

  .profile-feature img {
    width: 132px;
  }

  .balanced-layout .pipeline-list {
    grid-template-columns: 1fr;
  }

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

  .image-lightbox {
    padding: 12px;
  }

  .figure-stack img,
  .research-media-grid img,
  .wide-figure-grid img {
    height: auto;
    max-height: none;
  }

  .sar-channel-grid {
    grid-template-columns: 1fr;
  }

  th,
  td {
    padding: 9px 8px;
    font-size: 13px;
  }
}

@media (max-width: 460px) {
  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .brand strong {
    font-size: 15px;
  }

  .skill-tags li,
  .case-tags li {
    font-size: 12px;
  }

  .metric-tile strong,
  .metric-row-grid strong,
  .taxonomy-grid strong {
    font-size: 24px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .bento-stack-track {
    animation: none !important;
    flex-wrap: wrap;
    width: auto;
    transform: none;
  }
}
