/* rizwanresearch.com — design system
   Minimal, Apple-inspired: system type, generous space, glass nav, quiet motion. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.14);
  --accent: #1d6b57;
  --accent-ink: #17604e;
  --accent-soft: rgba(29, 107, 87, 0.08);
  --gold: #b8913f;
  --cream: #f3e8cc;
  --forest: #163f36;
  --green: #1a7f4b;
  --amber: #b25000;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.04), 0 24px 60px rgba(0,0,0,.10);
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1080px;
  --maxw-text: 692px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI Variable", "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #0b0b0d;
    --surface: #161617;
    --surface-2: #1d1d1f;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --line: rgba(255, 255, 255, 0.10);
    --line-2: rgba(255, 255, 255, 0.18);
    --accent: #4cc9a0;
    --accent-ink: #4cc9a0;
    --accent-soft: rgba(76, 201, 160, 0.14);
    --green: #30d158;
    --amber: #d99a3c;
    --nav-bg: rgba(22, 22, 23, 0.72);
    --shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.4);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.5), 0 24px 60px rgba(0,0,0,.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }

.wrap { width: min(100% - 44px, var(--maxw)); margin-inline: auto; }
.wrap-text { width: min(100% - 44px, var(--maxw-text)); margin-inline: auto; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: 52px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #1f6f5c, #123f35); color: #f3e8cc; display: grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
@media (prefers-color-scheme: dark) { .brand-mark { background: linear-gradient(135deg, #2f8f74, #1d6b57); } }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); opacity: .8; font-size: 13px; letter-spacing: -0.01em; transition: opacity .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; text-decoration: none; }
.nav-links a[aria-current="page"] { font-weight: 600; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; color: var(--text); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 4px 0; transition: transform .35s var(--ease-out), opacity .2s; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 52px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); padding: 8px 22px 28px; height: calc(100dvh - 52px);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .4s var(--ease-out), visibility .3s;
  }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 16px 0; font-size: 22px; font-weight: 600; opacity: 1; letter-spacing: -0.02em; }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav.open .nav-toggle span:first-child { transform: translateY(2.75px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-2.75px) rotate(-45deg); }
  body.menu-open { overflow: hidden; }
}

/* ---------- Typography ---------- */
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent-ink); letter-spacing: -0.01em; margin: 0 0 10px; }
.eyebrow.muted { color: var(--text-2); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.07; }
.display { font-size: clamp(44px, 8.4vw, 88px); letter-spacing: -0.045em; line-height: 1.02; }
.h1 { font-size: clamp(36px, 5.6vw, 64px); letter-spacing: -0.04em; }
.h2 { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -0.035em; }
.h3 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.025em; line-height: 1.15; }
.lede { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.38; color: var(--text-2); letter-spacing: -0.02em; font-weight: 500; }
.lede strong { color: var(--text); font-weight: 600; }
.muted { color: var(--text-2); }
.small { font-size: 14px; letter-spacing: -0.01em; }
.tnum { font-variant-numeric: tabular-nums; }
.gradient-text {
  background: linear-gradient(90deg, #1d6b57 0%, #2f8f74 50%, #c9a45c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-color-scheme: dark) { .gradient-text { background-image: linear-gradient(90deg, #4cc9a0, #7fd8b8 50%, #e8c987); } }

/* ---------- Sections ---------- */
section { padding: clamp(72px, 11vw, 136px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); flex-wrap: wrap; }
.section-head .h2 { max-width: 16ch; }
.link-arrow { font-size: 17px; font-weight: 500; white-space: nowrap; }
.link-arrow::after { content: " ›"; font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 980px;
  font-size: 17px; font-weight: 500; letter-spacing: -0.02em; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; transition: background .2s, transform .2s var(--ease-out);
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn-ghost { background: transparent; color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); overflow: hidden; isolation: isolate; }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 18% 30%, rgba(29,107,87,.10), transparent 70%),
    radial-gradient(35% 45% at 82% 20%, rgba(47,143,116,.09), transparent 70%),
    radial-gradient(40% 40% at 60% 80%, rgba(201,164,92,.06), transparent 70%);
  filter: blur(10px);
  animation: drift 18s var(--ease) infinite alternate;
}
@keyframes drift { to { transform: translate3d(2%, 3%, 0) scale(1.05); } }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero .display { margin: 6px 0 22px; }
.hero .lede { max-width: 34ch; margin: 0 0 34px; }
@media (max-width: 760px) { .truss .label { display: none; } }
.hero-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--text-2); padding: 6px 12px; border-radius: 980px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); }

.portrait {
  position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #e8e8ed, #d2d2d7); box-shadow: var(--shadow-lg);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg); transition: transform .8s var(--ease-out);
}
.portrait:hover { transform: none; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .monogram { position: absolute; inset: 0; display: grid; place-items: center; font-size: 96px; font-weight: 700; color: rgba(0,0,0,.18); letter-spacing: -0.05em; }
.portrait figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 10px 14px; border-radius: 14px; font-size: 13px; color: #1d1d1f; background: rgba(255,255,255,.7); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); }

/* Structural line art — a Warren truss that draws itself and carries a load pulse */
.truss { margin-top: clamp(40px, 6vw, 72px); color: var(--text-3); }
.truss svg { width: 100%; height: auto; overflow: visible; }
.truss .member { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease-out) forwards; }
.truss .chord { stroke-width: 2; stroke: var(--text-2); }
.truss .node { fill: var(--bg); stroke: var(--text-2); stroke-width: 1.4; opacity: 0; animation: pop .5s var(--ease-out) forwards; }
.truss .support { fill: none; stroke: var(--text-2); stroke-width: 1.4; opacity: 0; animation: pop .6s var(--ease-out) 1.4s forwards; }
.truss .load { stroke: url(#loadGrad); stroke-width: 3; fill: none; stroke-linecap: round; stroke-dasharray: 60 940; stroke-dashoffset: 1000; animation: flow 4.5s linear 2s infinite; opacity: .9; }
.truss .label { font: 500 11px var(--font); fill: var(--text-3); letter-spacing: .02em; opacity: 0; animation: pop .6s var(--ease-out) 1.8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }
@keyframes flow { to { stroke-dashoffset: 0; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.stat { background: var(--surface); padding: clamp(22px, 3vw, 34px); }
.stat .num { font-size: clamp(40px, 5.4vw, 64px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .lbl { margin-top: 10px; color: var(--text-2); font-size: 15px; }
.source-note { margin-top: 14px; color: var(--text-3); font-size: 12px; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px);
  box-shadow: inset 0 0 0 1px var(--line); position: relative;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.section-alt .card { box-shadow: none; }
a.card { color: inherit; display: flex; flex-direction: column; }
a.card:hover { text-decoration: none; transform: translateY(-4px) scale(1.005); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 22px; letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 10px; }
.card p { margin: 0; color: var(--text-2); }
.card .meta { margin-top: auto; padding-top: 22px; font-size: 14px; color: var(--text-3); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.icon-tile { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; color: #fff; }
.icon-tile svg { width: 26px; height: 26px; }
.tile-blue { background: linear-gradient(135deg, #2a8a6e, #155446); }
.tile-violet { background: linear-gradient(135deg, #3aa3a0, #1f6f78); }
.tile-green { background: linear-gradient(135deg, #d9b56b, #a8823c); }
.kind { font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--accent-ink); }
.kind.archive { color: var(--text-2); }
.news-card h3 { font-size: 24px; margin: 12px 0 10px; }
.news-card .cover {
  height: 148px; border-radius: 16px; margin: -6px -6px 20px; position: relative; overflow: hidden;
  background: var(--cover, linear-gradient(135deg, #e6f0ff, #f3ecff));
}
.news-card .cover svg { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(0,0,0,.18); }
@media (prefers-color-scheme: dark) { .news-card .cover svg { color: rgba(255,255,255,.22); } }

/* ---------- Lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 20px 0; border-top: 1px solid var(--line); }
.list > li:last-child { border-bottom: 1px solid var(--line); }
.row-link { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; align-items: baseline; color: inherit; }
.row-link:hover { text-decoration: none; }
.row-link:hover .row-title { color: var(--accent-ink); }
.row-date { color: var(--text-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.row-title { font-weight: 600; letter-spacing: -0.02em; transition: color .2s; }
.row-go { color: var(--text-3); font-size: 14px; white-space: nowrap; }
.row-go::after { content: " ↗"; }

/* ---------- Publications ---------- */
.toolbar { position: sticky; top: 52px; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); padding: 14px 0; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.search { position: relative; margin-bottom: 12px; }
.search input {
  width: 100%; height: 46px; border-radius: 12px; border: 0; padding: 0 16px 0 44px; font: inherit; color: var(--text);
  background: var(--bg-alt); box-shadow: inset 0 0 0 1px var(--line); outline: none; transition: box-shadow .2s;
}
.search input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-3); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; cursor: pointer; font: 500 14px var(--font); letter-spacing: -0.01em; color: var(--text); background: var(--bg-alt); padding: 8px 14px; border-radius: 980px; box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); box-shadow: none; }
.year-group { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.year-group > h2 { font-size: 28px; letter-spacing: -0.03em; color: var(--text-3); position: sticky; top: 170px; align-self: start; }
.pub { padding: 0 0 26px; }
.pub:last-child { padding-bottom: 0; }
.pub h3 { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 6px; }
.pub h3 a { color: var(--text); }
.pub h3 a:hover { color: var(--accent-ink); text-decoration: none; }
.pub .authors { font-size: 15px; color: var(--text-2); margin: 0 0 4px; }
.pub .authors b { color: var(--text); font-weight: 600; }
.pub .venue { font-size: 15px; color: var(--text-2); font-style: italic; }
.pub .actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 980px; background: var(--bg-alt); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }
a.tag:hover { text-decoration: none; color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent); }
.tag.cite { color: var(--text); }
.tag.oa { color: var(--green); }
.tag.story { color: var(--accent-ink); background: var(--accent-soft); box-shadow: none; }
.empty { padding: 60px 0; text-align: center; color: var(--text-2); display: none; }

/* Chart */
.chart { background: var(--surface); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: inset 0 0 0 1px var(--line); }
.section-alt .chart { box-shadow: none; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.bars { display: flex; align-items: flex-end; gap: clamp(4px, 1.2vw, 14px); height: clamp(170px, 24vw, 240px); }
.bars .col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.bars .bar { width: 100%; max-width: 44px; height: max(4px, calc(var(--h) * 0.78)); border-radius: 6px 6px 3px 3px; background: var(--accent); transform-origin: bottom; transform: scaleY(0); transition: transform 1.1s var(--ease-out); }
.bars .bar.last { background: linear-gradient(180deg, #2f8f74, var(--accent)); }
.chart.in .bar { transform: scaleY(1); }
.bars .axis { font-size: 11px; font-weight: 500; color: var(--text-3); }
.bars .val { font-size: 11px; font-weight: 600; color: var(--text-2); opacity: 0; transition: opacity .6s .9s; }
.chart.in .val { opacity: 1; }
@media (max-width: 560px) { .bars .col.old { display: none; } }
.h3 { font-weight: 700; }

/* ---------- Article ---------- */
.article-head { padding: clamp(56px, 8vw, 96px) 0 32px; }
.article-head .h1 { margin: 12px 0 20px; }
.article-meta { display: flex; gap: 14px; align-items: center; color: var(--text-2); font-size: 15px; margin-top: 26px; flex-wrap: wrap; }
.prose { font-size: 19px; line-height: 1.58; letter-spacing: -0.015em; }
.prose p { margin: 0 0 1.25em; }
.takeaways { background: var(--bg-alt); border-radius: var(--radius); padding: 28px 30px; margin: 36px 0; }
.takeaways h2 { font-size: 15px; letter-spacing: -0.01em; font-weight: 600; color: var(--text-2); margin-bottom: 14px; }
.takeaways ul { margin: 0; padding: 0; list-style: none; }
.takeaways li { padding: 10px 0 10px 30px; position: relative; font-weight: 500; border-top: 1px solid var(--line); }
.takeaways li:first-child { border-top: 0; }
.takeaways li::before { content: ""; position: absolute; left: 0; top: 15px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.paper-card { border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); padding: 26px 28px; margin: 36px 0 0; }
.paper-card h3 { font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; margin: 6px 0 8px; }
.ai-note { font-size: 13px; color: var(--text-3); margin-top: 28px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-grid .portrait { transform: none; position: sticky; top: 80px; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--line)); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 30px 38px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 3px var(--accent); }
.timeline .yr { font-size: 14px; font-weight: 600; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 21px; margin: 4px 0 2px; letter-spacing: -0.025em; }
.timeline .sch { color: var(--text-2); margin-bottom: 8px; }
.timeline p { margin: 0; color: var(--text-2); font-size: 16px; }
.bullets { margin: 0; padding: 0; list-style: none; }
.bullets li { padding: 14px 0 14px 26px; border-top: 1px solid var(--line); position: relative; }
.bullets li::before { content: ""; position: absolute; left: 4px; top: 23px; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.photo { border-radius: var(--radius); overflow: hidden; margin: 0; background: var(--bg-alt); }
.photo img { width: 100%; height: auto; }
.photo figcaption { padding: 14px 4px 0; font-size: 14px; color: var(--text-2); background: var(--bg); }

/* ---------- Teaching / People / Contact ---------- */
.course { scroll-margin-top: 80px; }
.course .code { font-family: var(--mono); font-size: 13px; color: var(--accent-ink); letter-spacing: 0; }
.course h3 { font-size: 26px; margin: 8px 0 12px; }
.course .sections { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.course .res { margin-top: 6px; font-size: 15px; }
.course .res a::after { content: " ↗"; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.link-grid a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s, transform .3s var(--ease-out); }
.link-grid a::after { content: "↗"; color: var(--text-3); }
.link-grid a:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--accent); transform: translateY(-2px); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.person { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); transition: transform .3s var(--ease-out), box-shadow .3s; }
.person:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 15px; color: #fff; background: var(--av, #1d6b57); letter-spacing: 0; }
.person b { display: block; font-weight: 600; letter-spacing: -0.02em; }
.person small { color: var(--text-2); font-size: 13px; }
.quote { font-size: clamp(24px, 3.4vw, 36px); line-height: 1.25; font-weight: 600; letter-spacing: -0.03em; max-width: 26ch; margin: 0; }
.quote::before { content: "“"; display: block; font-size: 1.8em; line-height: .6; color: var(--accent); margin-bottom: 10px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-cards .card .big { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; word-break: break-word; }

/* Segmented control (news tabs) */
.segmented { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg-alt); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 36px; position: relative; }
.segmented button { position: relative; z-index: 1; border: 0; background: none; font: 500 15px var(--font); letter-spacing: -0.01em; color: var(--text); padding: 8px 20px; border-radius: 8px; cursor: pointer; }
.segmented .thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; border-radius: 8px; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); transition: transform .45s var(--ease-out), width .45s var(--ease-out); }
.panel[hidden] { display: none; }
.uet-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.uet-badge::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: #1a5c38; }

/* ---------- CTA + Footer ---------- */
.cta { text-align: center; }
.cta .h2 { max-width: 18ch; margin: 0 auto 18px; }
.cta .lede { max-width: 38ch; margin: 0 auto 32px; }
.cta .btn-row { justify-content: center; }
footer { background: var(--bg-alt); color: var(--text-2); font-size: 12px; padding: 40px 0 28px; letter-spacing: -0.01em; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
footer h4 { font-size: 12px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; margin: 0 0 10px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 0 0 8px; }
footer a { color: var(--text-2); }
footer a:hover { color: var(--text); }
footer .base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .truss .member { stroke-dashoffset: 0; }
  .truss .load { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .portrait { position: relative; top: 0; max-width: 380px; }
  .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero .portrait { max-width: 420px; transform: none; order: -1; aspect-ratio: 5 / 4; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .row-link { grid-template-columns: 1fr; gap: 4px; }
  .row-go { display: none; }
  .year-group { grid-template-columns: 1fr; gap: 12px; padding: 22px 0; }
  .year-group > h2 { position: static; font-size: 22px; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  footer .cols > div:first-child { grid-column: 1 / -1; }
  .prose { font-size: 18px; }
}

/* ---------- Heritage green band (nod to the original site) ---------- */
.band-green { background: radial-gradient(120% 140% at 0% 0%, #22705d 0%, #163f36 55%, #0f2c26 100%); color: var(--cream); position: relative; overflow: hidden; }
.band-green::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cpath d='M0 60L30 0L60 60L90 0L120 60M0 0h120M0 60h120' fill='none' stroke='%23f3e8cc' stroke-opacity='.06'/%3E%3C/svg%3E"); pointer-events: none; }
.band-green .wrap { position: relative; z-index: 1; }
.band-green .eyebrow { color: #d9b56b; }
.band-green .lede { color: rgba(243,232,204,.78); }
.band-green .h2 { color: var(--cream); }
.band-green .btn { background: var(--cream); color: #163f36; }
.band-green .link-arrow, .band-green a:not(.btn) { color: #d9b56b; }
.band-green .card { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(243,232,204,.14); color: var(--cream); }
.band-green .card p, .band-green .muted { color: rgba(243,232,204,.72); }

/* ---------- Illustrations ---------- */
.illus { width: 100%; height: auto; }
.illus .i-txt { font: 500 13px var(--font); fill: var(--text-2); letter-spacing: -0.01em; }
.illus .i-txt.strong { font-weight: 700; fill: var(--text); }
.illus .i-line, .illus .i-axis { fill: none; stroke: var(--text-3); stroke-width: 1.4; }
.illus .i-axis { stroke-width: 1.8; stroke: var(--text-2); }
.illus .i-faint-fill { fill: var(--text-3); opacity: .35; }
.illus .i-concrete { fill: var(--surface-2); stroke: var(--text-3); stroke-width: 1.5; }
.illus .i-stirrup { stroke: var(--text-3); stroke-width: 1.6; opacity: .7; }
.illus .i-crack { fill: none; stroke: var(--text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.illus .i-crack.thin { stroke-width: 1.4; opacity: .7; }
.illus .i-support, .illus .i-ground { fill: none; stroke: var(--text-2); stroke-width: 1.8; stroke-linejoin: round; }
.illus .i-brick { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1.2; }
.illus .i-brick-g { fill: #2f8f74; opacity: .9; }
.illus .i-monument { fill: var(--surface-2); stroke: var(--text-2); stroke-width: 1.6; stroke-linejoin: round; }
.illus .i-arch { fill: var(--bg-alt); }
.illus .i-wave { fill: none; stroke: #2f8f74; stroke-width: 2; opacity: 0; }
.illus .i-wheel { fill: var(--text-2); }
.illus .i-board { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5; }
.illus .i-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.illus .i-pop { opacity: 0; }
.in .illus .i-draw, .illus.in .i-draw { animation: draw 1.6s var(--ease-out) .2s forwards; }
.in .illus .i-crack { animation: draw 1.2s var(--ease-out) .5s forwards; }
.in .illus .i-pop { animation: pop .6s var(--ease-out) forwards; }
.in .illus .i-wave { animation: wave 3.6s var(--ease) infinite; }
.illus .i-pulse { transform-origin: center; transform-box: fill-box; animation: pulse 2.4s var(--ease) infinite; }
.illus .i-pulse-soft { animation: glow 3s var(--ease) infinite alternate; }
.illus .i-spin { transform-origin: 0 0; animation: spin 9s linear infinite; }
.illus .i-load { animation: press 3s var(--ease) infinite; }
@keyframes wave { 0% { opacity: 0; transform: scale(.96); transform-origin: 560px 262px; } 25% { opacity: .55; } 100% { opacity: 0; transform: scale(1.04); transform-origin: 560px 262px; } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0; } }
@keyframes glow { to { opacity: .55; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes press { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.no-js .illus .i-draw, .no-js .illus .i-crack { stroke-dashoffset: 0; }
.no-js .illus .i-pop { opacity: 1; }

.area-card { padding: 0; overflow: hidden; }
.area-card .art { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 10px 6px 0; }
.section-alt .area-card .art { background: var(--surface-2); }
.area-card .body { padding: 26px 30px 28px; display: flex; flex-direction: column; flex: 1; }
.news-card .cover .illus { position: absolute; inset: 0; width: 100%; height: 100%; color: inherit; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature .art-frame { background: var(--surface); border-radius: 28px; box-shadow: var(--shadow-lg); padding: 18px 10px 6px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* ---------- Beam explorer ---------- */
.beam-lab { background: var(--surface); border-radius: 28px; box-shadow: var(--shadow-lg); padding: clamp(18px, 3vw, 34px); }
.beam-lab svg { width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.beam-lab .bl-beam { fill: url(#beamGrad); }
.beam-lab .bl-load { cursor: grab; }
.beam-lab .bl-load:active { cursor: grabbing; }
.beam-lab .bl-axis { stroke: var(--line-2); stroke-width: 1.2; }
.beam-lab .bl-sfd { fill: rgba(47,143,116,.18); stroke: #2f8f74; stroke-width: 2; }
.beam-lab .bl-bmd { fill: rgba(201,164,92,.22); stroke: #b8913f; stroke-width: 2; }
.beam-lab .bl-defl { fill: none; stroke: var(--text-3); stroke-width: 1.5; stroke-dasharray: 5 5; }
.beam-lab text { font: 500 12px var(--font); fill: var(--text-2); }
.beam-lab text.k { font-weight: 700; fill: var(--text); }
.beam-lab .controls { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin-top: 18px; }
.beam-lab label { display: block; font-size: 14px; color: var(--text-2); }
.beam-lab label b { color: var(--text); font-variant-numeric: tabular-nums; }
.beam-lab input[type=range] { width: 100%; margin-top: 10px; accent-color: #1d6b57; height: 28px; }
.readout { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; margin-top: 18px; }
.readout div { background: var(--bg-alt); padding: 14px 16px; }
.readout .v { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.readout .l { font-size: 12px; color: var(--text-2); }
@media (max-width: 640px) { .beam-lab .controls { grid-template-columns: 1fr; } .readout { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Journey map (About) ---------- */
.journey svg { width: 100%; height: auto; }
.journey .j-arc { fill: none; stroke: url(#jGrad); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.journey.in .j-arc { animation: draw 2.2s var(--ease-out) .3s forwards; }
.journey .j-dot { fill: #1d6b57; }
.journey .j-ring { fill: none; stroke: #1d6b57; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s var(--ease) infinite; }
.journey text { font: 600 14px var(--font); fill: var(--text); letter-spacing: -0.02em; }
.journey text.sub { font-weight: 500; font-size: 12px; fill: var(--text-2); }
.journey .j-grid { fill: var(--text-3); opacity: .28; }

/* ---------- Topic mix bar (Publications) ---------- */
.mix { display: flex; height: 14px; border-radius: 980px; overflow: hidden; gap: 3px; margin: 18px 0 12px; }
.mix span { display: block; height: 100%; transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease-out); }
.in .mix span, .mix.in span { transform: scaleX(1); }
.mix-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--text-2); }
.mix-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.band-green .bullets li { border-top-color: rgba(243,232,204,.16); }
.band-green .bullets li::before { background: #d9b56b; }
.band-green .photo { background: transparent; }
.band-green .photo figcaption { color: rgba(243,232,204,.72); }
.band-green .quote, .band-green h3 { color: var(--cream); }
@media (prefers-color-scheme: dark) {
  .btn { color: #06231b; }
  .portrait { background: linear-gradient(160deg, #1d2a26, #101816); }
  .portrait .monogram { color: rgba(243,232,204,.2); }
}

/* ---------- Profile header (home = biography) ---------- */
.profile { padding-bottom: clamp(24px, 4vw, 48px); }
.profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.profile .portrait { transform: none; aspect-ratio: 4 / 5; }
.profile .name { margin: 0; }
.profile .creds { margin: 8px 0 18px; font-size: 19px; font-weight: 600; color: var(--accent-ink); letter-spacing: -0.01em; }
.profile .role { margin: 0 0 22px; font-size: clamp(18px, 2vw, 21px); line-height: 1.45; color: var(--text-2); }
.contact-line { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 16px; }
.contact-line li { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.contact-line svg { width: 18px; height: 18px; color: var(--accent-ink); }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-links .tag { font-size: 13px; padding: 6px 12px; }
.bio-grid { display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.bio-grid .prose { max-width: 720px; }
.sub-h { font-size: 19px; margin-bottom: 12px; }
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.pub-list .pub { padding: 22px 0; }
.band-green .h3 { color: var(--cream); }
.band-green .illus .i-board { fill: rgba(255,255,255,.05); stroke: rgba(243,232,204,.25); }
.band-green .illus .i-txt { fill: rgba(243,232,204,.75); }
.band-green .illus .i-support { stroke: rgba(243,232,204,.6); }
.band-green .illus .i-faint-fill { fill: rgba(243,232,204,.4); }
@media (max-width: 860px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile .portrait { max-width: 260px; }
  .bio-grid, .edu-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   BIOGRAPHY HOME — chapters with their own colour, pattern and motion
   ===================================================================== */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #2f8f74, #d9b56b, #c0603c); }

/* Chapter rail */
.rail { position: fixed; left: 18px; top: 50%; transform: translateY(-50%); z-index: 40; opacity: 0; transition: opacity .4s; }
.rail.on { opacity: 1; }
.rail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.rail a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.rail a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(128,128,128,.45); box-shadow: 0 0 0 3px rgba(255,255,255,.5); transition: transform .3s var(--ease-out), background .3s; }
.rail a span { font-size: 12px; font-weight: 600; color: var(--rail-ink, #1d1d1f); background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 3px 9px; border-radius: 980px; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .3s var(--ease-out); white-space: nowrap; }
.rail a:hover span, .rail a.active span { opacity: 1; transform: none; }
.rail a.active::before { background: #d9b56b; transform: scale(1.5); }
@media (max-width: 1240px) { .rail { display: none; } }

/* Hero */
.hx { position: relative; min-height: min(88vh, 820px); display: flex; align-items: center; overflow: hidden; background: #0f2c26; color: #f3e8cc; isolation: isolate; }
.hx-photo { position: absolute; inset: 0; z-index: -3; }
.hx-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 64%; transform: scale(1.06); animation: kenburns 18s var(--ease) forwards; }
@keyframes kenburns { to { transform: scale(1); } }
.hx-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(15,44,38,.97) 0%, rgba(18,58,48,.9) 34%, rgba(22,63,54,.35) 62%, rgba(22,63,54,.05) 100%), linear-gradient(0deg, rgba(15,44,38,.85), transparent 40%); }
.hx-pattern { position: absolute; inset: 0; z-index: -1; opacity: .5; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='80'%3E%3Cpath d='M0 80L40 0L80 80L120 0L160 80M0 0h160M0 80h160' fill='none' stroke='%23f3e8cc' stroke-opacity='.07'/%3E%3C/svg%3E"); -webkit-mask: linear-gradient(90deg, #000 30%, transparent 65%); mask: linear-gradient(90deg, #000 30%, transparent 65%); }
.hx-inner { position: relative; padding: 120px 0 150px; }
.hx-text { max-width: 600px; }
.hx-kicker { margin: 0 0 14px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: #d9b56b; font-weight: 600; animation: rise 1s var(--ease-out) both; }
.hx-name { font-size: clamp(46px, 7.4vw, 92px); line-height: .98; letter-spacing: -0.045em; margin: 0; color: #f3e8cc; animation: rise 1s var(--ease-out) .08s both; }
.hx-creds { margin: 14px 0 22px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; color: #d9b56b; letter-spacing: -0.01em; animation: rise 1s var(--ease-out) .16s both; }
.hx-role { margin: 0 0 32px; font-size: clamp(17px, 1.9vw, 21px); line-height: 1.5; color: rgba(243,232,204,.82); animation: rise 1s var(--ease-out) .24s both; }
.hx-actions { display: flex; gap: 12px; flex-wrap: wrap; animation: rise 1s var(--ease-out) .32s both; }
.btn-cream { background: #f3e8cc; color: #163f36; }
.btn-line { background: transparent; color: #f3e8cc; box-shadow: inset 0 0 0 1.5px rgba(243,232,204,.6); }
.btn-line svg { width: 18px; height: 18px; }
.hx-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 28px; animation: rise 1s var(--ease-out) .4s both; }
.hx-links a { color: rgba(243,232,204,.75); font-size: 14px; border-bottom: 1px solid rgba(217,181,107,.5); padding-bottom: 2px; }
.hx-links a:hover { color: #f3e8cc; text-decoration: none; border-color: #d9b56b; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.hx-skyline { position: absolute; left: 0; right: 0; bottom: 46px; width: 100%; height: 90px; z-index: 0; }
.hx-skyline path { fill: #0f2c26; opacity: .85; }
.hx-scroll { position: absolute; left: 50%; bottom: 66px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(243,232,204,.55); z-index: 1; }
.hx-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #d9b56b; animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Marquee */
.marquee { position: relative; overflow: hidden; background: #d9b56b; color: #163f36; padding: 16px 0; margin-top: -46px; z-index: 2; box-shadow: 0 -1px 0 rgba(0,0,0,.08); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; gap: 22px; padding-right: 22px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
.marquee-set i { font-style: normal; font-size: 10px; opacity: .55; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Chapter scaffolding */
.ch { position: relative; padding: clamp(80px, 11vw, 140px) 0; overflow: hidden; }
.ch-grid { display: grid; grid-template-columns: 220px 1fr 220px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.ch-grid-2 { grid-template-columns: 220px 1fr; margin-bottom: clamp(36px, 5vw, 56px); }
.ch-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.ch-num { display: flex; flex-direction: column; gap: 6px; }
.ch-num .yr { font-size: clamp(44px, 6vw, 72px); font-weight: 800; letter-spacing: -0.05em; line-height: .95; color: var(--ch-accent, #1d6b57); }
.ch-num .place { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ch-muted, #6e6e73); }
.ch-label { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ch-accent, #1d6b57); }
.ch-title { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -0.035em; margin: 0 0 20px; color: var(--ch-ink, #1d1d1f); }
.ch-text { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.62; margin: 0; color: var(--ch-body, #3a3a3c); letter-spacing: -0.012em; }

/* Brick (cream) */
.ch-brick { --ch-accent: #a8582f; --ch-muted: #8a6a4c; --ch-ink: #2b1d12; --ch-body: #4a3a2c; background-color: #f6efe0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='42'%3E%3Cg fill='none' stroke='%23a8582f' stroke-opacity='.11' stroke-width='1.2'%3E%3Crect x='1' y='1' width='40' height='19' rx='2'/%3E%3Crect x='43' y='1' width='40' height='19' rx='2'/%3E%3Crect x='-20' y='22' width='40' height='19' rx='2'/%3E%3Crect x='22' y='22' width='40' height='19' rx='2'/%3E%3Crect x='64' y='22' width='40' height='19' rx='2'/%3E%3C/g%3E%3C/svg%3E"); }
.medal { text-align: center; }
.medal svg { width: 170px; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(168,122,34,.35)); animation: sway 6s var(--ease) infinite; transform-origin: 50% 0; }
.medal p { margin: 12px 0 0; font-size: 13px; font-weight: 600; color: #8a6a4c; letter-spacing: .04em; text-transform: uppercase; }
.medal-t1, .medal-t2 { font: 800 19px var(--font); fill: #6b4a12; letter-spacing: .12em; }
.medal-t2 { font-size: 13px; letter-spacing: .3em; }
.medal-shine { animation: shine 3.6s var(--ease) infinite; }
@keyframes sway { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes shine { 0% { transform: translateX(-40px) rotate(20deg); } 60%,100% { transform: translateX(260px) rotate(20deg); } }

/* Blueprint (teal) */
.ch-blueprint { --ch-accent: #8fe3cf; --ch-muted: rgba(220,240,236,.7); --ch-ink: #eafaf6; --ch-body: rgba(226,244,240,.86); background-color: #0f4c5c;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px), radial-gradient(120% 80% at 100% 0%, #16707f 0%, #0f4c5c 60%, #0b3a47 100%);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px, 100% 100%; }
.ch-blueprint a { color: #ffd98a; }
.flip-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.flip { perspective: 1200px; min-height: 260px; cursor: pointer; outline: none; }
.flip-inner { position: relative; display: block; width: 100%; height: 100%; min-height: 260px; transform-style: preserve-3d; transition: transform .8s var(--ease-out); }
.flip:hover .flip-inner, .flip[aria-pressed="true"] .flip-inner, .flip:focus-visible .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: 22px; -webkit-backface-visibility: hidden; backface-visibility: hidden; text-align: left; }
.flip-front { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.flip-back { background: #f3e8cc; color: #163f36; transform: rotateY(180deg); }
.flip-yr { font-size: 56px; font-weight: 800; letter-spacing: -0.05em; color: #ffd98a; line-height: 1; }
.flip-deg { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: #eafaf6; margin-top: auto; }
.flip-sch { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(226,244,240,.7); }
.flip-back .flip-sch { color: #a8582f; }
.flip-hint { font-size: 13px; color: rgba(226,244,240,.6); }
.flip-thesis { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; font-style: italic; }
.flip-sup { font-size: 14px; color: #4a5a55; }
.flip-link { margin-top: auto; font-weight: 600; color: #1d6b57 !important; }
.bp-card { border-radius: 22px; padding: 26px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); background: rgba(0,0,0,.12); }
.bp-list { list-style: none; margin: 0; padding: 0; }
.bp-list li { padding: 12px 0 12px 22px; position: relative; color: rgba(226,244,240,.88); font-size: 15px; border-top: 1px dashed rgba(255,255,255,.2); }
.bp-list li::before { content: "+"; position: absolute; left: 0; color: #ffd98a; font-weight: 700; }
.journey-dark text { fill: #eafaf6; }
.journey-dark text.sub { fill: rgba(226,244,240,.7); }
.journey-dark .j-grid { fill: #eafaf6; opacity: .25; }
.journey-dark .j-dot { fill: #ffd98a; }
.journey-dark .j-ring { stroke: #ffd98a; }

/* Steel (amber hatch) */
.ch-steel { --ch-accent: #7a3e12; --ch-muted: #7a5320; --ch-ink: #2a1806; --ch-body: #4a3214; background: repeating-linear-gradient(-45deg, rgba(122,62,18,.06) 0 2px, transparent 2px 16px), linear-gradient(135deg, #f7d98e 0%, #efc067 45%, #e4a64b 100%); }
.steel-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 10px; }
.steel-list li { display: flex; gap: 16px; align-items: baseline; padding: 14px 18px; border-radius: 14px; background: rgba(255,255,255,.38); box-shadow: inset 0 0 0 1px rgba(122,62,18,.12); color: #3b2610; font-weight: 500; transition: transform .35s var(--ease-out), background .3s; }
.steel-list li:hover { transform: translateX(6px); background: rgba(255,255,255,.6); }
.steel-list .n { font-family: var(--mono); font-size: 13px; font-weight: 700; color: #a8582f; }
.tilt-photo { margin: 0; border-radius: 26px; overflow: hidden; background: #2a1806; box-shadow: 0 30px 70px rgba(90,50,10,.35); transform: rotate(2deg); transition: transform .8s var(--ease-out); }
.tilt-photo:hover { transform: rotate(0) scale(1.01); }
.tilt-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tilt-photo figcaption { padding: 14px 18px; font-size: 14px; color: #f7e3b5; background: #2a1806; }
.photo-fallback { background: #fff7e6; padding: 20px; }

/* Forest (UET) */
.ch-forest { --ch-accent: #d9b56b; --ch-muted: rgba(243,232,204,.66); --ch-ink: #f3e8cc; --ch-body: rgba(243,232,204,.86); background: radial-gradient(90% 70% at 0% 0%, #22705d 0%, #163f36 55%, #0f2c26 100%); }
.ch-forest::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; opacity: .22; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 120' preserveAspectRatio='none'%3E%3Cpath fill='%23f3e8cc' d='M0 120V80h30V50h20v30h24V30h14V14h8v16h14v50h20V64h30v16h18V44h26v36h16V60l18-12 18 12v20h24V24h6V10h4v14h6v56h18V70h36v10h16V52h22v28h16V40l24-14 24 14v40h20V58h28v22h14V32h18v48h24V66h40v14h18V46h14V30h10v16h14v34h24V60h30v20h20V36h32v84z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; pointer-events: none; }
.ch-forest a { color: #ffd98a; }
.uet-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; position: relative; z-index: 1; }
.collage { margin: 0; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); background: #0f2c26; }
.collage img { width: 100%; height: auto; display: block; transition: transform 1.2s var(--ease-out); }
.collage:hover img { transform: scale(1.03); }
.collage figcaption { padding: 16px 20px; font-size: 15px; color: rgba(243,232,204,.86); line-height: 1.5; }
.badge-gold { display: inline-block; background: #d9b56b; color: #163f36; font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 980px; margin-right: 8px; letter-spacing: .02em; }
.partner { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 20px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(243,232,204,.16); color: #f3e8cc !important; transition: background .3s; }
.partner:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.partner img { border-radius: 14px; background: #fff; flex: none; }
.partner-mark { width: 72px; height: 72px; border-radius: 14px; background: #f3e8cc; color: #163f36; display: grid; place-items: center; font-weight: 800; flex: none; }
.partner b { display: block; font-size: 17px; }
.partner small { color: rgba(243,232,204,.7); font-size: 14px; }
.proj-list { list-style: none; margin: 0; padding: 0; }
.proj-list a { display: flex; justify-content: space-between; gap: 14px; padding: 14px 4px; border-top: 1px solid rgba(243,232,204,.15); color: #f3e8cc !important; font-weight: 500; transition: padding .3s var(--ease-out), color .3s; }
.proj-list a:hover { padding-left: 12px; color: #ffd98a !important; text-decoration: none; }
.proj-list i { font-style: normal; color: #d9b56b; }

/* Mint (research tabs) */
.ch-mint { --ch-accent: #1d6b57; --ch-ink: #10261f; --ch-body: #33463f; background-color: #e6f3ec; background-image: radial-gradient(circle at 1px 1px, rgba(29,107,87,.18) 1px, transparent 0); background-size: 22px 22px; }
.rtabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 26px; }
.rtab { display: flex; align-items: center; gap: 10px; border: 0; cursor: pointer; font: 600 16px var(--font); letter-spacing: -0.015em; padding: 10px 18px 10px 10px; border-radius: 980px; background: #fff; color: #10261f; box-shadow: 0 1px 2px rgba(0,0,0,.06), inset 0 0 0 1px rgba(16,38,31,.08); transition: background .3s, color .3s, transform .3s var(--ease-out); }
.rtab:hover { transform: translateY(-2px); }
.rtab-i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, white); color: var(--c); }
.rtab-i svg { width: 18px; height: 18px; }
.rtab[aria-selected="true"] { background: var(--c); color: #fff; }
.rtab[aria-selected="true"] .rtab-i { background: rgba(255,255,255,.2); color: #fff; }
.rpanel { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; background: #fff; border-radius: 30px; padding: clamp(20px, 3vw, 40px); box-shadow: 0 24px 60px rgba(16,38,31,.10); border-top: 6px solid var(--c); animation: panelIn .6s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.rpanel-art { background: #f6faf8; border-radius: 22px; padding: 12px 6px 0; }
.rpanel h3 { font-size: 26px; letter-spacing: -0.03em; margin-bottom: 10px; color: #10261f; }
.rpanel > div > p { color: #33463f; margin: 0 0 18px; font-size: 17px; }
.rpanel-k { font-size: 12px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c) !important; margin-bottom: 8px !important; }
.rpanel-pubs { list-style: none; margin: 0 0 18px; padding: 0; }
.rpanel-pubs li { padding: 10px 0; border-top: 1px solid rgba(16,38,31,.08); }
.rpanel-pubs a { display: block; color: #10261f; font-weight: 600; font-size: 15px; line-height: 1.35; }
.rpanel-pubs span { font-size: 13px; color: #6b7a74; font-style: italic; }
.ch-mint .illus .i-concrete, .ch-mint .illus .i-brick, .ch-mint .illus .i-monument, .ch-mint .illus .i-board { fill: #fff; }

/* Lab (dark grid) */
.ch-lab { --ch-accent: #7fd8b8; --ch-ink: #eef7f3; --ch-body: rgba(230,242,237,.8); background-color: #0b1f1b; background-image: linear-gradient(rgba(127,216,184,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(127,216,184,.06) 1px, transparent 1px); background-size: 40px 40px; }
.ch-lab a { color: #ffd98a; }
.course-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.course-chips a { padding: 10px 16px; border-radius: 14px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(127,216,184,.25); color: #eef7f3 !important; font-size: 15px; transition: background .3s; }
.course-chips a:hover { background: rgba(127,216,184,.14); text-decoration: none; }
.course-chips b { color: #7fd8b8; font-family: var(--mono); font-size: 13px; margin-right: 6px; }
.lab-cap { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #d9b56b; margin: 0 0 14px; }
.ch-lab .beam-lab { background: #fbfaf6; }
.ch-lab .beam-lab text { fill: #5a5a5f; } .ch-lab .beam-lab text.k { fill: #1d1d1f; }
.ch-lab .readout div { background: #f1efe8; } .ch-lab .readout .v { color: #1d1d1f; } .ch-lab .readout .l { color: #6e6e73; }
.ch-lab .beam-lab label { color: #6e6e73; } .ch-lab .beam-lab label b { color: #1d1d1f; }

/* Terracotta (service) */
.ch-terra { --ch-accent: #ffd98a; --ch-ink: #fff4e6; --ch-body: rgba(255,240,224,.86); background: radial-gradient(90% 90% at 100% 100%, #8f3f22 0%, #b65f3d 50%, #c9744d 100%); }
.ch-terra::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 18px, transparent 18px 26px, rgba(0,0,0,.05) 26px 40px, transparent 40px 52px); -webkit-mask: linear-gradient(180deg, transparent, #000 70%); mask: linear-gradient(180deg, transparent, #000 70%); pointer-events: none; }
.ch-terra .wrap { position: relative; }
.book-shelf { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.book-shelf li { display: flex; align-items: center; gap: 16px; padding: 16px 18px 16px 0; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff4e6; font-weight: 600; overflow: hidden; transition: transform .35s var(--ease-out), background .3s; }
.book-shelf li:hover { transform: translateX(-6px); background: rgba(255,255,255,.16); }
.book-shelf .spine { align-self: stretch; width: 14px; margin: -16px 0; background: var(--s); box-shadow: inset -3px 0 0 rgba(0,0,0,.15); }

/* Paper (news) */
.ch-paper { background: var(--bg); }

/* Dark mode adjustments for light chapters */
@media (prefers-color-scheme: dark) {
  .ch-brick { background-color: #1e1812; --ch-ink: #f6efe0; --ch-body: rgba(246,239,224,.8); --ch-muted: #c9a37f; --ch-accent: #e08b5a; }
  .ch-mint { background-color: #0d1f19; --ch-ink: #e6f3ec; --ch-body: rgba(230,243,236,.8); --ch-accent: #7fd8b8; background-image: radial-gradient(circle at 1px 1px, rgba(127,216,184,.16) 1px, transparent 0); }
  .rtab { background: #17302a; color: #e6f3ec; }
  .rpanel { background: #12261f; } .rpanel h3, .rpanel-pubs a { color: #e6f3ec; } .rpanel > div > p { color: rgba(230,243,236,.8); }
  .rpanel-art { background: #0d1f19; }
  .rail a span { background: rgba(30,30,30,.85); color: #f5f5f7; }
}

/* Responsive */
@media (max-width: 980px) {
  .ch-grid, .ch-grid-2 { grid-template-columns: 1fr; }
  .medal svg { width: 130px; }
  .flip-row { grid-template-columns: 1fr 1fr; }
  .bp-card { grid-column: 1 / -1; }
  .ch-split, .uet-grid, .rpanel { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hx { min-height: auto; align-items: flex-end; }
  .hx-photo { position: relative; height: 54vh; inset: auto; }
  .hx { flex-direction: column; align-items: stretch; }
  .hx-photo img { object-position: 70% 30%; }
  .hx-shade { background: linear-gradient(180deg, transparent 20%, rgba(15,44,38,.6) 45%, #0f2c26 56%); }
  .hx-inner { padding: 0 0 130px; margin-top: -90px; }
  .hx-pattern { -webkit-mask: linear-gradient(180deg, transparent 50%, #000 70%); mask: linear-gradient(180deg, transparent 50%, #000 70%); }
  .flip-row { grid-template-columns: 1fr; }
  .tilt-photo { transform: none; }
}
.rpanel[hidden] { display: none; }
.ch-lab .ch-grid-2 { grid-template-columns: .9fr 1.1fr; }
.ch-terra::before { opacity: .45; }
@media (max-width: 980px) { .ch-lab .ch-grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .hx-shade { background: linear-gradient(180deg, rgba(15,44,38,.1) 10%, rgba(15,44,38,.75) 42%, #0f2c26 54%); } .journey-dark text { font-size: 22px; } .journey-dark text.sub { display: none; } }

/* World map journey */
.worldmap { position: relative; margin-top: 10px; }
.wm-base { width: 100%; height: auto; display: block; }
.wm-over { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wm-country { stroke-width: .8; stroke-linejoin: round; }
.wm-ca { fill: rgba(143,227,207,.55); stroke: #8fe3cf; }
.wm-pk { fill: rgba(255,217,138,.7); stroke: #ffd98a; }
.journey.in .wm-country { animation: countryIn 1.2s var(--ease-out) both; }
@keyframes countryIn { from { opacity: 0; } }
.j-arc-glow { stroke-width: 6 !important; opacity: .35; }
.j-traveller { fill: #fff; filter: drop-shadow(0 0 4px #ffd98a); }
.wm-label text { font: 700 15px var(--font); fill: #eafaf6; letter-spacing: -0.02em; paint-order: stroke; stroke: #0f4c5c; stroke-width: 4px; }
.wm-label text.sub { font-weight: 500; font-size: 12px; fill: rgba(226,244,240,.75); }
@media (max-width: 640px) { .wm-label text { font-size: 24px; stroke-width: 6px; } .wm-label text.sub { display: none; } }

/* Hero v2: framed portrait centred on Dr. Azam over a softened backdrop */
.hx-photo img { filter: blur(3px) saturate(1.1) brightness(.8); }
.hx-shade { background: linear-gradient(90deg, rgba(15,44,38,.97) 0%, rgba(18,58,48,.9) 40%, rgba(22,63,54,.7) 70%, rgba(22,63,54,.55) 100%), linear-gradient(0deg, rgba(15,44,38,.9), transparent 45%) !important; }
.hx-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hx-frame { position: relative; margin: 0; justify-self: end; width: min(100%, 420px); aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,.5), 0 0 0 1px rgba(243,232,204,.25); transform: rotate(1.5deg); transition: transform .9s var(--ease-out); animation: rise 1.2s var(--ease-out) .2s both; }
.hx-frame:hover { transform: rotate(0) scale(1.01); }
.hx-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hx-frame::after { content: ""; position: absolute; inset: 10px; border-radius: 22px; box-shadow: inset 0 0 0 1px rgba(255,217,138,.55); pointer-events: none; }
.hx-frame figcaption { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.35; color: #f3e8cc; background: rgba(15,44,38,.6); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }
@media (max-width: 860px) {
  .hx-inner { grid-template-columns: 1fr; }
  .hx-frame { justify-self: start; order: -1; width: min(78vw, 340px); transform: none; }
}
@media (max-width: 640px) {
  .hx { min-height: auto; }
  .hx-photo { position: absolute; inset: 0; height: auto; }
  .hx-inner { padding: 90px 0 140px; margin-top: 0; }
  .hx-shade { background: linear-gradient(180deg, rgba(15,44,38,.75), #0f2c26 70%) !important; }
}
.hx-frame figcaption { top: 18px; bottom: auto; font-size: 12px; }
/* Hero v3: clean department photo + studio headshot */
.hx-photo img { filter: saturate(1.05) brightness(.92); object-position: 50% 40%; }
.hx-shade { background: linear-gradient(90deg, rgba(15,44,38,.96) 0%, rgba(18,58,48,.86) 38%, rgba(22,63,54,.45) 68%, rgba(22,63,54,.25) 100%), linear-gradient(0deg, rgba(15,44,38,.9), transparent 40%) !important; }
.hx-frame { width: min(100%, 400px); }
.hx-frame img { object-position: 50% 20%; }
@media (max-width: 640px) {
  .hx-photo img { object-position: 55% 40%; }
  .hx-shade { background: linear-gradient(180deg, rgba(15,44,38,.55), rgba(15,44,38,.92) 55%, #0f2c26 75%) !important; }
}

/* ===== Home v4: full-screen hero, scroll cue, news ticker ===== */
.hx { min-height: 100vh; min-height: 100svh; }
.hx-frame, .tilt-photo { transform: none !important; }
.hx-inner { padding: 96px 0 170px; }
.hx-skyline { bottom: 54px; }
.scroll-cue { position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #f3e8cc; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none !important; animation: cue 2.2s var(--ease) infinite; }
.scroll-cue svg { width: 26px; height: 26px; color: #d9b56b; }
.scroll-cue:hover { color: #fff; }
@keyframes cue { 0%,100% { transform: translate(-50%, 0); opacity: .75; } 50% { transform: translate(-50%, 8px); opacity: 1; } }
.ticker { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: stretch; height: 54px; background: #d9b56b; color: #163f36; }
.ticker-tag { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 18px 0 22px; background: #163f36; color: #f3e8cc; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; position: relative; }
.ticker-tag::after { content: ""; position: absolute; right: -14px; top: 0; bottom: 0; width: 14px; background: #163f36; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.ticker-tag i { width: 8px; height: 8px; border-radius: 50%; background: #ff6b5a; box-shadow: 0 0 0 0 rgba(255,107,90,.7); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(255,107,90,0); } 100% { box-shadow: 0 0 0 0 rgba(255,107,90,0); } }
.ticker-view { flex: 1; overflow: hidden; display: flex; align-items: center; -webkit-mask: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 90s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; align-items: center; }
.ticker-set a { display: flex; align-items: center; gap: 10px; padding: 0 28px; color: #163f36; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; border-right: 1px solid rgba(22,63,54,.2); }
.ticker-set a:hover { text-decoration: none; color: #000; }
.ticker-set b { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.k-paper { background: #163f36; color: #f3e8cc; }
.k-news { background: #fff4d6; color: #7a3e12; }
.k-uet { background: rgba(22,63,54,.12); color: #163f36; }

/* Overview */
.ov-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.btn-brick { background: #a8582f; color: #fff7ec; }
.facts { display: grid; gap: 14px; }
.fact { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 20px; color: #fff !important; font-weight: 600; font-size: 17px; letter-spacing: -0.015em; line-height: 1.3; box-shadow: 0 14px 30px rgba(0,0,0,.12); transition: transform .4s var(--ease-out); }
.fact:hover { transform: translateY(-4px); text-decoration: none; }
.fact-k { flex: none; font-size: 34px; font-weight: 800; letter-spacing: -0.05em; min-width: 86px; }
.fact-gold { background: linear-gradient(135deg, #e0b453, #b8913f); color: #2a1806 !important; }
.fact-teal { background: linear-gradient(135deg, #1d7f8f, #0f4c5c); }
.fact-green { background: linear-gradient(135deg, #2f8f74, #163f36); }
.news-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.uet-mini .row-link { grid-template-columns: 96px 1fr; font-size: 15px; }
.uet-mini > li { padding: 14px 0; }

/* Biography page header */
.page-hero { background: radial-gradient(90% 120% at 0% 0%, #22705d 0%, #163f36 55%, #0f2c26 100%); color: #f3e8cc; padding: clamp(56px, 8vw, 100px) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='80'%3E%3Cpath d='M0 80L40 0L80 80L120 0L160 80M0 0h160M0 80h160' fill='none' stroke='%23f3e8cc' stroke-opacity='.07'/%3E%3C/svg%3E"); pointer-events: none; }
.page-hero-grid { display: grid; grid-template-columns: 1fr 240px; gap: 40px; align-items: center; position: relative; z-index: 1; }
.page-hero-photo { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 30px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(243,232,204,.25); }
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

@media (max-width: 860px) {
  .ov-grid, .news-split, .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-photo { width: 180px; order: -1; }
}
@media (max-width: 640px) {
  .hx-inner { padding: 84px 0 150px; }
  .ticker { height: 48px; }
  .ticker-tag { padding: 0 12px 0 14px; font-size: 11px; }
  .ticker-set a { font-size: 14px; padding: 0 20px; }
  .scroll-cue { bottom: 62px; }
  .hx-frame { width: min(62vw, 260px); }
}
/* Social icon buttons (hero) */
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; animation: rise 1s var(--ease-out) .4s both; }
.socials a { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(243,232,204,.1); box-shadow: inset 0 0 0 1px rgba(243,232,204,.28); color: #f3e8cc; transition: background .3s, color .3s, transform .3s var(--ease-out), box-shadow .3s; }
.socials a:hover, .socials a:focus-visible { background: #f3e8cc; color: var(--brand); transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.3); text-decoration: none; }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.socials span { position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -4px); font-size: 11px; font-weight: 600; white-space: nowrap; color: #f3e8cc; background: rgba(15,44,38,.92); padding: 3px 8px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease-out); }
.socials a:hover span, .socials a:focus-visible span { opacity: 1; transform: translate(-50%, 0); }
/* Hero exactly one screen under the 52px nav */
.hx { min-height: calc(100vh - 52px); min-height: calc(100svh - 52px); }
@media (max-width: 640px) {
  .hx-inner { padding: 28px 0 128px; gap: 18px; }
  .hx-frame { width: 150px; border-radius: 22px; }
  .hx-frame::after { inset: 6px; border-radius: 16px; }
  .hx-kicker { margin-bottom: 8px; font-size: 12px; }
  .hx-name { font-size: 40px; }
  .hx-creds { margin: 8px 0 12px; font-size: 18px; }
  .hx-role { font-size: 15px; margin-bottom: 18px; }
  .hx-actions .btn { height: 40px; font-size: 15px; padding: 0 16px; }
  .socials { margin-top: 18px; gap: 8px; }
  .socials a { width: 40px; height: 40px; }
  .hx-skyline { height: 60px; }
}

/* ===== Education: one view, two colour worlds around the map ===== */
.edu { position: relative; padding: clamp(56px, 7vw, 88px) 0; min-height: calc(100svh - 52px); display: flex; align-items: center; overflow: hidden;
  background:
    linear-gradient(90deg, #0f4c5c 0%, #0f4c5c 44%, #f6efe0 56%, #f6efe0 100%); }
.edu::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask: linear-gradient(90deg, #000 40%, transparent 52%); mask: linear-gradient(90deg, #000 40%, transparent 52%); }
.edu::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='42'%3E%3Cg fill='none' stroke='%23a8582f' stroke-opacity='.12' stroke-width='1.2'%3E%3Crect x='1' y='1' width='40' height='19' rx='2'/%3E%3Crect x='43' y='1' width='40' height='19' rx='2'/%3E%3Crect x='-20' y='22' width='40' height='19' rx='2'/%3E%3Crect x='22' y='22' width='40' height='19' rx='2'/%3E%3Crect x='64' y='22' width='40' height='19' rx='2'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask: linear-gradient(90deg, transparent 48%, #000 60%); mask: linear-gradient(90deg, transparent 48%, #000 60%); }
.edu .wrap { position: relative; z-index: 1; width: min(100% - 44px, 1280px); }
.edu-head { text-align: center; margin-bottom: 26px; }
.edu-head .ch-label { color: #d9b56b; }
.edu-head .ch-title { color: #fff; margin: 0; display: inline-block; padding: 10px 26px; border-radius: 980px; background: linear-gradient(90deg, #0f4c5c 0 50%, #a8582f 50% 100%); font-size: clamp(22px, 2.6vw, 32px); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.edu-stage { display: grid; grid-template-columns: 1fr 2.1fr 1fr; gap: 22px; align-items: center; }
.edu-side { display: grid; gap: 14px; }
.edu-place { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.edu-left .edu-place { color: #8fe3cf; }
.edu-right .edu-place { color: #a8582f; }
.flip-sm, .flip-sm .flip-inner { min-height: 168px; }
.flip-sm .flip-front, .flip-sm .flip-back { padding: 18px 20px; gap: 4px; }
.flip-sm .flip-yr { font-size: 40px; }
.flip-sm .flip-deg { font-size: 17px; }
.flip-sm .flip-thesis { font-size: 15px; }
.edu-note { margin: 0; font-size: 13px; color: rgba(226,244,240,.75); }
.edu-map { background: #0b3a47; border-radius: 28px; padding: 18px 16px 14px; box-shadow: 0 30px 70px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.08); }
.edu-map .worldmap { margin: 0; }
.edu-legend { list-style: none; display: flex; justify-content: center; gap: 22px; margin: 6px 0 0; padding: 0; font-size: 13px; color: rgba(226,244,240,.8); }
.edu-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.edu-legend .ca { background: #8fe3cf; } .edu-legend .pk { background: #ffd98a; }
.edu-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(168,88,47,.15), 0 10px 24px rgba(120,70,30,.08); color: #2b1d12; }
.edu-card-medal { flex-direction: row !important; align-items: center; gap: 14px; }
.edu-card b { font-size: 16px; line-height: 1.3; letter-spacing: -0.015em; }
.edu-card small { font-size: 13px; color: #6a5440; line-height: 1.4; }
.edu-yr { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; color: #a8582f; line-height: 1; }
.edu-card-link { color: #2b1d12 !important; transition: transform .35s var(--ease-out), background .3s; }
.edu-card-link:hover { transform: translateY(-3px); background: #fff; text-decoration: none; }
.medal-sm svg { width: 64px; animation: none; filter: drop-shadow(0 8px 14px rgba(168,122,34,.35)); }
.medal-sm { flex: none; }
@media (max-width: 1080px) {
  .edu { background: linear-gradient(180deg, #0f4c5c 0 52%, #f6efe0 52% 100%); min-height: 0; }
  .edu::before { -webkit-mask: linear-gradient(180deg, #000 45%, transparent 52%); mask: linear-gradient(180deg, #000 45%, transparent 52%); }
  .edu::after { -webkit-mask: linear-gradient(180deg, transparent 52%, #000 60%); mask: linear-gradient(180deg, transparent 52%, #000 60%); }
  .edu-stage { grid-template-columns: 1fr 1fr; }
  .edu-map { grid-column: 1 / -1; order: -1; }
  .edu-left { order: 0; } .edu-right { order: 1; }
  .edu-right { background: #f6efe0; border-radius: 20px; padding: 14px; }
}
@media (max-width: 640px) {
  .edu-stage { grid-template-columns: 1fr; }
  .edu { background: #0f4c5c; }
  .edu::after { display: none; }
  .edu-head .ch-title { border-radius: 18px; }
}
@media (prefers-color-scheme: dark) { .edu-card { background: rgba(255,255,255,.82); } }
.bp-sm { padding: 14px 16px; } .bp-sm .bp-list li { font-size: 13px; padding: 8px 0 8px 18px; }
@media (max-width: 640px) { .edu-head .ch-title { background: #a8582f; } }
/* Education v2 */
.edu-sub { margin: 14px auto 0; max-width: 60ch; font-size: 15px; color: #6a5440; background: rgba(246,239,224,.85); display: inline-block; padding: 6px 14px; border-radius: 980px; }
.edu-place { display: flex; align-items: center; gap: 8px; line-height: 1.3; }
.edu-place .flag { font-size: 18px; }
.edu-industry { margin-top: 14px; padding: 14px 16px 6px; border-radius: 18px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.edu-industry-k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ffd98a; }
.edu-industry ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.edu-industry li { position: relative; padding: 6px 0 8px 18px; font-size: 13px; line-height: 1.4; color: rgba(226,244,240,.85); }
.edu-industry li::before { content: "+"; position: absolute; left: 0; color: #ffd98a; font-weight: 700; }
.edu-faculty { padding: 0; overflow: hidden; }
.edu-photo { position: relative; display: block; height: 130px; overflow: hidden; }
.edu-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transition: transform 1s var(--ease-out); }
.edu-faculty:hover .edu-photo img { transform: scale(1.06); }
.edu-photo-badge { position: absolute; left: 10px; bottom: 10px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 980px; background: #d9b56b; color: #163f36; }
.edu-fac-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px 16px; }
.edu-yr { font-size: 22px; }
@media (max-width: 640px) { .edu-industry ul { grid-template-columns: 1fr; } .edu-sub { border-radius: 14px; } }

/* ===== Practice infographic ===== */
.pr-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: end; margin-bottom: clamp(32px, 4vw, 48px); }
.pr-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pr-strip li { padding: 16px 18px; border-radius: 16px; background: #2a1806; color: #f7e3b5; display: flex; flex-direction: column; gap: 4px; }
.pr-strip b { font-size: 16px; letter-spacing: -0.015em; line-height: 1.25; }
.pr-strip span { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #d9b56b; }
.pj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pj-card { background: rgba(255,251,240,.78); border-radius: 22px; padding: 16px 16px 20px; box-shadow: 0 14px 34px rgba(90,50,10,.12), inset 0 0 0 1px rgba(122,62,18,.1); transition: transform .45s var(--ease-out), box-shadow .45s; }
.pj-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(90,50,10,.2); }
.pj-art { position: relative; border-radius: 16px; background: #fffaf0; background-image: linear-gradient(rgba(168,88,47,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(168,88,47,.08) 1px, transparent 1px); background-size: 16px 16px; padding: 10px; margin-bottom: 14px; color: #3b2610; }
.pj-n { position: absolute; top: 10px; right: 12px; font-family: var(--mono); font-size: 12px; font-weight: 700; color: #a8582f; }
.pj-card h3 { font-size: 19px; letter-spacing: -0.02em; color: #2a1806; margin: 0 4px 6px; }
.pj-card p { margin: 0 4px; font-size: 14px; line-height: 1.45; color: #5a3d1c; }
.pj { width: 100%; height: auto; }
.pj path, .pj circle { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pj .pj-solid { fill: #d8cdb9; stroke: #3b2610; }
.pj .pj-soil { fill: #e9cf97; stroke: none; }
.pj .pj-hatch { stroke: #a8582f; opacity: .5; }
.pj .pj-rebar { stroke: #c0392b; stroke-width: 2; stroke-dasharray: 2 3; }
.pj .pj-arrow { stroke: #a8582f; stroke-width: 1.8; }
.pj .pj-arrow-g { stroke: #1d6b57; stroke-width: 2.4; }
.pj .pj-ground { stroke: #3b2610; stroke-width: 2; }
.pj .pj-fiber { stroke: #1d6b57; stroke-width: 1.4; }
.pj .pj-wrap { fill: rgba(47,143,116,.25); stroke: #1d6b57; }
.pj .pj-wrapline { stroke: #1d6b57; opacity: .55; }
.pj .pj-crack { stroke: #2a1806; stroke-width: 2; }
.pj .pj-steel { fill: #2f8f9a; stroke: #155446; }
.pj .pj-steel-line { stroke: #2f8f9a; stroke-width: 4; }
.pj .pj-plate { fill: #9bb7bc; stroke: #155446; }
.pj .pj-bolt { fill: #3b2610; stroke: none; }
.pj .pj-weld { stroke: #c0392b; stroke-width: 1.2; }
.pj .pj-hook { stroke: #a8582f; stroke-width: 3; }
.pj .pj-t { font: 600 9px var(--font); fill: #7a5320; stroke: none; }
.pj-card:hover .pj-arrow, .pj-card:hover .pj-arrow-g { animation: nudge .8s var(--ease) infinite alternate; }
@keyframes nudge { to { transform: translateY(2px); } }

/* ===== Faculty roles ===== */
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 30px; position: relative; z-index: 1; }
.role { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 20px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(243,232,204,.16); color: #f3e8cc !important; transition: background .3s, transform .4s var(--ease-out); }
.role:hover { background: rgba(255,255,255,.13); transform: translateY(-4px); text-decoration: none; }
.role-i { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #d9b56b, #b8913f); color: #163f36; }
.ri { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.role b { display: block; font-size: 17px; letter-spacing: -0.015em; }
.role small { display: block; font-size: 13px; color: rgba(243,232,204,.72); margin-top: 2px; }
.uet-photos { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; position: relative; z-index: 1; }
.uet-photos .collage img { aspect-ratio: 4 / 3; object-fit: cover; height: 100%; }
.proj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }

/* ===== Library ===== */
.lib-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lib-grid li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.12); color: #fff4e6; font-weight: 600; font-size: 15px; line-height: 1.35; transition: background .3s, transform .4s var(--ease-out); }
.lib-grid li:hover { background: rgba(255,255,255,.2); transform: translateY(-3px); }
.lib-grid li:last-child { grid-column: 1 / -1; }
.lib-i { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #fff4e6; color: #a8582f; }
.li { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.shelf-wrap { filter: drop-shadow(0 30px 50px rgba(60,20,5,.35)); }
.shelf { width: 100%; height: auto; }
.shelf .sh-frame { fill: #5a2a14; stroke: #3e1c0c; stroke-width: 4; }
.shelf .sh-board { fill: #3e1c0c; }
.shelf .sh-book { transform-box: fill-box; transform-origin: bottom; }
.in .shelf .sh-book, .shelf-wrap.in .sh-book { animation: bookIn .7s var(--ease-out) var(--d) both; }
@keyframes bookIn { from { transform: translateY(-30px); opacity: 0; } }
.shelf .sh-book:hover { transform: translateY(-6px); }
.shelf .sh-lamp { animation: glow 2.6s var(--ease) infinite alternate; }

@media (max-width: 980px) {
  .pr-head, .uet-photos { grid-template-columns: 1fr; }
  .pj-grid, .role-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pj-grid, .role-grid, .lib-grid, .proj-grid, .pr-strip { grid-template-columns: 1fr; }
}

/* ===== Page heroes (coloured headers for inner pages) ===== */
.ph { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); color: #f3e8cc; isolation: isolate; }
.ph::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ph-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.ph-kicker { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #d9b56b; }
.ph-title { margin: 0; font-size: clamp(44px, 7vw, 84px); line-height: 1; letter-spacing: -0.045em; color: inherit; }
.ph-lede { margin: 20px 0 0; max-width: 46ch; font-size: clamp(17px, 1.8vw, 21px); line-height: 1.5; opacity: .88; }
.ph-art { background: rgba(255,255,255,.92); border-radius: 26px; padding: 14px 8px 4px; box-shadow: 0 30px 70px rgba(0,0,0,.3); transform: perspective(1000px) rotateY(-6deg); transition: transform .8s var(--ease-out); }
.ph-art:hover { transform: none; }
.ph-art .illus .i-concrete, .ph-art .illus .i-brick, .ph-art .illus .i-monument, .ph-art .illus .i-board { fill: #fff; }
.ph-art .illus .i-txt { fill: #555; } .ph-art .illus .i-txt.strong { fill: #111; } .ph-art .illus .i-axis, .ph-art .illus .i-line { stroke: #777; }
.ph-research { background: radial-gradient(90% 120% at 0% 0%, #2f8f74 0%, #1d6b57 45%, #0f4c5c 100%); }
.ph-research::before { background-image: radial-gradient(circle at 1px 1px, rgba(243,232,204,.18) 1px, transparent 0); background-size: 22px 22px; }
.ph-pubs { background: radial-gradient(120% 80% at 100% 0%, #16707f 0%, #0f4c5c 60%, #0b3a47 100%); }
.ph-pubs::before { background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 48px 48px; }
.ph-news { background: linear-gradient(135deg, #f7d98e 0%, #efc067 45%, #e4a64b 100%); color: #2a1806; }
.ph-news::before { background: repeating-linear-gradient(-45deg, rgba(122,62,18,.07) 0 2px, transparent 2px 16px); }
.ph-news .ph-kicker { color: #7a3e12; }
.ph-teach { background-color: #0b1f1b; }
.ph-teach::before { background-image: linear-gradient(rgba(127,216,184,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(127,216,184,.08) 1px, transparent 1px); background-size: 40px 40px; }
.ph-teach .ph-kicker { color: #7fd8b8; }
.ph-students { background: radial-gradient(90% 90% at 100% 100%, #8f3f22 0%, #b65f3d 50%, #c9744d 100%); color: #fff4e6; }
.ph-students::before { background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 18px, transparent 18px 26px, rgba(0,0,0,.05) 26px 40px, transparent 40px 52px); opacity: .6; }
.ph-students .ph-kicker { color: #ffd98a; }
.ph-contact { background: radial-gradient(90% 120% at 0% 0%, #22705d 0%, #163f36 55%, #0f2c26 100%); }
.ph-contact::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='80'%3E%3Cpath d='M0 80L40 0L80 80L120 0L160 80M0 0h160M0 80h160' fill='none' stroke='%23f3e8cc' stroke-opacity='.08'/%3E%3C/svg%3E"); }
@media (max-width: 860px) { .ph-grid { grid-template-columns: 1fr; } .ph-art { transform: none; max-width: 520px; } }

/* ===== Research: pipeline ===== */
.rs-pipe { background: #163f36; background-image: radial-gradient(70% 90% at 100% 0%, #22705d, transparent 60%); padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.pipe { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; position: relative; }
.pipe::before { content: ""; position: absolute; left: 6%; right: 6%; top: 58px; height: 3px; background: linear-gradient(90deg, #8fe3cf, #d9b56b, #e08b5a); border-radius: 3px; opacity: .6; }
.pipe li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 18px; border-radius: 20px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(243,232,204,.14); color: #f3e8cc; }
.pipe-n { position: absolute; top: 12px; right: 14px; font-family: var(--mono); font-size: 12px; color: #d9b56b; }
.pipe-i { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, #f3e8cc, #d9b56b); color: #163f36; margin-bottom: 8px; position: relative; z-index: 1; box-shadow: 0 10px 22px rgba(0,0,0,.25); }
.pipe b { font-size: 17px; letter-spacing: -0.015em; }
.pipe small { font-size: 13.5px; line-height: 1.45; color: rgba(243,232,204,.75); }
@media (max-width: 980px) { .pipe { grid-template-columns: 1fr 1fr; } .pipe::before { display: none; } }
@media (max-width: 560px) { .pipe { grid-template-columns: 1fr; } }

/* ===== Research: dashboard ===== */
.rs-dash { background: #f6efe0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='42'%3E%3Cg fill='none' stroke='%23a8582f' stroke-opacity='.08' stroke-width='1.2'%3E%3Crect x='1' y='1' width='40' height='19' rx='2'/%3E%3Crect x='43' y='1' width='40' height='19' rx='2'/%3E%3Crect x='-20' y='22' width='40' height='19' rx='2'/%3E%3Crect x='22' y='22' width='40' height='19' rx='2'/%3E%3Crect x='64' y='22' width='40' height='19' rx='2'/%3E%3C/g%3E%3C/svg%3E"); --ch-accent: #a8582f; --ch-ink: #2b1d12; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dcard { background: #fff; border-radius: 26px; padding: 24px 26px; box-shadow: 0 18px 44px rgba(90,50,10,.10); }
.dcard h3 { font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a8582f; margin-bottom: 16px; }
.dcard-dark { background: #0f4c5c; color: #eafaf6; }
.dcard-dark h3 { color: #8fe3cf; }
.donut-wrap { display: grid; grid-template-columns: 190px 1fr; gap: 22px; align-items: center; }
.donut { width: 100%; transform: rotate(0deg); }
.donut-seg { transition: stroke-dasharray 1.2s var(--ease-out); }
.reveal:not(.in) .donut-seg { stroke-dasharray: 0 100 !important; }
.donut-seg { transition-delay: var(--d); }
.donut-n { font: 800 38px var(--font); fill: #2b1d12; letter-spacing: -0.04em; }
.donut-l { font: 600 12px var(--font); fill: #8a6a4c; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #3a2a1c; }
.legend i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.net { width: 100%; height: auto; }
.net text { font: 600 10.5px var(--font); fill: rgba(234,250,246,.85); }
.net .net-me { font: 800 12px var(--font); fill: #163f36; }
.net-node { opacity: 0; transform-box: fill-box; transform-origin: center; }
.in .net-node { animation: pop .6s var(--ease-out) var(--d) forwards; }
.no-js .net-node { opacity: 1; }
.dnote { margin: 6px 0 0; font-size: 13px; color: rgba(234,250,246,.7); }
.ycols { display: flex; align-items: flex-end; gap: 6px; height: 190px; }
.col-y { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.col-b { width: 100%; max-width: 30px; height: calc(var(--h) * .78); min-height: 4px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #d9b56b, #a8582f); transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease-out); }
.in .col-b { transform: scaleY(1); }
.col-v { font-size: 11px; font-weight: 700; color: #8a6a4c; }
.col-l { font-size: 10.5px; color: #8a6a4c; }
.venues { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.venues li { display: grid; grid-template-columns: 1fr 120px 24px; gap: 12px; align-items: center; font-size: 14px; color: #3a2a1c; }
.vn { font-style: italic; line-height: 1.3; }
.vb { height: 10px; border-radius: 10px; background: #f1e7d4; overflow: hidden; }
.vb i { display: block; height: 100%; width: var(--w); border-radius: 10px; background: linear-gradient(90deg, #2f8f74, #1d6b57); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease-out); }
.in .vb i { transform: scaleX(1); }
.venues b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } .donut-wrap { grid-template-columns: 160px 1fr; } }
@media (prefers-color-scheme: dark) { .rs-dash { background-color: #1e1812; } }

/* UET acknowledgement */
.uet-ack { background: #f6efe0; border-top: 1px solid rgba(168,88,47,.15); padding: 34px 0; }
.uet-ack-inner { display: flex; align-items: center; gap: 28px; }
.uet-ack-logo { flex: none; display: block; background: #fff; padding: 12px 18px; border-radius: 16px; box-shadow: 0 8px 20px rgba(90,50,10,.1); }
.uet-ack-logo img { height: 46px; width: auto; display: block; }
.uet-word { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: #163f36; }
.uet-word b { color: #a8582f; }
.uet-ack p { margin: 0; font-size: 15px; color: #5a4632; line-height: 1.5; }
.uet-ack p b { color: #2b1d12; }
.uet-tag { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 980px; background: #163f36; color: #f3e8cc; vertical-align: 1px; }
@media (max-width: 640px) { .uet-ack-inner { flex-direction: column; align-items: flex-start; } }
@media (prefers-color-scheme: dark) { .uet-ack { background: #1e1812; } .uet-ack p { color: rgba(246,239,224,.75); } .uet-ack p b { color: #f6efe0; } }

/* Students quote band, course art */
.quote-band { background: #fff4e6; padding: clamp(48px, 7vw, 80px) 0; }
.quote-band .quote { color: #5a2a14; max-width: 32ch; }
.quote-band .quote::before { color: #a8582f; }
@media (prefers-color-scheme: dark) { .quote-band { background: #241a12; } .quote-band .quote { color: #f6efe0; } }
.course { border-top: 5px solid var(--cc); }
.course-art { margin: -6px -6px 18px; border-radius: 16px; padding: 10px; color: #3b2610; background: #fffaf0; background-image: linear-gradient(rgba(168,88,47,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(168,88,47,.08) 1px, transparent 1px); background-size: 16px 16px; }
.course .code { color: var(--cc); font-weight: 700; }
.contact-photo { position: relative; margin: 20px 0 0; border-radius: 26px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.contact-photo img { width: 100%; height: clamp(220px, 34vw, 420px); object-fit: cover; object-position: 50% 45%; display: block; }
.contact-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 26px 22px; background: linear-gradient(0deg, rgba(15,44,38,.92), transparent); color: #f3e8cc; display: flex; flex-direction: column; gap: 2px; }
.contact-photo b { font-size: 22px; letter-spacing: -0.02em; } .contact-photo span { font-size: 15px; opacity: .85; }

/* ===== YouTube lite embeds ===== */
.yt { margin: 0; }
.yt-btn { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 18px; overflow: hidden; cursor: pointer; background: #000; box-shadow: 0 14px 34px rgba(0,0,0,.18); }
.yt-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out), opacity .3s; opacity: .92; }
.yt-btn:hover img { transform: scale(1.04); opacity: 1; }
.yt-play { position: absolute; inset: 0; display: grid; place-items: center; }
.yt-play svg { width: 68px; height: 48px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.4)); transition: transform .3s var(--ease-out); }
.yt-btn:hover .yt-play svg { transform: scale(1.12); }
.yt iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 18px; display: block; background: #000; }
.yt figcaption { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.yt figcaption b { font-size: 15px; line-height: 1.3; letter-spacing: -0.015em; }
.yt figcaption span { font-size: 13px; opacity: .7; }
.yt-lg .yt-btn { border-radius: 24px; box-shadow: 0 30px 70px rgba(0,0,0,.3); }
.yt-lg .yt-play svg { width: 92px; height: 65px; }
.yt-sm figcaption b { font-size: 14px; }
.vid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vid-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.vid-count { font-size: 14px; font-weight: 600; opacity: .7; }
.vid-band { padding: clamp(56px, 8vw, 96px) 0; }
.vid-sculpture { background: #0f4c5c; color: #eafaf6; --ch-accent: #8fe3cf; --ch-ink: #eafaf6; }
.vid-research { background: #f6efe0; --ch-accent: #a8582f; --ch-ink: #2b1d12; }
.vid-fieldtrip { background: linear-gradient(135deg, #f7d98e, #e4a64b); --ch-accent: #7a3e12; --ch-ink: #2a1806; color: #2a1806; }
.vid-students { background: radial-gradient(90% 90% at 100% 100%, #8f3f22, #b65f3d 50%, #c9744d); color: #fff4e6; --ch-accent: #ffd98a; --ch-ink: #fff4e6; }
.learn-group { margin-bottom: 36px; }
.learn-group h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; letter-spacing: -0.02em; margin-bottom: 14px; color: var(--ch-ink, inherit); }
.ch-lab .yt figcaption { color: #eef7f3; }
.course-pill { font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 8px; background: #d9b56b; color: #163f36; }
.sculpt-vids { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; position: relative; z-index: 1; }
.sculpt-vids .yt figcaption { color: #f3e8cc; }
.rs-project .yt figcaption { color: #eafaf6; }
.home-video .yt figcaption { color: #eef7f3; }
.cover-video { background: #000 !important; }
.cover-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.cover-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(196,48,43,.92); color: #fff; font-size: 18px; padding-left: 3px; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
@media (max-width: 980px) { .vid-grid, .vid-grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .vid-grid, .vid-grid-4, .sculpt-vids { grid-template-columns: 1fr; } }

/* ===== Newsletter ===== */
.nl { padding: clamp(56px, 8vw, 96px) 0; }
.nl-gold { background: linear-gradient(135deg, #f7d98e 0%, #e9b75a 60%, #d99a3c 100%); color: #2a1806; --ch-accent: #7a3e12; --ch-ink: #2a1806; position: relative; overflow: hidden; }
.nl-gold::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(122,62,18,.06) 0 2px, transparent 2px 16px); pointer-events: none; }
.nl-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; position: relative; }
.nl-text p:last-child { margin: 0; font-size: 18px; line-height: 1.5; color: #4a3214; }
.nl-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 18px; border-radius: 22px; background: rgba(255,251,240,.75); box-shadow: 0 20px 50px rgba(90,50,10,.18); }
.nl-form input[type=email] { height: 50px; border-radius: 14px; border: 0; padding: 0 16px; font: inherit; font-size: 17px; background: #fff; color: #1d1d1f; box-shadow: inset 0 0 0 1px rgba(122,62,18,.2); outline: none; }
.nl-form input[type=email]:focus { box-shadow: inset 0 0 0 2px #1d6b57; }
.nl-form .btn { height: 50px; background: #163f36; color: #f3e8cc; }
.nl-form small { grid-column: 1 / -1; font-size: 12px; color: #7a5320; }
@media (max-width: 760px) { .nl-inner { grid-template-columns: 1fr; } .nl-form { grid-template-columns: 1fr; } }
.btn-cream { color: #163f36 !important; } .btn-cream:hover { color: #0f2c26 !important; }

/* Autoplaying (muted) YouTube player: no controls, just mute/unmute */
.yt-live { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000 center / cover no-repeat; box-shadow: 0 14px 34px rgba(0,0,0,.18); }
.yt-lg .yt-live { border-radius: 24px; box-shadow: 0 30px 70px rgba(0,0,0,.3); }
.yt-live iframe { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); border: 0; border-radius: 0; aspect-ratio: auto; pointer-events: none; }
.yt-shield { position: absolute; inset: 0; cursor: default; }
.yt-mute { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 11px; border: 0; border-radius: 999px; background: rgba(10,20,16,.72); color: #fff; font: 600 13px/1 inherit; font-family: inherit; letter-spacing: -0.01em; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 18px rgba(0,0,0,.3); transition: background .2s, transform .2s var(--ease-out); }
.yt-mute:hover { background: rgba(10,20,16,.88); transform: translateY(-1px); }
.yt-mute:focus-visible { outline: 2px solid #8fe3b8; outline-offset: 2px; }
.yt-mute svg { width: 18px; height: 18px; }
.yt-mute[aria-pressed="true"] span { display: none; }
.yt-mute[aria-pressed="true"] { padding: 9px; }

/* Newsletter popup (bottom-right card; bottom sheet on phones) */
.nlpop { position: fixed; right: 24px; bottom: 24px; z-index: 90; overflow: hidden; width: min(400px, calc(100vw - 32px)); padding: 26px 24px 22px; border-radius: 22px; color: #0f2a20;
  background: linear-gradient(150deg, #fff 0%, #f1faf5 60%, #e3f4ea 100%); box-shadow: 0 28px 70px rgba(6,30,20,.28), 0 0 0 1px rgba(20,90,60,.10);
  transform: translateY(24px) scale(.98); opacity: 0; transition: transform .45s var(--ease-out), opacity .35s; }
.nlpop.on { transform: none; opacity: 1; }
.nlpop::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; border-radius: 22px 22px 0 0; background: linear-gradient(90deg, #1f7a4f, #3fb67b, #e0b14a); }
.nlpop-x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #335a49; font-size: 24px; line-height: 1; cursor: pointer; }
.nlpop-x:hover { background: rgba(20,90,60,.08); }
.nlpop-k { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #1f7a4f; }
.nlpop h2 { margin: 0 34px 8px 0; font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; }
.nlpop-d { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: #3d5a4d; }
.nlpop-f { display: flex; gap: 8px; }
.nlpop-f input[type=email] { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid rgba(20,90,60,.25); border-radius: 12px; font: inherit; font-size: 15px; background: #fff; }
.nlpop-f input[type=email]:focus { outline: 2px solid #3fb67b; outline-offset: 1px; }
.nlpop-f .btn { white-space: nowrap; }
.nlpop-ok { margin: 0; font-weight: 600; color: #1f7a4f; }
@media (max-width: 560px) {
  .nlpop { right: 0; left: 0; bottom: 0; width: auto; border-radius: 22px 22px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .nlpop-f { flex-direction: column; }
}
