:root {
  color-scheme: light;
  --navy: #0B1530;
  --panel: #142342;
  --blue: #397BFF;
  --green: #B8F56B;
  --paper: #F6F8FC;
  --ink: #17243B;
  --white: #FFFFFF;
  --faint: #A9B9D3;
  --muted: #52647D;
  --link: #174FC0;
  --rule: #DCE4F1;
  --radius: 16px;
  --motion: 180ms ease;
  --space: clamp(3.5rem, 7vw, 6rem);
  font-family: "Aptos", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.24; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); font-weight: 750; letter-spacing: -.045em; }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); letter-spacing: -.035em; }
h3 { font-size: 1.2rem; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
#main, #research, #products, #about { scroll-margin-top: 6rem; }
.wrap { width: min(1220px, calc(100% - 2 * clamp(1.125rem, 4.5vw, 4rem))); margin-inline: auto; }
.skip { position: fixed; inset: .5rem auto auto .5rem; transform: translateY(-180%); z-index: 5; padding: .5rem 1rem; background: var(--white); }
.skip:focus { transform: translateY(0); }
.masthead {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #0b1530f5;
  backdrop-filter: blur(12px);
  color: var(--white);
  border-bottom: 1px solid #a9b9d32b;
}
.nav, .brand, .nav nav { display: flex; align-items: center; }
.nav { justify-content: space-between; flex-wrap: wrap; gap: .65rem 1.5rem; padding-block: 1rem; }
.brand { gap: .75rem; text-decoration: none; font-weight: 700; }
.brand-college { display: block; color: var(--faint); font-size: .875rem; letter-spacing: .06em; }
.brand-name { display: block; font-size: 1.12rem; line-height: 1.35; }
.mark {
  display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px;
  border: 1px solid #397bff80; border-radius: 12px; color: var(--green);
  background: var(--panel); font-size: 1.15rem; letter-spacing: -.05em;
}
.nav nav { gap: .4rem; }
.nav nav a, .menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: .45rem .85rem; border-radius: 8px; color: var(--faint); font-size: .94rem;
  text-decoration: none; transition: background var(--motion), color var(--motion);
}
.nav nav a:hover, .nav nav a[aria-current] { color: var(--white); background: var(--panel); }
.nav nav a[aria-current] { box-shadow: inset 0 -2px var(--blue); }
.nav nav a:last-child { border: 1px solid #a9b9d34d; margin-inline-start: .35rem; }
.menu-toggle { display: none; gap: .55rem; border: 1px solid #a9b9d34d; background: var(--panel); color: var(--white); }
.menu-toggle span { width: .9rem; height: .58rem; border-block: 2px solid currentColor; }
.hero { background: radial-gradient(ellipse at 76% 46%, #172f61 0%, var(--navy) 68%); color: var(--white); }
.hero-grid, .detail-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(1.5rem, 4.5vw, 4.5rem); }
.hero-grid, .hero-empty { padding-block: clamp(3.2rem, 7.5vw, 7rem); }
.hero-kicker, .eyebrow { font-size: .875rem; font-weight: 750; letter-spacing: .14em; }
.hero-kicker { color: var(--faint); margin-bottom: 1rem; }
.hero-kicker span { color: var(--green); }
.hero-title { font-size: clamp(2.35rem, 4.85vw, 4.45rem); line-height: 1.13; }
.hero-title span { color: #C1D7FF; }
.featured { margin-top: clamp(1.8rem, 4vw, 2.7rem); padding-top: 1.25rem; border-top: 1px solid #a9b9d340; }
.eyebrow { color: var(--link); margin-bottom: .55rem; }
.hero .eyebrow { color: var(--green); }
.featured h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.intro { font-size: 1.06rem; margin-block: .7rem 1.15rem; max-width: 36em; overflow-wrap: anywhere; white-space: pre-wrap; }
.hero .intro { color: var(--faint); }
.tag { display: inline-block; padding: .15rem .42rem; border: 1px solid #657d9e70; border-radius: 5px; color: var(--muted); font-size: .875rem; font-weight: 600; vertical-align: middle; letter-spacing: 0; }
.hero .tag, .products-band .tag { color: var(--faint); border-color: #a9b9d364; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px;
  padding: .55rem 1.05rem; border: 1px solid transparent; border-radius: 9px; color: var(--white);
  background: #245ed0; text-decoration: none; font-size: .95rem; font-weight: 690; text-align: center;
  transition: background var(--motion), border-color var(--motion), transform var(--motion);
}
.button:hover { transform: translateY(-2px); background: #174eb9; }
.hero-copy .button { background: var(--green); color: var(--navy); }
.hero-copy .button:hover { background: #D0FFA3; }
.secondary, .demo { background: transparent; color: var(--ink); border-color: #8092AC; }
.secondary:hover, .demo:hover { background: #E8EFFB; border-color: var(--blue); }
.hero .demo { color: var(--white); border-color: #a9b9d380; }
.hero .demo:hover { background: #24457c; }
.play-icon { width: 0; height: 0; border-block: .34rem solid transparent; border-inline-start: .55rem solid currentColor; }
.hero-media { min-width: 0; padding: clamp(.55rem, 1.4vw, .95rem); background: #142342cc; border: 1px solid #799bd869; border-radius: var(--radius); box-shadow: 0 24px 55px #050b204f; }
.media-actions { display: flex; justify-content: flex-end; margin-top: .75rem; }
.snapshot, .mock, .empty-shot { width: 100%; display: block; border-radius: 10px; }
.snapshot { aspect-ratio: 16 / 9; object-fit: contain; background: #E9EFF9; }
.empty-shot { display: grid; place-items: center; aspect-ratio: 16 / 9; background: #E9EFF9; color: var(--muted); }
.mock { overflow: hidden; background: #F1F5FC; color: var(--ink); border: 1px solid #829dcc63; }
.mock-top { min-height: 38px; display: flex; align-items: center; gap: 5px; padding: .45rem .7rem; font-size: .78rem; background: #1A3059; color: #E5EDFA; }
.mock-top i { flex: 0 0 6px; height: 6px; border-radius: 50%; background: #8EACE3; }
.mock-top i:first-child { background: var(--green); }
.mock-top span { margin-left: .35rem; }
.mock-grid { display: grid; grid-template-columns: minmax(75px, .32fr) minmax(0, 1fr); min-height: clamp(180px, 24vw, 325px); }
.mock aside { padding: 1rem .65rem; background: #E4ECFA; font-size: .8rem; }
.mock aside p { margin-top: .65rem; color: #435A7B; }
.mock-body { align-content: center; display: grid; gap: .55rem; padding: clamp(.6rem, 2.4vw, 1.55rem); font-size: .83rem; }
.mock-body strong { font-size: clamp(.85rem, 2.1vw, 1.24rem); line-height: 1.3; }
.mock-body small { color: var(--muted); }
.mock-query, .mock-result { background: var(--white); border: 1px solid var(--rule); padding: .55rem; border-radius: 6px; }
.mock-result { border-inline-start: 3px solid var(--blue); }
.mock-result small { display: block; }
.section { padding-block: var(--space); }
.section-head { margin-bottom: 1.2rem; }
.section-arrived { animation: section-arrival 420ms ease both; }
@keyframes section-arrival { from { opacity: .72; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.filters, .toolbar { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.filters { margin-bottom: 1.35rem; }
.filter { min-height: 44px; padding: .38rem .95rem; border: 1px solid #BBC8DD; border-radius: 100px; background: var(--white); color: var(--ink); transition: border-color var(--motion), background var(--motion); }
.filter:hover { border-color: var(--blue); }
.filter[aria-pressed="true"] { color: var(--white); background: var(--panel); border-color: var(--panel); }
.research-list, .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.85rem, 2vw, 1.4rem); }
.research-row, .card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); overflow: hidden; text-decoration: none; transition: border-color var(--motion), box-shadow var(--motion), transform var(--motion); }
.research-row:hover, .card:hover, .research-row:focus-within { border-color: #8AAFFF; transform: translateY(-3px); box-shadow: 0 10px 24px #0b153017; }
.research-row, .card-body { padding: clamp(1rem, 2vw, 1.4rem); gap: .65rem; }
.research-row { border-top: 3px solid var(--blue); }
.research-row:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.card-body { display: flex; flex: 1; flex-direction: column; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem; }
.card-meta time { color: var(--muted); font-size: .875rem; }
.research-type { padding: .16rem .58rem; border-radius: 5px; color: #184493; background: #E6EFFF; font-size: .875rem; font-weight: 690; }
.card-description, .card-members, .muted { color: var(--muted); overflow-wrap: anywhere; }
.card-members { font-size: .9rem; }
.card-image .snapshot { border-radius: 0; }
.card-image .mock { border: 0; border-radius: 0; }
.card-image .mock-grid { min-height: 160px; }
.card-image .mock-body { padding: .65rem; }
.card-image .mock-body strong { font-size: .9rem; }
.text-link { display: inline-block; margin-top: 1.15rem; color: var(--link); font-weight: 700; text-decoration: underline; text-underline-offset: .23em; }
.card .text-link, .research-row .text-link { margin-top: auto; padding-top: .55rem; }
.plain { align-self: flex-start; min-height: 44px; border: none; padding-inline: 0; background: transparent; text-align: left; }
#no-research { margin-top: 1rem; }
.products-band { color: var(--white); background: var(--navy); }
.products-band .eyebrow { color: var(--faint); }
.products-band .card { background: var(--panel); border-color: #a9b9d34a; }
.products-band .card:hover { border-color: #8aafff; }
.products-band .card-description, .products-band .muted, .products-band .card-members { color: var(--faint); }
.products-band .text-link { color: #C1D7FF; }
.footer { display: flex; justify-content: space-between; gap: 2rem; padding-block: 3rem; }
footer { background: #0E1B36; color: var(--white); border-top: 1px solid #a9b9d338; }
.footer .eyebrow, .footer h2 + p, .college-english { color: var(--faint); }
.footer h2 + p, .footer details { margin-top: .7rem; }
.footer summary { cursor: pointer; color: #C1D7FF; }
.college-note { border-inline-start: 1px solid #a9b9d352; padding-inline-start: 1.25rem; }
.college-english { font-size: .9rem; margin-top: .25rem; }
.college-motto { color: var(--green); font-size: 1.05rem; letter-spacing: .06em; margin-block: .55rem; }
.college-note a { text-underline-offset: .2em; }
.detail-grid { padding-block: 2rem; }
.detail-grid .muted { margin-block: .7rem 1rem; }
.loading { padding-block: 4rem; }
dialog { width: min(720px, calc(100% - 2rem)); max-height: 90dvh; overflow: auto; padding: clamp(1rem, 3vw, 1.75rem); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #0b1530cf; }
dialog h2 { font-size: 1.7rem; }
dialog p, dialog video, dialog .mock { margin-block: .8rem; }
dialog video { width: 100%; }
dialog form { margin-top: 1rem; }
.admin h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); }
.admin > .muted, .admin > .toolbar { margin-top: 1rem; }
#admin-status, #form-error { color: #823811; margin-block: .55rem; }
.admin-group { margin-top: 2rem; }
.admin-group h2 { margin-bottom: .75rem; }
.admin-row { border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding-block: .9rem; }
.admin-row p { color: var(--muted); margin-top: .25rem; }
.editor { max-width: 740px; border: 1px solid var(--rule); background: var(--white); border-radius: 10px; padding: clamp(1rem,3vw,1.7rem); display: grid; gap: .85rem; }
.editor label { display: grid; gap: .35rem; }
.editor fieldset { min-width: 0; border: 1px solid var(--rule); display: grid; gap: .45rem; }
.editor input:not([type=checkbox]), .editor textarea, .editor select { width: 100%; min-width: 0; padding: .5rem; min-height: 44px; border: 1px solid #8B9AB0; border-radius: 6px; background: var(--white); color: var(--ink); }
.editor .check { display: flex; align-items: center; }
@media (max-width: 1023px) {
  .research-list, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .menu-toggle { display: inline-flex; }
  .nav nav { flex-basis: 100%; flex-direction: column; align-items: stretch; }
  .nav nav[data-collapsible]:not(.is-open) { display: none; }
  .nav nav a { justify-content: flex-start; }
  .nav nav a:last-child { margin-inline-start: 0; }
  .hero-grid, .detail-grid, .research-list, .cards { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2.15rem, 9.1vw, 4rem); }
  .footer { flex-direction: column; }
  .college-note { border-inline-start: 0; border-top: 1px solid #a9b9d352; padding: 1rem 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .button:hover, .research-row:hover, .card:hover, .research-row:focus-within { transform: none; }
}
