/* Hero, numbers, history, people, type line, projects, about, study, footer */
.hero { padding: var(--s-3xl) 0 var(--s-4xl); }
.hero .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 620px); gap: var(--s-3xl); align-items: end; }
.hero .big { font: 700 var(--fs-display)/0.9 var(--font-head); letter-spacing: -0.04em; }
.hero h1 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.02em; margin-top: var(--s-l); }
.hero .years { font-size: var(--fs-lead); color: var(--ink-2); margin-top: var(--s-m); }
.hero p { font-size: var(--fs-lead); line-height: 34px; color: var(--ink); max-width: 560px; margin-top: var(--s-l); }
.jump { display: flex; flex-wrap: wrap; gap: var(--s-s); margin-top: var(--s-xl); }
.hero .imgs { display: grid; grid-template-columns: 1.27fr 1fr; grid-template-rows: auto auto; gap: var(--s-m) var(--s-l); align-items: stretch; }
.hero .imgs .fig:first-child { grid-row: 1 / 3; }
.hero .imgs .fig:not(:first-child) .zoom { aspect-ratio: 4 / 3; }
/* first-screen carousel (js/hero-rotator.js): the new image fades in over the old one */
/* the tall image takes the full height of the right column: tops and bottoms line up */
.hero .imgs .zoom { position: relative; }
.hero .imgs .zoom img { position: absolute; inset: 0; }
.hero .imgs .fig:first-child .zoom { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; }
.hero .imgs .zoom img.next { opacity: 0; transform: scale(1.04); transition: opacity .9s ease, transform 1.6s cubic-bezier(.2,.7,.2,1); }
.hero .imgs .zoom img.next.in { opacity: 1; transform: none; }
.hero .imgs figcaption { transition: opacity .45s ease; }
.hero .imgs figcaption.swap { opacity: 0; }

.nums { max-width: var(--page); margin: 0 auto; padding: 0 var(--margin); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.nums > div { border-top: 1px solid var(--line-strong); padding: var(--s-l) 0 var(--s-2xl); display: flex; flex-direction: column; gap: var(--s-xs); }
.nums b, .snums b { font: 700 var(--fs-stat)/1 var(--font-head); letter-spacing: -0.03em; }
.nums span { font-size: var(--fs-small); color: var(--ink-2); }
/* counter (js/counters.js): the number inside <b> keeps the big figure style, not the caption style */
.nums b.count > span, .snums b.count > span { font: inherit; color: inherit; letter-spacing: inherit; }

.hist { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--s-3xl); margin-top: var(--s-4xl); }
.rail { position: sticky; top: calc(var(--header) + var(--s-xl)); align-self: start; display: flex; flex-direction: column; }
.rail .line { position: absolute; left: 5px; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.rail a { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 0; text-decoration: none; font: 500 var(--fs-small)/18px var(--font-text); color: var(--ink-3); transition: color .2s; }
.rail a::before { content: ""; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid currentColor; background: var(--surface); flex: none; transition: background .2s; }
.rail a:hover { color: var(--ink); }
.rail a.on { color: var(--ink); }
.rail a.on::before { background: var(--ink); border-color: var(--ink); }
.era { padding-bottom: var(--s-4xl); scroll-margin-top: calc(var(--header) + var(--subnav) + var(--s-l)); }
.era + .era { border-top: 1px solid var(--line-strong); padding-top: var(--s-xl); }
.era:first-child { border-top: 1px solid var(--line-strong); padding-top: var(--s-xl); }
.era:last-child { padding-bottom: 0; }
.era .yr { font: 700 120px/0.9 var(--font-head); letter-spacing: -0.04em; display: flex; align-items: flex-end; gap: var(--s-s); }
.era .yr small { font: 400 var(--fs-small)/1.2 var(--font-text); letter-spacing: 0; color: var(--ink-2); padding-bottom: 10px; }
.era h3 { font-size: var(--fs-h3); line-height: 34px; margin-top: var(--s-l); }
.era .body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: var(--s-3xl); margin-top: var(--s-l); }
.era .body > p { font-size: var(--fs-body); line-height: 28px; max-width: var(--text-width); }
.facts li { display: grid; grid-template-columns: 82px 1fr; gap: var(--s-m); padding: 12px 0; border-top: 1px solid var(--line); font-size: var(--fs-small); line-height: 22px; color: var(--ink-2); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts b { font-weight: 500; color: var(--ink); }
.gal { display: grid; gap: var(--gutter); margin-top: var(--s-2xl); align-items: start; }
.gal.n1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.gal.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gal.n4 { grid-template-columns: 1.6fr 1fr 1fr 1fr; }

.ptabs { display: flex; flex-wrap: wrap; gap: var(--s-xs); margin-top: var(--s-2xl); }
.ptabs button { height: 40px; padding: 0 18px; border-radius: var(--radius-full); border: 1px solid var(--line); font: 500 var(--fs-small)/1 var(--font-text); transition: border-color .2s, background .2s, color .2s; }
.ptabs button:hover { border-color: var(--ink); }
.ptabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pgroup { margin-top: var(--s-4xl); }
.pgroup h3 { font-size: var(--fs-h3); line-height: 34px; display: flex; align-items: baseline; gap: var(--s-s); }
.pgroup h3 span { font: 400 var(--fs-small)/1 var(--font-text); color: var(--ink-2); }
.pgroup > p { font-size: var(--fs-small); color: var(--ink-2); margin-top: var(--s-xs); }
.pgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-2xl) var(--gutter); margin-top: var(--s-l); }
.person { display: flex; flex-direction: column; scroll-margin-top: calc(var(--header) + var(--subnav) + var(--s-l)); }
.person .ph { aspect-ratio: 3 / 4; background: var(--placeholder); overflow: hidden; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.person .tx { display: flex; flex-direction: column; flex: 1; padding-top: var(--s-m); }
.person b { font: 700 20px/1.2 var(--font-head); letter-spacing: -0.01em; }
.person .y { font-size: var(--fs-caption); color: var(--ink-3); margin-top: 6px; }
.person .r { font-size: var(--fs-small); line-height: 22px; color: var(--ink-2); margin-top: var(--s-xs); }
.person .more { margin-top: auto; padding-top: var(--s-m); font: 500 var(--fs-small)/1 var(--font-text); text-decoration: none; }
.person:not(.nolink) { cursor: pointer; }
.person:not(.nolink):hover .ph img { transform: scale(1.03); }
.person:not(.nolink):hover .more { color: var(--accent); }
.person:target .ph { outline: 2px solid var(--ink); outline-offset: 4px; }

.typeline { background: var(--inv); color: var(--inv-text); padding: var(--s-4xl) 0; }
.tl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); margin-top: var(--s-2xl); }
.tl > div { position: relative; padding-top: var(--s-xl); display: flex; flex-direction: column; gap: var(--s-xs); }
.tl > div::before { content: ""; position: absolute; top: 4px; left: 0; right: calc(-1 * var(--gutter)); height: 1px; background: var(--inv-line); }
.tl > div:last-child::before { right: 0; }
.tl > div::after { content: ""; position: absolute; top: 0; left: 0; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.tl b { font-weight: 400; font-size: var(--fs-small); color: var(--inv-text-2); }
.tl strong { font: 700 22px/1.2 var(--font-head); }
.tl span { font-size: var(--fs-small); line-height: 22px; color: var(--inv-text-2); }

.plist { margin-top: var(--s-2xl); border-top: 1px solid var(--line); }
.prow { display: grid; grid-template-columns: 110px minmax(0, 1.2fr) minmax(0, 1.6fr) 140px 160px; gap: var(--s-l); padding: var(--s-l) 0; border-bottom: 1px solid var(--line); align-items: start; scroll-margin-top: calc(var(--header) + var(--subnav) + var(--s-l)); transition: background .6s; }
.prow:target, .prow.flash { background: var(--surface); }
.prow > .y { font-size: var(--fs-small); color: var(--ink-2); padding-top: 4px; }
.prow b { display: block; font: 700 var(--fs-h3)/1.15 var(--font-head); letter-spacing: -0.01em; }
.prow .sub { display: block; font-size: var(--fs-small); color: var(--ink-2); margin-top: 6px; }
.prow .d { font-size: var(--fs-small); line-height: 22px; color: var(--ink-2); padding-top: 4px; }
.prow .n { font: 700 32px/1 var(--font-head); display: flex; flex-direction: column; gap: 6px; }
.prow .n small { font: 400 var(--fs-caption)/18px var(--font-text); color: var(--ink-2); }
.pthumb { grid-column: 5; width: 160px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--placeholder); cursor: zoom-in; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; }

.about .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2xl); margin-top: var(--s-2xl); font-size: var(--fs-small); line-height: 22px; color: var(--ink-2); }
.about h3 { font-size: 22px; line-height: 1.2; color: var(--ink); margin-bottom: var(--s-s); }

.study { background: var(--inv); color: var(--inv-text); padding: var(--s-section) 0; }
.study .lead, .study .sem .el, .study .tby, .study .steps li, .study .fmt, .study .contact { color: var(--inv-text-2); }
.study .lead { font-size: var(--fs-lead); line-height: 34px; max-width: var(--text-width); margin-top: var(--s-l); }
.snums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); margin-top: var(--s-3xl); }
.snums > div { border-top: 1px solid var(--inv-line); padding-top: var(--s-l); display: flex; flex-direction: column; gap: var(--s-s); }
.snums span { font-size: var(--fs-small); line-height: 22px; color: var(--inv-text-2); }
.study .sh { font-size: var(--fs-h3); line-height: 34px; margin-top: var(--s-4xl); padding-bottom: var(--s-l); border-bottom: 1px solid var(--inv-line); }
.prog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: var(--s-l); }
.sem .k { font: 500 var(--fs-label)/16px var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--inv-text-2); }
.sem ul { margin-top: var(--s-s); display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.sem .el { margin-top: var(--s-m); font-size: var(--fs-caption); line-height: 18px; }
.sem .el i { display: block; font-style: normal; font-weight: 500; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.study .tby { margin-top: var(--s-xl); font-size: var(--fs-small); }
.study .tby a { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: var(--s-l); counter-reset: st; }
.steps li { counter-increment: st; font-size: var(--fs-small); line-height: 22px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: "0" counter(st); color: var(--inv-text-2); }
.steps b { font: 500 18px/1.3 var(--font-text); color: #fff; }
.study .fmt { margin-top: var(--s-2xl); font-size: var(--fs-small); }
.acts { display: flex; flex-wrap: wrap; gap: var(--s-s); margin-top: var(--s-l); }
.study .btn { border-color: #fff; color: #fff; }
.study .btn.pri { background: #fff; color: var(--ink); }
.study .btn:hover { background: #fff; color: var(--ink); }
.study .btn.pri:hover { background: var(--inv-text-2); border-color: var(--inv-text-2); }
.study .contact { margin-top: var(--s-l); font-size: var(--fs-caption); }
.study .contact a { color: #fff; }

footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: var(--s-m); padding-top: var(--s-xl); padding-bottom: var(--s-xl); font-size: var(--fs-small); color: var(--ink-2); }
footer .totop { text-decoration: none; color: var(--ink); }

/* 404 page */
.page-nf { min-height: 100vh; display: flex; flex-direction: column; }
.nf { flex: 1; display: flex; align-items: center; padding: var(--s-3xl) 0 var(--s-4xl); }
.nf .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: var(--s-3xl); align-items: end; width: 100%; }
.nf .big { font: 700 var(--fs-display)/0.9 var(--font-head); letter-spacing: -0.04em; font-feature-settings: normal; }
.nf h1 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.02em; margin-top: var(--s-l); }
.nf p { font-size: var(--fs-lead); line-height: 34px; max-width: 560px; margin-top: var(--s-l); }
.nf-ph { aspect-ratio: 3 / 4; background: var(--placeholder); overflow: hidden; }
.nf-ph img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1024px) {
  .nf .grid { grid-template-columns: 1fr; gap: var(--s-2xl); }
  .nf-fig { max-width: 420px; }
}
@media (max-width: 767px) {
  .nf { padding-top: var(--s-2xl); }
  .nf p { line-height: 1.45; }
  .nf-fig { max-width: none; }
}
/* project rows that open a drawer */
.prow .more { display: inline-block; margin-top: var(--s-s); font: 500 var(--fs-small)/1 var(--font-text); text-decoration: none; }
.prow.haslink { cursor: pointer; }
.prow.haslink:hover b, .prow.haslink:hover .more { color: var(--accent); }
/* About: project team, curator on the left, students on the right */
.about .team dl { margin: 0; }
.about .team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-m); }
.about .team dt { font: 500 var(--fs-label)/16px var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.about .team dd { margin: 0; color: var(--ink); }
