:root {
  --ink: #1b1d18;
  --muted: #66695d;
  --paper: #f3f0e7;
  --paper-2: #e9e4d8;
  --acid: #c6f04d;
  --cobalt: #3157e2;
  --coral: #f3765b;
  --line: rgba(27, 29, 24, .16);
  --shadow: 0 28px 80px rgba(40, 42, 34, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 4%, rgba(198, 240, 77, .18), transparent 28rem),
    linear-gradient(rgba(27, 29, 24, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 29, 24, .035) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 32px 32px, 32px 32px, auto;
  font-family: "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.section-shell { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.ui-icon { font-size: 19px; vertical-align: middle; }

.cursor-glow {
  position: fixed;
  inset: 0 auto auto 0;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 240, 77, .18), transparent 68%);
  pointer-events: none;
  z-index: -1;
  transition: transform .12s linear;
}

.site-header {
  width: min(1320px, calc(100% - 32px));
  min-height: 72px;
  margin: 16px auto 0;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  position: sticky;
  top: 12px;
  z-index: 30;
  background: rgba(243, 240, 231, .78);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(27, 29, 24, .12);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(40, 42, 34, .06);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; letter-spacing: -.02em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--acid);
  font: 500 12px/1 "DM Mono", monospace;
  letter-spacing: .05em;
}
.nav { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 14px; }
.nav a { transition: color .25s ease; }
.nav a:hover { color: var(--ink); }
.header-cta { justify-self: end; display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }

.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 72px;
  align-items: center;
  padding-block: 100px 90px;
}
.eyebrow, .section-index {
  font: 500 12px/1.3 "DM Mono", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 6px rgba(198, 240, 77, .25); }
.hero h1 {
  margin: 0;
  font-size: clamp(52px, 7vw, 98px);
  line-height: .98;
  letter-spacing: -.075em;
  font-weight: 900;
}
.hero h1 span { color: var(--cobalt); position: relative; white-space: nowrap; }
.hero h1 span::after {
  content: "";
  position: absolute;
  left: 1%; right: 0; bottom: 3px;
  height: 8px;
  background: var(--acid);
  z-index: -1;
  transform: rotate(-1deg);
}
.hero-lead { max-width: 660px; margin: 30px 0 0; font-size: 19px; line-height: 1.8; color: var(--muted); }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 38px; }
.primary-btn, .text-btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.primary-btn { padding: 15px 20px; color: var(--paper); background: var(--ink); border-radius: 12px; box-shadow: 6px 6px 0 var(--acid); transition: .25s ease; }
.primary-btn:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--acid); }
.text-btn { border-bottom: 1px solid var(--ink); padding-block: 9px; }

.hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.hero-visual::before {
  content: "";
  position: absolute;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: var(--cobalt);
  filter: saturate(.85);
  box-shadow: 26px 26px 0 rgba(243, 118, 91, .82), -28px -22px 0 rgba(198, 240, 77, .76);
}
.core-card {
  width: 278px;
  min-height: 330px;
  padding: 28px;
  z-index: 2;
  color: white;
  background: rgba(28, 30, 27, .9);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 28px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
  display: flex;
  flex-direction: column;
}
.core-label { font: 500 11px "DM Mono", monospace; color: var(--acid); letter-spacing: .12em; }
.core-title { margin-top: 72px; font-size: 43px; line-height: 1.02; letter-spacing: -.05em; font-weight: 800; }
.core-status { margin-top: auto; font-size: 12px; color: rgba(255,255,255,.7); }
.core-status span { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--acid); }
.orbit { position: absolute; border: 1px dashed rgba(27,29,24,.28); border-radius: 50%; animation: spin 24s linear infinite; }
.orbit-one { width: 470px; height: 470px; }
.orbit-two { width: 560px; height: 390px; transform: rotate(28deg); animation-duration: 33s; animation-direction: reverse; }
.float-card {
  position: absolute;
  z-index: 3;
  padding: 12px 15px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(27,29,24,.16);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(27,29,24,.1);
  font-size: 13px;
  font-weight: 700;
  animation: bob 4s ease-in-out infinite;
}
.float-card span { margin-right: 8px; color: var(--cobalt); font-family: "DM Mono", monospace; }
.card-a { top: 48px; left: 0; }
.card-b { top: 78px; right: -10px; animation-delay: -1s; }
.card-c { bottom: 64px; left: 6px; animation-delay: -2s; }
.card-d { bottom: 36px; right: 8px; animation-delay: -3s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-9px); } }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, .44);
}
.metrics article { min-height: 150px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); }
.metrics article:last-child { border-right: 0; }
.metrics strong { font: 500 clamp(42px, 5vw, 66px)/1 "DM Mono", monospace; letter-spacing: -.06em; }
.metrics span { color: var(--muted); font-size: 14px; }

.section-index { color: var(--cobalt); }
.section-heading h2 { margin: 0; font-size: clamp(40px, 5vw, 68px); line-height: 1.06; letter-spacing: -.055em; }

.featured, .work, .method, .capability { padding-block: 80px 120px; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, 460px); gap: 60px; align-items: end; margin-bottom: 54px; }
.section-heading h2 { margin-top: 12px; }
.section-heading > p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 17px; }
.featured-card { display: grid; grid-template-columns: 1fr 290px; border-radius: 30px; overflow: hidden; background: var(--ink); color: var(--paper); box-shadow: var(--shadow); }
.featured-main { padding: clamp(34px, 6vw, 72px); }
.featured-tags, .chip-row, .dialog-focus { display: flex; flex-wrap: wrap; gap: 8px; }
.featured-tags span, .chip-row span, .dialog-focus span { padding: 7px 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font: 500 11px "DM Mono", monospace; }
.featured-main h3 { margin: 40px 0 20px; font-size: clamp(38px, 5vw, 66px); line-height: 1.04; letter-spacing: -.055em; }
.featured-main > p { max-width: 760px; color: rgba(243,240,231,.68); font-size: 17px; line-height: 1.8; }
.boundary-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.boundary-row div { padding: 18px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.boundary-row .ui-icon { color: var(--acid); }
.boundary-row b { display: block; margin-top: 20px; font-size: 17px; }
.boundary-row small { display: block; margin-top: 6px; color: rgba(243,240,231,.55); line-height: 1.5; }
.featured-actions { display: flex; gap: 22px; margin-top: 38px; }
.featured-actions a, .dialog-actions a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; border-bottom: 1px solid currentColor; padding-block: 7px; }
.featured-aside { padding: 34px; background: var(--acid); color: var(--ink); display: flex; flex-direction: column; gap: 12px; }
.signal { padding: 24px 0; border-bottom: 1px solid rgba(27,29,24,.2); }
.signal span { display: block; font: 500 11px "DM Mono", monospace; }
.signal strong { font: 500 58px/1.15 "DM Mono", monospace; letter-spacing: -.07em; }
.signal small { font-weight: 700; }
.signal-note { margin-top: auto; padding: 18px; background: rgba(255,255,255,.5); border-radius: 14px; font-size: 13px; line-height: 1.7; }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: transparent; cursor: pointer; transition: .2s ease; }
.filter:hover, .filter.active { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project-card {
  min-height: 390px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.54);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, background .28s ease;
}
.project-card::before { content: ""; position: absolute; width: 160px; height: 160px; right: -50px; top: -60px; border-radius: 50%; background: var(--card-accent, var(--acid)); opacity: .72; filter: blur(2px); transition: transform .35s ease; }
.project-card:hover { transform: translateY(-6px); background: white; box-shadow: 0 20px 50px rgba(27,29,24,.11); }
.project-card:hover::before { transform: scale(1.25); }
.accent-ochre { --card-accent: #d4a73f; } .accent-coral { --card-accent: #ef7962; }
.accent-olive { --card-accent: #aabb6e; } .accent-blue { --card-accent: #7293ee; }
.accent-violet { --card-accent: #a790d5; } .accent-teal { --card-accent: #70bdb5; }
.accent-red { --card-accent: #da776d; } .accent-lime { --card-accent: #c6f04d; }
.accent-indigo { --card-accent: #7e86ca; } .accent-amber { --card-accent: #e6ae52; }
.project-top, .project-meta, .project-footer { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.project-top { font: 500 12px "DM Mono", monospace; color: var(--muted); }
.project-meta { justify-content: flex-start; gap: 8px; margin-top: 66px; }
.project-meta span { padding: 6px 9px; border-radius: 7px; background: rgba(27,29,24,.07); font-size: 11px; font-weight: 700; }
.project-card h3 { margin: 18px 0 12px; font-size: 31px; letter-spacing: -.04em; }
.project-card > p { margin: 0; max-width: 590px; color: var(--muted); line-height: 1.72; }
.project-footer { margin-top: auto; padding-top: 25px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.project-footer button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; transition: .2s ease; }
.project-card:hover .project-footer button { background: var(--ink); color: var(--paper); transform: rotate(45deg); }

.method { background: rgba(233,228,216,.55); width: 100%; max-width: none; padding-inline: max(24px, calc((100% - 1240px)/2)); }
.method .section-heading { max-width: 1240px; margin-inline: auto; }
.process-line { max-width: 1240px; margin-inline: auto; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink); }
.process-line article { padding: 28px 22px; border-right: 1px solid var(--line); }
.process-line article:last-child { border-right: 0; }
.process-line article > span { font: 500 12px "DM Mono", monospace; color: var(--cobalt); }
.process-line i { display: block; margin: 56px 0 20px; font-size: 30px; }
.process-line h3 { margin: 0 0 10px; font-size: 20px; }
.process-line p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 13px; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento article { min-height: 240px; padding: 30px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.48); }
.bento article:hover .ui-icon { transform: rotate(-8deg) scale(1.1); }
.bento .ui-icon { font-size: 36px; color: var(--cobalt); transition: .25s ease; }
.bento h3 { margin: 40px 0 12px; font-size: 23px; }
.bento p { margin: 0; color: var(--muted); line-height: 1.7; }
.bento-large { grid-column: span 2; background: var(--cobalt) !important; color: white; }
.bento-large .ui-icon, .bento-large p { color: rgba(255,255,255,.75); }
.bento-large h3 { font-size: 36px; }
.bento-wide { grid-column: span 2; background: var(--acid) !important; }
.bento-wide .ui-icon { color: var(--ink); }
.chip-row { margin-top: 30px; }


.project-dialog { width: min(720px, calc(100% - 32px)); max-height: 88vh; padding: 0; border: 0; border-radius: 26px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px rgba(27,29,24,.3); }
.project-dialog::backdrop { background: rgba(27,29,24,.64); backdrop-filter: blur(8px); }
.dialog-close { position: sticky; float: right; top: 20px; right: 20px; z-index: 2; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: rgba(243,240,231,.9); cursor: pointer; }
#dialogContent { padding: 54px; }
.dialog-kicker { font: 500 12px "DM Mono", monospace; color: var(--cobalt); }
#dialogContent h2 { margin: 18px 0; font-size: clamp(36px, 6vw, 58px); line-height: 1.05; letter-spacing: -.055em; }
.dialog-summary { font-size: 18px; line-height: 1.72; color: var(--muted); }
.dialog-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 42px; }
.dialog-stats span, .dialog-focus span { padding: 8px 11px; border-radius: 8px; background: var(--paper-2); font-size: 12px; font-weight: 700; }
#dialogContent h3 { margin: 28px 0 10px; }
#dialogContent > p { line-height: 1.75; color: var(--muted); }
.dialog-actions { display: flex; gap: 24px; margin-top: 42px; }

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

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 80px; }
  .hero-visual { min-height: 500px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics article:nth-child(2) { border-right: 0; }
  .metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading { grid-template-columns: 1fr; gap: 28px; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-aside { display: grid; grid-template-columns: 1fr 1fr; }
  .signal-note { grid-column: span 2; }
  .process-line { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .section-shell { width: min(100% - 28px, 1240px); }
  .site-header { width: calc(100% - 20px); min-height: 64px; top: 8px; }
  .brand > span:last-child, .header-cta { font-size: 0; }
  .header-cta .ui-icon { font-size: 20px; }
  .hero { min-height: auto; gap: 30px; padding-block: 78px 50px; }
  .hero h1 { font-size: 51px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .hero-visual { transform: scale(.82); min-height: 440px; margin: -30px -50px; }
  .metrics article { min-height: 120px; padding: 20px; }
  .featured, .work, .method, .capability { padding-block: 60px 90px; }
  .featured-main { padding: 30px 22px; }
  .featured-main h3 { font-size: 41px; }
  .boundary-row { grid-template-columns: 1fr; }
  .featured-actions { flex-direction: column; align-items: flex-start; }
  .featured-aside { grid-template-columns: 1fr 1fr; padding: 22px; }
  .signal strong { font-size: 44px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 350px; }
  .process-line { grid-template-columns: 1fr; border-top: 0; }
  .process-line article { border-right: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 44px 46px 1fr; gap: 10px; align-items: start; }
  .process-line i { margin: 0; }
  .process-line h3 { margin: 0; }
  .process-line p { grid-column: 3; }
  .bento { grid-template-columns: 1fr; }
  .bento-large, .bento-wide { grid-column: auto; }
  #dialogContent { padding: 48px 24px 32px; }
  .dialog-actions { flex-direction: column; align-items: flex-start; }
}

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

/* Full casebook */
.work { padding-bottom: 80px; }
.portfolio-note {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 0 0 28px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--cobalt);
  border-radius: 12px;
  background: rgba(255,255,255,.54);
  color: var(--muted);
  font-size: 14px;
}
.portfolio-note b { flex: 0 0 auto; color: var(--ink); }
.evolution-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 46px; }
.evolution-map article { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.46); }
.evolution-kicker { color: var(--cobalt); font: 500 10px "DM Mono", monospace; letter-spacing: .1em; }
.evolution-map h3 { margin: 12px 0 20px; font-size: 21px; letter-spacing: -.03em; }
.evolution-path { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.evolution-path span { padding: 7px 9px; border-radius: 8px; background: rgba(27,29,24,.06); }
.evolution-path i { color: var(--cobalt); font-style: normal; }
.project-grid { display: grid; grid-template-columns: 1fr; gap: 34px; }
.reusable-assets { margin-top: 72px; padding: 38px; border-radius: 28px; background: var(--ink); color: var(--paper); }
.asset-heading { display: grid; grid-template-columns: 1fr minmax(280px, 520px); gap: 28px 60px; align-items: end; margin-bottom: 34px; }
.asset-heading .section-index { grid-column: 1 / -1; color: var(--acid); }
.asset-heading h3 { margin: 0; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -.05em; }
.asset-heading p { margin: 0; color: rgba(243,240,231,.62); line-height: 1.7; }
.asset-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(255,255,255,.14); }
.asset-grid article { min-height: 220px; padding: 24px; background: rgba(255,255,255,.05); }
.asset-grid span { color: var(--acid); font: 500 11px "DM Mono", monospace; }
.asset-grid h4 { margin: 54px 0 12px; font-size: 18px; }
.asset-grid p { margin: 0; color: rgba(243,240,231,.58); font-size: 13px; line-height: 1.65; }
.project-dossier {
  --card-accent: var(--acid);
  scroll-margin-top: 110px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.58);
  box-shadow: 0 18px 50px rgba(27,29,24,.07);
}
.project-dossier::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -105px;
  top: -115px;
  border-radius: 50%;
  background: var(--card-accent);
  opacity: .72;
}
.dossier-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 72px minmax(0,1fr) 170px;
  gap: 28px;
  padding: 34px;
  border-bottom: 1px solid var(--line);
}
.dossier-number {
  font: 500 44px/1 "DM Mono", monospace;
  letter-spacing: -.08em;
  color: var(--cobalt);
}
.dossier-title h3 {
  margin: 16px 0 12px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.06;
  letter-spacing: -.05em;
}
.dossier-title > p { margin: 0; max-width: 780px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-row span { padding: 6px 9px; border-radius: 999px; background: rgba(27,29,24,.07); font-size: 11px; font-weight: 700; }
.dossier-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font: 500 12px "DM Mono", monospace; }
.dossier-meta span { margin-bottom: 16px; color: var(--muted); }
.dossier-meta b { padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.62); border: 1px solid var(--line); }
.story-grid { display: grid; grid-template-columns: .9fr 1.15fr 1.15fr 1.15fr; border-bottom: 1px solid var(--line); }
.story-grid section { min-height: 270px; padding: 30px; border-right: 1px solid var(--line); }
.story-grid section:last-child { border-right: 0; }
.story-index { font: 500 11px "DM Mono", monospace; color: var(--cobalt); }
.story-grid h4 { margin: 34px 0 14px; font-size: 21px; letter-spacing: -.025em; }
.story-grid p, .story-grid li { color: var(--muted); font-size: 14px; line-height: 1.72; }
.story-grid p { margin: 0; }
.story-grid ol, .story-grid ul { margin: 0; padding-left: 20px; }
.story-grid li + li { margin-top: 8px; }
.leaderboard { padding: 34px; background: rgba(233,228,216,.45); }
.board-head { display: grid; grid-template-columns: 1fr 270px; gap: 30px; align-items: stretch; margin-bottom: 18px; }
.board-kicker { font: 500 11px "DM Mono", monospace; color: var(--cobalt); letter-spacing: .11em; }
.board-head h4 { margin: 9px 0 4px; font-size: 28px; letter-spacing: -.04em; }
.board-head p { margin: 0; color: var(--muted); font-size: 13px; }
.board-highlight { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 18px; border-radius: 16px; background: var(--ink); color: var(--paper); }
.board-highlight span { font: 500 10px "DM Mono", monospace; color: var(--acid); }
.board-highlight b { grid-row: span 2; font: 500 32px/1 "DM Mono", monospace; letter-spacing: -.05em; }
.board-highlight small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(243,240,231,.62); }
.board-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
.board-tab { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }
.board-tab.active { background: var(--cobalt); border-color: var(--cobalt); color: white; }
.dimension-strip { display: grid; grid-template-columns: 84px repeat(var(--dimension-count), 1fr); gap: 1px; margin: 18px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.dimension-strip > * { min-width: 0; padding: 12px 10px; background: rgba(255,255,255,.66); }
.dimension-strip > span { display: grid; place-items: center; color: var(--muted); font-size: 11px; font-weight: 700; }
.dimension-strip div { display: flex; flex-direction: column; gap: 7px; }
.dimension-strip small { min-height: 30px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.dimension-strip b { font: 500 16px "DM Mono", monospace; }
.bar-chart { display: grid; gap: 7px; margin-top: 16px; }
.bar-row { display: grid; grid-template-columns: 28px minmax(190px, 34%) 1fr 68px; gap: 12px; align-items: center; min-height: 30px; }
.rank { color: var(--muted); font: 500 10px "DM Mono", monospace; }
.model { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; }
.bar-track { height: 12px; overflow: hidden; border-radius: 999px; background: rgba(27,29,24,.08); }
.bar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cobalt), var(--card-accent)); }
.bar-row:nth-child(1) .bar-track i { background: linear-gradient(90deg, var(--ink), var(--cobalt)); }
.bar-row > strong { text-align: right; font: 500 12px "DM Mono", monospace; }
.board-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.board-foot span { padding: 7px 9px; border-radius: 7px; background: rgba(27,29,24,.07); color: var(--muted); font-size: 11px; }
.leaderboard-empty { min-height: 220px; display: grid; place-content: center; text-align: center; }
.leaderboard-empty span { color: var(--coral); font: 500 11px "DM Mono", monospace; letter-spacing: .1em; }
.leaderboard-empty strong { margin-top: 12px; font-size: 30px; }
.leaderboard-empty p { max-width: 520px; color: var(--muted); line-height: 1.7; }

@media (max-width: 980px) {
  .evolution-map { grid-template-columns: 1fr; }
  .asset-heading { grid-template-columns: 1fr; }
  .asset-heading .section-index { grid-column: auto; }
  .asset-grid { grid-template-columns: repeat(2, 1fr); }
  .dossier-header { grid-template-columns: 60px 1fr; }
  .dossier-meta { grid-column: 2; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .dossier-meta span { margin: 0 auto 0 0; }
  .story-grid { grid-template-columns: 1fr; }
  .story-grid section { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .story-grid section:last-child { border-bottom: 0; }
  .dimension-strip { grid-template-columns: repeat(3, 1fr); }
  .dimension-strip > span { display: none; }
}

@media (max-width: 680px) {
  .portfolio-note { align-items: flex-start; flex-direction: column; gap: 6px; }
  .evolution-map { gap: 10px; margin-bottom: 34px; }
  .evolution-map article { padding: 20px; }
  .evolution-path { align-items: flex-start; flex-direction: column; }
  .evolution-path i { transform: rotate(90deg); margin-left: 18px; }
  .reusable-assets { margin-top: 52px; padding: 26px 20px; }
  .asset-grid { grid-template-columns: 1fr; }
  .asset-grid article { min-height: 0; }
  .asset-grid h4 { margin-top: 28px; }
  .dossier-header { grid-template-columns: 1fr; padding: 24px; gap: 16px; }
  .dossier-number { font-size: 30px; }
  .dossier-meta { grid-column: 1; justify-content: flex-start; }
  .dossier-meta span { margin-right: 0; }
  .story-grid section { padding: 24px; }
  .story-grid h4 { margin-top: 20px; }
  .leaderboard { padding: 24px 16px; }
  .board-head { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 22px minmax(0, 1fr) 58px; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
  .bar-track { grid-column: 2 / 4; grid-row: 2; height: 8px; }
  .bar-row > strong { grid-column: 3; }
  .dimension-strip { grid-template-columns: repeat(2, 1fr); }
}
