/* Academic reading: ink, paper and a single muted teal accent. */
@media (max-width: 560px) {
  .portfolio-home .film-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
  .portfolio-home .film-tabs button { min-width: 0; justify-content: flex-start; padding-inline: 0; }
  .portfolio-home .film-tabs .film-duration { margin-left: auto; }
}
:root {
  --ink: #203442;
  --muted: #4f626b;
  --subtle: #586b74;
  --accent: #176c67;
  --accent-hover: #104f4c;
  --accent-soft: #e8f2ef;
  --line: #cfdbd9;
  --surface: #f3f6f5;
  --paper: #fff;
  --teal: #27634b;
  --teal-soft: #e7f2e9;
  --amber: #80551d;
  --amber-soft: #fbf0dc;
  --coral: #77594b;
  --on-accent: #fff;
  --profile-bg: #203b47;
  --profile-ink: #f4f8f7;
  --profile-muted: #c6d7d9;
  --profile-link: #b0e8dc;
  --profile-line: #526b74;
  --focus-ring: #176c67;
  --header-height: 76px;
  --radius: 5px;
}
:root[data-reader-theme="dark"] {
  color-scheme: dark;
  --ink: #e7efef;
  --muted: #b5c6cc;
  --subtle: #a6bcc4;
  --accent: #8ad6c7;
  --accent-hover: #bbf0e6;
  --accent-soft: #1d3c3b;
  --line: #3b535d;
  --surface: #162a34;
  --paper: #11222d;
  --teal: #a2dcb5;
  --teal-soft: #253d33;
  --amber: #edce93;
  --amber-soft: #3e3424;
  --coral: #d8baa8;
  --on-accent: #112b28;
  --profile-bg: #1a3540;
  --profile-ink: #f4f8f7;
  --profile-muted: #c6d7d9;
  --profile-link: #b0e8dc;
  --profile-line: #526b74;
  --focus-ring: #8ad6c7;
}
body { font-size: 16px; line-height: 1.85; }
::selection { color: var(--on-accent); background: var(--accent); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 4px; }
.site-header { background: var(--paper); backdrop-filter: none; border-bottom: 1px solid var(--line); }
.header-inner { gap: 25px; }
.brand { font-size: 18px; }
.nav-links { gap: 22px; }
.nav-links a { color: var(--muted); font-size: 14px; padding-block: 25px; }
.nav-links a:hover::after { transform: scaleX(.45); }
.nav-links a[aria-current]::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.language-controls button { height: 44px; min-width: 40px; font-size: 12px; }
.header-controls { gap: 12px; margin-left: 0; }
.menu-toggle { width: 44px; height: 44px; }
.section { padding-block: 64px; }
.section.surface { border-color: var(--line); }
.section-heading { margin-bottom: 31px; }
.section-heading h2 { font-size: 30px; letter-spacing: -.02em; }
.section-heading .section-number, .section-number { font-size: 12px; }
.section-heading > p:not(.section-number), .section-heading .section-intro { font-size: 15px; max-width: 440px; }
.about-section { padding-top: 52px; padding-bottom: 52px; }
.about-grid { grid-template-columns: minmax(0,1fr) 300px; gap: 54px; }
.about-copy h1 { font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif; font-size: 62px; font-weight: 600; line-height: 1.2; letter-spacing: -.03em; margin-bottom: 18px; }
.about-copy h1 > span[lang] { font-size: 27px; color: var(--muted); letter-spacing: 0; }
.about-copy p.intro { max-width: 680px; font-size: 24px; font-weight: 550; line-height: 1.5; text-wrap: balance; margin-bottom: 18px; }
.about-copy > p:not(.intro):not(.section-number) { font-size: 16px; line-height: 1.9; max-width: 720px; }
.about-copy > .section-number { color: var(--accent); font-size: 13px; margin-bottom: 16px; }
.subheading { font-size: 17px; margin-top: 29px; margin-bottom: 15px; }
.interests { gap: 14px; }
.interests li { padding-left: 17px; }
.interests li::before { width: 4px; height: 18px; top: 4px; border-radius: 2px; background: var(--line); }
.interests li strong { font-size: 15px; }
.interests li p { font-size: 14px; line-height: 1.85; }
.admissions-entry { display: flex; flex-wrap: wrap; gap: 10px; border: 0; margin-top: 24px; padding: 0; }
.admissions-entry a { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 150px; min-height: 76px; flex: 1 1 150px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); transition: background .18s ease,border-color .18s ease; }
.admissions-entry strong { display: block; font-size: 14px; }
.admissions-entry a div > span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.admissions-entry a:hover, .admissions-entry a:focus-visible { background: var(--accent-soft); border-color: var(--accent); text-decoration: none; }
.admissions-entry a.primary-material { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.admissions-entry a.primary-material div > span, .admissions-entry a.primary-material > span { color: var(--on-accent); }
.admissions-entry a.primary-material:hover { background: var(--accent-hover); }
.advisor-scan { margin-top: 31px; padding: 24px 26px 26px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--surface); }
.advisor-scan-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .9fr); gap: 6px 24px; align-items: end; margin-bottom: 20px; }
.advisor-scan-heading .section-number { grid-column: 1 / -1; margin: 0; color: var(--accent); }
.advisor-scan-heading h2 { margin: 0; font-size: 22px; line-height: 1.35; letter-spacing: -.015em; }
.advisor-scan-heading > p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.advisor-scan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.advisor-scan-grid article { min-height: 178px; padding: 18px 19px 17px; background: var(--paper); }
.scan-index { display: block; margin-bottom: 10px; color: var(--accent); font: 11px/1.2 Consolas, "SFMono-Regular", monospace; letter-spacing: .12em; }
.advisor-scan-grid h3 { margin: 0 0 8px; font-size: 15px; line-height: 1.45; }
.advisor-scan-grid p { margin: 0 0 13px; color: var(--muted); font-size: 13px; line-height: 1.78; }
.advisor-scan-grid a { display: inline-block; color: var(--accent); font-size: 12px; font-weight: 600; }
.advisor-scan-grid a:hover, .advisor-scan-grid a:focus-visible { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.interest-details { margin-top: 16px; }
.interest-details > summary { color: var(--accent); }
.interest-details .interests { margin-top: 12px; }
.about-grid { align-items: start; }
.profile-aside { padding: 26px; border: 1px solid var(--profile-line); border-radius: 7px; background: var(--profile-bg); color: var(--profile-ink); }
.profile-aside .identity-panel { text-align: left; padding-bottom: 18px; border-color: var(--profile-line); }
.profile-aside .initials { width: 64px; height: 64px; font-size: 31px; margin: 0 0 15px; border: 1px solid var(--profile-line); border-radius: 5px; color: var(--profile-link); background: transparent; }
.profile-aside .initials > span { display: none; }
.profile-aside .identity-name { font-size: 21px; }
.profile-aside .identity-role, .profile-aside .identity-institution { color: var(--profile-muted); font-size: 13px; }
.profile-aside .profile-links { justify-content: start; gap: 4px 14px; margin-top: 15px; }
.profile-aside a, .profile-aside .print-link { color: var(--profile-link); font-size: 13px; min-height: 36px; }
.profile-aside a:focus-visible, .profile-aside button:focus-visible { outline-color: var(--profile-link); }
.profile-aside .profile-links img { filter: brightness(0) invert(1); }
.profile-aside .profile-note { color: var(--profile-muted); font-size: 13px; line-height: 1.9; margin-top: 13px; }
.profile-aside .profile-education-title { font-size: 15px; padding-top: 19px; margin-top: 20px; border-top: 1px solid var(--profile-line); color: var(--profile-ink); }
.profile-aside .education-grid { grid-template-columns: 1fr; gap: 19px; }
.profile-aside .timeline-entry { border-color: var(--profile-line); }
.profile-aside .timeline-entry time { color: var(--profile-link); font-size: 12px; }
.profile-aside .timeline-entry h4 { color: var(--profile-ink); font-size: 14px; }
.profile-aside .timeline-entry p { color: var(--profile-muted); font-size: 12px; }
.filter-bar { gap: 16px; }
.research-filter-bar { flex-wrap: wrap; }
.research-filter-bar .filter-count { margin-left: auto; }
.segmented { gap: 4px; border-color: var(--line); }
.segmented button { min-height: 44px; padding-inline: 15px; font-size: 14px; }
.segmented button[aria-pressed="true"] { color: var(--on-accent); }
.filter-count { font-size: 13px; }
.abstract-toggle { min-height: 44px; background: transparent; color: var(--accent); border: 0; border-bottom: 1px solid var(--line); padding: 7px 4px; font-size: 14px; }
.abstract-toggle:hover { border-color: var(--accent); }
.publication-item { grid-template-columns: 62px minmax(0,1fr); gap: 22px; padding-block: 30px; }
.pub-year { font-size: 14px; }
.pub-meta { font-size: 13px; gap: 10px 16px; }
.status { font-size: 12px; padding: 4px 9px; }
.status[data-tone="neutral"] { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.pub-body h3 { max-width: 900px; font-size: 21px; line-height: 1.6; font-weight: 600; }
.pub-links a, .project-links a { font-size: 14px; min-height: 36px; }
.pub-links { margin-top: 9px; }
details > summary { font-size: 14px; padding-block: 9px; min-height: 44px; }
details p { font-size: 15px; }
.abstract[open] > p { padding-left: 18px; border-left: 2px solid var(--accent); margin-top: 8px; max-width: 850px; }
.source-note, .pub-body .source-note, .project-body .source-note { font-size: 13px; line-height: 1.9; }
.project-routes { gap: 16px; grid-template-columns: repeat(4, minmax(0,1fr)); }
.project-routes a, .project-routes a:nth-child(2), .project-routes a:nth-child(3) { border-top-color: var(--line); }
.project-routes a:hover, .project-routes a:focus-visible { border-color: var(--accent); }
.project-routes strong { font-size: 17px; }
.project-routes a > span, .project-routes a .route-number { font-size: 12px; }
.project-search { width: 290px; border-color: var(--line); }
.project-search input { height: 44px; font-size: 14px; }
.project-search input::placeholder { color: var(--muted); opacity: 1; }
.search-clear { height: 44px; flex-basis: 44px; }
.project-item { grid-template-columns: 270px minmax(0,1fr); gap: 34px; padding-block: 34px; }
.project-item:target { background: var(--accent-soft); box-shadow: inset 3px 0 var(--accent); padding-left: 18px; padding-right: 18px; border-radius: 3px; }
.project-body h3 { font-size: 23px; line-height: 1.5; }
.project-body > p { font-size: 15px; line-height: 1.9; }
.project-meta { font-size: 12px; }
.project-links { gap: 8px 19px; }
.project-links a { font-weight: 500; }
.project-links a:first-child { border-bottom: 1px solid var(--accent); font-weight: 650; }
.tags span { color: var(--muted); background: var(--surface); border: 1px solid var(--line); font-size: 12px; }
.project-media, .archive-preview, .code-preview, .lab-preview, .kapt-preview { background: var(--surface); border-color: var(--line); }
.code-preview pre { color: var(--muted); font-size: 12px; }
.preview-label, .preview-foot { font-size: 11px; }
.project-media figcaption { font-size: 12px; }
.project-media .media-label { color: var(--muted); background: var(--paper); border-color: var(--line); font-size: 11px; }
.file-icon { background: var(--surface); color: var(--coral); border-color: var(--line); }
.file-row strong, .archive-steps, .lab-preview dd, .kapt-preview-route li { font-size: 12px; }
.file-row small { font-size: 11px; }
.verification-strip { border-color: var(--line); }
.verification-strip a { font-size: 13px; min-height: 36px; }
.demo-entry h3 { font-size: 22px; }
.demo-entry-body > p:not(.section-number), .film-copy > p:not(.section-number), .film-takeaways { font-size: 15px; }
.demo-links a, .film-tabs button, .film-copy .project-links a { font-size: 14px; }
.cinema, .film-screen, .film-links, .film-tabs { border-color: var(--line); }
.film-screen { background: #11222d; }
.cinema-heading > p { font-size: 13px; }
.portfolio-home .film-copy .source-note { font-size: 13px !important; }
.experience-grid .timeline-entry h4 { font-size: 17px; }
.experience-grid .timeline-entry p { font-size: 15px; }
.experience-grid .timeline-entry time { font-size: 13px; }
.home-notebook { border-color: var(--line); gap: 38px; }
.home-note-label, .home-note-topic { font-size: 13px; }
.home-note-feature h3 { font-size: 26px; }
.home-note-feature > p { font-size: 15px; }
.home-note-steps { font-size: 14px; }
.home-note-row { grid-template-columns: 108px minmax(0,1fr) 18px; gap: 16px; }
.home-note-row strong { font-size: 15px; }
.home-note-scope { font-size: 13px; }
.note-entry { background: var(--paper); border-color: var(--line); transform: none; transition: border-color .2s,background .2s; }
.note-entry h3 { font-size: 17px; }
.note-entry p { font-size: 14px; }
.note-entry:hover, .note-entry:focus-visible { transform: none; background: var(--accent-soft); border-color: var(--accent); }
.note-entry .note-top .note-number { font-size: 11px; }
.skill-group, .skill-group:nth-child(2), .skill-group:nth-child(3) { border-color: var(--line); }
.skill-group h3 { font-size: 17px; }
.skill-group li { font-size: 14px; }
.site-footer { background: var(--surface); border-color: var(--line); }
.footer-inner { font-size: 12px; }
.back-top, .lightbox, .lightbox-close { background: var(--paper); border-color: var(--line); color: var(--ink); }
.lightbox::backdrop { background: #0a1828cc; }
[data-reader-theme="dark"] .icon-button img { filter: brightness(0) invert(1); }

/* Action feedback; all content remains visible on arrival. */
.js .portfolio-home .reveal-ready { opacity: 1; transform: none; }
.portfolio-home .project-media button:hover img, .portfolio-home .demo-image:hover img { transform: none; }
.home-note-row > span:last-child, .admissions-entry a > span:last-child { transition: transform .2s ease; }
.home-note-row:hover > span:last-child, .home-note-row:focus-visible > span:last-child,
.admissions-entry a:hover > span:last-child, .admissions-entry a:focus-visible > span:last-child { transform: translate(2px,-2px); }
@keyframes reader-result { from { opacity: .6; } to { opacity: 1; } }
.publication-item:not([hidden]), .project-item:not([hidden]) { animation: reader-result .2s ease-out; }

/* The preference disclosure is an ordinary keyboard-accessible panel. */
.reader-settings { position: relative; }
.reader-toggle { display: flex; align-items: center; gap: 7px; min-height: 44px; min-width: 44px; padding: 8px 10px; background: var(--paper); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; font-size: 12px; }
.reader-toggle[aria-expanded="true"], .reader-toggle:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.reader-toggle circle { fill: var(--paper); }
.reader-panel { position: absolute; top: calc(100% + 13px); right: 0; width: 270px; padding: 20px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 10px 30px #102b3b1a; z-index: 45; }
.reader-panel fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.reader-panel legend { padding: 0; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.reader-theme-options { display: flex; gap: 9px; }
.reader-theme-options button { display: flex; align-items: center; justify-content: center; gap: 9px; flex: 1; padding: 8px; min-height: 44px; border: 1px solid var(--line); color: var(--ink); background: var(--paper); border-radius: 4px; font-size: 14px; }
.reader-theme-options button[aria-pressed="true"] { background: var(--accent-soft); border: 2px solid var(--accent); padding: 7px; }
.theme-swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #799192; }
.light-swatch { background: #fff; }
.dark-swatch { background: #11222d; }
.reader-motion { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 17px; font-size: 14px; cursor: pointer; }
.reader-motion input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
#motion-system-note { font-size: 12px; color: var(--muted); line-height: 1.7; }

@media (max-width: 1150px) { .reader-label { display: none; } .nav-links { gap: 17px; } .about-grid { gap: 34px; grid-template-columns: minmax(0,1fr) 280px; } }
@media (max-width: 1000px) {
  .header-inner { position: relative; flex-wrap: wrap; gap: 0 16px; }
  .brand { min-height: var(--header-height); align-items: center; }
  .header-controls { margin-left: auto; }
  .menu-toggle { display: flex; }
  .nav-links { display: none; order: 3; width: 100%; margin-left: 0; gap: 3px 24px; padding: 0 0 14px; flex-wrap: wrap; }
  .site-header[data-open="true"] .nav-links { display: flex; }
  .nav-links a { padding: 9px 0; min-height: 44px; }
  .about-copy h1 { font-size: 53px; }
  .about-copy p.intro { font-size: 22px; }
  .section-heading { grid-template-columns: 1fr; gap: 10px; }
  .section-heading > p:not(.section-number) { max-width: 640px; }
  .project-item { grid-template-columns: 220px minmax(0,1fr); gap: 26px; }
}
@media (max-width: 760px) {
  :root { --header-height: 68px; }
  .wrap { width: calc(100% - 36px); }
  .section { padding-block: 42px; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-copy h1 { font-size: 48px; }
  .about-copy h1 > span[lang] { font-size: 24px; }
  .profile-aside { padding: 24px; }
  .profile-aside .identity-panel { display: grid; grid-template-columns: 66px 1fr; gap: 0 18px; text-align: left; align-items: center; }
  .profile-aside .initials { grid-row: 1/4; margin: 0; }
  .profile-aside .education-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .profile-aside .profile-links { gap: 6px 18px; }
  .advisor-scan { padding: 21px 18px 19px; }
  .advisor-scan-heading { grid-template-columns: 1fr; gap: 6px; }
  .advisor-scan-grid { grid-template-columns: 1fr; }
  .advisor-scan-grid article { min-height: 0; padding: 17px 16px 16px; }
  .section-heading h2 { font-size: 28px; }
  .project-item { grid-template-columns: 1fr; gap: 22px; }
  .project-routes { grid-template-columns: 1fr; gap: 0; }
  .project-routes a { padding-block: 16px; }
  .publication-item { grid-template-columns: 1fr; gap: 9px; }
  .pub-body h3 { font-size: 19px; }
  .segmented { flex-wrap: wrap; }
  .segmented button { font-size: 13px; padding-inline: 12px; }
  .home-notebook { grid-template-columns: 1fr; }
  .home-note-row { grid-template-columns: 95px minmax(0,1fr) 18px; gap: 13px; }
  .home-note-topic { grid-column: auto; }
}
@media (max-width: 480px) {
  .header-controls { gap: 6px; }
  .language-controls button { min-width: 40px; }
  .brand { font-size: 17px; }
  .brand > span { display: none; }
  .reader-panel { right: -50px; width: min(270px, calc(100vw - 36px)); }
  .about-copy h1 { font-size: 46px; }
  .about-copy p.intro { font-size: 21px; }
  .admissions-entry a { min-width: 135px; flex-basis: 135px; padding: 12px; }
  .admissions-entry a.primary-material { flex-basis: 100%; min-height: 65px; }
  .admissions-entry a div > span { font-size: 12px; }
  .profile-aside .education-grid { grid-template-columns: 1fr; }
  .project-body h3 { font-size: 22px; }
  .project-body > p { font-size: 15px; }
  .project-routes strong { font-size: 16px; }
  .home-note-row { grid-template-columns: minmax(0,1fr) 18px; gap: 5px 14px; }
  .home-note-topic { grid-column: 1/-1; }
  .home-note-feature h3 { font-size: 24px; }
  .project-item:target { padding-inline: 12px; }
  .film-tabs button { font-size: 13px; }
  .filter-count { font-size: 12px; }
}
html[data-reader-motion="reduce"] { scroll-behavior: auto; }
[data-reader-motion="reduce"] *, [data-reader-motion="reduce"] *::before, [data-reader-motion="reduce"] *::after { animation: none !important; transition: none !important; }
[data-reader-motion="reduce"] .reveal-ready { opacity: 1 !important; transform: none !important; }
[data-reader-motion="reduce"] .home-note-row > span:last-child, [data-reader-motion="reduce"] .admissions-entry a > span:last-child { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .publication-item:not([hidden]), .project-item:not([hidden]) { animation: none; }
  .home-note-row > span:last-child, .admissions-entry a > span:last-child { transition: none; transform: none !important; }
}
@media print {
  :root, :root[data-reader-theme="dark"] { color-scheme: light; --paper:#fff; --surface:#fff; --ink:#111; --muted:#333; --subtle:#444; --accent:#1a4f50; --line:#bbb; --profile-bg:#fff; --profile-ink:#111; --profile-muted:#333; --profile-link:#111; --profile-line:#bbb; }
  .reader-settings, .abstract-toggle { display: none !important; }
  .profile-aside { background: #fff; color: #111; padding: 14px; }
  .profile-aside .profile-links img { filter: none; }
  .admissions-entry a.primary-material { background: #fff; color: #111; }
  .admissions-entry a.primary-material div > span, .admissions-entry a.primary-material > span { color: #111; }
  .section { padding-block: 20px; }
  .about-copy h1 { font-size: 30pt; }
  .about-copy p.intro { font-size: 13pt; }
  .project-item:target { box-shadow: none; background: #fff; padding-inline: 0; }
  .about-grid { grid-template-columns: minmax(0,1fr) 220px; gap: 25px; }
  .project-item { grid-template-columns: 160px minmax(0,1fr); }
}

/* A single short palette transition accompanies the explicit theme switch. */
html.theme-changing *,
html.theme-changing *::before,
html.theme-changing *::after {
  transition: color .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
html[data-reader-motion="reduce"].theme-changing *,
html[data-reader-motion="reduce"].theme-changing *::before,
html[data-reader-motion="reduce"].theme-changing *::after {
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  html.theme-changing *, html.theme-changing *::before, html.theme-changing *::after {
    transition: none !important;
  }
}
@media print {
  html.theme-changing *, html.theme-changing *::before, html.theme-changing *::after {
    transition: none !important;
  }
}

/* A compact reviewer lens makes evidence limits easy to scan without
   competing with the research records themselves. */
.advisor-checks {
  margin: 30px 0 12px;
  padding: 22px 24px 20px;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--paper);
}
.advisor-checks-heading {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(180px,270px);
  align-items: end;
  gap: 18px 30px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}
.advisor-checks-heading .section-number { margin-bottom: 5px; color: var(--accent); }
.advisor-checks-heading h3 { margin: 0; color: var(--ink); font-size: 20px; line-height: 1.45; font-weight: 620; }
.advisor-checks-heading > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.advisor-check-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 0;
  padding-top: 17px;
}
.advisor-check-grid > article {
  min-width: 0;
  padding: 1px 20px 2px;
  border-inline-start: 1px solid var(--line);
}
.advisor-check-grid > article:first-child { padding-inline-start: 0; border-inline-start: 0; }
.advisor-check-grid > article:last-child { padding-inline-end: 0; }
.advisor-index { display: block; margin-bottom: 8px; color: var(--accent); font: 600 11px/1.4 ui-monospace,Consolas,monospace; letter-spacing: .08em; }
.advisor-check-grid h4 { margin: 0 0 8px; color: var(--ink); font-size: 15px; line-height: 1.55; font-weight: 620; }
.advisor-check-grid article > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.advisor-check-grid article > a { display: inline-flex; align-items: center; min-height: 40px; margin-top: 8px; color: var(--accent); font-size: 12px; line-height: 1.5; text-underline-offset: 3px; }
.advisor-check-grid article > a:hover { color: var(--accent-hover); }
.advisor-check-grid article:focus-within { background: var(--accent-soft); }

/* Small, purposeful feedback for language and result changes. */
@keyframes language-refresh {
  from { opacity: .55; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes filtered-row-in {
  from { opacity: .55; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
body.language-changing .about-copy .intro,
body.language-changing .section-heading h2,
body.language-changing .section-heading > p,
body.language-changing .advisor-checks-heading h3,
body.language-changing .advisor-checks-heading > p {
  animation: language-refresh .28s ease-out both;
}
[data-collection].filter-changing > [data-category]:not([hidden]) {
  animation: filtered-row-in .34s cubic-bezier(.2,.7,.25,1) both;
}
[data-collection].filter-changing > [data-category]:nth-child(2):not([hidden]) { animation-delay: 35ms; }
[data-collection].filter-changing > [data-category]:nth-child(3):not([hidden]) { animation-delay: 70ms; }
[data-collection].filter-changing > [data-category]:nth-child(4):not([hidden]) { animation-delay: 105ms; }
[data-collection].filter-changing > [data-category]:nth-child(n+5):not([hidden]) { animation-delay: 130ms; }

@media (max-width: 760px) {
  .advisor-checks { margin-top: 24px; padding: 19px 18px 17px; }
  .advisor-checks-heading { grid-template-columns: 1fr; align-items: start; gap: 8px; padding-bottom: 14px; }
  .advisor-checks-heading h3 { font-size: 18px; }
  .advisor-check-grid { grid-template-columns: 1fr; padding-top: 3px; }
  .advisor-check-grid > article,
  .advisor-check-grid > article:first-child,
  .advisor-check-grid > article:last-child {
    padding: 15px 0 13px;
    border-inline-start: 0;
    border-bottom: 1px solid var(--line);
  }
  .advisor-check-grid > article:last-child { border-bottom: 0; padding-bottom: 2px; }
  .advisor-check-grid h4 { margin-bottom: 5px; }
}
@media (max-width: 420px) {
  .advisor-checks { padding-inline: 15px; }
  .advisor-checks-heading h3 { font-size: 17px; }
  .advisor-check-grid article > p { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  body.language-changing .about-copy .intro,
  body.language-changing .section-heading h2,
  body.language-changing .section-heading > p,
  body.language-changing .advisor-checks-heading h3,
  body.language-changing .advisor-checks-heading > p,
  [data-collection].filter-changing > [data-category]:not([hidden]) {
    animation: none !important;
  }
}
html[data-reader-motion="reduce"] body.language-changing .about-copy .intro,
html[data-reader-motion="reduce"] body.language-changing .section-heading h2,
html[data-reader-motion="reduce"] body.language-changing .section-heading > p,
html[data-reader-motion="reduce"] body.language-changing .advisor-checks-heading h3,
html[data-reader-motion="reduce"] body.language-changing .advisor-checks-heading > p,
html[data-reader-motion="reduce"] [data-collection].filter-changing > [data-category]:not([hidden]) {
  animation: none !important;
}
@media print {
  .advisor-checks { margin-block: 12px; padding: 12px; background: #fff; border-color: #999; border-inline-start-color: #315b58; break-inside: avoid; }
  .advisor-checks-heading { grid-template-columns: 1fr 220px; gap: 12px; padding-bottom: 8px; }
  .advisor-checks-heading h3 { font-size: 15pt; }
  .advisor-check-grid { grid-template-columns: repeat(3,minmax(0,1fr)); padding-top: 8px; }
  .advisor-check-grid > article,
  .advisor-check-grid > article:first-child,
  .advisor-check-grid > article:last-child { padding: 6px 9px; border-inline-start: 1px solid #bbb; border-bottom: 0; }
  .advisor-check-grid > article:first-child { padding-inline-start: 0; border-inline-start: 0; }
  .advisor-check-grid article > a { min-height: 0; margin-top: 4px; color: #111; }
  body.language-changing .about-copy .intro,
  body.language-changing .section-heading h2,
  body.language-changing .section-heading > p,
  body.language-changing .advisor-checks-heading h3,
  body.language-changing .advisor-checks-heading > p,
  [data-collection].filter-changing > [data-category]:not([hidden]) { animation: none !important; }
}

/* Engineering-first reading layer: make delivery evidence scannable before the project details. */
.engineering-section { background: var(--paper); border-block: 1px solid var(--line); }
.engineering-heading { margin-bottom: 25px; }
.engineering-heading .section-number { color: var(--accent); }
.engineering-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.engineering-card { position: relative; display: flex; flex-direction: column; min-height: 236px; padding: 19px 18px 17px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 4px; background: var(--surface); transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.engineering-card-data { border-top-color: var(--teal); }
.engineering-card-model { border-top-color: var(--amber); }
.engineering-card-release { border-top-color: var(--coral); }
.engineering-card:hover, .engineering-card:focus-within { transform: translateY(-3px); border-color: var(--accent); background: var(--paper); box-shadow: 0 8px 22px rgba(26, 54, 62, .09); }
.engineering-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 21px; }
.engineering-mark { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 7px; border: 1px solid currentColor; border-radius: 3px; color: var(--accent); font: 700 10px/1 ui-monospace, Consolas, monospace; letter-spacing: .09em; }
.engineering-card-data .engineering-mark { color: var(--teal); }
.engineering-card-model .engineering-mark { color: var(--amber); }
.engineering-card-release .engineering-mark { color: var(--coral); }
.engineering-index { color: var(--subtle); font: 600 11px/1 ui-monospace, Consolas, monospace; }
.engineering-card h3 { margin-bottom: 9px; color: var(--ink); font-size: 17px; line-height: 1.45; }
.engineering-card p { flex: 1; min-height: 95px; color: var(--muted); font-size: 13px; line-height: 1.78; }
.engineering-card a { display: inline-flex; align-self: flex-start; align-items: center; min-height: 36px; margin-top: 12px; color: var(--accent); font-size: 12px; font-weight: 650; text-underline-offset: 4px; }
.engineering-card a:hover { color: var(--accent-hover); }
.engineering-loop { display: grid; grid-template-columns: minmax(210px, .7fr) minmax(0, 1.8fr); gap: 24px; align-items: stretch; margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.engineering-loop-label { display: grid; align-content: center; gap: 4px; border-inline-end: 1px solid var(--line); padding-inline-end: 22px; }
.engineering-loop-label .section-number { color: var(--accent); }
.engineering-loop-label strong { color: var(--ink); font-size: 15px; line-height: 1.55; }
.engineering-loop-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.engineering-loop-steps li { position: relative; display: grid; align-content: center; gap: 3px; min-width: 0; padding-inline-start: 13px; border-inline-start: 2px solid var(--line); }
.engineering-loop-steps li::after { position: absolute; top: 50%; right: -8px; width: 12px; height: 1px; background: var(--line); content: ""; }
.engineering-loop-steps li:last-child::after { display: none; }
.engineering-loop-steps span { color: var(--accent); font: 600 10px/1.2 ui-monospace, Consolas, monospace; }
.engineering-loop-steps strong { color: var(--ink); font-size: 13px; line-height: 1.4; }
.engineering-loop-steps small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.preview-note { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.65; }

/* Learning desk: a quiet editorial margin and a browsable reading list. */
.learning-update { display: flex; flex-wrap: wrap; gap: 3px 14px; margin-top: 23px; padding: 14px 0; border-block: 1px solid var(--line); font-size: 13px; }
.learning-update strong { color: var(--muted); font-weight: 500; }
.learning-update a { min-height: 32px; display: inline-flex; align-items: center; gap: 8px; }
.learning-desk { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.5fr); gap: 44px; align-items: start; border-top: 1px solid var(--line); padding-top: 28px; }
.learning-feature { padding: 27px; background: var(--accent-soft); border-top: 3px solid var(--accent); }
.learning-edition { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--accent); font: 12px/1.6 Consolas, monospace; margin-bottom: 30px; }
.learning-feature h3 { font: 500 clamp(29px,3vw,39px)/1.38 Georgia, "Songti SC", "SimSun", serif; text-wrap: balance; margin-bottom: 19px; }
.learning-feature > p:not(.learning-edition):not(.learning-feature-foot) { color: var(--muted); font-size: 14px; line-height: 1.9; }
.learning-process { list-style: none; padding: 0; margin: 26px 0; }
.learning-process li { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.learning-process li > span:first-child { color: var(--accent); font: 12px Consolas, monospace; }
.learning-all { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 48px; font-weight: 600; font-size: 15px; }
.learning-feature-foot { font-size: 12px; color: var(--muted); margin-top: 7px; }
.learning-library { min-width: 0; }
.learning-tabs { display: flex; flex-wrap: wrap; gap: 4px 15px; border-bottom: 1px solid var(--line); }
.learning-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 10px 0; min-height: 44px; color: var(--muted); font: inherit; font-size: 13px; transition: color .18s,border-color .18s; }
.learning-tabs button[aria-pressed="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 650; }
.learning-tabs button:hover { color: var(--accent); }
[data-desk-count] { font-size: 12px; color: var(--muted); margin: 11px 0 0; min-height: 24px; }
.learning-entry { padding: 23px 0; border-bottom: 1px solid var(--line); }
.learning-entry[hidden] { display: none; }
.learning-entry-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--accent); font-size: 12px; margin-bottom: 8px; }
.learning-entry-meta time { color: var(--muted); font-family: Consolas, monospace; white-space: nowrap; }
.learning-entry h3 { font-size: 19px; font-weight: 600; line-height: 1.55; margin-bottom: 9px; }
.learning-entry h3 a { display: flex; justify-content: space-between; gap: 20px; color: var(--ink); }
.learning-entry h3 a:hover { color: var(--accent); text-decoration: none; }
.learning-arrow { color: var(--accent); flex-shrink: 0; transition: transform .2s; }
.learning-entry a:is(:hover,:focus-visible) .learning-arrow { transform: translate(3px,-3px); }
.learning-entry > p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.learning-entry-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; font-size: 11px; color: var(--subtle); }
@keyframes learning-appear { from { opacity: .55; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.js .learning-entry:not([hidden]) { animation: learning-appear .22s ease-out; }
@media (max-width: 1000px) { .learning-desk { gap: 26px; grid-template-columns: minmax(0,.8fr) minmax(0,1.3fr); } .learning-feature { padding: 22px; } }
@media (max-width: 760px) {
  .learning-desk { grid-template-columns: 1fr; gap: 26px; }
  .learning-edition { margin-bottom: 18px; }
  .learning-feature h3 { font-size: 30px; }
  .learning-process { display: flex; flex-wrap: wrap; gap: 0 20px; margin-block: 12px; }
  .learning-process li { gap: 8px; border: 0; font-size: 12px; padding-block: 7px; }
  .learning-entry { padding-block: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .learning-entry:not([hidden]) { animation: none; }
  .learning-arrow, .learning-tabs button { transition: none; transform: none !important; }
}
html[data-reader-motion="reduce"] .learning-entry { animation: none; }
html[data-reader-motion="reduce"] .learning-arrow { transition: none; transform: none !important; }
@media print {
  .learning-update, .learning-toolbar { display: none !important; }
  .learning-desk { display: block; }
  .learning-feature { padding: 16px; background: #fff; color: #111; }
  .learning-entry, .learning-entry[hidden] { display: block !important; break-inside: avoid; animation: none !important; }
}
@media (max-width: 1000px) {
  .engineering-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .engineering-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engineering-card { min-height: 0; }
  .engineering-card p { min-height: 0; }
  .engineering-loop { grid-template-columns: 1fr; gap: 14px; }
  .engineering-loop-label { border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; }
}
@media (max-width: 480px) {
  .engineering-grid { grid-template-columns: 1fr; }
  .engineering-card { padding: 16px 15px 14px; }
  .engineering-card-top { margin-bottom: 14px; }
  .engineering-loop { padding: 15px; }
  .engineering-loop-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .engineering-loop-steps li::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .engineering-card { transition: none; transform: none !important; }
}
html[data-reader-motion="reduce"] .engineering-card { transform: none !important; }
@media print {
  .engineering-section { background: #fff; }
  .engineering-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engineering-card { min-height: 0; padding: 12px; background: #fff; box-shadow: none; break-inside: avoid; transform: none !important; }
  .engineering-card p { min-height: 0; }
  .engineering-card-top { margin-bottom: 10px; }
  .engineering-loop { grid-template-columns: 1fr; background: #fff; break-inside: avoid; }
  .engineering-loop-label { border-inline-end: 0; padding-inline-end: 0; }
}

/* Highlights carousel: a quiet editorial stage for the evidence that deserves an early look. */
.highlight-section { background: var(--paper); }
.highlight-heading { margin-bottom: 27px; }
.highlight-carousel { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #142d36; color: #f5fbfa; box-shadow: 0 18px 48px rgba(24, 54, 62, .12); }
.highlight-viewport { position: relative; }
.highlight-slide { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 38px; align-items: stretch; min-height: 365px; min-width: 0; padding: 42px 46px 37px; }
.highlight-carousel[data-enhanced] .highlight-viewport { display: grid; }
.highlight-carousel[data-enhanced] .highlight-slide { grid-area: 1 / 1; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.highlight-carousel[data-enhanced] .highlight-slide.is-active { visibility: visible; opacity: 1; pointer-events: auto; }
.highlight-carousel:not([data-enhanced]) .highlight-slide + .highlight-slide { border-top: 1px solid #526b74; }
.highlight-controls[hidden] { display: none; }
.highlight-evidence { padding-left: 12px; border-left: 2px solid #88cfc2; font-size: 12px !important; line-height: 1.6 !important; }
.highlight-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; max-width: 560px; }
.highlight-kicker { margin-bottom: 13px; color: #8ad6c7; font: 12px/1.4 Consolas, "SFMono-Regular", monospace; letter-spacing: .14em; }
.highlight-copy h3 { max-width: 550px; margin-bottom: 15px; color: #f5fbfa; font: 500 clamp(29px, 3.2vw, 46px)/1.14 Georgia, "Songti SC", "SimSun", serif; letter-spacing: -.025em; text-wrap: balance; }
.highlight-copy > p:not(.highlight-kicker) { max-width: 530px; margin-bottom: 24px; color: #c9d9d8; font-size: 15px; line-height: 1.85; }
.highlight-copy > a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 9px 15px; border: 1px solid rgba(138, 214, 199, .65); color: #e9fffa; font-size: 14px; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.highlight-copy > a:hover, .highlight-copy > a:focus-visible { background: #246056; border-color: #b0e8dc; color: #fff; text-decoration: none; transform: translateY(-2px); }
.highlight-visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 280px; padding: 21px 22px 18px; overflow: hidden; border: 1px solid rgba(176, 232, 220, .3); background: #1b3b44; }
.highlight-visual::before { position: absolute; width: 220px; height: 220px; border: 1px solid rgba(176, 232, 220, .16); border-radius: 50%; content: ""; right: -46px; top: -60px; }
.highlight-visual::after { position: absolute; width: 120px; height: 120px; border: 1px solid rgba(176, 232, 220, .12); border-radius: 50%; content: ""; right: 25px; top: 0; }
.visual-caption { position: relative; z-index: 1; color: #88cfc2; font: 11px/1.4 Consolas, monospace; letter-spacing: .12em; }
.visual-foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 7px 16px; color: #9ab6b5; font: 11px/1.4 Consolas, monospace; text-transform: uppercase; }
.visual-foot span::before { content: "/ "; color: #67bfb0; }
.audit-orbit { position: relative; display: grid; place-items: center; width: 185px; height: 185px; margin: 4px auto 0; border: 1px dashed rgba(176, 232, 220, .58); border-radius: 50%; }
.audit-orbit::before, .audit-orbit::after { position: absolute; inset: 22px; border: 1px solid rgba(176, 232, 220, .28); border-radius: 50%; content: ""; }
.audit-orbit::after { inset: 58px; border-color: rgba(239, 198, 128, .42); }
.audit-orbit::before { border-style: dashed; animation: highlight-orbit 14s linear infinite; }
.orbit-core { position: relative; z-index: 2; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #b0e8dc; color: #14313a; font: 650 23px/1 Consolas, monospace; box-shadow: 0 0 0 8px rgba(176, 232, 220, .12); }
.orbit-label { position: absolute; z-index: 3; padding: 4px 7px; background: #1b3b44; color: #cfe8e4; font: 11px/1.2 Consolas, monospace; }
.orbit-label--top { top: 4px; left: 50%; transform: translateX(-50%); }
.orbit-label--right { top: 50%; right: -17px; transform: translateY(-50%); }
.orbit-label--bottom { bottom: 4px; left: 50%; transform: translateX(-50%); }
.orbit-label--left { top: 50%; left: -26px; transform: translateY(-50%); }
.delivery-metric { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 13px; margin: 14px 0 0; }
.delivery-metric strong { color: #f8dca4; font: 500 clamp(27px, 3vw, 42px)/1 Consolas, monospace; letter-spacing: -.06em; }
.delivery-metric span { color: #c9d9d8; font-size: 12px; }
.delivery-rail { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; margin-top: 20px; }
.delivery-rail::before { position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: rgba(176, 232, 220, .45); content: ""; }
.delivery-rail i { position: relative; z-index: 1; display: block; width: 11px; height: 11px; border: 2px solid #b0e8dc; border-radius: 50%; background: #1b3b44; animation: highlight-pulse 2.4s ease-in-out infinite; }
.delivery-rail i:nth-child(2) { animation-delay: .18s; }.delivery-rail i:nth-child(3) { animation-delay: .36s; }.delivery-rail i:nth-child(4) { animation-delay: .54s; }.delivery-rail i:nth-child(5) { animation-delay: .72s; }
.quality-flow { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 32px; }
.flow-node { display: grid; place-items: center; width: 68px; height: 68px; border: 1px solid rgba(176, 232, 220, .65); border-radius: 50%; font: 650 23px/1 Consolas, monospace; }
.flow-node--input { color: #f8dca4; background: rgba(128, 85, 29, .22); }
.flow-node--kept { color: #b0e8dc; background: rgba(39, 99, 75, .32); }
.flow-node--hold { color: #f1b9a3; background: rgba(119, 89, 75, .33); }
.flow-line { position: relative; color: #b0e8dc; font: 20px/1 Consolas, monospace; }
.flow-line--split { color: #efc680; }
.quality-legend { position: relative; z-index: 1; display: flex; justify-content: center; gap: 18px; margin-top: 20px; color: #c9d9d8; font: 11px/1.4 Consolas, monospace; }
.legend-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #b0e8dc; }.legend-dot--hold { background: #efc680; }
.review-stack { position: relative; z-index: 1; display: grid; gap: 9px; width: min(255px, 100%); margin: 24px auto 0; }
.review-stack span { display: flex; align-items: center; justify-content: space-between; min-height: 35px; padding: 7px 12px; border: 1px solid rgba(176, 232, 220, .32); color: #c9d9d8; font: 12px/1.3 Consolas, monospace; text-transform: uppercase; }
.review-stack span::after { color: #75bdb0; content: "·"; }.review-stack-active { border-color: #f0d29b !important; background: rgba(128, 85, 29, .24); color: #f9e5bf !important; }
.review-seal { position: absolute; z-index: 1; right: 27px; top: 78px; display: grid; place-items: center; width: 78px; height: 78px; border: 1px solid #b0e8dc; border-radius: 50%; color: #b0e8dc; font: 12px/1.2 Consolas, monospace; letter-spacing: .08em; text-align: center; transform: rotate(9deg); }
.review-seal small { color: #f8dca4; font-size: 9px; }
.highlight-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 68px; padding: 10px 20px; border-bottom: 1px solid rgba(176, 232, 220, .22); background: rgba(10, 28, 34, .34); }
.highlight-rotation { min-height: 44px; padding: 8px 12px; margin-right: auto; color: #e9fffa; border: 1px solid #526b74; border-radius: 4px; background: transparent; font-size: 13px; }
.highlight-rotation:disabled { color: #c9d9d8; cursor: default; }
.highlight-controls button:focus-visible { outline-color: #b0e8dc; }
.highlight-arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(176, 232, 220, .42); border-radius: 50%; background: transparent; color: #d8eeea; font-size: 20px; line-height: 1; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.highlight-arrow:hover, .highlight-arrow:focus-visible { border-color: #b0e8dc; background: #246056; transform: translateY(-2px); }
.highlight-dots { display: flex; align-items: center; gap: 8px; }
.highlight-dots button { display: grid; place-items: center; width: 36px; height: 44px; border: 0; background: transparent; }
.highlight-dots button span { display: block; width: 7px; height: 7px; border: 1px solid #8abfb5; border-radius: 50%; transition: width .25s ease, border-color .25s ease, background .25s ease; }
.highlight-dots button[aria-selected="true"] span { width: 23px; border-color: #b0e8dc; border-radius: 8px; background: #b0e8dc; }
.highlight-status { margin-left: auto; color: #9ab6b5; font: 12px/1.4 Consolas, monospace; letter-spacing: .08em; white-space: nowrap; }
.audit-orbit::before, .delivery-rail i { animation-play-state: paused; }
.highlight-carousel[data-rotation="running"] .is-active .audit-orbit::before,
.highlight-carousel[data-rotation="running"] .is-active .delivery-rail i { animation-play-state: running; }
@keyframes highlight-orbit { to { transform: rotate(360deg); } }
@keyframes highlight-pulse { 0%,100% { transform: scale(.86); opacity: .65; } 50% { transform: scale(1.2); opacity: 1; } }
@keyframes highlight-rise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
.highlight-slide.is-active .highlight-copy > * { animation: highlight-rise .55s ease both; }
.highlight-slide.is-active .highlight-copy > *:nth-child(2) { animation-delay: .06s; }.highlight-slide.is-active .highlight-copy > *:nth-child(3) { animation-delay: .12s; }.highlight-slide.is-active .highlight-copy > *:nth-child(4) { animation-delay: .18s; }
@media (max-width: 850px) {
  .highlight-slide { grid-template-columns: 1fr; gap: 24px; padding: 33px 28px 28px; }
  .highlight-viewport, .highlight-slide { min-height: 0; }
  .highlight-visual { min-height: 240px; }
}
@media (max-width: 520px) {
  .highlight-carousel { border-radius: 5px; }
  .highlight-slide { padding: 27px 20px 23px; }
  .highlight-viewport, .highlight-slide { min-height: 0; }
  .highlight-copy h3 { font-size: clamp(26px, 7vw, 31px); }
  .highlight-copy > p:not(.highlight-kicker) { font-size: 14px; }
  .highlight-controls { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; padding-inline: 12px; }
  .highlight-controls[hidden] { display: none; }
  .highlight-rotation { grid-column: 1 / 3; grid-row: 1; }
  .highlight-status { grid-column: 3; grid-row: 1; }
  .highlight-controls [data-highlight-prev] { grid-column: 1; grid-row: 2; }
  .highlight-dots { grid-column: 2; grid-row: 2; gap: 0; justify-content: center; }
  .highlight-controls [data-highlight-next] { grid-column: 3; grid-row: 2; }
  .highlight-status { font-size: 11px; letter-spacing: 0; }
  .review-seal { right: 18px; top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .audit-orbit::before { animation: none !important; }
  .highlight-slide, .highlight-copy > *, .highlight-arrow, .highlight-dots button span, .audit-orbit, .delivery-rail i { animation: none !important; transition: none !important; transform: none !important; }
}
html[data-reader-motion="reduce"] .audit-orbit::before { animation: none !important; }
html[data-reader-motion="reduce"] .highlight-slide, html[data-reader-motion="reduce"] .highlight-copy > *, html[data-reader-motion="reduce"] .highlight-arrow, html[data-reader-motion="reduce"] .highlight-dots button span, html[data-reader-motion="reduce"] .audit-orbit, html[data-reader-motion="reduce"] .delivery-rail i { animation: none !important; transition: none !important; transform: none !important; }

/* October 2026 advisor pass: stronger wayfinding and runnable demo cards. */
:root {
  --accent: #155fd1;
  --accent-hover: #0b429b;
  --accent-soft: #eaf2ff;
  --line: #c8d5e6;
  --surface: #f5f8fc;
  --teal: #08736b;
  --teal-soft: #e5f7f4;
  --amber: #925200;
  --amber-soft: #fff3dc;
  --coral: #aa4438;
  --focus-ring: #155fd1;
  --profile-bg: #172f51;
  --profile-link: #b9d8ff;
  --profile-line: #496787;
}
:root[data-reader-theme="dark"] {
  --accent: #79b0ff;
  --accent-hover: #a9ccff;
  --accent-soft: #20395d;
  --line: #3c5878;
  --surface: #152a43;
  --teal: #7ed8ce;
  --teal-soft: #1c4241;
  --amber: #f1c16e;
  --amber-soft: #483722;
  --coral: #f0a494;
  --focus-ring: #9bc5ff;
  --profile-bg: #132946;
  --profile-link: #b9d8ff;
  --profile-line: #496787;
}
.about-section { position: relative; overflow: hidden; background: radial-gradient(circle at 8% 12%, color-mix(in srgb, var(--accent-soft) 74%, transparent), transparent 35%), var(--paper); }
.about-section::after { position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent), var(--teal), var(--amber)); content: ""; }
.about-copy p.intro { color: var(--accent); }
.hero-signal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 27px; border: 1px solid var(--line); background: var(--line); }
.hero-signal > div { min-height: 116px; padding: 15px 16px 14px; background: color-mix(in srgb, var(--paper) 88%, var(--accent-soft)); transition: background .2s ease, transform .2s ease; }
.hero-signal > div:hover, .hero-signal > div:focus-within { background: var(--accent-soft); transform: translateY(-3px); }
.hero-signal-index { display: block; margin-bottom: 10px; color: var(--accent); font: 700 11px/1 ui-monospace, Consolas, monospace; letter-spacing: .12em; }
.hero-signal strong { display: block; color: var(--ink); font-size: 15px; }
.hero-signal p { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.project-routes a:nth-child(3n+1) { border-top-color: var(--accent); }
.project-routes a:nth-child(3n+2) { border-top-color: var(--teal); }
.project-routes a:nth-child(3n) { border-top-color: var(--amber); }
.demo-entry { position: relative; overflow: hidden; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 6px; background: var(--paper); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.demo-entry:nth-child(3n+2) { border-top-color: var(--teal); }
.demo-entry:nth-child(3n) { border-top-color: var(--amber); }
.demo-entry:hover, .demo-entry:focus-within { border-color: var(--accent); box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 16%, transparent); transform: translateY(-4px); }
.demo-entry .demo-image { border: 0; border-radius: 0; }
.portfolio-home .demo-image img { transition: transform .35s cubic-bezier(.2,.7,.25,1), filter .35s ease; }
.portfolio-home .demo-entry:hover .demo-image img, .portfolio-home .demo-entry:focus-within .demo-image img { transform: scale(1.035); filter: saturate(1.08) contrast(1.02); }
.demo-entry-body { padding-inline: 18px; }
.demo-proof { display: inline-flex; margin: 12px 0 2px; padding: 4px 8px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 999px; color: var(--accent); background: var(--accent-soft); font: 11px/1.4 ui-monospace, Consolas, monospace; }
.demo-entry:nth-child(3n+2) .demo-proof { color: var(--teal); background: var(--teal-soft); border-color: color-mix(in srgb, var(--teal) 35%, var(--line)); }
.demo-entry:nth-child(3n) .demo-proof { color: var(--amber); background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 35%, var(--line)); }
.demo-section-footer { align-items: center; }
.demo-section-footer > span { max-width: 420px; color: var(--muted); line-height: 1.6; }
@media (max-width: 760px) {
  .hero-signal { grid-template-columns: 1fr; }
  .hero-signal > div { min-height: 0; }
  .demo-entry { border-radius: 4px; }
  .demo-entry-body { padding-inline: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-signal > div, .demo-entry, .portfolio-home .demo-image img { transition: none; transform: none !important; }
}
html[data-reader-motion="reduce"] .hero-signal > div, html[data-reader-motion="reduce"] .demo-entry, html[data-reader-motion="reduce"] .portfolio-home .demo-image img { transition: none; transform: none !important; }
@media print {
  .highlight-carousel { color: #111; background: #fff; box-shadow: none; }
  .highlight-viewport { min-height: 0; }
  .highlight-carousel[data-enhanced] .highlight-viewport { display: block; }
  .highlight-carousel[data-enhanced] .highlight-slide, .highlight-slide { display: block; visibility: visible; min-height: 0; padding: 15px 0; opacity: 1; page-break-inside: avoid; }
  .highlight-visual, .highlight-controls { display: none; }
  .highlight-copy h3, .highlight-copy > p:not(.highlight-kicker) { color: #111; }
}

/* Frontend review: shorter entry paths and predictable progressive disclosure. */
.portfolio-home .admissions-entry { margin-top: 24px; }
.hero-capabilities { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0; color: var(--muted); font-size: 13px; }
.hero-capabilities span { display: inline-flex; align-items: center; gap: 8px; }
.hero-capabilities span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.research-updates { display: grid; gap: 8px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; }
.research-updates .updates-label { color: var(--muted); font-size: 12px; margin: 0 0 3px; }
.research-updates a { width: fit-content; font-size: 14px; padding-block: 4px; }
.overview-disclosure { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.overview-disclosure > summary,.project-directory > summary { cursor: pointer; padding: 14px 18px; font-size: 14px; font-weight: 600; color: var(--accent); }
.overview-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
.overview-disclosure .advisor-scan { margin-top: 0; border: 0; }
.project-directory { margin: 0 0 24px; border-block: 1px solid var(--line); }
.project-directory > summary { padding-inline: 0; }
.project-directory .project-routes { margin-bottom: 20px; }
.project-expansion { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 26px; margin-top: 20px; border-top: 1px solid var(--line); }
.project-expansion p { color: var(--muted); font-size: 13px; }
.project-expansion button { flex-shrink: 0; min-height: 44px; border: 1px solid var(--accent); border-radius: 4px; padding: 10px 18px; color: var(--accent); background: var(--paper); }
.project-expansion button:hover { background: var(--accent-soft); }
.learning-feature-links { display: grid; gap: 12px; margin-top: 22px; }
.learning-feature-links .text-link { display: block; width: fit-content; margin: 0; font-size: 14px; line-height: 1.7; text-decoration: underline; text-decoration-thickness: 1px; }
.home-note-search { margin-top: 22px; }
.home-note-search label { display: block; color: var(--ink); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.home-note-search > div { display: flex; min-width: 0; }
.home-note-search input { width: 100%; min-width: 0; min-height: 46px; border: 1px solid var(--line); border-radius: 4px 0 0 4px; padding: 10px 12px; font: inherit; font-size: 14px; background: var(--paper); color: var(--ink); }
.home-note-search input::placeholder { color: var(--muted); opacity: 1; }
.home-note-search button { flex-shrink: 0; border: 1px solid var(--accent); border-radius: 0 4px 4px 0; padding: 8px 14px; background: var(--accent); color: var(--on-accent); font-size: 14px; }
.portfolio-home .project-body > p { max-width: 75ch; }
.portfolio-home .project-item:target { scroll-margin-top: calc(var(--header-height) + 24px); }
.portfolio-home .project-media img { background: var(--surface); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .admissions-entry a,.home-note-search button,.project-expansion button { transition: background .18s ease, border-color .18s ease; }
}
@media (max-width: 760px) {
  .portfolio-home .about-section { padding-top: 34px; padding-bottom: 30px; }
  .portfolio-home .about-copy h1 { margin-bottom: 14px; }
  .portfolio-home .admissions-entry { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
  .portfolio-home .admissions-entry .primary-material { grid-column: 1 / -1; }
  .portfolio-home .admissions-entry a { min-width: 0; min-height: 65px; padding: 12px; gap: 8px; }
  .portfolio-home .admissions-entry strong { font-size: 14px; }
  .portfolio-home .admissions-entry a div > span { font-size: 12px; }
  .hero-capabilities { gap: 7px 15px; font-size: 12px; margin-block: 19px; }
  .portfolio-home .profile-aside { padding: 22px; }
  .portfolio-home .profile-aside .profile-education-title { margin-top: 16px; padding-top: 14px; }
  .portfolio-home .profile-aside .education-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .project-expansion { flex-direction: column; align-items: stretch; gap: 13px; }
  .project-expansion button { align-self: start; }
  .portfolio-home .learning-feature { padding: 22px; }
  .portfolio-home .learning-feature h3 { font-size: 27px; margin-bottom: 14px; }
  .portfolio-home .learning-tabs { gap: 0 8px; }
  .portfolio-home .learning-tabs button { padding: 10px 5px; min-height: 44px; }
  .portfolio-home .section { padding-block: 42px; }
}
@media (max-width: 360px) {
  .portfolio-home .profile-aside .education-grid { grid-template-columns: 1fr; }
  .home-note-search button { padding-inline: 10px; }
}
@media print {
  .project-expansion,.home-note-search { display: none !important; }
  .overview-disclosure,.project-directory { border: 0; }
  .overview-disclosure > summary,.project-directory > summary { display: none; }
}
