/* Manas KV | site styles
   Palette: bright blue for practice, bright red for scholarship, black and white for structure. */

:root {
  --ink: #0A0A0A;
  --ink-2: #141414;
  --paper: #FFFFFF;
  --paper-2: #F4F4F1;
  --line: #E4E4E0;
  --line-dark: #262626;
  --muted: #5C5C5C;
  --muted-dark: #A8A8A8;

  --blue: #0033FF;
  --blue-d: #4D74FF;      /* blue for text and marks on black */
  --blue-tint: #A9BBFF;
  --blue-wash: #EEF2FF;
  --red: #E8121B;
  --red-d: #FF4747;       /* red for text and marks on black */
  --red-wash: #FFF0F0;

  --h0: #F1F1EE; --h1: #DCE3FF; --h2: #B3C3FF; --h3: #7A96FF; --h4: #3A62FF; --h5: #0033FF;

  --rail: 84px;
  --f-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--f-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.02em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
a { color: var(--blue); }
em, i, cite { font-style: normal; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.hero :focus-visible, .footprint :focus-visible, .factory :focus-visible, .contact :focus-visible, .rail :focus-visible, .menu :focus-visible { outline-color: #fff; }

.mono { font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.02em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--blue); color: #fff; padding: 10px 16px; font-weight: 700; }
.skip:focus { left: 8px; }

main { margin-left: var(--rail); }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px); }
.section { padding: clamp(80px, 10vw, 150px) 0; }

/* ---------- reveal and growth animation ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.grow { width: 0; transition: width 1.2s var(--ease); }
.in .grow, html:not(.js) .grow { width: var(--w); }

/* ---------- rail (desktop) ---------- */
.rail {
  position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 50;
  background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center;
  border-right: 1px solid #1c1c1c;
}
.rail__mark {
  position: relative; display: grid; place-items: center; width: var(--rail); height: var(--rail);
  color: #fff; text-decoration: none; font: 800 19px/1 var(--f-display); letter-spacing: -0.02em;
  border-bottom: 1px solid #1f1f1f;
}
.rail__mark i { position: absolute; width: 9px; height: 9px; background: var(--red); right: 16px; top: 22px; }
.rail__nav { margin: auto 0; }
.rail__nav ol { display: flex; flex-direction: column; gap: 2px; }
.rail__nav a {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 10px 0; width: var(--rail); color: #8a8a8a; text-decoration: none; transition: color .25s;
}
.rail__n { font: 700 14px/1 var(--f-mono); }
.rail__l {
  writing-mode: vertical-rl; transform: rotate(180deg); font: 600 14px/1 var(--f-mono);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.rail__nav a::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: #fff;
  transform: scaleY(0); transition: transform .35s var(--ease);
}
.rail__nav a[data-tone="blue"]::before { background: var(--blue-d); }
.rail__nav a[data-tone="red"]::before { background: var(--red-d); }
.rail__nav a:hover, .rail__nav a.is-active { color: #fff; }
.rail__nav a.is-active::before { transform: scaleY(1); }
.rail__progress { position: absolute; right: -1px; top: 0; bottom: 0; width: 3px; background: transparent; }
.rail__progress span {
  display: block; width: 100%; height: 0;
  background: linear-gradient(var(--blue), var(--blue) 40%, var(--red) 70%, var(--red));
  background-size: 3px 100vh; background-attachment: fixed;
}
.rail__foot { writing-mode: vertical-rl; transform: rotate(180deg); font: 500 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #6b6b6b; margin-bottom: 22px; }
/* Short screens: keep every chapter reachable. Inactive labels become hover tags beside the rail. */
@media (min-width: 1101px) and (max-height: 940px) { .rail__foot { display: none; } }
@media (min-width: 1101px) and (max-height: 840px) {
  .rail__nav a:not(.is-active) .rail__l {
    position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%);
    writing-mode: horizontal-tb; white-space: nowrap; padding: 8px 12px; background: var(--ink); color: #fff;
    border-left: 3px solid var(--red); opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  .rail__nav a:not(.is-active):hover .rail__l, .rail__nav a:not(.is-active):focus-visible .rail__l { opacity: 1; }
}

/* ---------- top bar and menu (mobile) ---------- */
.topbar { display: none; }
.menu[hidden] { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 24px;
  font: 600 15px/1 var(--f-body); text-decoration: none; border: 2px solid currentColor;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn span { font-size: 18px; }
.btn--blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--ghost { color: #fff; border-color: #4a4a4a; }
.btn:hover { transform: translate(-4px, -4px); box-shadow: 4px 4px 0 #fff; }
.btn--ghost:hover { border-color: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--ink); color: #fff;
  padding: 0 0 150px;
}
.hero::before { /* faint blueprint grid */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .06;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.hero__kicker {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px clamp(14px, 2vw, 36px); padding: 22px 0 18px;
  border-bottom: 1px solid #2c2c2c; font: 500 clamp(11px, 0.95vw, 15px)/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .06em;
}
/* one line on anything wider than a small tablet: type scales with the screen instead of wrapping */
@media (min-width: 900px) { .hero__kicker { flex-wrap: nowrap; justify-content: space-between; white-space: nowrap; } }
.hero__kicker a { display: inline-flex; gap: .6em; padding: 4px 0; color: #d0d0d0; text-decoration: none; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.hero__kicker a span { color: var(--red-d); }
.hero__kicker a:hover, .hero__kicker a:focus-visible { color: #fff; border-bottom-color: var(--red-d); }
.hero__copy { grid-column: 1 / span 7; position: relative; z-index: 2; }
.hero__name {
  margin: clamp(28px, 3.4vw, 48px) 0 clamp(22px, 2.6vw, 32px);
  font-size: clamp(72px, 9.6vw, 156px); line-height: .82; letter-spacing: -0.05em; font-weight: 800;
}
.hero__name > span { display: block; }
.hero__first { color: #fff; }
.hero__last { color: var(--blue-d); padding-left: .58em; }
.dot { display: inline-block; width: .15em; height: .15em; background: var(--red); margin-left: .05em; }
.hero__intro { max-width: 30ch; font: 500 clamp(20px, 2vw, 26px)/1.42 var(--f-body); color: #fff; letter-spacing: -0.01em; }
.hero__tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 40px 0 36px; }
.track { padding-left: 18px; border-left: 4px solid; }
.track p { margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: #cfcfcf; }
.track__label { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.track--blue { border-color: var(--blue-d); } .track--blue .track__label { color: var(--blue-d); }
.track--red { border-color: var(--red-d); } .track--red .track__label { color: var(--red-d); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__portrait { grid-column: 8 / span 5; align-self: start; margin: clamp(36px, 3.8vw, 56px) 0 0; position: relative; z-index: 1; }
.portrait { position: relative; margin: 0 6% 0 10%; }
.portrait img { position: relative; z-index: 2; display: block; width: 100%; height: auto; }
.portrait__block { position: absolute; z-index: 1; inset: 10% -9% -40px 14%; background: var(--blue); }
.portrait__sq { position: absolute; z-index: 3; width: 58px; height: 58px; right: -9%; top: calc(10% - 58px); background: var(--red); }
.badge { position: absolute; z-index: 4; width: clamp(104px, 9vw, 136px); left: -46px; top: 4%; animation: spin 24s linear infinite; }
.badge__bg { fill: #fff; }
.badge text { font: 700 13px var(--f-mono); fill: var(--ink); letter-spacing: .06em; }
.badge__sq { fill: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }
.roles { /* sits below the portrait, never over it */
  position: relative; z-index: 5; margin: 72px 6% 0 10%;
  background: #fff; color: var(--ink); padding: 16px 18px 14px; box-shadow: 8px 8px 0 var(--red);
}
.roles__head { display: flex; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--muted); }
.roles ul { margin-top: 8px; }
.roles li { position: relative; padding: 5px 0 5px 16px; font-size: 13.5px; line-height: 1.35; font-weight: 600; border-top: 1px solid var(--line); }
.roles li:first-child { border-top: 0; }
.roles li::before { content: ''; position: absolute; left: 0; top: 11px; width: 7px; height: 7px; background: var(--blue); }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); position: relative; flex: 0 0 auto; }
.live::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--red); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- stat composition ---------- */
.stats { position: relative; z-index: 3; background: var(--paper); padding-bottom: clamp(48px, 6vw, 80px); }
.stats__grid {
  margin-top: -84px; display: grid; gap: 6px; background: var(--ink); border: 6px solid var(--ink);
  grid-template-columns: 1.55fr 1fr 1fr 1fr .3fr; grid-template-rows: auto auto;
}
.stat { background: var(--paper); padding: clamp(18px, 2.2vw, 30px); display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 176px; }
.stat__tag { display: flex; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.stat__tag::before { content: ''; width: 9px; height: 9px; background: var(--blue); }
.stat--scholarship .stat__tag::before { background: var(--red); }
.stat__n { font: 800 clamp(54px, 6.4vw, 104px)/.85 var(--f-display); letter-spacing: -0.05em; }
.stat__l { font-size: 15px; font-weight: 600; line-height: 1.3; }
.stat--0 { grid-row: 1 / span 2; grid-column: 1; background: var(--blue); color: #fff; }
.stat--0 .stat__n { font-size: clamp(110px, 14vw, 230px); }
.stat--0 .stat__l { font-size: 19px; max-width: 12ch; }
.stat--1 { grid-column: 2 / span 2; grid-row: 1; }
.stat--2 { grid-column: 4; grid-row: 1; }
.stat--3 { grid-column: 2; grid-row: 2; background: var(--red); color: #fff; }
.stat--4 { grid-column: 3; grid-row: 2; }
.stat--5 { grid-column: 4; grid-row: 2; }
.stat--0 .stat__tag, .stat--3 .stat__tag { color: rgba(255, 255, 255, .85); }
.stat--0 .stat__tag::before, .stat--3 .stat__tag::before { background: #fff; }
.stat--fill { grid-column: 5; grid-row: 1 / span 2; background: repeating-linear-gradient(45deg, var(--ink) 0 2px, var(--paper) 2px 9px); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; align-items: center; animation: marquee 80s linear infinite; }
.marquee span { font: 700 clamp(24px, 3vw, 42px)/1 var(--f-display); letter-spacing: -0.02em; padding: 22px 0; }
.marquee i { display: inline-block; width: 14px; height: 14px; margin: 0 30px; flex: 0 0 auto; }
.marquee--blue { background: var(--blue); color: #fff; }
.marquee--blue i { background: #fff; }
.marquee--red { background: var(--red); color: #fff; }
.marquee--red span { font-size: clamp(17px, 1.6vw, 22px); padding: 14px 0; font-weight: 600; }
.marquee--red i { background: var(--ink); width: 10px; height: 10px; margin: 0 22px; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 70s; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- chapter headers ---------- */
.chap {
  position: relative; display: grid; grid-template-columns: auto 1fr; align-items: end;
  column-gap: clamp(16px, 3vw, 44px); margin-bottom: clamp(40px, 5vw, 72px);
  border-top: 6px solid var(--ink); padding-top: 18px;
}
.chap__n {
  font: 800 clamp(110px, 16vw, 250px)/.76 var(--f-display); letter-spacing: -0.07em;
  color: transparent; -webkit-text-stroke: 2px var(--ink);
}
.chap--blue .chap__n { -webkit-text-stroke-color: var(--blue); }
.chap--red .chap__n { -webkit-text-stroke-color: var(--red); }
.chap h2, .subhead--big h2, .footprint__head h2 { margin: 0; font-size: clamp(36px, 5vw, 76px); line-height: 1; letter-spacing: -0.035em; max-width: 17ch; }
.kicker {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: var(--muted);
}
.kicker::before { content: ''; width: 10px; height: 10px; background: var(--ink); flex: 0 0 auto; }
.chap--blue .kicker::before { background: var(--blue); }
.chap--red .kicker::before, .kicker--red::before { background: var(--red); }
.kicker--light { color: #bdbdbd; }
.kicker--light::before { background: var(--blue-d); }
.contact .kicker--light::before { background: var(--red-d); }

.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.65; color: #232323; max-width: 62ch; }
.lede--wide { max-width: 75ch; }
.lede--light { color: #cfcfcf; }
.subhead {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 24px;
  margin: clamp(64px, 7vw, 96px) 0 24px; padding-top: 14px; border-top: 2px solid var(--ink);
}
.subhead h3 { margin: 0; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.1; }
.subhead p { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.subhead--big { border-top-width: 6px; margin-top: 0; margin-bottom: clamp(32px, 4vw, 48px); padding-top: 18px; }
.subhead--big h2 { font-size: clamp(32px, 4.2vw, 62px); }

/* ---------- 01 two tracks ---------- */
.tracks__copy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); margin-bottom: clamp(48px, 6vw, 80px); }
.dropcap::first-letter { float: left; font: 800 5.3em/.78 var(--f-display); color: var(--blue); margin: .06em .1em 0 0; }
.venn { margin: 0; }
.venn__svg { display: block; width: 100%; max-width: 1080px; margin: 0 auto; overflow: visible; }
.venn__c { transform-box: fill-box; transform-origin: center; transition: transform 1.1s var(--ease), opacity 1s; }
.venn__c--blue { fill: rgba(0, 51, 255, .06); stroke: var(--blue); stroke-width: 2.5; }
.venn__c--red { fill: rgba(232, 18, 27, .06); stroke: var(--red); stroke-width: 2.5; }
.venn__lens { fill: var(--ink); transition: opacity 1s .5s; }
.js .venn:not(.in) .venn__c--blue { transform: translateX(-80px); opacity: 0; }
.js .venn:not(.in) .venn__c--red { transform: translateX(80px); opacity: 0; }
.js .venn:not(.in) .venn__lens, .js .venn:not(.in) .venn__items--lens { opacity: 0; }
.venn__items--lens { transition: opacity 1s .7s; }
.venn__label { font: 700 15px var(--f-mono); letter-spacing: .16em; }
.venn__label--blue { fill: var(--blue); } .venn__label--red { fill: var(--red); } .venn__label--white { fill: #fff; }
.venn__sub { font: 600 15px var(--f-body); fill: var(--muted); }
.venn__items text { font: 500 17px var(--f-body); fill: var(--ink); }
.venn__items--lens text { fill: #fff; font-weight: 600; }
.venn__list { display: none; }
.caption { display: block; margin-top: 18px; text-align: center; font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- 02 practice ---------- */
.practice { background: var(--paper-2); }
.now { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; margin-top: clamp(40px, 5vw, 64px); }
.now__card { padding: clamp(24px, 3vw, 40px); color: #fff; position: relative; }
.now__card--ink { background: var(--ink); border-top: 8px solid var(--blue-d); }
.now__card--blue { background: var(--blue); border-top: 8px solid var(--ink); }
.now__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.now__tag { display: flex; align-items: center; gap: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.now__card--blue .live { background: #fff; } .now__card--blue .live::after { border-color: #fff; }
.now__idx { font-size: 13px; opacity: .55; }
.now__card h3 { margin: 22px 0 6px; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.08; }
.now__org { font-weight: 600; font-size: 16px; color: var(--blue-d); }
.now__card--blue .now__org { color: rgba(255, 255, 255, .88); }
.ticks { margin-top: 18px; }
.ticks li { position: relative; padding-left: 28px; margin: 12px 0; font-size: 16px; line-height: 1.55; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .72em; width: 14px; height: 2px; background: var(--blue-d); }
.now__card--ink .ticks li { color: #d8d8d8; }
.now__card--blue .ticks li::before { background: #fff; }
.ticks--blue li::before { background: var(--blue); }
.ticks--red li::before { background: var(--red); }

.ptable { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: end; }
.ptable__group { display: flex; flex-direction: column; }
.ptable__group ul { display: flex; flex-direction: column; gap: 10px; }
.ptable__head { order: 2; display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 3px solid var(--ink); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.ptable__head .sw { width: 12px; height: 12px; flex: 0 0 auto; }
.el {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 116px; padding: 14px 16px 16px; border: 2px solid var(--ink); background: var(--paper);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.el:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--ink); }
.el__n { font-size: 11px; font-weight: 700; }
.el__name { font: 700 18px/1.25 var(--f-display); letter-spacing: -0.01em; }
.ptable__group--arch .el { background: var(--blue); border-color: var(--blue); color: #fff; }
.ptable__group--arch .sw { background: var(--blue); }
.ptable__group--data .el { border-color: var(--blue); }
.ptable__group--data .sw { background: var(--paper); border: 2px solid var(--blue); }
.ptable__group--gov .el { background: var(--red); border-color: var(--red); color: #fff; }
.ptable__group--gov .sw { background: var(--red); }
.ptable__group--lead .el { background: var(--ink); color: #fff; }
.ptable__group--lead .sw { background: var(--ink); }
.ptable__group--lead .el:hover { box-shadow: 6px 6px 0 var(--blue); }

/* ---------- footprint (dark) ---------- */
.footprint { background: var(--ink); color: #fff; padding: clamp(80px, 10vw, 140px) 0; }
.footprint__head h2 { max-width: 22ch; font-size: clamp(32px, 4.3vw, 64px); }
.note { margin-top: 16px; color: var(--muted-dark); font-size: 15px; }
.map-layout { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(260px, 1fr); gap: clamp(24px, 3vw, 48px); margin-top: clamp(36px, 5vw, 64px); align-items: start; }
.map { margin: 0; }
.map svg { display: block; width: 100%; height: auto; overflow: visible; }
.map__base { fill: #2c2c2c; }
.map__land { fill: var(--blue-d); }
.map__land--home { fill: var(--red-d); }
.map__arcs path { fill: none; stroke: var(--blue-d); stroke-width: 1.5; opacity: .8; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.map__arcs path.is-prop { stroke: #fff; opacity: .55; }
.map.in .map__arcs path, html:not(.js) .map__arcs path { stroke-dashoffset: 0; }
.mk { cursor: pointer; outline: none; }
.mk__hit { fill: transparent; }
.mk__dot { fill: var(--blue-d); stroke: var(--ink); stroke-width: 2; transition: fill .2s; }
.mk--prop .mk__dot { fill: var(--ink); stroke: #fff; }
.mk:hover .mk__dot, .mk:focus-visible .mk__dot { fill: #fff; }
.map__home { cursor: pointer; outline: none; }
.home__dot { fill: var(--red-d); stroke: var(--ink); stroke-width: 2; }
.home__pulse { fill: none; stroke: var(--red-d); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
.map__legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px; font-size: 12px; color: #bdbdbd; }
.map__legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.lg--home { background: var(--red-d); } .lg--dot { background: var(--blue-d); } .lg--ring { border: 2px solid #fff; }

.rank__head { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 2px solid #fff; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: #bdbdbd; }
.rank li { display: grid; grid-template-columns: 26px minmax(0, 1fr) 64px 30px; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #222; font-size: 15px; }
.rank__i { font-size: 11px; color: #777; }
.rank__name { min-width: 0; }
.tagp { display: inline-block; margin-left: 4px; padding: 1px 6px; border: 1px solid #555; font-size: 10px; color: #bbb; text-transform: uppercase; letter-spacing: .08em; vertical-align: 2px; }
.rank__bar { height: 8px; background: #1e1e1e; }
.rank__bar i { display: block; height: 100%; background: var(--blue-d); border-radius: 0 4px 4px 0; }
.rank__n { text-align: right; font: 700 14px var(--f-mono); }

/* ---------- charts ---------- */
.charts { background: var(--paper); }
.charts__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 48px); }
.chart { margin: 0; border-top: 3px solid var(--ink); padding-top: 16px; min-width: 0; }
.chart--region { grid-column: span 5; } .chart--sector { grid-column: span 7; }
.chart--domain { grid-column: span 7; } .chart--mix { grid-column: span 5; }
.chart--heat { grid-column: 1 / -1; }
.chart__no { display: block; font-size: 11px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.chart figcaption h3, .cmap figcaption h3, .gantt__head h3 { margin: 6px 0 4px; font-size: clamp(22px, 2vw, 28px); line-height: 1.1; }
.chart figcaption p, .cmap figcaption p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.hbars { display: grid; gap: 12px; }
.hbar { display: grid; grid-template-columns: minmax(110px, 36%) minmax(0, 1fr) 34px; align-items: center; gap: 14px; font-size: 15px; outline: none; }
.hbar__l { line-height: 1.25; }
.hbar__track { display: flex; gap: 2px; height: 22px; background: var(--h0); }
.hbar__track i { display: block; height: 100%; background: var(--blue); border-radius: 0 4px 4px 0; transition: width 1.2s var(--ease), filter .2s; }
.hbar:hover i, .hbar:focus-visible i { filter: brightness(1.25); }
.hbars--stack .seg--del { border-radius: 0; }
.hbars--stack .seg--del:last-child, .hbars--stack .seg--prop { border-radius: 0 4px 4px 0; }
.hbars--stack .seg--prop { background: var(--blue-tint); }
.hbar__v { text-align: right; font: 700 14px var(--f-mono); }

.treemap { position: relative; width: 100%; aspect-ratio: 100 / 62; }
.tm {
  position: absolute; border: 2px solid var(--paper); padding: 10px 12px;
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; outline: none;
  transition: filter .2s;
}
.tm:hover, .tm:focus-visible { filter: brightness(1.1) saturate(1.1); }
.tm:focus-visible { box-shadow: inset 0 0 0 3px var(--ink); }
.tm__v { font: 800 clamp(20px, 2.2vw, 30px)/1 var(--f-display); }
.tm__l { margin-top: 4px; font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.tm--s1 { background: var(--h1); } .tm--s2 { background: var(--h2); } .tm--s3 { background: var(--h3); }
.tm--s4 { background: var(--h4); color: #fff; } .tm--s5 { background: var(--h5); color: #fff; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 18px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 12px; height: 12px; flex: 0 0 auto; }
.sw--blue { background: var(--blue); } .sw--tint { background: var(--blue-tint); } .sw--ink { background: var(--ink); } .sw--red { background: var(--red); }
.sw--s0 { background: var(--blue); } .sw--s1 { background: var(--ink); } .sw--s2 { background: var(--blue-tint); }
.sw--e0 { background: var(--ink); } .sw--e1 { background: var(--blue); } .sw--e2 { background: var(--blue-tint); }
.sw--hatch { background: repeating-linear-gradient(45deg, var(--ink) 0 2px, var(--paper) 2px 5px); border: 1px solid var(--ink); }
.segbar-block + .segbar-block { margin-top: 30px; }
.segbar__t { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.segbar { display: flex; gap: 2px; height: 44px; }
.segbar__s { display: flex; align-items: center; padding: 0 12px; min-width: 8px; color: #fff; font: 700 15px var(--f-mono); outline: none; transition: filter .2s; }
.segbar__s:first-child { border-radius: 4px 0 0 4px; } .segbar__s:last-child { border-radius: 0 4px 4px 0; }
.segbar__s:hover, .segbar__s:focus-visible { filter: brightness(1.2); }
.segbar__s--0 { background: var(--blue); } .segbar__s--1 { background: var(--ink); } .segbar__s--2 { background: var(--blue-tint); color: var(--ink); }
.segbar__s--e0 { background: var(--ink); } .segbar__s--e1 { background: var(--blue); } .segbar__s--e2 { background: var(--blue-tint); color: var(--ink); }
.segbar-block .legend { margin-top: 12px; }

.heat-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; } /* relative keeps .sr-only labels inside the scroller */
.heat { border-collapse: separate; border-spacing: 3px; width: 100%; min-width: 820px; }
.heat thead th { vertical-align: bottom; text-align: left; padding: 0 4px 8px; font: 600 12px/1.25 var(--f-body); color: var(--muted); }
.heat thead th span { display: block; max-width: 120px; }
.heat__corner { font-size: 11px !important; text-transform: uppercase; letter-spacing: .12em; }
.heat tbody th { text-align: left; font-weight: 500; font-size: 14px; padding: 0 16px 0 0; white-space: nowrap; }
.heat td { height: 42px; text-align: center; font: 700 13px var(--f-mono); border-radius: 3px; outline: none; transition: transform .15s; }
.heat td[tabindex="0"]:hover, .heat td:focus-visible { transform: scale(1.08); box-shadow: 0 0 0 2px var(--ink); }
.h0 { background: var(--h0); } .h1 { background: var(--h1); } .h2 { background: var(--h2); } .h3 { background: var(--h3); }
.h4 { background: var(--h4); color: #fff; } .h5 { background: var(--h5); color: #fff; }
.legend--ramp { align-items: center; margin-top: 16px; gap: 4px; }
.legend--ramp i { display: inline-block; width: 28px; height: 12px; }
.legend--ramp span:first-child { margin-right: 6px; } .legend--ramp span:last-child { margin-left: 6px; }

/* ---------- engagements ---------- */
.engage { background: var(--paper-2); }
.engage__count { font-size: 13px; color: var(--muted); }
.filters { display: grid; gap: 14px; margin-bottom: 36px; padding: clamp(16px, 2vw, 24px); background: var(--paper); border: 2px solid var(--ink); }
.filters__row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: start; }
.filters__l { padding-top: 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 0 14px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.chip:hover { background: var(--blue-wash); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chips[data-filter="era"] .chip[data-value="prop"][aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.chips[data-filter="era"] .chip[data-value="new"][aria-pressed="true"] { background: var(--blue); border-color: var(--blue); }
.search { width: 100%; max-width: 480px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--ink); background: var(--paper); font-size: 15px; color: var(--ink); border-radius: 0; }
.search:focus { outline: 3px solid var(--blue); outline-offset: 0; }
.engage__group { margin: 0 0 20px; font-size: clamp(20px, 2vw, 26px); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 22px 18px;
  background: var(--paper); border: 1.5px solid var(--ink); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card[hidden] { display: none; }
.card::before { content: ''; position: absolute; left: -1.5px; right: -1.5px; top: -1.5px; height: 6px; background: var(--ink); }
.card--new::before { background: var(--blue); } .card--prop::before { background: var(--red); }
.card:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--ink); }
.card--new:hover { box-shadow: 6px 6px 0 var(--blue); } .card--prop:hover { box-shadow: 6px 6px 0 var(--red); }
.card__top { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }
.card__n { font-weight: 700; color: var(--ink); }
.card--new .card__n { color: var(--blue); } .card--prop .card__n { color: var(--red); }
.card__client { margin: 0; font-size: 21px; line-height: 1.2; letter-spacing: -0.015em; }
.card__title { font-weight: 600; font-size: 15.5px; line-height: 1.35; color: var(--blue); }
.card--prop .card__title { color: var(--red); }
.card--old .card__title { color: var(--ink); }
.card__desc { font-size: 15px; line-height: 1.55; color: #333; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tag { display: inline-block; padding: 5px 9px; background: var(--paper-2); border: 1px solid #dcdcd8; font: 600 11.5px var(--f-mono); }
.tag--prop { background: var(--red); border-color: var(--red); color: #fff; }
.tag--team { background: var(--ink); border-color: var(--ink); color: #fff; }
.card__domain { font-size: 11px; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--line); text-transform: uppercase; letter-spacing: .08em; }
.engage__empty { padding: 40px; text-align: center; border: 2px dashed var(--ink); font-weight: 600; }
.engage__more { display: flex; justify-content: center; margin-top: 32px; }
.btn--line { background: var(--paper); color: var(--ink); border-color: var(--ink); cursor: pointer; }
.btn--line:hover { box-shadow: 4px 4px 0 var(--blue); }
.tm-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.tm-key span { display: inline-flex; align-items: center; gap: 8px; }
.tm-key b { color: var(--ink); }

/* ---------- factory (dark) ---------- */
.factory { background: var(--ink); color: #fff; }
.factory__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.factory__head .kicker { grid-column: 1 / -1; margin: 0; }
.factory__head h2 { margin: 0; font-size: clamp(44px, 6.4vw, 100px); line-height: .92; letter-spacing: -0.045em; }
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.flow__step { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 200px; padding: 22px; background: #111; border: 1.5px solid var(--blue-d); }
.flow__step:not(:last-child)::after {
  content: ''; position: absolute; z-index: 2; right: -12px; top: 50%; width: 10px; height: 10px;
  border-top: 2px solid #fff; border-right: 2px solid #fff; transform: translateY(-50%) rotate(45deg);
}
.flow__step--0 { background: #fff; color: var(--ink); border-color: #fff; }
.flow__step--4 { background: var(--blue); border-color: var(--blue); }
.flow__n { font-size: 12px; font-weight: 700; color: var(--blue-d); }
.flow__step--0 .flow__n { color: var(--muted); } .flow__step--4 .flow__n { color: #fff; }
.flow__t { font: 700 22px/1.1 var(--f-display); letter-spacing: -0.02em; }
.flow__d { font-size: 14.5px; line-height: 1.5; color: #bdbdbd; margin-top: auto; }
.flow__step--0 .flow__d { color: #333; } .flow__step--4 .flow__d { color: rgba(255, 255, 255, .9); }
.flow__step.reveal { transition-delay: calc(var(--d) * 110ms); }
.flow__rail { position: relative; height: 4px; margin-top: 14px; background: #222; overflow: hidden; }
.flow__rail span { position: absolute; top: 0; left: -25%; width: 25%; height: 100%; background: linear-gradient(90deg, transparent, var(--blue-d), var(--red-d), transparent); animation: flow 3.4s linear infinite; }
@keyframes flow { to { left: 100%; } }
.fstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 5vw, 64px); }
.fstat { display: flex; align-items: center; gap: 22px; padding-top: 24px; border-top: 6px solid var(--blue-d); }
.fstat:nth-child(2) { border-color: var(--red-d); } .fstat:nth-child(3) { border-color: #fff; }
.fstat__n { display: block; font: 800 56px/1 var(--f-display); letter-spacing: -0.04em; }
.fstat__n--sm { font-size: 34px; }
.fstat__l { display: block; margin-top: 6px; font-size: 14px; line-height: 1.4; color: #bdbdbd; }
.ring { flex: 0 0 96px; width: 96px; height: 96px; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: #2a2a2a; stroke-width: 12; }
.ring__fill { fill: none; stroke: var(--blue-d); stroke-width: 12; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.in .ring__fill, html:not(.js) .ring__fill { stroke-dashoffset: calc(100 - var(--p)); }
.pict { flex: 0 0 auto; display: grid; grid-template-columns: repeat(4, 18px); gap: 5px; }
.pict i { width: 18px; height: 18px; background: var(--red-d); transform: scale(0); transition: transform .4s var(--ease); transition-delay: calc(var(--i) * 90ms + .2s); }
.in .pict i, html:not(.js) .pict i { transform: none; }
.wire { flex: 0 0 auto; display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.wire__node { padding: 4px 8px; border: 1.5px solid #555; font: 700 10.5px var(--f-mono); text-align: center; letter-spacing: .06em; }
.wire__node--blue { background: var(--blue); border-color: var(--blue); }
.wire__node--red { background: var(--red); border-color: var(--red); }
.wire__link { align-self: center; width: 2px; height: 8px; background: #777; }

/* ---------- 03 scholarship ---------- */
.thesis { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); background: var(--red); color: #fff; }
.thesis__main { padding: clamp(28px, 4vw, 56px); }
.thesis__tag { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: rgba(255, 255, 255, .88); }
.thesis h3 { margin: 16px 0; font-size: clamp(34px, 4.3vw, 64px); line-height: 1; letter-spacing: -0.035em; }
.thesis__meta { font-weight: 600; font-size: 16px; }
.thesis__desc { margin-top: 18px; font-size: 17.5px; line-height: 1.62; max-width: 60ch; }
.thesis__info { background: var(--ink); display: grid; }
.ti { padding: clamp(20px, 2.4vw, 30px); border-bottom: 1px solid #262626; }
.ti:last-child { border-bottom: 0; }
.ti p { margin-top: 12px; font-size: 15px; color: #d0d0d0; }
.ti b { display: block; font: 800 40px/1 var(--f-display); color: #fff; letter-spacing: -0.03em; margin-bottom: 4px; }
.dots42 { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 5px; max-width: 320px; }
.dots42 i { aspect-ratio: 1; border-radius: 50%; background: var(--red-d); transform: scale(0); transition: transform .35s var(--ease); transition-delay: calc(var(--i) * 18ms + .2s); }
.in .dots42 i, html:not(.js) .dots42 i { transform: none; }
.decades { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; max-width: 320px; }
.decades i { height: 24px; background: #333; transition: background .3s; transition-delay: calc(var(--i) * 45ms + .3s); }
.decades i:nth-child(10) { margin-right: 6px; }
.in .decades i, html:not(.js) .decades i { background: #fff; }
.ti--split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ti--split p { margin-top: 0; }
.pstats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-bottom: 2px solid var(--ink); }
.pstat { padding: 22px 16px 20px; border-left: 1px solid var(--line); }
.pstat:first-child { border-left: 0; padding-left: 0; }
.pstat__n { display: block; font: 800 clamp(40px, 4vw, 56px)/1 var(--f-display); letter-spacing: -0.04em; }
.pstat:first-child .pstat__n { color: var(--red); }
.pstat__l { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.35; color: var(--muted); }

/* research programme x manuscript pipeline */
.rmatrix { border: 2px solid var(--ink); background: var(--paper); }
.rm__row { display: grid; grid-template-columns: minmax(220px, 1.15fr) repeat(3, minmax(0, 1fr)); }
.rm__row + .rm__row { border-top: 2px solid var(--ink); }
.rm__row > * + * { border-left: 2px solid var(--ink); }
.rm__corner { display: flex; align-items: flex-end; padding: 18px 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.rm__stage { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--paper); }
.rm__stage:not(:last-child)::after {
  content: ''; position: absolute; z-index: 2; right: -15px; top: 50%; width: 26px; height: 26px;
  background: inherit; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: translateY(-50%) rotate(45deg);
}
.rm__count { font: 800 56px/.85 var(--f-display); letter-spacing: -0.05em; }
.rm__name { display: block; font-weight: 700; font-size: 17px; line-height: 1.2; }
.rm__note { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.rm__stage--ur { background: var(--red-wash); } .rm__stage--ur .rm__count { color: var(--red); }
.rm__stage--rr { background: var(--red); color: #fff; } .rm__stage--rr .rm__note { color: rgba(255, 255, 255, .85); }
.rm__strand { padding: 20px; border-left: 0; box-shadow: inset 6px 0 0 var(--red); }
.rm__sn { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.rm__strand h4 { margin: 6px 0 8px; font-size: 20px; line-height: 1.2; letter-spacing: -0.015em; }
.rm__total { font-size: 11px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .1em; }
.rm__cell { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.rm__cell--ur { background: var(--red-wash); }
.rm__cell--rr { background: var(--red); }
.rm__cell.is-empty { background-image: repeating-linear-gradient(45deg, transparent 0 9px, rgba(10, 10, 10, .05) 9px 10px); }
.mcard { display: block; padding: 12px 14px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); }
.mcard__top { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); }
.rank-chip { font-weight: 700; color: var(--ink); }
.mcard__t { display: block; margin: 6px 0 4px; font-weight: 700; font-size: 16px; line-height: 1.3; }
.mcard__j { display: block; font-size: 13.5px; color: var(--muted); }

.pill { display: inline-block; padding: 2px 8px; font: 700 11px/1.5 var(--f-mono); white-space: nowrap; border: 1.5px solid transparent; }
.pill--rr { background: var(--red); color: #fff; border-color: var(--red); }
.pill--ur { background: var(--paper); color: var(--red); border-color: var(--red); }
.pill--wip { background: var(--ink); color: #fff; border-color: var(--ink); }
.subhead--legend p.pills-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 400 14px var(--f-body); text-transform: none; letter-spacing: 0; color: var(--muted); }
.subhead--legend .pill + * { margin-right: 8px; }
.apa li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.apa__side { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.apa__rank { font-weight: 700; font-size: 13px; }
.apa__ref { font-size: 16px; line-height: 1.62; color: #2a2a2a; padding-left: 28px; text-indent: -28px; }
.apa__ref strong { color: var(--ink); }
.apa__j { color: var(--red) !important; }
.orcid { margin-top: 24px; font-size: 14px; color: var(--muted); }
.orcid a { font-weight: 700; }

/* ---------- teaching ---------- */
.teach { background: var(--paper-2); }
.teach__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: clamp(48px, 6vw, 72px); }
.big180 { display: flex; flex-direction: column; gap: 10px; padding: clamp(24px, 3vw, 36px); background: var(--red); color: #fff; }
.big180__tag { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.big180__n { font: 800 clamp(88px, 10vw, 150px)/.82 var(--f-display); letter-spacing: -0.06em; margin-top: 10px; }
.big180__t { font: 700 22px/1.2 var(--f-display); }
.people { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; margin-top: 10px; max-width: 300px; }
.people i {
  aspect-ratio: 3 / 5; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20'%3E%3Ccircle cx='6' cy='4' r='3.4' fill='%23fff'/%3E%3Cpath d='M1 20v-8a5 5 0 0 1 10 0v8z' fill='%23fff'/%3E%3C/svg%3E");
  opacity: .25; transition: opacity .3s; transition-delay: calc(var(--i) * 50ms + .2s);
}
.in .people i, html:not(.js) .people i { opacity: 1; }
.big180__key { font-size: 11px; color: rgba(255, 255, 255, .85); text-transform: uppercase; letter-spacing: .1em; }
.big180 p { margin-top: auto; padding-top: 10px; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .92); }
.tlist { padding: clamp(22px, 2.6vw, 30px); background: var(--paper); border: 2px solid var(--ink); }
.tlist h3 { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 8px; font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; }
.tlist h3 .sw { width: 14px; height: 14px; margin-top: 6px; }
.cmap { margin: 0; padding: clamp(20px, 3vw, 36px); background: var(--paper); border: 2px solid var(--ink); }
.cm { border-collapse: collapse; width: 100%; min-width: 760px; }
.cm thead th { vertical-align: bottom; padding: 0 6px 12px; }
.cm__corner { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.cm__area span { display: block; max-width: 120px; margin: 0 auto; padding-bottom: 10px; text-align: center; font: 600 12.5px/1.25 var(--f-body); border-bottom: 4px solid var(--blue); }
.cm__area--scholarship span { border-bottom-color: var(--red); }
.cm tbody th { text-align: left; font-weight: 600; font-size: 15px; padding: 12px 14px 12px 0; border-top: 1px solid var(--line); }
.cm__i { display: inline-block; width: 30px; font-size: 11px; color: var(--muted); }
.cm td { text-align: center; padding: 10px 4px; border-top: 1px solid var(--line); }
.cm tbody tr:hover th, .cm tbody tr:hover td { background: var(--paper-2); }
.cdot { display: inline-block; vertical-align: middle; border-radius: 50%; background: var(--ink); outline: none; }
.cdot--2 { width: 24px; height: 24px; } .cdot--1 { width: 12px; height: 12px; } .cdot--0 { width: 4px; height: 4px; background: #cfcfcb; }
.cm__cell--practice .cdot--2, .cm__cell--practice .cdot--1 { background: var(--blue); }
.cm__cell--scholarship .cdot--2, .cm__cell--scholarship .cdot--1 { background: var(--red); }
.cdot--1, .cdot--2 { transition: transform .2s var(--ease); }
.cdot--1:hover, .cdot--2:hover, .cdot:focus-visible { transform: scale(1.3); }
.legend .cdot--2 { width: 16px; height: 16px; } .legend .cdot--1 { width: 9px; height: 9px; }

/* ---------- 04 journey ---------- */
.gantt { margin: 0 0 clamp(80px, 9vw, 120px); padding: clamp(20px, 3vw, 36px); border: 2px solid var(--ink); background: var(--paper); }
.gantt__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 22px; }
.gantt__head .legend { margin: 0; }
.gantt__axis, .gantt__row, .gantt__now { display: grid; grid-template-columns: minmax(200px, 32%) minmax(0, 1fr); gap: 4px 24px; align-items: center; }
.gantt__scale { position: relative; height: 20px; }
.gantt__scale span { position: absolute; transform: translateX(-50%); font: 600 11px var(--f-mono); color: var(--muted); }
.gantt__group { margin: 24px 0 4px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--muted); }
.gantt__row { padding: 9px 0; border-bottom: 1px solid var(--line); }
.gantt__t { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.gantt__o { display: block; font-size: 13.5px; color: var(--muted); }
.gantt__track { position: relative; height: 22px; }
.gantt__grid { position: absolute; top: -10px; bottom: -10px; width: 1px; background: #EEEEEA; }
.gantt__bar { position: absolute; top: 3px; height: 16px; width: 0; border-radius: 3px; transition: width 1.2s var(--ease); outline: none; cursor: pointer; }
.in .gantt__bar, html:not(.js) .gantt__bar { width: var(--w); }
.gantt__bar--now { background: var(--blue); }
.gantt__bar--past { background: var(--ink); }
.gantt__bar--board { background: repeating-linear-gradient(45deg, var(--ink) 0 2px, var(--paper) 2px 6px); box-shadow: inset 0 0 0 1.5px var(--ink); }
.gantt__bar--academic { background: var(--red); }
.gantt__bar:hover, .gantt__bar:focus-visible { box-shadow: 0 0 0 3px rgba(0, 51, 255, .25); }
.gantt__bar.is-ongoing::after { content: ''; position: absolute; right: -5px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: inherit; box-shadow: 0 0 0 2px var(--paper); }
.gantt__bar--board.is-ongoing::after { background: var(--ink); }
.gantt__nowtrack { position: relative; height: 30px; }
.gantt__nowtrack i { position: absolute; top: 0; width: 2px; height: 12px; background: var(--red); }
.gantt__nowtrack b { position: absolute; top: 13px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--red); text-transform: uppercase; letter-spacing: .1em; }

.stairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; margin-bottom: clamp(64px, 7vw, 96px); }
.stair { display: flex; flex-direction: column; padding: clamp(22px, 2.4vw, 30px); border: 2px solid var(--ink); }
.stair--0 { min-height: 230px; background: var(--blue); border-color: var(--blue); color: #fff; }
.stair--1 { min-height: 290px; background: var(--ink); color: #fff; }
.stair--2 { min-height: 350px; background: var(--red); border-color: var(--red); color: #fff; }
.stair__step { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.stair__d { display: block; margin: 6px 0 auto; font-size: 12px; opacity: .85; }
.stair h3 { margin: 24px 0 6px; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.15; letter-spacing: -0.015em; }
.stair__o { font-size: 15px; font-weight: 600; }
.stair__n { margin-top: 4px; font-size: 14px; opacity: .85; }
.stair.reveal { transition-delay: calc(var(--i) * 120ms); }

.creds { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 4vw, 64px); }
.creds__h { margin: 0 0 18px; padding-top: 12px; border-top: 2px solid var(--ink); font-size: clamp(22px, 2vw, 28px); }
.certs { display: grid; gap: 10px; }
.cert { display: flex; align-items: center; gap: 16px; padding: 12px 14px; border: 1.5px solid var(--ink); background: var(--paper); }
.cert__seal {
  flex: 0 0 58px; height: 58px; display: grid; place-items: center; border-radius: 50%;
  border: 2px solid var(--blue); color: var(--blue); font-size: 10.5px; font-weight: 700;
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5.5px var(--blue);
}
.cert:nth-child(2n) .cert__seal { border-color: var(--red); color: var(--red); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5.5px var(--red); }
.cert__t { font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.cert__o { font-weight: 400; color: var(--muted); }
.strengths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sgroup { padding: 18px 20px; background: var(--paper-2); border-left: 6px solid var(--blue); }
.sgroup--1 { border-color: var(--red); } .sgroup--2 { border-color: var(--ink); } .sgroup--3 { border-color: var(--blue-tint); }
.sgroup__h { margin-bottom: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.sgroup li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; line-height: 1.35; }
.sgroup li:first-child { border-top: 0; }

/* ---------- 05 contact ---------- */
.contact { background: var(--ink); color: #fff; padding: clamp(90px, 12vw, 170px) 0 40px; }
.contact__h { margin: 0 0 28px; font-size: clamp(48px, 8.4vw, 140px); line-height: .92; letter-spacing: -0.05em; max-width: 13ch; }
.u-blue { color: var(--blue-d); } .u-red { color: var(--red-d); }
.contact__p { max-width: 58ch; }
.links { margin: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); border-top: 1px solid #2c2c2c; }
.links a {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 140px minmax(0, 1fr) auto;
  align-items: center; gap: 20px; padding: clamp(18px, 2.4vw, 30px) 12px; border-bottom: 1px solid #2c2c2c; color: #fff; text-decoration: none;
}
.links a::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--blue); transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--ease); }
.links li:nth-child(2) a::before { background: var(--red); }
.links a:hover::before, .links a:focus-visible::before { transform: scaleY(1); }
.links__l { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: #9a9a9a; font-weight: 700; transition: color .2s; }
.links a:hover .links__l { color: #fff; }
.links__v { font: 700 clamp(22px, 3.4vw, 48px)/1.1 var(--f-display); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.links__arrow { font-size: clamp(26px, 3vw, 40px); transition: transform .3s var(--ease); }
.links a:hover .links__arrow { transform: rotate(45deg); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; color: #9a9a9a; }
.foot__mark { display: inline-flex; gap: 4px; }
.foot__mark i { width: 12px; height: 12px; }
.foot__mark .b { background: var(--blue); } .foot__mark .r { background: var(--red); } .foot__mark .k { background: #fff; }
.foot__top { color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; }

/* ---------- tooltip ---------- */
.tip {
  position: fixed; z-index: 120; pointer-events: none; max-width: 280px; padding: 10px 12px;
  background: var(--ink); color: #fff; border-left: 4px solid var(--blue-d); box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  font-size: 13px; line-height: 1.4;
}
.tip strong { display: block; font-weight: 700; margin-bottom: 2px; }
.tip span { color: #cfcfcf; }

/* ---------- 404 ---------- */
body.notfound { background: var(--ink); color: #fff; min-height: 100vh; display: grid; place-items: center; }
body.notfound main { margin: 0; padding: 24px; text-align: center; }
body.notfound p { font-size: 14px; color: var(--red-d); }
body.notfound h1 { font-size: clamp(40px, 8vw, 96px); line-height: 1; margin: 12px 0 32px; }

/* ================= responsive ================= */
@media (max-width: 1100px) {
  main { margin-left: 0; }
  .rail { display: none; }
  .topbar {
    position: fixed; z-index: 60; inset: 0 0 auto 0; height: 60px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px; background: var(--ink); color: #fff; border-bottom: 1px solid #1f1f1f;
  }
  .topbar__mark { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 800 19px/1 var(--f-display); letter-spacing: -0.02em; }
  .topbar__mark .sq { width: 10px; height: 10px; background: var(--red); }
  .topbar__btn { width: 48px; height: 48px; display: grid; place-items: center; background: transparent; border: 0; color: #fff; cursor: pointer; }
  .bars { position: relative; width: 26px; height: 14px; }
  .bars i { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s; }
  .bars i:first-child { top: 0; } .bars i:last-child { top: 12px; }
  .topbar__btn[aria-expanded="true"] .bars i:first-child { top: 6px; transform: rotate(45deg); }
  .topbar__btn[aria-expanded="true"] .bars i:last-child { top: 6px; transform: rotate(-45deg); }
  .menu {
    position: fixed; z-index: 55; inset: 60px 0 0 0; padding: 32px 24px; background: var(--ink); color: #fff;
    display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
  }
  .menu ol { display: grid; gap: 4px; }
  .menu a { display: flex; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid #222; color: #fff; text-decoration: none; font: 800 clamp(34px, 9vw, 56px)/1.05 var(--f-display); letter-spacing: -0.03em; }
  .menu a .mono { font-size: 13px; color: #888; }
  .menu a[data-tone="blue"] .mono { color: var(--blue-d); } .menu a[data-tone="red"] .mono { color: var(--red-d); }
  .menu > p { margin-top: 32px; font-size: 13px; color: #9a9a9a; }
  .hero { padding-top: 60px; }
  [id] { scroll-margin-top: 60px; }
}

@media (max-width: 1000px) {
  .hero__copy { grid-column: 1 / -1; }
  .hero__portrait { grid-column: 1 / -1; max-width: 560px; width: 100%; justify-self: center; margin-top: 64px; }
  .stats__grid { grid-template-columns: 1fr 1fr 1fr; }
  .stat--0 { grid-column: 1 / -1; grid-row: auto; }
  .stat--1, .stat--2, .stat--3, .stat--4, .stat--5 { grid-column: auto; grid-row: auto; }
  .stat--fill { display: none; }
  .tracks__copy { grid-template-columns: 1fr; }
  .now { grid-template-columns: 1fr; }
  .ptable { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .ptable__group ul { flex: 1; }
  .map-layout { grid-template-columns: 1fr; }
  .chart--region, .chart--sector, .chart--domain, .chart--mix { grid-column: 1 / -1; }
  .factory__head { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow__step { min-height: 0; }
  .flow__step:not(:last-child)::after { display: none; }
  .flow__step--4 { grid-column: 1 / -1; }
  .fstats { grid-template-columns: 1fr; }
  .thesis { grid-template-columns: 1fr; }
  .pstats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pstat:nth-child(4) { border-left: 0; padding-left: 0; }
  .pstat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .rm__row--head { display: none; }
  .rm__row { grid-template-columns: 1fr; }
  .rm__row > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .rm__cell.is-empty { display: none; }
  .rm__cell::before { content: attr(data-stage); font: 700 11px var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
  .rm__cell--rr::before { color: #fff; }
  .teach__grid { grid-template-columns: 1fr; }
  .stairs { grid-template-columns: 1fr; }
  .stair--0, .stair--1, .stair--2 { min-height: 0; }
  .stair--1 { margin-left: 6%; } .stair--2 { margin-left: 12%; }
  .creds { grid-template-columns: 1fr; }
  .gantt__axis, .gantt__row, .gantt__now { grid-template-columns: minmax(150px, 38%) minmax(0, 1fr); gap: 4px 14px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero__tracks { grid-template-columns: 1fr; gap: 22px; }
  .hero__last { padding-left: .3em; }
  .portrait { margin: 0 8% 0 4%; }
  .badge { left: -8px; width: 96px; }
  .roles { margin: 64px 8% 0 4%; }
  .stats__grid { grid-template-columns: 1fr 1fr; margin-top: -64px; }
  .stat { min-height: 150px; }
  .stat--5 { grid-column: 1 / -1; }
  .chap { grid-template-columns: 1fr; }
  .chap__n { font-size: 110px; margin-bottom: 8px; }
  .venn__svg { display: none; }
  .venn__list { display: grid; gap: 12px; }
  .vl { padding: 20px; border: 2px solid; }
  .vl--blue { border-color: var(--blue); background: rgba(0, 51, 255, .05); }
  .vl--red { border-color: var(--red); background: rgba(232, 18, 27, .05); }
  .vl--ink { border-color: var(--ink); background: var(--ink); color: #fff; }
  .vl h3 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; }
  .vl--blue h3 { color: var(--blue); } .vl--red h3 { color: var(--red); }
  .vl__sub { font-size: 14px; color: var(--muted); margin: 2px 0 10px; }
  .vl--ink .vl__sub { color: #bbb; }
  .vl li { padding: 6px 0; border-top: 1px solid rgba(128, 128, 128, .25); font-weight: 500; }
  .ptable { grid-template-columns: 1fr; }
  .el { min-height: 92px; }
  .hbar { grid-template-columns: minmax(0, 1fr) 34px; gap: 6px 10px; }
  .hbar__l { grid-column: 1 / -1; }
  .hbar__track { grid-column: 1; }
  .flow { grid-template-columns: 1fr; }
  .filters__row { grid-template-columns: 1fr; gap: 8px; }
  .filters__l { padding-top: 0; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .chip { flex: 0 0 auto; }
  .pstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pstat { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); }
  .apa li { grid-template-columns: 1fr; }
  .apa__side { flex-direction: row; align-items: center; }
  .strengths { grid-template-columns: 1fr; }
  .gantt__axis, .gantt__row, .gantt__now { grid-template-columns: 1fr; }
  .gantt__axis .gantt__spacer, .gantt__now .gantt__spacer { display: none; }
  .gantt__row { padding: 10px 0 12px; }
  .stair--1, .stair--2 { margin-left: 0; }
  .links a { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; }
  .links__l { grid-column: 1 / -1; }
  .ti--split { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .rail, .topbar, .menu, .marquee, .badge, .filters { display: none !important; }
  main { margin: 0; }
  .js .reveal { opacity: 1; transform: none; }
  .card[hidden] { display: flex !important; }
}
