:root {
  color-scheme: light;
  --ink: #142b33;
  --muted: #455e64;
  --rule: #d6e0df;
  --teal: #005e56;
  --light-teal: #a6e9d9;
  --navy: #071725;
  --cream: #f6f7f2;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Instrument Sans", "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, summary:focus-visible { outline: 3px solid #018978; outline-offset: 4px; }
img { display: block; max-inline-size: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.1; font-weight: 650; }
h1, h2 { font-family: "Bricolage Grotesque", "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif; letter-spacing: -.045em; }
[lang="zh-Hant"] h1, [lang="zh-Hant"] h2 { letter-spacing: -.025em; line-height: 1.2; }
.shell { width: min(var(--max), calc(100% - 112px)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -10rem; padding: .7rem 1rem; background: white; z-index: 5; }
.skip:focus { top: 1rem; }
.header { border-bottom: 1px solid #dbe4e2; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 75px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; line-height: 1.2; text-decoration: none; }
.mark { display: inline-grid; place-items: center; background: var(--navy); color: white; border-radius: 6px; width: 44px; height: 37px; letter-spacing: -.055em; font-size: .93rem; flex: none; }
.brand-text { max-width: 12ch; font-size: .91rem; }
.top-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
.top-nav a { text-decoration: none; font-weight: 550; font-size: .91rem; }
.top-nav a:hover, .lang:hover, .text-link:hover { text-decoration: underline; }
.lang { flex: none; border-left: 1px solid var(--rule); padding-left: 19px; color: var(--teal); text-decoration: none; font-size: .9rem; font-weight: 700; }
.hero { background: var(--navy); color: #fff; overflow: hidden; }
.hero-inner { position: relative; min-height: 548px; display: flex; align-items: center; isolation: isolate; padding-block: 70px; }
.hero-visual { position: absolute; z-index: -2; inset: 0 -7% 0 43%; width: 64%; height: 100%; max-inline-size: none; object-fit: cover; object-position: 60% center; }
.hero-inner::before { content: ""; position: absolute; inset: 0 -8% 0 35%; z-index: -1; background: linear-gradient(90deg, var(--navy) 5%, rgba(7,23,37,.38) 43%, transparent 75%); }
.hero-copy { max-width: 53%; }
.label { font-size: .76rem; letter-spacing: .115em; font-weight: 750; color: var(--teal); text-transform: uppercase; margin-bottom: .95rem; }
.hero .label, .contact .label { color: var(--light-teal); }
[lang="zh-Hant"] .label { letter-spacing: .115em; }
.hero h1 { max-width: 11ch; font-size: clamp(3.3rem, 6.2vw, 6rem); line-height: .99; }
[lang="zh-Hant"] .hero h1 { max-width: 16ch; }
.hero p:not(.label) { max-width: 41ch; margin-top: 1.6rem; color: #e4edee; font-size: 1.11rem; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; padding: .65rem 1.03rem; border-radius: 6px; text-decoration: none; font-weight: 750; background: var(--light-teal); color: #0a302b; }
.cta:hover { background: #d4f8ef; }
.hero .cta { margin-top: 1.75rem; }
section[id] { scroll-margin-top: 24px; }
.section { padding-block: 88px; }
.section.cool { background: var(--cream); }
.heading { font-size: clamp(2.2rem, 4.2vw, 4rem); }
.split { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(38px, 7vw, 110px); }
.lede { color: var(--muted); font-size: 1.13rem; }
.lede p + p { margin-top: .9rem; }
.programmes .heading, .people .heading, .careers .heading { margin-bottom: 1.95rem; }
.projects { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-block: 1px solid var(--rule); }
.project { padding: 2rem 2.2rem 2rem 0; }
.project + .project { padding-inline: 2.2rem 0; border-left: 1px solid var(--rule); }
.project h3 { font-size: 1.7rem; margin-bottom: .9rem; }
.project p, .person p, .job p, .job li { color: var(--muted); }
.project p + p { margin-top: .8rem; }
.project .descriptor { color: var(--teal); font-size: .91rem; font-weight: 700; margin-bottom: .65rem; }
.people-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: clamp(28px,5vw,68px); }
.person { border-top: 1px solid var(--rule); padding-block: 1.5rem 1.75rem; }
.person h3 { font-size: 1.57rem; margin-bottom: .42rem; }
.person .role { color: var(--teal); font-weight: 700; font-size: .91rem; margin-bottom: .63rem; }
.person .text-link { margin-top: .65rem; }
.text-link { display: inline-block; color: var(--teal); font-weight: 700; font-size: .89rem; text-decoration: underline; }
.jobs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.job { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.2rem, 3vw, 2.25rem); border: 1px solid var(--rule); border-radius: 10px; background: #fff; }
.job h3 { font-size: 1.65rem; margin-bottom: .65rem; }
.job .location { color: var(--teal); font-size: .88rem; font-weight: 700; margin-bottom: 1.05rem; }
.job details { width: 100%; border-top: 1px solid var(--rule); margin-top: 1.3rem; }
.job summary { cursor: pointer; color: var(--ink); font-weight: 700; padding-block: .75rem; }
.job details ul { margin: 0 0 .85rem; padding-left: 1.08rem; }
.job details li + li { margin-top: .4rem; }
.job .apply { padding-top: .7rem; margin-top: auto; }
.contact { background: var(--navy); color: white; padding-block: 65px; }
.contact .split { align-items: center; }
.contact p:not(.label) { color: #e1ebec; margin-bottom: .8rem; max-width: 46ch; }
.contact a { color: var(--light-teal); font-weight: 700; }
.footer { padding-block: 1.65rem; background: #fff; color: var(--muted); font-size: .85rem; }
.footer .shell { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
@media (max-width: 940px) {
  .shell { width: calc(100% - 64px); }
  .hero-inner { min-height: 485px; }
  .hero-copy { max-width: 57%; }
  .hero-visual { inset-inline-start: 33%; width: 74%; }
  .hero-inner::before { inset-inline-start: 31%; background: linear-gradient(90deg, var(--navy) 1%, rgba(7,23,37,.62) 42%, transparent 90%); }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { display: grid; grid-template-columns: 1fr auto; min-height: auto; gap: 0 10px; padding-top: 12px; }
  .brand-text { max-width: unset; }
  .lang { grid-row: 1; grid-column: 2; padding-left: 12px; }
  .top-nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: 8px; padding-block: .78rem; }
  .top-nav a { font-size: .86rem; }
  .hero-inner { min-height: 0; padding-block: 50px 260px; }
  .hero-copy { max-width: 100%; }
  .hero h1 { font-size: clamp(3rem, 13vw, 4.6rem); }
  .hero p:not(.label) { margin-top: 1.13rem; font-size: 1rem; }
  .hero-visual { inset: auto auto 0 -18px; width: calc(100% + 36px); height: 275px; object-position: center 58%; }
  .hero-inner::before { inset: auto -18px 0; height: 280px; background: linear-gradient(180deg, var(--navy), transparent 43%); }
  .section { padding-block: 56px; }
  .split, .projects, .people-grid, .jobs { grid-template-columns: minmax(0,1fr); }
  .split { gap: 1rem; }
  .project, .project + .project { border-left: 0; padding: 1.45rem 0; }
  .project + .project { border-top: 1px solid var(--rule); }
  .programmes .heading, .people .heading, .careers .heading { margin-bottom: 1.45rem; }
  .contact { padding-block: 48px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
