:root {
  --ink: #0a1730;
  --muted: #536079;
  --blue: #1264ff;
  --blue-2: #2672ff;
  --blue-soft: #eef4ff;
  --blue-pale: #f7faff;
  --orange: #ff9400;
  --orange-soft: #fff7eb;
  --green: #18a873;
  --green-soft: #edf9f5;
  --purple: #7357df;
  --red: #e35b67;
  --teal: #08a1a8;
  --line: rgba(25, 47, 83, var(--border-alpha));
  --line-strong: rgba(25, 47, 83, .23);
  --paper-pad-x: 53px;
  --paper-pad-y: 42px;
  --project-title-size: 44px;
  --base-font-size: 14px;
  --module-gap: 16px;
  --section-gap: 24px;
  --card-radius: 11px;
  --watermark-size: 94px;
  --fact-gap: 28px;
  --density: 1;
  --border-alpha: .16;
  --shadow: 0 8px 28px rgba(20, 40, 74, .07);
  --card-shadow: 0 5px 14px rgba(25, 45, 80, .055);
  --page-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #f5f7fb;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 0%, rgba(31, 101, 255, .05), transparent 31rem),
    #f5f7fb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  font-size: var(--base-font-size);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.preview-mode {
  min-width: 320px;
  background: #fff;
  overflow-x: hidden;
}

button,
a {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

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

.icon {
  width: 1.55em;
  height: 1.55em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 16px;
  top: -80px;
  padding: 9px 13px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

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

/* --------------------------------------------------------------------------
   Site chrome and route pages
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(16, 34, 63, .09);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
}

.site-header-inner,
.site-footer-inner {
  width: min(calc(100% - 48px), var(--page-max));
  margin: 0 auto;
}

.site-header-inner {
  position: relative;
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .19em;
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
}

.desktop-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 27px;
}

.desktop-nav a,
.site-footer nav a {
  color: #6a7488;
  font-size: 13px;
  font-weight: 650;
}

.desktop-nav a[aria-current="page"],
.site-footer nav a[aria-current="page"] {
  color: var(--ink);
}

.mobile-menu-button,
.mobile-nav {
  display: none;
}

.site-footer {
  padding: 38px 0;
  color: #dce5f4;
  background: #071426;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer p {
  margin: 0;
}

.footer-kicker {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.site-footer-inner > div > p:last-child {
  margin-top: 4px;
  color: #8d9bb0;
  font-size: 13px;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 0 21px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}

.primary-button {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 10px 20px rgba(4, 20, 44, .16);
}

.secondary-button {
  color: var(--ink);
  border: 1px solid rgba(18, 42, 80, .15);
  background: #fff;
}

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

.project-index-section {
  padding: 50px 24px;
  background: #fff;
}

.project-index-list {
  width: min(100%, 1080px);
  margin: 0 auto;
  border-top: 1px solid rgba(20, 42, 75, .14);
}

.project-index-card {
  display: grid;
  grid-template-columns: 75px minmax(220px, 1.1fr) minmax(260px, 1.5fr) 75px;
  align-items: center;
  gap: 25px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(20, 42, 75, .14);
}

.index-number {
  color: #b7c2d5;
  font-size: 23px;
  font-weight: 800;
}

.project-index-card p,
.project-index-card h2 {
  margin: 0;
}

.project-index-card > div > p {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.project-index-card h2 {
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.28;
}

.index-message {
  color: #667185;
  font-size: 14px;
}

.project-index-card > a {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
}

.project-list {
  padding: 54px 24px 76px;
  background: #f3f6fa;
}

.related-section {
  padding: 70px 24px;
  background: #fff;
}

.related-section > div {
  width: min(100%, 1080px);
  margin: 0 auto;
}

.related-section h2 {
  margin: 8px 0 28px;
  font-size: 34px;
  letter-spacing: -.04em;
}

.related-section nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.related-section nav a {
  display: flex;
  justify-content: space-between;
  padding: 19px;
  border: 1px solid rgba(18, 43, 81, .13);
  border-radius: 10px;
  font-weight: 750;
}

/* --------------------------------------------------------------------------
   Project detail common frame
   -------------------------------------------------------------------------- */
.project-paper {
  position: relative;
  width: min(100%, 1024px);
  margin: 0 auto 52px;
  padding: calc(var(--paper-pad-y) * var(--density)) var(--paper-pad-x);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(14px);
  transition: transform .45s ease;
}

.project-paper.is-visible,
.project-paper.project-standalone {
  transform: none;
}

.preview-mode .project-paper {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  border-radius: var(--card-radius);
  box-shadow: none;
}

.project-heading {
  position: relative;
  z-index: 1;
  padding-right: 160px;
}

.project-eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: calc(var(--base-font-size) * 1.07);
  font-weight: 800;
}

.project-heading h2 {
  margin: 0;
  color: #09172f;
  font-size: var(--project-title-size);
  font-weight: 790;
  line-height: 1.14;
  letter-spacing: -.045em;
}

.project-summary {
  max-width: 780px;
  margin: 8px 0 0;
  color: #4f5c72;
  font-size: calc(var(--base-font-size) * .99);
  line-height: 1.62;
}

.project-watermark {
  position: absolute;
  z-index: -1;
  top: -20px;
  right: -7px;
  color: #f0f4fc;
  font-size: var(--watermark-size);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.06em;
  user-select: none;
}

.project-overview-grid {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 37px;
  margin-top: calc(38px * var(--density));
}

.project-toc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 3px 25px 0 0;
  border-right: 1px solid var(--line);
}

.project-toc a {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  color: #687388;
  font-size: calc(var(--base-font-size) * .86);
  font-weight: 580;
  line-height: 1.25;
}

.project-toc a::before {
  width: 3px;
  height: 18px;
  margin-left: -1px;
  content: "";
  border-radius: 2px;
  background: transparent;
}

.project-toc a .icon {
  width: 16px;
  height: 16px;
}

.project-toc a.active {
  color: var(--blue);
  font-weight: 750;
}

.project-toc a.active::before {
  background: var(--blue);
}

.project-overview-main {
  min-width: 0;
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--fact-gap);
  margin: 0 0 calc(var(--section-gap) * .95);
}

.project-facts.facts-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.project-facts > div {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  min-width: 0;
  padding-right: 14px;
}

.project-facts > div:not(:last-child)::after {
  position: absolute;
  top: 1px;
  right: -15px;
  width: 1px;
  height: 39px;
  content: "";
  background: var(--line);
}

.project-facts.facts-four > div:not(:last-child)::after {
  right: -6px;
}

.fact-icon {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--blue);
}

.fact-icon .icon {
  width: 27px;
  height: 27px;
  stroke-width: 1.75;
}

.project-facts dt,
.project-facts dd {
  overflow-wrap: anywhere;
}

.project-facts dt {
  margin: 0;
  color: #17233a;
  font-size: calc(var(--base-font-size) * .82);
  font-weight: 780;
  line-height: 1.2;
}

.project-facts dd {
  margin: 5px 0 0;
  color: #48556d;
  font-size: calc(var(--base-font-size) * .82);
  line-height: 1.42;
}

.facts-four dt,
.facts-four dd {
  font-size: calc(var(--base-font-size) * .72);
}

.primer-grid {
  display: grid;
  grid-template-columns: 1fr 1.23fr;
  gap: var(--module-gap);
}

.primer-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  min-height: calc(112px * var(--density));
  padding: 19px 21px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: var(--card-shadow);
}

.primer-icon {
  padding-top: 1px;
}

.primer-icon .icon {
  width: 27px;
  height: 27px;
}

.primer-card h3,
.primer-card p {
  margin: 0;
}

.primer-card h3 {
  margin: 0 0 8px;
  color: #1d2b43;
  font-size: calc(var(--base-font-size) * .88);
}

.primer-card p {
  color: #354258;
  font-size: calc(var(--base-font-size) * .81);
  line-height: 1.68;
}

.tone-blue .primer-icon,
.tone-blue h3 {
  color: var(--blue);
}

.tone-orange .primer-icon,
.tone-orange h3 {
  color: var(--orange);
}

.tone-green .primer-icon,
.tone-green h3 {
  color: var(--green);
}

.tone-teal .primer-icon,
.tone-teal h3 {
  color: var(--teal);
}

.tone-ink .primer-icon,
.tone-ink h3 {
  color: var(--ink);
}

.project-content {
  margin-top: calc(28px * var(--density));
}

.content-label,
.strategy-title,
.tech-section > h3 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: calc(var(--base-font-size) * .88);
  font-weight: 800;
}

.project-primary {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--card-radius) - 1px);
  background: #edf1f6;
}

.project-primary img {
  width: 100%;
  height: auto;
}

.project-primary figcaption {
  position: absolute;
  bottom: 13px;
  left: 13px;
  max-width: calc(100% - 26px);
  padding: 6px 10px;
  color: #fff;
  border-radius: 4px;
  background: rgba(5, 15, 30, .72);
  font-size: calc(var(--base-font-size) * .66);
  font-weight: 650;
  line-height: 1.35;
  backdrop-filter: blur(7px);
}

.decision-banner {
  display: flex;
  align-items: center;
  gap: 31px;
  min-height: calc(108px * var(--density));
  margin: calc(var(--section-gap) * .95) 0 calc(var(--section-gap) * .9);
  padding: 20px 34px;
  border: 1.5px solid var(--blue);
  border-radius: var(--card-radius);
  background: linear-gradient(110deg, #fff 0%, #f8fbff 100%);
}

.decision-check {
  display: grid;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #347cff, #0c53ed);
  box-shadow: 0 8px 18px rgba(20, 95, 255, .25);
}

.decision-check .icon {
  width: 31px;
  height: 31px;
  stroke-width: 2.2;
}

.decision-banner p {
  margin: 0;
  color: #0a1730;
  font-size: calc(var(--base-font-size) * 1.52);
  font-weight: 790;
  line-height: 1.48;
  letter-spacing: -.025em;
}

.decision-banner p.has-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: .25em;
}

.decision-accent {
  color: var(--blue);
}

.decision-accent.green {
  color: var(--green);
}

.decision-sub {
  flex-basis: 100%;
  margin-top: 2px;
  color: #566177;
  font-size: calc(var(--base-font-size) * .79);
  font-weight: 500;
  letter-spacing: 0;
}

.decision-banner-dark {
  color: #fff;
  border-color: #26466e;
  background: linear-gradient(115deg, #0a1b31, #112946);
  box-shadow: inset 0 0 0 1px rgba(108, 160, 226, .17), 0 9px 24px rgba(5, 18, 37, .14);
}

.decision-banner-dark p {
  color: #fff;
}

.strategy-section {
  margin-top: 0;
}

.card-soft {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: var(--card-shadow);
}

.dark-card,
.dark-flow-panel {
  color: #fff;
  border: 1px solid rgba(112, 153, 205, .28);
  border-radius: var(--card-radius);
  background:
    radial-gradient(circle at 74% 15%, rgba(65, 116, 194, .18), transparent 60%),
    linear-gradient(145deg, #07162a, #102641);
  box-shadow: inset 0 0 0 1px rgba(113, 162, 226, .06), 0 8px 20px rgba(7, 24, 45, .12);
}

.strategy-kicker {
  margin: 0;
  color: var(--blue);
  font-size: calc(var(--base-font-size) * .72);
  font-weight: 810;
  line-height: 1.35;
}

.strategy-section h4,
.strategy-section p {
  margin-top: 0;
}

.strategy-section h4 {
  margin-bottom: 10px;
  font-size: calc(var(--base-font-size) * 1.14);
  line-height: 1.47;
  letter-spacing: -.022em;
}

.strategy-section p {
  margin-bottom: 0;
  color: #536079;
  font-size: calc(var(--base-font-size) * .78);
  line-height: 1.7;
}

.number-badge {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--blue);
  font-size: calc(var(--base-font-size) * .67);
  font-weight: 850;
  box-shadow: 0 4px 10px rgba(18, 100, 255, .2);
}

.label-icon {
  color: var(--blue);
}

.label-icon .icon {
  width: 27px;
  height: 27px;
}

.artifact-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 16px;
}

.artifact-heading > span {
  color: var(--blue);
}

.artifact-heading > span .icon {
  width: 25px;
  height: 25px;
}

.artifact-heading p {
  margin-top: 4px;
}

/* Pipeline primitive */
.pipeline {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
}

.pipeline-unit-wrap {
  display: flex;
  min-width: 0;
  flex: 1 1 0;
  align-items: center;
}

.pipeline-unit {
  display: flex;
  min-width: 0;
  min-height: 112px;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 7px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.pipeline-icon {
  display: grid;
  width: 35px;
  height: 35px;
  margin-bottom: 7px;
  place-items: center;
  color: var(--blue);
  border-radius: 9px;
  background: #f2f6ff;
}

.pipeline-icon .icon {
  width: 23px;
  height: 23px;
}

.pipeline-unit img {
  width: calc(100% + 14px);
  height: 52px;
  margin: -12px -7px 8px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.pipeline-unit strong {
  color: #14223b;
  font-size: calc(var(--base-font-size) * .68);
  line-height: 1.32;
}

.pipeline-unit > span:last-child {
  margin-top: 3px;
  color: #6d788a;
  font-size: calc(var(--base-font-size) * .57);
  line-height: 1.3;
}

.pipeline-arrow {
  display: grid;
  width: 26px;
  flex: 0 0 26px;
  place-items: center;
  color: #5877ae;
}

.pipeline-arrow .icon {
  width: 17px;
  height: 17px;
}

.pipeline-dark .pipeline-unit {
  color: #fff;
  border-color: rgba(110, 155, 216, .33);
  background: rgba(17, 40, 69, .73);
}

.pipeline-dark .pipeline-icon {
  color: #b9d8ff;
  border: 1px solid rgba(106, 151, 217, .35);
  border-radius: 50%;
  background: rgba(42, 76, 118, .35);
}

.pipeline-dark .pipeline-unit strong {
  color: #fff;
}

.pipeline-dark .pipeline-unit > span:last-child {
  color: #9fb1c8;
}

.pipeline-dark .pipeline-arrow {
  color: #508eff;
}

/* --------------------------------------------------------------------------
   Development type: 걸음걸음
   -------------------------------------------------------------------------- */
.development-grid {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: var(--module-gap);
}

.development-lead {
  padding: 24px 20px;
  background: linear-gradient(145deg, #fbfdff, #f6f9ff);
}

.development-lead .strategy-kicker {
  display: inline-block;
  margin: 0 0 19px 7px;
}

.development-lead h4 {
  margin-top: 13px;
  font-size: calc(var(--base-font-size) * 1.42);
  line-height: 1.55;
}

.development-contract {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  padding: 22px 24px;
}

.development-contract > div:first-child {
  padding-right: 25px;
  border-right: 1px solid var(--line);
}

.development-contract > div:first-child > p {
  margin-top: 4px;
}

.contract-steps {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.contract-steps li {
  display: grid;
  grid-template-columns: 28px 42px 1fr;
  align-items: center;
  min-height: 39px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.contract-steps li > span {
  color: var(--blue);
}

.contract-steps .icon {
  width: 18px;
  height: 18px;
}

.contract-steps small {
  color: #31405a;
  font-size: calc(var(--base-font-size) * .67);
  font-weight: 750;
}

.contract-steps strong {
  font-size: calc(var(--base-font-size) * .76);
}

.routing-artifact {
  padding-left: 26px;
}

.routing-artifact p {
  margin-top: 7px;
}

.routing-artifact-image {
  display: block;
  width: min(100%, 214px);
  height: auto;
  aspect-ratio: 4 / 3;
  margin: 14px auto 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  object-fit: cover;
}

.mode-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--module-gap);
  margin: var(--module-gap) 0 0;
  padding: 0;
  list-style: none;
}

.mode-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: var(--card-shadow);
}

.mode-copy {
  display: flex;
  gap: 12px;
  min-height: 106px;
  padding: 15px;
}

.mode-copy h4 {
  margin: 0 0 5px;
  font-size: calc(var(--base-font-size) * .93);
}

.mode-copy p {
  font-size: calc(var(--base-font-size) * .68);
}

.mode-card img {
  width: 100%;
  height: 154px;
  object-fit: cover;
}

.mode-card-orange .number-badge {
  background: var(--orange);
  box-shadow: 0 4px 10px rgba(255, 148, 0, .22);
}

/* --------------------------------------------------------------------------
   Reframe: PathFinder
   -------------------------------------------------------------------------- */
.pathfinder-grid {
  display: grid;
  /* Give 01 and 02 a shared first row, then let the signature artifact use
     the full second row so all three visuals remain easy to read. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--module-gap);
}

.numbered-story,
.signature-card {
  min-width: 0;
  padding: 18px;
}

.pathfinder-grid .signature-card {
  grid-column: 1 / -1;
}

.story-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
}

.story-head .strategy-kicker {
  margin: 0;
}

.numbered-story h4 {
  min-height: 77px;
  margin-bottom: 12px;
  font-size: calc(var(--base-font-size) * 1.02);
}

.numbered-story > p {
  min-height: 68px;
  font-size: calc(var(--base-font-size) * .67);
}

.disconnected-visual,
.connected-visual {
  position: relative;
  height: 155px;
  margin-top: 13px;
}

.faint-network {
  position: absolute;
  inset: 7px 10px 70px;
  opacity: .45;
  background-image:
    radial-gradient(circle at 14% 54%, #b8cbe9 0 4px, transparent 5px),
    radial-gradient(circle at 34% 28%, #91b2e7 0 5px, transparent 6px),
    radial-gradient(circle at 53% 58%, #cad7ec 0 4px, transparent 5px),
    radial-gradient(circle at 77% 32%, #a7bee3 0 4px, transparent 5px),
    radial-gradient(circle at 89% 65%, #d3deef 0 4px, transparent 5px),
    linear-gradient(25deg, transparent 48%, #d3deef 49% 51%, transparent 52%),
    linear-gradient(-20deg, transparent 48%, #d3deef 49% 51%, transparent 52%);
}

.loose-inputs,
.question-row {
  position: absolute;
  right: 0;
  bottom: 26px;
  left: 0;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.loose-inputs span {
  flex: 1;
  padding: 8px 2px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #4a5871;
  font-size: 10px;
}

.question-row {
  bottom: 0;
}

.question-row b {
  flex: 1;
  color: #c7d2e4;
  text-align: center;
  font-size: 24px;
}

.network-nodes {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(29deg, transparent 48%, #90afe0 49% 51%, transparent 52%),
    linear-gradient(-22deg, transparent 48%, #a8bde0 49% 51%, transparent 52%),
    linear-gradient(75deg, transparent 48%, #c5d2e6 49% 51%, transparent 52%);
}

.network-nodes i {
  position: absolute;
  left: calc(9% + (var(--i) % 4) * 25%);
  top: calc(7% + (var(--i) / 4) * 38%);
  width: calc(12px + (var(--i) % 3) * 3px);
  height: calc(12px + (var(--i) % 3) * 3px);
  border-radius: 50%;
  background: hsl(218 100% calc(55% + (var(--i) % 3) * 12%));
  box-shadow: 0 0 0 3px #fff;
}

.signature-caption {
  margin-bottom: 12px !important;
  color: #42506a !important;
}

.pathfinder-pipeline .pipeline-unit {
  min-height: 105px;
}

.outcome-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 14px;
}

.outcome-cards article {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.outcome-cards article > span {
  color: var(--blue);
}

.outcome-cards .icon {
  width: 20px;
  height: 20px;
}

.outcome-cards h4 {
  margin: 8px 0 5px;
  color: var(--blue);
  font-size: calc(var(--base-font-size) * .75);
}

.outcome-cards p {
  font-size: calc(var(--base-font-size) * .58);
}

/* --------------------------------------------------------------------------
   Reframe: Aegis
   -------------------------------------------------------------------------- */
.before-after {
  display: grid;
  grid-template-columns: 1fr 54px 1fr;
  align-items: stretch;
  padding: 20px;
  background: linear-gradient(90deg, #f9fbfe 0 47%, #f0f6ff 53% 100%);
}

.before-state,
.after-state {
  position: relative;
  display: grid;
  min-height: 170px;
  align-content: center;
  justify-items: center;
  padding: 12px 25px;
  text-align: center;
}

.before-state h4,
.after-state h4 {
  margin: 7px 0 5px;
  font-size: calc(var(--base-font-size) * 1.2);
}

.state-icon {
  display: grid;
  width: 51px;
  height: 51px;
  margin-top: 10px;
  place-items: center;
  color: #6d788b;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.after-state .state-icon {
  color: var(--blue);
  box-shadow: 0 6px 16px rgba(20, 94, 255, .13);
}

.state-icon .icon {
  width: 27px;
  height: 27px;
}

.reframe-arrow {
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 29px;
  font-weight: 500;
}

.role-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--module-gap);
  margin-top: var(--module-gap);
}

.role-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 18px;
}

.role-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--blue);
  border-radius: 9px;
  background: var(--blue-soft);
}

.role-icon .icon {
  width: 22px;
  height: 22px;
}

.role-card h4 {
  margin: 6px 0;
  font-size: calc(var(--base-font-size) * .9);
}

.role-card p {
  font-size: calc(var(--base-font-size) * .66);
}

.artifact-panel {
  margin-top: var(--module-gap);
  padding: 20px;
}

.aegis-pipeline .pipeline-unit {
  min-height: 106px;
}

/* --------------------------------------------------------------------------
   Reframe: parking
   -------------------------------------------------------------------------- */
.parking-top {
  display: grid;
  grid-template-columns: .92fr 1.7fr;
  gap: var(--module-gap);
}

.parking-symptom,
.parking-change {
  padding: 20px;
}

.parking-symptom h4,
.parking-change h4 {
  margin-top: 9px;
}

.unstable-scene {
  position: relative;
  height: 122px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(165deg, transparent 49%, rgba(255,255,255,.1) 50%),
    linear-gradient(135deg, #1b2939, #425162);
}

.unstable-scene::before {
  position: absolute;
  right: 18%;
  bottom: 8px;
  left: 18%;
  height: 72px;
  content: "";
  border: 3px dashed rgba(255, 185, 61, .7);
  transform: perspective(120px) rotateX(45deg);
}

.unstable-scene span {
  position: absolute;
  width: 33px;
  height: 28px;
  border: 2px solid #f5bd57;
}

.unstable-scene span:nth-child(1) { left: 15%; top: 39px; }
.unstable-scene span:nth-child(2) { left: 43%; top: 22px; }
.unstable-scene span:nth-child(3) { right: 15%; top: 49px; }
.unstable-scene b {
  position: absolute;
  bottom: 7px;
  left: 9px;
  color: #fff;
  font-size: 10px;
}

.parallel-branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.parallel-branches article {
  display: grid;
  grid-template-columns: 30px 1fr;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbff;
}

.parallel-branches article > span {
  grid-row: 1 / 4;
  color: var(--blue);
}

.parallel-branches small {
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
}

.parallel-branches strong {
  font-size: 13px;
}

.parallel-branches p {
  margin-top: 3px;
  font-size: 9px;
}

.effect-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 13px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.effect-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #46536b;
  font-size: 10px;
}

.effect-list .icon {
  width: 15px;
  height: 15px;
  color: var(--green);
}

.parking-artifact {
  padding: 14px 18px 16px;
}

.parking-pipeline-reference {
  display: block;
  width: 100%;
  min-width: 0;
}

.parking-pipeline-title {
  margin: 0 0 9px;
  color: var(--blue);
  font-size: calc(var(--base-font-size) * .72);
  font-weight: 850;
  line-height: 1.3;
}

.parking-pipeline-row {
  display: grid;
  grid-template-columns: minmax(108px, .95fr) 24px minmax(250px, 2.15fr) 24px minmax(108px, .95fr) 24px minmax(124px, 1.08fr);
  align-items: center;
  min-width: 0;
}

.parking-pipeline-step,
.parking-parallel {
  min-width: 0;
}

.parking-pipeline-step {
  display: flex;
  align-items: stretch;
}

.parking-pipeline-step .pipeline-unit {
  width: 100%;
}

.parking-pipeline-reference .pipeline-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
}

.parking-pipeline-reference .pipeline-icon .icon {
  width: 28px;
  height: 28px;
}

.parking-pipeline-arrow {
  display: grid;
  width: 24px;
  min-width: 24px;
  place-items: center;
  color: #5877ae;
}

.parking-pipeline-arrow .icon {
  width: 20px;
  height: 20px;
}

.parking-parallel {
  display: grid;
  gap: 5px;
  align-self: stretch;
}

.parking-parallel-label {
  display: block;
  color: var(--blue);
  font-size: calc(var(--base-font-size) * .66);
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
}

.parking-parallel-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  padding: 7px;
  border: 1px dashed #b7c7df;
  border-radius: 9px;
  background: #fbfcff;
}

.parking-parallel-group .pipeline-unit {
  min-width: 0;
}

.parking-parallel-divider {
  display: grid;
  place-items: center;
  color: #6d82a6;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.parking-pipeline-reference .pipeline-unit {
  min-height: 115px;
}

/* --------------------------------------------------------------------------
   Reframe: competition
   -------------------------------------------------------------------------- */
.competition-lead,
.ros-lead {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  padding: 19px 21px;
}

.competition-lead h4,
.ros-lead h4 {
  margin: 4px 0 5px;
}

.boundary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--module-gap);
  margin-top: var(--module-gap);
}

.boundary-card {
  position: relative;
  min-height: 162px;
  padding: 18px;
}

.boundary-index {
  position: absolute;
  top: 14px;
  right: 14px;
  color: #d5dfef;
  font-size: 24px;
  font-weight: 850;
}

.boundary-icon {
  color: var(--blue);
}

.boundary-icon .icon {
  width: 26px;
  height: 26px;
}

.boundary-card h4 {
  margin: 10px 0 8px;
  font-size: calc(var(--base-font-size) * .86);
}

.boundary-card ul {
  margin: 0;
  padding-left: 15px;
  color: #5a667a;
  font-size: calc(var(--base-font-size) * .65);
}

.mission-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 12px;
}

.mission-cards article {
  display: grid;
  grid-template-columns: 29px 1fr;
  column-gap: 9px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfe;
}

.mission-cards article > span {
  grid-row: 1 / 3;
  color: var(--blue);
}

.mission-cards h4 {
  margin: 0;
  font-size: 11px;
}

.mission-cards p {
  font-size: 9px;
}

/* --------------------------------------------------------------------------
   Operations: Hermes
   -------------------------------------------------------------------------- */
.hermes-stage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stage-card {
  min-height: 0;
  padding: 18px;
}

.stage-card .strategy-kicker {
  color: #80b4ff;
}

.stage-card .number-badge {
  margin-bottom: 17px;
}

.stage-card h4 {
  margin: 8px 0 12px;
  color: #fff;
  font-size: calc(var(--base-font-size) * .8);
}

.stage-card p {
  color: #b3bfd0;
  font-size: calc(var(--base-font-size) * .64);
}

.dark-flow-panel {
  margin-top: var(--module-gap);
  padding: 18px 21px 21px;
}

.dark-panel-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: #fff;
  font-size: 11px;
}

.dark-panel-title .icon {
  width: 20px;
  height: 20px;
}

.hermes-pipeline .pipeline-unit {
  min-height: 116px;
  border: 0;
  background: transparent;
}

.hermes-pipeline .pipeline-icon {
  width: 53px;
  height: 53px;
}

.hermes-pipeline .pipeline-icon .icon {
  width: 30px;
  height: 30px;
}

/* --------------------------------------------------------------------------
   Operations: RL
   -------------------------------------------------------------------------- */
.rl-top-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--module-gap);
}

.rl-issue,
.rl-roles {
  padding: 20px;
}

.rl-issue h4,
.rl-roles h4 {
  margin-top: 8px;
}

.diagnostic-rows {
  display: grid;
  gap: 0;
  margin: 12px 0 0;
}

.diagnostic-rows > div {
  display: grid;
  grid-template-columns: 25px 42px 1fr;
  align-items: center;
  min-height: 42px;
  border-top: 1px solid var(--line);
}

.diagnostic-rows > div > span {
  color: var(--blue);
}

.diagnostic-rows .icon {
  width: 17px;
  height: 17px;
}

.diagnostic-rows dt {
  color: #26344e;
  font-size: 10px;
  font-weight: 800;
}

.diagnostic-rows dd {
  margin: 0;
  color: #5b6679;
  font-size: 9px;
}

.orchestrator-node {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 9px;
  margin: 13px auto 12px;
  padding: 8px 14px;
  color: var(--blue);
  border: 1px solid #bdd3ff;
  border-radius: 999px;
  background: #f4f8ff;
  font-size: 10px;
}

.orchestrator-node .icon {
  width: 19px;
  height: 19px;
}

.role-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.role-rail::before {
  position: absolute;
  top: -12px;
  right: 16%;
  left: 16%;
  height: 12px;
  content: "";
  border-top: 1px solid #b8c9e6;
  border-right: 1px solid #b8c9e6;
  border-left: 1px solid #b8c9e6;
}

.role-rail article {
  display: flex;
  min-height: 87px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 9px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.role-rail article > span {
  margin-bottom: 6px;
}

.role-rail .icon {
  width: 21px;
  height: 21px;
}

.role-rail small {
  font-size: 8px;
  font-weight: 750;
}

.role-rail strong {
  font-size: 10px;
}

.role-rail .tone-green > span { color: var(--green); }
.role-rail .tone-purple > span { color: var(--purple); }
.role-rail .tone-orange > span { color: var(--orange); }

.state-gates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.state-gates article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.state-gates article > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  background: #f3f6fb;
}

.state-gates .icon {
  width: 17px;
  height: 17px;
}

.state-gates h4 {
  margin: 0 0 3px;
  font-size: 11px;
}

.state-gates p {
  font-size: 9px;
}

.gate-green > span { color: var(--green); }
.gate-orange > span { color: var(--orange); }
.gate-red > span { color: var(--red); }

.rl-pipeline .pipeline-unit {
  min-height: 100px;
  border: 0;
  background: transparent;
}

/* --------------------------------------------------------------------------
   Troubleshooting: Apple
   -------------------------------------------------------------------------- */
.apple-top-grid {
  display: grid;
  grid-template-columns: .93fr 1.75fr;
  gap: var(--module-gap);
}

.apple-issue {
  padding: 20px;
  background: linear-gradient(145deg, #fcfffd, #f5fbf8);
}

.apple-issue .strategy-kicker,
.apple-strategy .change-card .strategy-kicker {
  color: var(--green);
}

.apple-issue h4 {
  margin-top: 8px;
}

.apple-issue .diagnostic-rows > div > span {
  color: var(--green);
}

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

.change-card {
  position: relative;
  display: block;
  min-height: 244px;
  padding: 16px;
}

.change-card .number-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  background: var(--green);
  box-shadow: 0 4px 10px rgba(24, 168, 115, .19);
}

.change-card > div {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex: 1 1 auto;
  flex-direction: column;
  padding-left: 42px;
}

.change-card p {
  margin-top: 8px;
  font-size: 9px;
}

.mini-diagram {
  margin-top: 18px;
}

.mini-diagram-image {
  display: block;
  width: calc(100% + 42px);
  max-width: none;
  height: auto;
  min-height: 0;
  margin-left: -42px;
  flex: 1 1 0;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
  background: #fff;
}

.curve-diagram {
  width: 100%;
  height: 76px;
}

.curve-diagram path {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
}

.curve-diagram path:nth-child(2),
.curve-diagram .target-line {
  stroke: #c7d5ce;
  stroke-width: 1;
}

.curve-diagram circle {
  fill: var(--orange);
}

.loop-diagram,
.module-diagram {
  display: flex;
  position: relative;
  min-height: 82px;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.loop-diagram span,
.module-diagram span {
  display: grid;
  width: 52px;
  height: 38px;
  place-items: center;
  color: #39516c;
  border: 1px solid #c9dbd1;
  border-radius: 7px;
  background: #f5fbf8;
  font-size: 8px;
  font-weight: 750;
}

.loop-diagram i {
  color: var(--green);
  font-style: normal;
}

.loop-diagram b {
  position: absolute;
  right: 9px;
  bottom: 2px;
  color: var(--orange);
  font-size: 19px;
}

.module-diagram i {
  width: 13px;
  height: 2px;
  background: var(--green);
}

.scenario-panel {
  margin-top: var(--module-gap);
  padding: 20px;
}

.scenario-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scenario-strip li {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.scenario-strip li > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 10px;
}

.scenario-strip li > div span {
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

.scenario-strip li > div strong {
  font-size: 13px;
  line-height: 1.3;
}

.scenario-strip img {
  display: block;
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Troubleshooting: ROS2
   -------------------------------------------------------------------------- */
.ros-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--module-gap);
  margin: var(--module-gap) 0 0;
  padding: 0;
  list-style: none;
}

.ros-steps li {
  display: grid;
  grid-template-columns: 32px 34px 1fr;
  gap: 9px;
  min-height: 139px;
  padding: 17px;
}

.step-icon {
  color: var(--blue);
}

.step-icon .icon {
  width: 23px;
  height: 23px;
}

.ros-steps h4 {
  margin: 2px 0 7px;
  font-size: 12px;
}

.ros-steps p {
  font-size: 9px;
}

.ros-architecture {
  margin-top: var(--module-gap);
  padding: 20px;
}

.architecture-map {
  display: grid;
  grid-template-columns: .72fr 30px 1.4fr 30px .78fr;
  align-items: center;
  gap: 5px;
}

.architecture-column {
  display: grid;
  gap: 6px;
}

.architecture-column > small {
  margin-bottom: 2px;
  color: #718099;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.architecture-column > span {
  display: flex;
  min-height: 37px;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f9fbfe;
  color: var(--blue);
}

.architecture-column .icon {
  width: 16px;
  height: 16px;
}

.architecture-column b {
  color: #33415a;
  font-size: 8px;
  line-height: 1.3;
}

.arch-arrow {
  color: #8fa5c8;
  text-align: center;
}

.scenario-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.scenario-tags small {
  margin-right: auto;
  color: #64728a;
  font-size: 9px;
  font-weight: 800;
}

.scenario-tags span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  color: var(--blue);
  border-radius: 999px;
  background: #f0f5ff;
  font-size: 8px;
  font-weight: 750;
}

.scenario-tags .icon {
  width: 13px;
  height: 13px;
}

/* --------------------------------------------------------------------------
   Tech stack
   -------------------------------------------------------------------------- */
.tech-section {
  margin-top: calc(var(--section-gap) * .9);
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tech-row li {
  display: inline-flex;
  min-height: 48px;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 13px;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #344158;
  font-size: calc(var(--base-font-size) * .68);
  box-shadow: 0 3px 10px rgba(25, 43, 74, .025);
}

.tech-row .icon {
  width: 20px;
  height: 20px;
  color: var(--blue);
}

.tech-row .tech-logo {
  width: 20px;
  height: 20px;
  flex: none;
  object-fit: contain;
}

.tech-row .tech-logo-wide {
  width: auto;
  max-width: 72px;
}

/* --------------------------------------------------------------------------
   Home & Tracks
   -------------------------------------------------------------------------- */
.home-main {
  background: var(--bg, #f5f7fb);
  width: min(calc(100% - 48px), 1140px);
  margin: 0 auto;
  padding: 24px 0 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.home-hero {
  background: #ffffff;
  border: 1px solid rgba(16, 34, 63, 0.12);
  border-radius: 18px;
  padding: 38px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.hero-title {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--ink);
  word-break: keep-all;
}

.hero-identity {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.4;
  text-transform: uppercase;
}

.cta-resume {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  background: var(--blue, #1264ff);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 9999px;
  border: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}

.cta-resume:hover {
  background: #0c50d4;
  transform: translateY(-1px);
}

.cta-resume:focus-visible {
  outline: 2px solid var(--blue, #1264ff);
  outline-offset: 3px;
}

.hero-media-card {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #e2e8f0;
  border: 1px solid rgba(16, 34, 63, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-media-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue, #1264ff);
}

.hero-media-card:focus-visible {
  outline: 2px solid var(--blue, #1264ff);
  outline-offset: 3px;
}

.hero-media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Work Tracks Section */
.tracks-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tracks-heading {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.tracks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.track-card {
  background: #ffffff;
  border: 1px solid rgba(16, 34, 63, 0.12);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 44px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.track-card:hover {
  border-color: var(--blue, #1264ff);
  transform: translateY(-3px);
}

.track-card:focus-visible {
  outline: 2px solid var(--blue, #1264ff);
  outline-offset: 3px;
}

.track-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #e2e8f0;
  overflow: hidden;
  border-bottom: 1px solid rgba(16, 34, 63, 0.06);
}

.track-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.track-card:hover .track-media img {
  transform: scale(1.03);
}

.track-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.track-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.track-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.track-arrow {
  color: var(--blue, #1264ff);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.track-arrow .icon {
  width: 18px;
  height: 18px;
}

.track-card:hover .track-arrow {
  transform: translateX(3px);
}

.track-keyword {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Resume
   -------------------------------------------------------------------------- */
.resume-shell main {
  background: #f5f7fa;
}

.resume-hero,
.resume-section {
  width: min(calc(100% - 48px), 1080px);
  margin: 0 auto;
}

.resume-hero {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 60px;
  padding: 82px 0 62px;
}

.resume-hero-main {
  display: flex;
  align-items: flex-start;
  gap: clamp(22px, 4vw, 48px);
  min-width: 0;
}

.resume-profile-photo {
  flex: 0 0 clamp(144px, 17vw, 196px);
  width: clamp(144px, 17vw, 196px);
  height: auto;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(19, 45, 84, .13);
  border-radius: 16px;
  background: #fff;
  object-fit: cover;
  object-position: 50% 32%;
}

.resume-hero-copy {
  min-width: 0;
}

.resume-hero h1 {
  margin: 10px 0 12px;
  font-size: 68px;
  line-height: 1;
  letter-spacing: -.06em;
}

.resume-hero-copy > p:not(.eyebrow) {
  max-width: 640px;
  color: #536078;
  font-size: 17px;
}

.resume-hero-copy > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.resume-hero-copy > ul li {
  padding: 7px 11px;
  color: var(--blue);
  border-radius: 999px;
  background: #eaf1ff;
  font-size: 11px;
  font-weight: 750;
}

.resume-hero address {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 25px;
  border: 1px solid rgba(19, 45, 84, .13);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--card-shadow);
  font-style: normal;
}

.resume-hero address p {
  margin: 0 0 15px;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.resume-hero address a {
  display: grid;
  padding: 10px 0;
  border-top: 1px solid rgba(20, 42, 75, .1);
  color: #3d4a60;
  font-size: 12px;
}

.resume-hero address a span {
  color: #8a94a6;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.resume-section {
  padding: 54px 0;
  border-top: 1px solid rgba(19, 45, 84, .12);
}

.resume-section-heading {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 27px;
}

.resume-section-heading span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.resume-section-heading h2 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -.045em;
  text-wrap: balance;
}

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

.skill-grid article {
  padding: 23px;
  border: 1px solid rgba(19, 45, 84, .12);
  border-radius: 12px;
  background: #fff;
}

.skill-grid h3,
.skill-grid p {
  margin: 0;
}

.skill-grid h3 {
  font-size: 18px;
}

.skill-grid p {
  margin: 4px 0 17px;
  color: #748096;
  font-size: 11px;
}

.skill-grid small {
  color: var(--blue);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.skill-grid ul,
.resume-project ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 7px 0 14px;
  padding: 0;
  list-style: none;
}

.skill-grid li,
.resume-project li {
  padding: 5px 8px;
  border: 1px solid rgba(20, 44, 81, .11);
  border-radius: 6px;
  background: #f8fafd;
  color: #4e5c73;
  font-size: 10px;
}

.resume-project {
  display: grid;
  grid-template-columns: 48px 1fr 330px;
  gap: 28px;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid rgba(20, 44, 81, .12);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity .35s ease, transform .35s ease;
}

.resume-project.is-visible {
  opacity: 1;
  transform: none;
}

.resume-project-number {
  color: #b7c3d6;
  font-size: 23px;
  font-weight: 850;
}

.resume-project-copy h3 {
  margin: 4px 0 7px;
  font-size: 24px;
}

.resume-project-copy > strong {
  display: block;
  color: #25334c;
  font-size: 14px;
}

.resume-project-copy > p:not(.eyebrow) {
  margin: 8px 0;
  color: #69758a;
  font-size: 12px;
}

.resume-project-copy > a {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.resume-project figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #e9eef5;
}

.resume-project figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.surface-wash {
  background: #f5f7fa;
}

.education-timeline {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0 0 0 18px;
  list-style: none;
}

.education-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 18px;
  padding-left: 20px;
  border-left: 2px solid #d9e0ea;
}

.education-timeline li::before {
  position: absolute;
  top: 5px;
  left: -6px;
  width: 10px;
  height: 10px;
  border: 2px solid #f5f7fa;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.education-timeline time {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.education-timeline strong {
  display: block;
  color: #14233e;
  font-size: 16px;
  line-height: 1.35;
}

.education-timeline p {
  margin: 4px 0 0;
  color: #6d788c;
  font-size: 12px;
  line-height: 1.5;
}

.additional-section {
  background: #f5f7fa;
}

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

.additional-card {
  padding: 23px;
  border: 1px solid rgba(19, 45, 84, .12);
  border-radius: 12px;
  background: #fff;
}

.additional-card .card-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.additional-card h3 {
  margin: 12px 0 8px;
  color: #14233e;
  font-size: 20px;
  line-height: 1.25;
}

.additional-card > p:not(.card-kicker) {
  margin: 0;
  color: #687388;
  font-size: 13px;
  line-height: 1.55;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #d9e0ea;
  border-radius: 999px;
  color: #536078;
  background: #f8fafd;
  font-size: 11px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  :root {
    --paper-pad-x: 30px;
    --paper-pad-y: 34px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: block;
    padding: 7px 11px;
    border: 1px solid rgba(20, 42, 75, .13);
    border-radius: 7px;
    background: #fff;
    font-size: 12px;
  }

  .mobile-nav {
    position: absolute;
    top: 61px;
    right: 0;
    display: grid;
    min-width: 190px;
    padding: 8px;
    border: 1px solid rgba(20, 42, 75, .12);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 30px rgba(10, 27, 52, .13);
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav a {
    padding: 9px 11px;
    border-radius: 7px;
    font-size: 12px;
  }

  .mobile-nav a[aria-current="page"] {
    color: var(--blue);
    background: #f1f6ff;
  }

  .project-overview-grid {
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .project-toc {
    position: sticky;
    z-index: 5;
    top: 70px;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255,255,255,.94);
  }

  .project-toc a {
    width: auto;
    flex: 0 0 auto;
    padding: 4px 7px;
  }

  .project-toc a::before {
    display: none;
  }

  .project-facts,
  .project-facts.facts-four {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-facts > div:not(:last-child)::after {
    display: none;
  }

  .pathfinder-grid,
  .development-grid,
  .parking-top,
  .apple-top-grid,
  .rl-top-grid {
    grid-template-columns: 1fr;
  }

  .pathfinder-grid .signature-card {
    grid-column: auto;
  }

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

  .home-hero {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 28px;
  }

  .tracks-grid {
    grid-template-columns: 1fr;
  }

  .resume-project {
    grid-template-columns: 40px 1fr;
  }

  .resume-project figure {
    grid-column: 2;
  }

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

  .parking-pipeline-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
}

@media (max-width: 640px) {
  :root {
    --paper-pad-x: 18px;
    --paper-pad-y: 26px;
    --project-title-size: 34px;
    --watermark-size: 69px;
  }

  .site-header-inner,
  .site-footer-inner,
  .resume-hero,
  .resume-section {
    width: min(calc(100% - 28px), var(--page-max));
  }

  .site-footer-inner,
  .resume-hero {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }

  .site-footer nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .project-index-section,
  .project-list,
  .related-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .project-index-card {
    grid-template-columns: 45px 1fr 52px;
    gap: 12px;
  }

  .project-index-card .index-message {
    grid-column: 2 / -1;
  }

  .project-heading {
    padding-right: 55px;
  }

  .project-summary {
    font-size: 12px;
  }

  .project-facts,
  .project-facts.facts-four,
  .primer-grid,
  .role-cards,
  .mode-cards,
  .boundary-cards,
  .mission-cards,
  .state-gates,
  .apple-changes,
  .ros-steps,
  .skill-grid,
  .additional-grid,
  .home-card-grid,
  .related-section nav {
    grid-template-columns: 1fr;
  }

  .education-timeline li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .decision-banner {
    gap: 17px;
    padding: 17px;
  }

  .decision-check {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .decision-banner p {
    font-size: 16px;
  }

  .development-contract {
    grid-template-columns: 1fr;
  }

  .development-contract > div:first-child {
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .routing-artifact {
    padding: 18px 0 0;
  }

  .before-after {
    grid-template-columns: 1fr;
  }

  .reframe-arrow {
    transform: rotate(90deg);
  }

  .pipeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .pipeline-unit-wrap {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pipeline-arrow {
    width: auto;
    height: 25px;
    transform: rotate(90deg);
  }

  .parking-parallel-group {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .parking-parallel-divider {
    min-height: 15px;
    transform: rotate(90deg);
  }

  .outcome-cards,
  .parallel-branches,
  .effect-list,
  .scenario-strip,
  .architecture-map {
    grid-template-columns: 1fr;
  }

  .hermes-stage-grid {
    grid-template-columns: 1fr;
  }

  .architecture-map .arch-arrow {
    transform: rotate(90deg);
  }

  .scenario-tags {
    flex-wrap: wrap;
  }

  .scenario-tags small {
    width: 100%;
  }

  .home-hero {
    padding: 24px 18px;
  }

  .cta-resume {
    width: 100%;
  }

  .resume-hero h1 {
    font-size: 54px;
  }

  .resume-hero-main {
    gap: 18px;
  }

  .resume-profile-photo {
    flex-basis: 128px;
    width: 128px;
  }

  .resume-project {
    grid-template-columns: 1fr;
  }

  .resume-project figure {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .resume-hero-main {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
  }

  .resume-profile-photo {
    width: 96px;
    flex-basis: auto;
  }
}

/* The in-app preview can expose a 647px layout viewport. Keep the project
   index fluid just above the narrow-mobile breakpoint as well. */
@media (max-width: 700px) {
  .project-index-card {
    grid-template-columns: 45px minmax(0, 1fr) 52px;
    gap: 12px;
  }

  .project-index-card .index-message {
    grid-column: 2 / -1;
  }
}

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

/* --------------------------------------------------------------------------
   Reference-specific desktop composition overrides
   These preserve the four reusable strategy renderers while matching the
   nine supplied boards at their native widths.
   -------------------------------------------------------------------------- */
@media (min-width: 901px) {
  .project-competition .project-heading h2 {
    font-size: 39px;
    white-space: nowrap;
    letter-spacing: -.05em;
  }

  /* Aegis reference uses two deliberately shallow bands. */
  .project-aegis .before-after {
    min-height: 126px;
    padding: 10px 18px;
  }

  .project-aegis .before-state,
  .project-aegis .after-state {
    min-height: 104px;
    padding: 5px 22px;
  }

  .project-aegis .state-icon {
    width: 40px;
    height: 40px;
    margin-top: 4px;
  }

  .project-aegis .state-icon .icon {
    width: 22px;
    height: 22px;
  }

  .project-aegis .before-state h4,
  .project-aegis .after-state h4 {
    margin: 4px 0 2px;
  }

  .project-aegis .artifact-panel {
    padding: 11px 14px 13px;
  }

  .project-aegis .artifact-heading {
    justify-content: center;
    margin-bottom: 8px;
    text-align: center;
  }

  .project-aegis .artifact-heading > span,
  .project-aegis .artifact-heading p {
    display: none;
  }

  .project-aegis .aegis-pipeline .pipeline-unit {
    min-height: 76px;
    padding: 7px 4px;
  }

  .project-aegis .aegis-pipeline .pipeline-icon {
    width: 29px;
    height: 29px;
    margin-bottom: 4px;
  }

  .project-aegis .aegis-pipeline .pipeline-icon .icon {
    width: 18px;
    height: 18px;
  }

  .project-aegis .aegis-pipeline .pipeline-unit strong {
    font-size: 9px;
  }

  .project-aegis .aegis-pipeline .pipeline-unit > span:last-child {
    font-size: 7px;
  }

  /* Competition: lead at left, boundary and mission evidence at right. */
  .competition-strategy {
    display: grid;
    grid-template-columns: 244px minmax(0, 1fr);
    gap: 13px 16px;
  }

  .competition-strategy > .strategy-title {
    grid-column: 1 / -1;
    margin-bottom: -1px;
  }

  .competition-strategy > .competition-lead {
    grid-column: 1;
    grid-row: 2 / 4;
    display: block;
    min-height: 270px;
    padding: 20px;
  }

  .competition-strategy > .competition-lead .label-icon {
    margin-bottom: 10px;
  }

  .competition-strategy > .competition-lead h4 {
    margin-top: 16px;
    font-size: 20px;
    line-height: 1.52;
  }

  .competition-strategy > .boundary-cards {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .competition-strategy .boundary-card {
    min-width: 0;
    min-height: 154px;
    padding: 16px;
  }

  .competition-strategy > .mission-cards {
    grid-column: 2;
    grid-row: 3;
    margin-top: 0;
  }

  .competition-strategy > .artifact-panel {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: 1px;
    padding: 14px 18px 16px;
  }

  .project-competition .artifact-heading {
    margin-bottom: 9px;
  }

  .project-competition .artifact-heading p {
    display: none;
  }

  .project-competition .competition-pipeline .pipeline-unit {
    min-height: 92px;
  }

  /* Apple desktop: keep the problem card on row one and the three
     system-change cards together on row two. */
  .apple-top-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "issue"
      "changes";
  }

  .apple-issue {
    grid-area: issue;
  }

  .apple-changes {
    grid-area: changes;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .change-card {
    min-width: 0;
    min-height: 278px;
    overflow: hidden;
  }

  .change-card > div {
    min-width: 0;
  }

  .change-card p,
  .change-card h4,
  .change-card .strategy-kicker {
    overflow-wrap: anywhere;
    word-break: keep-all;
  }

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

  /* RL reference is a three-column decision row. */
  .rl-strategy {
    display: grid;
    grid-template-columns: .92fr 1.46fr 1.08fr;
    gap: 12px 14px;
  }

  .rl-strategy > .strategy-title {
    grid-column: 1 / -1;
    margin-bottom: -1px;
  }

  .rl-strategy > .rl-top-grid {
    display: contents;
  }

  .rl-strategy .rl-issue {
    grid-column: 1;
    grid-row: 2;
  }

  .rl-strategy .rl-roles {
    grid-column: 2;
    grid-row: 2;
  }

  .rl-strategy > .state-gates {
    grid-column: 3;
    grid-row: 2;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: #fff;
    box-shadow: var(--card-shadow);
  }

  .rl-strategy > .state-gates::before {
    content: "checkpoint 상태 게이트";
    color: var(--blue);
    font-size: 11px;
    font-weight: 810;
  }

  .rl-strategy .state-gates article {
    min-height: 55px;
    padding: 9px;
  }

  .rl-strategy > .rl-flow-panel {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 0;
  }

  .project-rl .rl-pipeline .pipeline-unit {
    min-height: 88px;
  }

  /* ROS2: lead / stacked diagnostic steps / architecture in one row. */
  .ros2-strategy {
    display: grid;
    grid-template-columns: 205px 250px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    align-content: start;
    grid-auto-rows: max-content;
  }

  .ros2-strategy > .strategy-title {
    grid-column: 1 / -1;
    margin-bottom: -1px;
  }

  .ros2-strategy > .ros-lead {
    grid-column: 1;
    grid-row: 2;
    display: block;
    align-self: stretch;
    min-height: 0;
    padding: 20px;
  }

  .ros2-strategy > .ros-lead .label-icon {
    margin-bottom: 14px;
  }

  .ros2-strategy > .ros-lead h4 {
    margin: 22px 0 15px;
    font-size: 22px;
    line-height: 1.58;
  }

  .ros2-strategy > .ros-steps {
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0;
    align-self: stretch;
    align-content: stretch;
  }

  .ros2-strategy .ros-steps li {
    min-width: 0;
    min-height: 0;
    grid-template-columns: 32px 1fr 32px;
    align-items: start;
    padding: 20px;
  }

  .ros2-strategy .ros-steps li .step-icon {
    grid-column: 3;
    grid-row: 1;
  }

  .ros2-strategy .ros-steps li > div {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .ros2-strategy .ros-steps h4,
  .ros2-strategy .ros-steps p {
    overflow-wrap: anywhere;
    word-break: keep-all;
  }

  .ros2-strategy > .ros-architecture {
    grid-column: 3;
    grid-row: 2;
    align-self: stretch;
    min-width: 0;
    min-height: 0;
    margin-top: 0;
    padding: 16px;
  }

  .ros2-strategy .ros-architecture .artifact-heading {
    margin-bottom: 12px;
  }

  .ros2-strategy .ros-architecture .artifact-heading p {
    display: none;
  }

  .ros2-strategy .architecture-map {
    grid-template-columns: .8fr 18px 1.35fr 18px .9fr;
    gap: 2px;
  }

  .ros2-strategy .architecture-column > span {
    min-width: 0;
    min-height: 39px;
    padding: 6px;
  }

  .ros2-strategy .architecture-column b {
    overflow-wrap: anywhere;
    font-size: 7px;
  }

  .project-ros2 .tech-row {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 6px;
  }

  .project-ros2 .tech-row li {
    min-width: 0;
    padding: 7px 6px;
    white-space: normal;
    text-align: center;
    justify-content: center;
    font-size: 8px;
  }
}

/* --------------------------------------------------------------------------
   Generated strategy visuals
   --------------------------------------------------------------------------
   These assets are conceptual illustrations, not project evidence. They keep
   every “전개 · 핵심 판단” section readable while preserving the same
   parchment / navy / action-blue visual language across all project types.
   -------------------------------------------------------------------------- */
.strategy-visual {
  margin: 14px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--card-radius) - 2px);
  background: #f8f6f0;
}

.strategy-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.strategy-visual figcaption {
  padding: 7px 10px 8px;
  color: #536079;
  background: #fffdf8;
  font-size: 9px;
  line-height: 1.35;
}

.story-visual {
  margin-top: 10px;
}

.story-visual img,
.pathfinder-signature-visual img {
  aspect-ratio: auto;
  object-fit: contain;
}

.dark-flow-panel .strategy-visual {
  border-color: rgba(112, 153, 205, .34);
  background: #101a2b;
}

.dark-flow-panel .strategy-visual figcaption {
  color: #b3bfd0;
  background: #101a2b;
}

.ros2-strategy-visual {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .strategy-visual figcaption {
    font-size: 10px;
  }

  .pathfinder-signature-visual img,
  .story-visual img {
    aspect-ratio: auto;
  }
}

/* Native-board media alignment. The supplied media crops are the actual
   content regions, so they are rendered at their measured pixel widths. */
.project-paper:not(.project-pathfinder) .content-label {
  visibility: hidden;
}

.project-primary {
  border: 0;
  background: transparent;
}

.project-ggeolgeol .project-content { margin-top: 12px; }
.project-pathfinder .project-content { margin-top: 65px; }
.project-aegis .project-content { margin-top: 35px; }
.project-hermes .project-content { margin-top: 21px; }
.project-parking .project-content { margin-top: 29px; }
.project-apple .project-content { margin-top: 28px; }
.project-rl .project-content { margin-top: 6px; }
.project-competition .project-content { margin-top: -6px; }
.project-ros2 .project-content { margin-top: 5px; }

.project-ggeolgeol .project-primary { width: calc(100% - 1px); }
.project-pathfinder .project-primary { width: calc(100% + 2px); margin-left: -1px; }
.project-aegis .project-primary { width: calc(100% - 1px); margin-left: 1px; }
.project-parking .project-primary { width: calc(100% - 8px); margin-left: 4px; }
.project-apple .project-primary { width: calc(100% + 2px); margin-left: -2px; }
.project-rl .project-primary { width: calc(100% + 16px); margin-left: -8px; }
.project-competition .project-primary { width: calc(100% + 8px); margin-left: -2px; }
.project-ros2 .project-primary { width: calc(100% - 6px); margin-left: -2px; }

@media (min-width: 901px) {
  .project-aegis .decision-banner {
    min-height: 68px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .project-aegis .decision-check {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .project-aegis .decision-banner p {
    font-size: 20px;
  }

  .project-parking .decision-banner {
    min-height: 92px;
  }

  .project-competition .decision-banner {
    min-height: 94px;
  }

  .project-rl .decision-banner {
    min-height: 104px;
  }

  .project-ros2 .decision-banner {
    margin-top: 14px;
  }

  /* Parking reference has three peer cards, not a nested two-column block. */
  .parking-top {
    grid-template-columns: .95fr 1.35fr .95fr;
    align-items: stretch;
  }

  .parking-symptom,
  .parking-change,
  .parking-effects {
    min-width: 0;
    min-height: 258px;
    padding: 20px;
  }

  .parking-top .label-icon {
    margin-bottom: 8px;
  }

  .parking-top .label-icon .icon {
    width: 21px;
    height: 21px;
  }

  .parking-symptom h4,
  .parking-change h4 {
    margin-top: 17px;
    font-size: 17px;
  }

  .parking-change .parallel-branches {
    grid-template-columns: 1fr 1fr;
    margin-top: 16px;
  }

  .parking-change .parallel-branches article {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 12px;
  }

  .parking-change .parallel-branches article > span {
    margin-bottom: 6px;
  }

  .parking-effects .effect-list {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 23px;
  }

  .parking-effects .effect-list li {
    font-size: 10px;
  }

  .project-parking .parking-pipeline .pipeline-unit {
    min-height: 145px;
  }

  .project-parking .parking-pipeline .pipeline-unit img {
    height: 70px;
  }

  /* Apple board labels the pipeline outside the evidence strip. */
  .project-apple .scenario-panel {
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .project-apple .scenario-strip {
    padding: 8px 0 0;
    border-top: 1px solid var(--line);
  }

  /* Match the taller experiment evidence row in the RL reference. */
  .rl-strategy .rl-issue,
  .rl-strategy .rl-roles,
  .rl-strategy > .state-gates {
    min-height: 296px;
  }

  .rl-strategy > .rl-flow-panel {
    min-height: 222px;
  }

  .project-rl .rl-pipeline .pipeline-unit {
    min-height: 142px;
  }

  .project-rl .rl-pipeline .pipeline-icon {
    width: 45px;
    height: 45px;
  }
}

/* --------------------------------------------------------------------------
   Native-board vertical anchors
   Measured from the nine supplied boards. These values keep the shared
   renderers intact while aligning the media → decision → strategy → stack
   rhythm at each board's native width.
   -------------------------------------------------------------------------- */
@media (min-width: 901px) {
  .project-ggeolgeol .decision-banner {
    height: 123px;
    min-height: 0;
    margin-top: 32px;
    margin-bottom: 24px;
  }

  .project-pathfinder .decision-banner {
    height: 109px;
    min-height: 0;
    margin-top: 25px;
    margin-bottom: 28px;
  }

  .project-aegis .decision-banner {
    height: 68px;
    min-height: 0;
    margin-top: 16px;
    margin-bottom: 17px;
  }

  .project-hermes .decision-banner {
    height: 116px;
    min-height: 0;
    margin-top: 32px;
    margin-bottom: 24px;
  }

  .project-parking .decision-banner {
    height: 92px;
    min-height: 0;
    margin-top: 24px;
    margin-bottom: 23px;
  }

  .project-apple .decision-banner {
    height: 106px;
    min-height: 0;
    margin-top: 15px;
    margin-bottom: 17px;
  }

  .project-rl .decision-banner {
    height: 107px;
    min-height: 0;
    margin-top: 16px;
    margin-bottom: 25px;
  }

  .project-competition .decision-banner {
    height: 95px;
    min-height: 0;
    margin-top: 20px;
    margin-bottom: 23px;
  }

  .project-ros2 .decision-banner {
    height: 106px;
    min-height: 0;
    margin-top: 17px;
    margin-bottom: 18px;
  }

  /* PathFinder board: 01 and 02 share the first row, while the signature
     artifact spans the second row at desktop widths. */
  .project-pathfinder .pathfinder-grid {
    height: auto;
    align-items: stretch;
  }

  .project-pathfinder .numbered-story,
  .project-pathfinder .signature-card {
    height: auto;
    min-height: 0;
    padding: 18px;
    overflow: visible;
  }

  .project-pathfinder .story-head {
    margin-bottom: 12px;
  }

  .project-pathfinder .numbered-story h4 {
    min-height: 0;
    margin-bottom: 12px;
  }

  .project-pathfinder .numbered-story > p {
    min-height: 0;
  }

  .project-pathfinder .disconnected-visual,
  .project-pathfinder .connected-visual {
    height: 130px;
    margin-top: 9px;
  }

  .project-pathfinder .pathfinder-pipeline .pipeline-unit {
    min-height: 92px;
  }

  .project-pathfinder .outcome-cards {
    margin-top: 10px;
  }

  /* Aegis board: three deliberately shallow evidence bands. */
  .project-aegis .before-after {
    height: 136px;
    min-height: 0;
  }

  .project-aegis .before-state,
  .project-aegis .after-state {
    min-height: 0;
  }

  .project-aegis .role-cards {
    height: 105px;
  }

  .project-aegis .role-card {
    height: 105px;
    min-height: 0;
    padding: 13px 15px;
  }

  .project-aegis .artifact-panel {
    height: 106px;
    min-height: 0;
    overflow: hidden;
  }

  /* Hermes reference gives the operating contract more visual weight. */
  .project-hermes .dark-flow-panel {
    height: 217px;
    min-height: 0;
  }

  .project-hermes .hermes-pipeline .pipeline-unit {
    min-height: 142px;
  }

  /* Apple troubleshooting cards and the six-stage evidence strip are taller. */
  .project-apple .apple-top-grid {
    height: auto;
    min-height: 0;
  }

  .project-apple .apple-issue {
    height: auto;
    min-height: 0;
  }

  .project-apple .apple-changes,
  .project-apple .change-card {
    height: 306px;
    min-height: 0;
  }

  .project-apple .scenario-panel {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .project-apple .scenario-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .project-apple .scenario-strip img {
    height: auto;
  }

  .project-apple .scenario-strip li {
    min-width: 0;
  }

  .project-apple .scenario-strip li > div {
    min-width: 0;
  }

  .project-apple .scenario-strip li > div strong {
    overflow-wrap: anywhere;
    word-break: keep-all;
  }

  .project-competition .competition-lead {
    min-height: 277px;
  }

  .project-ros2 .ros-lead,
  .project-ros2 .ros-steps,
  .project-ros2 .ros-architecture {
    align-self: stretch;
    min-height: 0;
    height: auto;
  }

  /* Board-specific bottom trim. It changes only whitespace below the stack. */
  .project-ggeolgeol { padding-bottom: 16px; }
  .project-pathfinder { padding-bottom: 33px; }
  .project-hermes { padding-bottom: 50px; }
  .project-parking { padding-bottom: 36px; }
  .project-apple { padding-bottom: 13px; }
  .project-rl { padding-bottom: 21px; }
  .project-competition { padding-bottom: 50px; }
  .project-ros2 { padding-bottom: 46px; }

  .project-ggeolgeol .tech-row li,
  .project-rl .tech-row li,
  .project-apple .tech-row li {
    min-height: 32px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .project-ggeolgeol .tech-section > h3,
  .project-rl .tech-section > h3,
  .project-apple .tech-section > h3 {
    margin-bottom: 8px;
  }
}

@media (min-width: 901px) {
  .project-competition { padding-bottom: 48px; }
}

@media (min-width: 901px) {
  .project-pathfinder .story-visual {
    margin-top: 8px;
  }

  .project-pathfinder .story-visual img,
  .project-pathfinder .pathfinder-signature-visual img {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .project-aegis .artifact-panel,
  .project-hermes .dark-flow-panel,
  .project-competition .artifact-panel,
  .project-ros2 .ros-architecture {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .project-aegis .strategy-visual img,
  .project-hermes .strategy-visual img {
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
  }

  .project-rl .strategy-visual img,
  .project-competition .strategy-visual img,
  .project-ros2 .strategy-visual img {
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
  }
}

/* KeyFin: the app on three real screens, then one linear story:
   LLM got the math wrong -> engine computes, LLM coaches -> the engine and
   its accuracy -> the latency fix -> charts that show the result. */
.project-keyfin {
  --kf-stage: #ecedf8;
  --kf-well: #f5f7fb;
  --kf-ink-2: #3c4861;
  --kf-muted: #5d6980;
  --kf-before: #7384a6;
  box-shadow: none;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.project-keyfin .primer-card { box-shadow: none; }
.project-keyfin .decision-banner { background: #f8fbff; }
.project-keyfin .decision-check { background: var(--blue); box-shadow: none; }
.project-keyfin .number-badge { box-shadow: none; }

/* ---- Phone frame (real screenshots) ---- */
.project-keyfin .kf-phone {
  position: relative;
  width: 100%;
  padding: 6px;
  border-radius: 30px;
  background: #171a22;
  box-shadow: 0 1px 1px rgba(16, 20, 44, .2), 0 16px 22px -16px rgba(26, 34, 90, .5);
}

.project-keyfin .kf-phone-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 600 / 1247;
  border-radius: 24px;
  background: #fbfbfb;
}

.project-keyfin .kf-phone-screen img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Representative stage ---- */
.project-keyfin .keyfin-stage {
  overflow: visible;
  padding: 26px 30px 30px;
  border-radius: var(--card-radius);
  background: var(--kf-stage);
}

.project-keyfin .kf-stage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-bottom: 26px;
}

.project-keyfin .kf-logo {
  width: 128px;
  height: auto;
}

.project-keyfin .kf-stage-head p {
  margin: 0;
  color: var(--kf-ink-2);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.project-keyfin .kf-screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 0 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-keyfin .kf-screen {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  justify-items: center;
  min-width: 0;
}

.project-keyfin .kf-screen > .kf-phone {
  grid-row: 1;
  width: min(100%, 212px);
}

.project-keyfin .kf-screen-copy {
  grid-row: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  width: min(100%, 236px);
  margin-top: 18px;
}

.project-keyfin .kf-screen-index {
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

.project-keyfin .kf-screen-copy strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.project-keyfin .kf-screen-copy p {
  margin: 3px 0 0;
  color: #4f5c72;
  font-size: 13px;
  line-height: 1.55;
}

/* Room states cross-fade: the first state is always painted, the other two
   fade over it, so the phone is never empty when motion is off. */
.project-keyfin .kf-room-state {
  display: block;
  width: 100%;
}

.project-keyfin .kf-room-2,
.project-keyfin .kf-room-3 {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: kf-room-2 4.8s ease-in-out infinite;
}

.project-keyfin .kf-room-3 { animation-name: kf-room-3; }

.project-keyfin .kf-screen:hover .kf-room-state { animation-play-state: paused; }

@keyframes kf-room-2 {
  0%, 28% { opacity: 0; }
  33%, 72% { opacity: 1; }
  73%, 100% { opacity: 0; }
}

@keyframes kf-room-3 {
  0%, 62% { opacity: 0; }
  67%, 95% { opacity: 1; }
  100% { opacity: 0; }
}

/* ---- Strategy shared: short title + one visual per module ---- */
.project-keyfin .kf-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.project-keyfin .kf-story h4,
.project-keyfin .kf-module h4 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
}

.project-keyfin .kf-module {
  margin-top: 16px;
  padding: 22px 24px 24px;
}

.project-keyfin .kf-caption {
  margin: 0;
  color: var(--kf-muted);
  font-size: 12px;
}

/* ---- 01 / 02 ---- */
.project-keyfin .kf-reframe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr;
  gap: 0 16px;
}

.project-keyfin .kf-story {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  min-width: 0;
  padding: 20px 22px 22px;
}

.project-keyfin .kf-story-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-keyfin .kf-bill,
.project-keyfin .kf-roles {
  flex: 1;
  margin: 0;
  padding: 4px 18px;
  border-radius: 10px;
  background: var(--kf-well);
}

.project-keyfin .kf-bill dl { margin: 0; }

.project-keyfin .kf-bill dl div,
.project-keyfin .kf-bill-total,
.project-keyfin .kf-roles div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  font-size: 14px;
}

.project-keyfin .kf-bill dl div + div,
.project-keyfin .kf-roles div + div { border-top: 1px solid #e3e7f0; }

.project-keyfin .kf-bill dt,
.project-keyfin .kf-roles dd { color: var(--kf-muted); }

.project-keyfin .kf-bill dd,
.project-keyfin .kf-roles dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.project-keyfin .kf-bill dd {
  color: var(--ink);
  font-weight: 700;
}

.project-keyfin .kf-roles dt {
  color: var(--ink);
  font-weight: 800;
}

.project-keyfin .kf-roles dd { font-weight: 650; }

.project-keyfin .kf-bill-total {
  margin: 0;
  border-top: 1.5px solid #c9cfdc;
}

.project-keyfin .kf-bill-total span {
  color: var(--ink);
  font-weight: 750;
}

.project-keyfin .kf-bill-total strong {
  color: #c9303f;
  font-size: 20px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.project-keyfin .kf-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--kf-ink-2);
  font-size: 13px;
  font-weight: 650;
}

.project-keyfin .kf-note strong {
  margin-left: auto;
  color: #c9303f;
  font-size: 14px;
  font-weight: 850;
}

.project-keyfin .kf-note .icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: #c9303f;
}

.project-keyfin .kf-note-ok .icon { color: #13875d; stroke-width: 2.4; }

.project-keyfin .kf-core {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 22px;
  align-items: center;
  flex: 1;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--kf-well);
}

.project-keyfin .kf-core-hub {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

.project-keyfin .kf-core-parts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-keyfin .kf-core-parts::before {
  content: "→";
  position: absolute;
  top: 50%;
  left: -18px;
  color: #7a869a;
  font-weight: 700;
  transform: translateY(-50%);
}

.project-keyfin .kf-core-parts img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- 03 FDT = state + action + transition ---- */
.project-keyfin .kf-model {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: stretch;
  margin: 0 0 14px;
  padding: 18px;
  border-radius: 12px;
  background: var(--kf-stage);
  list-style: none;
}

.project-keyfin .kf-model-part {
  display: grid;
  grid-template-rows: 104px auto 96px auto;
  justify-items: center;
  align-content: start;
  gap: 8px;
  padding: 14px 12px 16px;
  border-radius: 10px;
  background: #fff;
  text-align: center;
}

.project-keyfin .kf-model-main,
.project-keyfin .kf-model-detail {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-keyfin .kf-model-role {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.project-keyfin .kf-model-note {
  margin: 0;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 800;
}

.project-keyfin .kf-model-op {
  align-self: center;
  color: #66728a;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.project-keyfin .kf-compare {
  display: grid;
  align-content: start;
  gap: 16px;
  margin: 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.project-keyfin .kf-compare figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.project-keyfin .kf-compare figcaption strong,
.project-keyfin .kf-panel h5 {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.project-keyfin .kf-compare figcaption em,
.project-keyfin .kf-point-head em {
  color: var(--blue);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.project-keyfin .kf-compare ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-keyfin .kf-compare li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 10px;
}

.project-keyfin .kf-compare-label,
.project-keyfin .kf-compare-value {
  color: var(--kf-ink-2);
  font-size: 13px;
  font-weight: 650;
}

.project-keyfin .kf-compare-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.project-keyfin .kf-compare-track { display: block; height: 16px; }

.project-keyfin .kf-compare-bar {
  display: block;
  height: 100%;
  border-radius: 0 4px 4px 0;
  background: var(--kf-before);
}

.project-keyfin .kf-compare .is-picked .kf-compare-label,
.project-keyfin .kf-compare .is-picked .kf-compare-value {
  color: var(--ink);
  font-weight: 850;
}

.project-keyfin .kf-compare .is-picked .kf-compare-bar { background: var(--blue); }

/* ---- 04 bottleneck bar + two fixes ---- */
.project-keyfin .kf-split {
  margin: 0 0 14px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--kf-well);
}

.project-keyfin .kf-split figcaption {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--kf-ink-2);
  font-size: 13px;
  font-weight: 700;
}

.project-keyfin .kf-split figcaption strong {
  color: var(--ink);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.project-keyfin .kf-split-bar {
  display: flex;
  gap: 2px;
  height: 22px;
}

.project-keyfin .kf-split-fdt {
  flex: none;
  min-width: 5px;
  border-radius: 4px 0 0 4px;
  background: var(--blue);
}

.project-keyfin .kf-split-rest {
  flex: 1;
  border-radius: 0 4px 4px 0;
  background: var(--kf-before);
}

.project-keyfin .kf-split-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--kf-muted);
  font-size: 12.5px;
  font-weight: 700;
}

.project-keyfin .kf-split-labels .is-fdt { color: var(--blue); }

.project-keyfin .kf-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-keyfin .kf-point {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.project-keyfin .kf-point-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}

.project-keyfin .kf-point-head span {
  color: var(--blue);
  font-weight: 850;
}

.project-keyfin .kf-point-head strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.project-keyfin .kf-point-head em { margin-left: auto; }

/* ---- Stat: label + before -> after ---- */
.project-keyfin .kf-stat {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid #e3e7f0;
}

.project-keyfin .kf-stat p { margin: 0; }

.project-keyfin .kf-stat-label {
  color: var(--kf-muted);
  font-size: 12.5px;
  font-weight: 750;
}

.project-keyfin .kf-stat-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.project-keyfin .kf-stat-value span:first-child {
  color: var(--kf-muted);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.project-keyfin .kf-stat-arrow {
  color: #7a869a;
  font-size: 15px;
}

.project-keyfin .kf-stat-value strong {
  color: var(--ink);
  font-size: 28px;
  font-weight: 850;
  line-height: 1.15;
}

/* ---- 05 accuracy + speed, then the coaching chart ---- */
.project-keyfin .kf-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-keyfin .kf-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.project-keyfin .kf-panel h5 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0;
  font-size: 16px;
}

.project-keyfin .kf-panel h5 strong {
  color: var(--blue);
  font-size: 22px;
  font-weight: 850;
}

.project-keyfin .kf-latency-plot svg {
  display: block;
  width: 100%;
  height: auto;
}

.project-keyfin .kf-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.project-keyfin .kf-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--kf-ink-2);
  font-size: 12.5px;
  font-weight: 650;
}

.project-keyfin .kf-legend i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

.project-keyfin .kf-axis line { stroke: #e4e8f0; stroke-width: 1; }

.project-keyfin .kf-axis text,
.project-keyfin .kf-unit {
  fill: #66728a;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.project-keyfin .kf-value {
  fill: var(--kf-muted);
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.project-keyfin .kf-value-strong { fill: var(--ink); font-weight: 850; }

.project-keyfin .kf-category {
  fill: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.project-keyfin .kf-speedup {
  fill: var(--kf-ink-2);
  font-size: 13px;
  font-weight: 800;
}

.project-keyfin .kf-bar { transition: opacity .15s; }
.project-keyfin .kf-group:hover .kf-bar { opacity: .82; }

.project-keyfin .kf-accuracy-art { grid-template-rows: auto 1fr; }

.project-keyfin .kf-accuracy-art img {
  display: block;
  align-self: center;
  justify-self: center;
  width: min(100%, 380px);
  height: auto;
}

.project-keyfin .kf-charts {
  margin-top: 16px;
  padding: 20px 22px 22px;
  border-radius: 12px;
  background: var(--kf-stage);
}

.project-keyfin .kf-charts h5 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.project-keyfin .kf-charts ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-keyfin .kf-charts li {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.project-keyfin .kf-charts img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: contain;
}

.project-keyfin .kf-charts span {
  color: var(--kf-ink-2);
  font-size: 13px;
  font-weight: 750;
}

/* ---- Tablet ---- */
@media (max-width: 900px) {
  /* ga-best.css pins the paper gutter at its desktop value; restore the
     tablet gutter locally so the section keeps its reading width. */
  .project-keyfin { --paper-pad-x: 30px; }
  .project-keyfin .keyfin-stage { padding: 22px 20px 24px; }
  .project-keyfin .kf-screens { gap: 0 16px; }
  .project-keyfin .kf-reframe-grid,
  .project-keyfin .kf-result-grid,
  .project-keyfin .kf-charts ul {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 12px;
  }
  .project-keyfin .kf-story { display: flex; flex-direction: column; }
}

/* ---- Phone ---- */
@media (max-width: 640px) {
  .project-keyfin { --paper-pad-x: 16px; }
  .project-keyfin .keyfin-stage { padding: 18px 0 20px; }
  .project-keyfin .kf-stage-head { padding: 0 16px; margin-bottom: 18px; }
  .project-keyfin .kf-logo { width: 108px; }

  .project-keyfin .kf-screens {
    grid-template-columns: repeat(3, 66%);
    gap: 0 14px;
    overflow-x: auto;
    padding: 4px 16px 14px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
  }

  .project-keyfin .kf-screen { scroll-snap-align: start; }
  .project-keyfin .kf-screen > .kf-phone { width: min(100%, 200px); }
  .project-keyfin .kf-story,
  .project-keyfin .kf-module { padding: 18px 16px; }
  .project-keyfin .kf-model { grid-template-columns: 1fr; gap: 8px; padding: 12px; }
  .project-keyfin .kf-points { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .site-shell .mobile-menu-button { min-width: 44px; min-height: 44px; }
  .site-shell .mobile-nav a,
  .site-shell .site-footer nav a { display: flex; min-height: 44px; align-items: center; }
  .site-shell .project-index-card > a { min-height: 44px; align-items: center; }
  .site-shell .project-toc a { min-height: 44px; }
}
