/* Prince Frederick Kwao — multi-page personal academic website.
   Plain CSS + HTML: nothing here requires a framework or paid hosting. */
:root {
  --bg: #111923;
  --panel: #192632;
  --panel-soft: #15212c;
  --text: #f3f0eb;
  --muted: #b6c0c9;
  --subtle: #95a3ae;
  --accent: #79C9C5;
  --accent-ink: #0e1924;
  --border: rgba(230, 233, 235, .16);
  --max: 1060px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
:root[data-theme="light"] {
  --bg: #fbfaf7;
  --panel: #fff;
  --panel-soft: #f4f2ed;
  --text: #202e3b;
  --muted: #4c5a65;
  --subtle: #63727e;
  --accent: #126B70;
  --accent-ink: #fff;
  --border: rgba(35, 50, 64, .15);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { background: var(--bg); color: var(--text); font: 15px/1.75 var(--sans); margin: 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { overflow-wrap: normal; word-break: normal; -webkit-hyphens: none; hyphens: none; }
h1, h2, h3 { text-wrap: balance; }
:where(a,button):focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.container { width: min(calc(100% - 56px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 8px 13px; background: var(--accent); color: var(--accent-ink); z-index: 50; }
.skip-link:focus { top: 14px; }

/* Shared sticky header and navigation. */
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--border); background: var(--bg); }
@supports (backdrop-filter: blur(12px)) { .site-header { background: color-mix(in srgb, var(--bg) 95%, transparent); backdrop-filter: blur(12px); } }
.header-inner { min-height: 77px; display: flex; align-items: center; gap: 22px; }
.site-name { font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: -.045em; white-space: nowrap; }
.site-nav { display: flex; gap: clamp(14px, 2.1vw, 29px); align-items: center; margin-left: auto; }
.site-nav a { color: var(--muted); font-size: 12.7px; font-weight: 570; white-space: nowrap; padding: 8px 0; position: relative; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a[aria-current="page"]::after { position: absolute; content: ""; height: 1px; background: var(--accent); bottom: 4px; left: 0; right: 0; }
.header-controls { display: flex; align-items: center; }
.mobile-menu-toggle { display: none; }
.icon-button { display: grid; place-items: center; height: 37px; width: 37px; background: none; color: var(--muted); border: 1px solid transparent; border-radius: 50%; cursor: pointer; }
.icon-button:hover { background: var(--panel); color: var(--accent); }
.icon-button svg { width: 20px; height: 20px; }
:root[data-theme="light"] .sun-icon, :root[data-theme="dark"] .moon-icon { display: none; }

/* Shared type and links */
.eyebrow { margin: 0 0 13px; color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .10em; }
.text-arrow, .quiet-link { display: inline-block; color: var(--accent); font-size: 13px; font-weight: 650; }
.text-arrow:hover, .quiet-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.text-arrow span, .quiet-link span { padding-left: 4px; }
/* Align long-form copy on both edges without stretching labels and captions. */
.home-hero-summary, .home-hero-affiliation, .home-research-card p,
.page-lead, .research-feature p:not(.feature-number), .paper-description,
.teaching-list p:not(.eyebrow) {
  text-align: justify;
  text-justify: inter-word;
}

/* Home profile */
.hero { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; min-height: calc(100vh - 145px); min-height: calc(100svh - 145px); padding-top: 70px; padding-bottom: 80px; text-align: center; }
.hero-photo { width: clamp(250px, 27vw, 320px); }
.hero-photo img { display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); }
.hero-content { max-width: 760px; }
.hero .eyebrow { margin-bottom: 13px; }
.hero h1 { font: 400 clamp(48px, 6.5vw, 78px)/1.08 var(--serif); letter-spacing: -.05em; margin: 0 0 20px; }
.hero h1 span { color: var(--accent); }
.hero-summary { margin: 0 auto; max-width: 660px; color: var(--muted); font-size: clamp(15px, 1.7vw, 17px); line-height: 1.75; }
.hero-roles { margin: 16px 0 0; color: var(--accent); font-size: 12px; font-weight: 650; letter-spacing: .025em; }
.method-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 20px; }
.method-tags span { padding: 4px 10px; border: 1px solid var(--border); border-radius: 3px; color: var(--muted); font-size: 11px; }
.profile-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.profile-links a { padding: 8px 15px; color: var(--accent); font-size: 12px; font-weight: 650; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-soft); }
.profile-links a:hover { border-color: var(--accent); background: var(--panel); }
.compact-section { border-top: 1px solid var(--border); padding: 49px 0 57px; }
.compact-header { display: flex; align-items: baseline; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.compact-header h2 { font: 400 clamp(27px, 3.2vw, 36px)/1.2 var(--serif); letter-spacing: -.034em; margin: 0; }
.highlight-list { border-top: 1px solid var(--border); }
.highlight-list a { display: grid; grid-template-columns: 160px minmax(0,1fr) 24px; gap: 28px; align-items: baseline; padding: 19px 0; border-bottom: 1px solid var(--border); }
.highlight-meta { font-size: 12px; color: var(--subtle); }
.highlight-list strong { font: 400 clamp(16px, 1.7vw, 19px)/1.4 var(--serif); letter-spacing: -.012em; }
.highlight-arrow { justify-self: end; color: var(--accent); }
.highlight-list a:hover strong { color: var(--accent); }
.home-photos { padding-bottom: 72px; }
.preview-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.preview-card { min-width: 0; }
.preview-card img { aspect-ratio: 3/2; width: 100%; height: auto; object-fit: cover; border: 1px solid var(--border); border-radius: 5px; }
.preview-card > span { display: flex; justify-content: space-between; padding: 9px 1px; font-size: 12px; color: var(--muted); }
.preview-card > span span { color: var(--accent); }
.preview-card:hover > span { color: var(--accent); }

/* Interior pages. Clear separation from homepage. */
.page-hero { padding-top: 84px; padding-bottom: 48px; border-bottom: 1px solid var(--border); }
.page-hero h1 { margin: 0 0 17px; max-width: 980px; font: 400 clamp(45px, 6vw, 74px)/1.15 var(--serif); letter-spacing: -.045em; }
.page-lead { margin: 0; max-width: 780px; color: var(--muted); font-size: clamp(15px, 1.8vw, 18px); line-height: 1.72; }
.page-hero .text-arrow { margin-top: 22px; }
.page-content { padding-top: 12px; padding-bottom: 46px; }
.research-feature { display: grid; grid-template-columns: 285px minmax(0,1fr); gap: 44px; align-items: start; border-bottom: 1px solid var(--border); padding: 47px 0; scroll-margin-top: 110px; }
.research-feature > img { display: block; width: 100%; height: auto; aspect-ratio: 620/380; object-fit: cover; background: var(--panel); border: 1px solid var(--border); border-radius: 5px; }
.feature-number { margin: 0 0 9px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.research-feature h2 { margin: 0 0 15px; font: 400 clamp(26px, 3vw, 33px)/1.25 var(--serif); letter-spacing: -.029em; }
.research-feature p:not(.feature-number) { margin: 0 0 13px; max-width: 690px; color: var(--muted); line-height: 1.75; font-size: 14px; }
.research-feature .method-tags { margin: 19px 0 14px; }
.research-feature .text-arrow + .text-arrow { margin-left: 18px; }
/* Publication list */
.paper-list { padding: 0; margin: 0; list-style: none; }
.paper-list li { display: grid; grid-template-columns: 144px minmax(0,1fr); gap: 29px; padding: 36px 0 39px; border-bottom: 1px solid var(--border); scroll-margin-top: 105px; }
.paper-year { padding-top: 5px; font-size: 13px; color: var(--accent); font-weight: 700; }
.paper-year span { display: block; color: var(--subtle); font-size: 11px; font-weight: 400; }
.paper-detail h2 { margin: 0 0 11px; font: 400 clamp(21px, 2.4vw, 27px)/1.37 var(--serif); letter-spacing: -.02em; }
.paper-detail h2 a:hover { color: var(--accent); }
.paper-detail h2 a span { color: var(--accent); white-space: nowrap; }
.paper-detail .paper-authors { margin: 0 0 5px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.paper-detail .paper-authors strong { color: var(--text); font-weight: 650; }
.paper-detail .paper-venue { margin: 0 0 16px; color: var(--subtle); font-size: 12px; }
.paper-description { margin: 0 0 15px; color: var(--muted); font-size: 14px; max-width: 770px; }

/* Awards and research presentations */
.record-section { padding-top: 48px; }
.record-section + .record-section { padding-top: 58px; padding-bottom: 70px; }
.record-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 21px; }
.record-section-heading h2 { margin: 0; font: 400 clamp(30px, 3.5vw, 39px)/1.2 var(--serif); letter-spacing: -.035em; }
.record-section-heading span { color: var(--subtle); font-size: 12px; }
.record-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.record-list li { display: grid; grid-template-columns: minmax(0,1fr) 134px; gap: 24px; align-items: baseline; padding: 22px 0 24px; border-bottom: 1px solid var(--border); }
.record-list h3 { margin: 0; font: 400 clamp(18px, 2.2vw, 22px)/1.4 var(--serif); letter-spacing: -.018em; }
.record-source { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.record-date { justify-self: end; color: var(--accent); font-size: 12px; font-weight: 650; white-space: nowrap; }
.record-format { display: inline-block; margin-left: 10px; padding-left: 12px; border-left: 1px solid var(--border); color: var(--subtle); font-size: 12px; }
.record-group-label { margin: 0 0 13px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.record-list + .record-group-label { margin-top: 36px; }

/* Always-visible photos: no JS or filters needed to see any image. */
.gallery-note { font-size: 12px; color: var(--subtle); margin: 18px 0 0; }
.gallery-page-section { padding-top: 48px; padding-bottom: 45px; scroll-margin-top: 114px; }
.awards-section { padding-top: 39px; border-top: 1px solid var(--border); padding-bottom: 89px; }
.gallery-page-section .compact-header { margin-bottom: 21px; }
.subtle-count { color: var(--subtle); font-size: 12px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 24px; row-gap: 33px; }
.photo-card { margin: 0; min-width: 0; }
.photo-link { position: relative; display: block; border: 1px solid var(--border); border-radius: 5px; background: var(--panel); overflow: hidden; }
.photo-link img { aspect-ratio: 3/2; object-fit: cover; width: 100%; height: auto; transition: transform .22s ease; }
.photo-link:hover img { transform: scale(1.016); }
.photo-open { position: absolute; bottom: 10px; right: 11px; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: rgba(10,19,29,.8); border: 1px solid rgba(255,255,255,.3); color: white; }
.photo-card figcaption { padding: 9px 2px 0; }
.photo-card figcaption strong { display: block; font-size: 13px; font-weight: 650; }
.lightbox { width: min(95vw,1100px); max-height: 94vh; padding: 14px; background: #111923; color: #f3f0eb; border-radius: 7px; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 30px 80px #0008; }
.lightbox::backdrop { background: rgba(1,4,8,.85); }
.lightbox > img { width: 100%; max-height: calc(94vh - 85px); object-fit: contain; }
.lightbox > p { font-size: 13px; padding: 0 4px; color: #d7dde1; }
.lightbox-close { position: absolute; z-index: 2; right: 22px; top: 22px; width: 38px; height: 38px; background: rgba(8,15,22,.86); color: white; border: 0; border-radius: 50%; font-size: 25px; cursor: pointer; }

/* Teaching */
.teaching-list { max-width: 920px; }
.teaching-list article { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 23px; padding: 37px 0 39px; border-bottom: 1px solid var(--border); }
.teaching-index { font: 400 31px/1.1 var(--serif); color: var(--accent); }
.teaching-list .eyebrow { margin-bottom: 8px; }
.teaching-list h2 { font: 400 clamp(24px, 2.7vw, 30px)/1.3 var(--serif); margin: 0 0 12px; letter-spacing: -.02em; }
.teaching-list p:not(.eyebrow) { margin: 0; max-width: 700px; color: var(--muted); font-size: 14px; }
.volunteer-section { padding-top: 22px; padding-bottom: 70px; scroll-margin-top: 110px; }
.volunteer-section .record-date { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }

.site-footer { margin-top: 20px; border-top: 1px solid var(--border); padding: 27px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; font-size: 11px; color: var(--subtle); }
.footer-inner a { color: var(--accent); }
.footer-inner a:hover { text-decoration: underline; }

@media (max-width: 1050px) {
  .header-inner { flex-wrap: wrap; align-content: center; padding-block: 12px; gap: 3px 20px; }
  .site-nav { flex: 1 1 100%; order: 3; margin-left: 0; gap: 23px; }
  .site-name { flex: 1; }
  .hero { min-height: auto; }
}
@media (max-width: 760px) {
  .hero { padding-top: 60px; padding-bottom: 70px; }
  .hero-photo { width: min(290px, 62vw); }
  .research-feature { grid-template-columns: 220px minmax(0,1fr); gap: 22px; }
  .research-feature h2 { font-size: 27px; }
  .highlight-list a { grid-template-columns: 130px minmax(0,1fr) 20px; gap: 17px; }
}
@media (max-width: 620px) {
  .container { width: min(calc(100% - 36px), var(--max)); }
  .header-inner { min-height: 72px; padding-block: 10px; }
  .site-name { font-size: 22px; }
  .site-nav { display: flex; flex-wrap: wrap; column-gap: 23px; row-gap: 0; }
  .site-nav a { font-size: 12px; padding: 5px 0; }
  .site-nav a[aria-current="page"]::after { bottom: 3px; }
  .hero { gap: 25px; padding: 48px 0 62px; }
  .hero-photo { width: min(250px, 68vw); }
  .hero h1 { font-size: clamp(42px, 10vw, 57px); margin-bottom: 16px; }
  .hero-summary { font-size: 15px; }
  .profile-links { margin-top: 24px; gap: 9px; }
  .profile-links a { padding: 7px 12px; }
  .page-hero { padding: 49px 0 39px; }
  .page-hero h1 { font-size: clamp(40px, 9vw, 58px); }
  .compact-section { padding: 43px 0 51px; }
  .compact-header { display: flex; align-items: baseline; gap: 16px; }
  .compact-header h2 { font-size: 28px; }
  .quiet-link { font-size: 12px; white-space: nowrap; }
  .highlight-list a { grid-template-columns: 1fr 16px; gap: 6px 12px; }
  .highlight-meta { grid-column: 1; }
  .highlight-list strong { grid-column: 1; }
  .highlight-arrow { grid-column: 2; grid-row: 2; }
  .preview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
  .preview-card:nth-child(3) { grid-column: 1 / -1; }
  .research-feature { grid-template-columns: 1fr; gap: 20px; padding: 34px 0 38px; }
  .research-feature > img { width: min(100%,450px); }
  .research-feature h2 { font-size: 28px; }
  .paper-list li { grid-template-columns: 1fr; gap: 10px; }
  .paper-year span { display: inline; margin-left: 8px; }
  .record-list li { grid-template-columns: 1fr; gap: 5px; }
  .record-date { justify-self: start; grid-row: 1; }
  .volunteer-section .record-date { align-items: flex-start; text-align: left; }
  .gallery-grid { gap: 20px; }
  .footer-inner { display: block; }
  .footer-inner > span { display: block; }
}
@media (max-width: 450px) {
  .preview-grid, .gallery-grid { grid-template-columns: 1fr; }
  .preview-card:nth-child(3) { grid-column: auto; }
  .preview-card img { max-height: 235px; }
  .gallery-page-section .compact-header { align-items: flex-start; }
  .subtle-count { white-space: nowrap; }
  .teaching-list article { grid-template-columns: 41px 1fr; gap: 15px; }
  .teaching-index { font-size: 26px; }
  .quiet-link { max-width: 133px; white-space: normal; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photo-link img { transition: none; }
}

/* Home: luminous surfaces and a gently moving photographic journal. */
.home-page {
  background:
    radial-gradient(ellipse 38rem 32rem at 87% 11%, rgba(72, 174, 173, .15), transparent 75%),
    radial-gradient(ellipse 42rem 36rem at 1% 34%, rgba(50, 92, 141, .13), transparent 77%),
    var(--bg);
}
.home-page .container { --max: 1180px; }
.home-page .site-header { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.home-page .site-name { letter-spacing: -.05em; }
.home-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(62px, 7vw, 106px) 0 96px; }
.home-hero::before { content: ""; position: absolute; z-index: -1; width: 570px; height: 570px; right: -170px; top: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(78, 184, 180, .18), transparent 66%); filter: blur(25px); pointer-events: none; }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: clamp(44px, 6vw, 88px); }
.home-hero-copy { position: relative; z-index: 1; min-width: 0; }
.home-hero-intro, .home-hero-details { display: contents; }
.home-intro-label { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 25px; padding: 8px 13px; border: 1px solid color-mix(in srgb, var(--accent) 31%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--panel) 78%, transparent); color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; box-shadow: inset 0 1px rgba(255,255,255,.11); }
.home-intro-spark { color: var(--accent); font-size: 16px; line-height: 1; }
.home-hero h1 { margin: 0 0 25px; font: 400 clamp(36px, 5vw, 60px)/1.08 var(--serif); letter-spacing: -.065em; white-space: nowrap; text-wrap: nowrap; }
.home-name-accent { width: fit-content; padding-right: .08em; background: linear-gradient(110deg, #e7fffa 4%, #85dad5 43%, #488eaf 100%); color: transparent; -webkit-background-clip: text; background-clip: text; }
.home-hero-lead { max-width: 540px; margin: 0 0 15px; font: 400 clamp(22px, 2.2vw, 29px)/1.35 var(--serif); letter-spacing: -.024em; color: var(--text); }
.home-hero-summary { max-width: 540px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.78; }
.home-hero-affiliation { max-width: 540px; margin: 14px 0 0; color: var(--subtle); font-size: 13px; line-height: 1.65; }
.home-hero-affiliation a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 32px; }
.home-button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 49px; padding: 11px 20px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; font-weight: 750; letter-spacing: .015em; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.home-button span { font-size: 16px; line-height: 1; }
.home-button:hover { transform: translateY(-2px); }
.home-button-primary { color: #09232c; background: linear-gradient(125deg, #a4eeeb, #6ac6c5 73%, #6ba4c2); border-color: rgba(182, 255, 249, .72); box-shadow: inset 0 1px rgba(255,255,255,.7), 0 14px 28px rgba(26, 114, 128, .19); }
.home-button-primary:hover { box-shadow: inset 0 1px rgba(255,255,255,.7), 0 18px 32px rgba(26, 114, 128, .29); }
.home-button-secondary { color: var(--text); background: color-mix(in srgb, var(--panel) 68%, transparent); box-shadow: inset 0 1px rgba(255,255,255,.1); }
.home-button-secondary:hover { border-color: var(--accent); }
.home-credentials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 31px; }
.home-credentials span { padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 11px; line-height: 1.45; background: color-mix(in srgb, var(--panel-soft) 70%, transparent); }
.home-social { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 25px; }
.home-social a { color: var(--subtle); font-size: 11px; font-weight: 700; transition: color .2s ease; }
.home-social a:hover { color: var(--accent); }

.home-visual { position: relative; width: 100%; min-width: 0; max-width: 500px; justify-self: end; }
.home-visual-glow { position: absolute; inset: 8% -7% 4%; z-index: -1; border-radius: 48%; background: linear-gradient(140deg, rgba(85, 207, 196, .29), rgba(53, 91, 145, .27)); filter: blur(54px); animation: home-glow 9s ease-in-out infinite alternate; }
.home-picture-frame { position: relative; padding: 10px 10px 0; border: 1px solid rgba(183, 246, 241, .28); border-radius: 30px; background: linear-gradient(145deg, rgba(179, 255, 248, .18), rgba(35, 71, 88, .38) 30%, rgba(16, 29, 41, .89) 80%); box-shadow: inset 0 1px rgba(255,255,255,.28), 0 35px 90px rgba(0, 8, 20, .36), 0 4px 20px rgba(0,0,0,.16); }
.home-picture-stage { position: relative; isolation: isolate; aspect-ratio: 0.89; overflow: hidden; border-radius: 22px; background: #18303c; }
.home-picture-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(145deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.025) 22%, transparent 48%), linear-gradient(to top, rgba(3,12,20,.89), rgba(3,12,20,.24) 31%, transparent 58%); }
.home-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s ease; }
.home-slide.is-active { opacity: 1; visibility: visible; }
.home-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 34%; }
.home-slide.is-active img { animation: home-photo-pan 7s ease-out both; }
.home-picture-top, .home-picture-bottom { position: absolute; right: 22px; left: 22px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.home-picture-top { top: 22px; }
.home-photo-label, .home-photo-count { border: 1px solid rgba(255,255,255,.26); border-radius: 999px; background: rgba(10, 23, 30, .44); color: #fff; backdrop-filter: blur(13px); -webkit-backdrop-filter: blur(13px); box-shadow: inset 0 1px rgba(255,255,255,.2); }
.home-photo-label { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.home-photo-label span { width: 6px; height: 6px; border-radius: 50%; background: #93f1e6; box-shadow: 0 0 9px #93f1e6; }
.home-photo-count { padding: 7px 10px; font-size: 10px; font-weight: 700; letter-spacing: .09em; }
.home-picture-bottom { bottom: 21px; align-items: end; }
.home-picture-caption-wrap { min-width: 0; }
.home-picture-detail { margin: 0 0 4px; color: #b6e2df; font-size: 10px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.home-picture-caption { margin: 0; color: white; font: 400 clamp(20px, 2.1vw, 28px)/1.15 var(--serif); letter-spacing: -.025em; text-shadow: 0 2px 16px rgba(0,0,0,.28); }
.home-picture-controls { display: flex; flex: none; gap: 6px; align-items: center; }
.home-picture-controls button { display: grid; place-items: center; width: 31px; height: 31px; padding: 0; border: 1px solid rgba(255,255,255,.36); border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s ease, transform .2s ease; }
.home-picture-controls button:hover { background: rgba(255,255,255,.3); transform: translateY(-2px); }
.home-picture-controls button span { line-height: 1; }
.home-picture-controls .home-motion-toggle { width: auto; min-width: 50px; padding: 0 9px; border-radius: 999px; font-size: 10px; font-weight: 750; }
.home-slide-dots { display: flex; justify-content: center; align-items: center; gap: 5px; min-height: 43px; }
.home-slide-dots button { display: grid; place-items: center; width: 25px; height: 25px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.home-slide-dots button span { width: 5px; height: 5px; border-radius: 5px; background: rgba(230,248,246,.45); transition: width .3s ease, background .3s ease; }
.home-slide-dots button.is-active span, .home-slide-dots button[aria-current="true"] span { width: 19px; background: #9fece7; }

.home-research, .home-moments { position: relative; padding-top: 72px; padding-bottom: 88px; border-top: 1px solid var(--border); }
.home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.home-section-heading .eyebrow { margin-bottom: 8px; }
.home-section-heading h2 { margin: 0; max-width: 700px; font: 400 clamp(32px, 3.9vw, 48px)/1.14 var(--serif); letter-spacing: -.045em; }
.home-section-link { flex: none; color: var(--accent); font-size: 12px; font-weight: 750; white-space: nowrap; padding-bottom: 4px; }
.home-section-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.home-research-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.home-research-card { display: block; overflow: hidden; min-width: 0; border: 1px solid var(--border); border-radius: 22px; background: color-mix(in srgb, var(--panel) 91%, transparent); box-shadow: inset 0 1px rgba(255,255,255,.1), 0 17px 38px rgba(0,0,0,.08); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.home-research-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 25px 45px rgba(0,0,0,.14); }
.home-research-art { display: grid; place-items: center; height: 205px; overflow: hidden; padding: 10px 16px; background: radial-gradient(circle at 50% 40%, rgba(73, 171, 171, .17), transparent 70%), #122533; border-bottom: 1px solid var(--border); }
.home-research-art img { width: 100%; height: 100%; object-fit: contain; }
.home-research-card-copy { position: relative; min-height: 175px; padding: 23px 66px 27px 26px; }
.home-card-index { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.home-research-card h3 { margin: 9px 0 8px; font: 400 clamp(22px, 2.5vw, 28px)/1.2 var(--serif); letter-spacing: -.035em; }
.home-research-card p { margin: 0; max-width: 45ch; color: var(--muted); font-size: 13px; line-height: 1.62; }
.home-card-arrow { position: absolute; right: 23px; bottom: 26px; display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--border); border-radius: 50%; color: var(--accent); font-size: 16px; }
.home-moments { padding-top: 70px; padding-bottom: 108px; }
.home-moments-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-moment-card { position: relative; display: block; min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; background: var(--panel); box-shadow: 0 18px 38px rgba(0,0,0,.1); }
.home-moment-card::after { content: ""; position: absolute; inset: 35% 0 0; pointer-events: none; background: linear-gradient(transparent, rgba(2,10,18,.76)); }
.home-moment-card img { width: 100%; aspect-ratio: 1.18; height: auto; object-fit: cover; object-position: center 42%; transition: transform .5s ease; }
.home-moment-card:nth-child(2) img { object-position: center 40%; }
.home-moment-card:hover img { transform: scale(1.05); }
.home-moment-card > span { position: absolute; z-index: 1; right: 20px; bottom: 18px; left: 20px; display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #fff; font-size: 12px; font-weight: 750; text-shadow: 0 1px 12px #0007; }
.home-moment-card > span span { font-size: 18px; }
.home-page .site-footer { margin-top: 0; }

:root[data-theme="light"] .home-page { background: radial-gradient(ellipse 38rem 32rem at 87% 11%, rgba(65, 157, 169, .16), transparent 75%), radial-gradient(ellipse 42rem 36rem at 1% 34%, rgba(112, 159, 191, .16), transparent 77%), var(--bg); }
:root[data-theme="light"] .home-name-accent { background-image: linear-gradient(110deg, #075c62, #168b91 55%, #3b729f); }
:root[data-theme="light"] .home-picture-frame { background: linear-gradient(145deg, rgba(114, 185, 185, .45), rgba(242, 251, 248, .87) 35%, rgba(180, 204, 214, .57)); border-color: rgba(32, 111, 124, .3); box-shadow: inset 0 1px rgba(255,255,255,.8), 0 29px 65px rgba(39, 82, 102, .2); }
:root[data-theme="light"] .home-intro-label { background: rgba(255,255,255,.7); }

@keyframes home-photo-pan { from { transform: scale(1.015) translateY(0); } to { transform: scale(1.085) translateY(-1.1%); } }
@keyframes home-glow { from { transform: translate(-8px, 4px) scale(.98); } to { transform: translate(12px, -11px) scale(1.04); } }

@media (max-width: 950px) {
  .home-hero { padding-top: 64px; padding-bottom: 80px; }
  .home-hero-grid { gap: 36px; }
  .home-picture-bottom { align-items: start; flex-direction: column; }
}
@media (max-width: 760px) {
  .home-hero-grid { grid-template-columns: 1fr; gap: 0; }
  .home-hero-copy { display: contents; }
  .home-hero-intro, .home-hero-details { display: block; }
  .home-hero-intro { grid-row: 1; }
  .home-visual { grid-row: 2; }
  .home-hero-details { grid-row: 3; }
  .home-hero h1 { font-size: min(9.4vw, 50px); }
  .home-visual { max-width: 550px; justify-self: center; margin-top: 26px; }
  .home-hero-details { margin-top: 28px; }
  .home-picture-stage { height: clamp(230px, 34svh, 340px); aspect-ratio: auto; }
  .home-picture-bottom { flex-direction: row; align-items: end; }
  .home-research-grid { grid-template-columns: 1fr; }
  .home-research-art { height: 230px; }
  .home-moments-grid { gap: 12px; }
  .home-moment-card > span { right: 12px; bottom: 11px; left: 12px; font-size: 11px; }
}
@media (max-width: 620px) {
  .home-hero { padding: 18px 0 54px; }
  .home-intro-label { gap: 6px; margin-bottom: 7px; padding: 5px 9px; font-size: 9px; line-height: 1.25; }
  .home-intro-spark { font-size: 13px; }
  .home-hero h1 { line-height: 1.02; margin: 3px 0 8px; letter-spacing: -.055em; }
  .home-hero-lead { font-size: 18px; line-height: 1.28; margin-bottom: 0; }
  .home-hero-summary { font-size: 14px; }
  .home-hero-actions { margin-top: 26px; }
  .home-button { min-height: 46px; }
  .home-social { gap: 10px 16px; }
  .home-visual { margin-top: 15px; }
  .home-hero-details { margin-top: 22px; }
  .home-picture-frame { border-radius: 23px; padding: 7px 7px 0; }
  .home-picture-stage { height: clamp(185px, 31svh, 280px); border-radius: 17px; }
  .home-slide img { object-position: center 15%; }
  .home-slide.is-active img { animation: none; }
  .home-picture-top { top: 13px; right: 13px; left: 13px; }
  .home-picture-bottom { right: 15px; bottom: 16px; left: 15px; align-items: start; flex-direction: column; }
  .home-picture-caption { font-size: 21px; }
  .home-picture-controls { gap: 4px; }
  .home-picture-controls button { width: 42px; height: 42px; }
  .home-picture-controls .home-motion-toggle { min-width: 62px; }
  .home-slide-dots { min-height: 44px; gap: 0; }
  .home-slide-dots button { width: 42px; height: 42px; }
  .home-research, .home-moments { padding-top: 52px; padding-bottom: 69px; }
  .home-section-heading { align-items: start; flex-direction: column; gap: 14px; }
  .home-section-heading h2 { font-size: 36px; }
  .home-research-art { height: 185px; }
  .home-moments-grid { grid-template-columns: 1fr; gap: 14px; }
  .home-moment-card img { aspect-ratio: 1.5; }
}
@media (max-width: 380px) {
  .home-picture-bottom { align-items: start; flex-direction: column; }
}
@media (max-width: 620px) and (max-height: 600px) and (orientation: portrait) {
  .home-hero { padding-top: 12px; }
  .home-intro-label + .home-intro-label { display: none; }
  .home-hero-lead { font-size: 16px; line-height: 1.25; }
  .home-visual { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-visual-glow, .home-slide.is-active img { animation: none; }
  .home-slide, .home-button, .home-social a, .home-picture-controls button, .home-slide-dots button span, .home-research-card, .home-moment-card img { transition: none; }
  .home-motion-toggle { display: none !important; }
}

/* A compact header prevents the navigation from taking multiple rows. */
@media (max-width: 1050px) {
  .header-inner { min-height: 66px; gap: 0 10px; }
  .site-name { flex: 1 1 auto; min-width: 0; }
  .header-controls { gap: 4px; margin-left: auto; }
  .header-controls .icon-button { width: 44px; height: 44px; }
  .has-js .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel);
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
  }
  .mobile-menu-toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
  .has-js .site-nav { display: none; }
  .has-js .site-nav.is-open {
    display: grid;
    flex: 1 1 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 8px;
    order: 3;
    margin: 10px 0 0;
    padding: 10px 0 4px;
    border-top: 1px solid var(--border);
    max-height: calc(100vh - 84px);
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.3;
    white-space: normal;
  }
  .site-nav a[aria-current="page"] { background: var(--panel); }
  .site-nav a[aria-current="page"]::after { display: none; }
}
@media (max-width: 620px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .has-js .site-nav.is-open { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-intro-label { max-width: 100%; line-height: 1.35; }
  .home-research-card-copy { padding: 21px 54px 24px 20px; }
}
