/* Appearance, restrained motion, and the first-visit introduction. */
/* Midnight Blue is the default, including when JavaScript is unavailable. */
:root {
  color-scheme: dark;
  --paper: #09152f;
  --ink: #edf6ff;
  --muted: #a9bdd5;
  --line: #304765;
  --accent: var(--signal);
  --surface: #101f3c;
  --surface-raised: #173051;
  --midnight: #0d2042;
  --midnight-line: #375c7c;
  --on-midnight: #edf6ff;
  --on-midnight-muted: #b5cbe2;
  --signal: #22dcff;
  --signal-hover: #75edff;
  --signal-ink: #06172f;
  --media-matte: #071125;
}
:root[data-theme="light"] {
  color-scheme: light;
  --paper: #f0f7ff;
  --ink: #102645;
  --muted: #45617d;
  --line: #a8bed4;
  --accent: #006479;
  --surface: #e4effb;
  --surface-raised: #d2e6f6;
}
.experience-section, .contact-section { --accent: var(--signal); }
.hero {
  background-image: radial-gradient(ellipse at 76% 48%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 54%);
}
.hero .eyebrow, .visual-label > span + span { color: var(--accent); }
.contact-section {
  background-image: linear-gradient(113deg, var(--media-matte), transparent 76%);
  border-block: 1px solid var(--midnight-line);
}
.site-header { gap: 24px; }
.site-header nav { order: 2; margin-left: auto; gap: 28px; }
.header-controls { order: 3; display: flex; align-items: center; gap: 10px; }
.nav-contact { margin-left: 10px; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid var(--line); border-radius: 24px; padding: 10px 14px;
  min-height: 44px; font-size: 11px; background: transparent;
  transition: background .2s, border-color .2s;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle[aria-pressed="true"] { background: var(--surface-raised); border-color: var(--line); }
.theme-toggle[aria-pressed="true"] svg { color: var(--accent); }
.preloader {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  background: var(--paper); color: var(--ink); pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s;
}
html[data-loading] .preloader { opacity: 1; visibility: visible; animation: loader-failsafe 0s 2s forwards; }
.preloader-inner { display: flex; align-items: center; flex-direction: column; gap: 19px; }
.preloader-monogram { font-size: 92px; line-height: 1; letter-spacing: -.12em; padding-right: 12px; }
.preloader-monogram > span { color: var(--accent); }
.preloader-rule { width: 180px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.preloader-rule::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: welcome-line 1.1s ease-out both; }
.preloader-caption { color: var(--muted); font-size: 8px; letter-spacing: .11em; }
@keyframes welcome-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }

/* Repeated frame details connect the illustration to the project gallery. */
.hero-copy::before { content: ''; display: block; position: absolute; left: -22px; top: 3px; height: 43px; border-left: 1px solid var(--line); }
.project-visual::after { content: ''; position: absolute; inset: 10px; border: 1px solid currentColor; opacity: .08; pointer-events: none; transition: opacity .25s; }
.project-visual:hover::after { opacity: .24; }
.project-visual:focus-visible { outline-offset: 5px; }
.project-heading h3 a span { transition: transform .2s; }
.project-heading h3 a:hover span { transform: translate(2px, -2px); }
.hero-actions .primary { box-shadow: 4px 4px 0 var(--line); }
.hero-actions .primary:hover { box-shadow: 2px 2px 0 var(--line); }
.credential-section { padding-top: 0; }
.credential-layout { display: grid; grid-template-columns: .8fr 1.5fr; gap: 65px; align-items: start; }
.credential-intro h2 { margin-top: 20px; font-size: clamp(32px,3vw,46px); }
.credential-intro > p:not(.eyebrow) { font-size: 13px; color: var(--muted); margin-top: 20px; }
.credential-intro .text-link { margin-top: 14px; }
.credential-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.credential-list li { display: grid; grid-template-columns: 38px 1fr auto; align-items: start; gap: 20px; border-bottom: 1px solid var(--line); padding: 22px 0; }
.credential-icon { width: 32px; height: 32px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); font-size: 17px; }
.credential-list h3 { font-size: 18px; line-height: 1.35; letter-spacing: -.025em; }
.credential-list p { font-size: 11px; color: var(--muted); margin-top: 6px; }
.credential-list time { font-family: var(--mono); font-size: 9px; color: var(--muted); padding-top: 5px; white-space: nowrap; }
.leadership-note { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--midnight-line); }
.leadership-note h3 { font-size: 19px; }
.leadership-note p { margin-top: 10px; font-size: 12px; color: var(--on-midnight-muted); line-height: 1.9; }

@media (max-width: 1000px) and (min-width: 761px) {
  .site-header nav { gap: 18px; font-size: 11px; }
  .site-header .brand-name { display: none; }
  .site-header { gap: 18px; }
  .nav-contact { margin-left: 0; }
}
@media (max-width: 760px) {
  .header-controls { order: 2; }
  .site-header nav { order: 3; margin-left: 0; }
  .site-header { gap: 0; }
  .theme-toggle { width: 44px; padding: 10px; }
  .theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hero-copy::before { display: none; }
  .credential-layout { grid-template-columns: 1fr; gap: 28px; }
  .credential-list li { gap: 12px; grid-template-columns: 28px 1fr auto; }
  .credential-icon { width: 28px; height: 28px; }
  .credential-list h3 { font-size: 16px; }
  .credential-list time { font-size: 8px; }
  .credential-intro h2 { font-size: 35px; }
}
@media (max-width: 360px) {
  .brand-name { display: none; }
  .credential-list li { grid-template-columns: 28px 1fr; }
  .credential-list time { grid-column: 2; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .preloader, html[data-loading] .preloader { display: none; }
  .hero-copy, .circuit { animation: none; }
}
@media print { .preloader, .header-controls { display: none; } }

/* Community roles use native disclosure controls for keyboard and no-JS access. */
.volunteer-layout { display:grid; grid-template-columns:.8fr 1.5fr; gap:80px; }
.volunteer-intro { padding-top:20px; }
.volunteer-mark { display:block; color:var(--accent); font-size:72px; line-height:1; margin-bottom:24px; }
.volunteer-intro h3 { font-size:30px; line-height:1.2; letter-spacing:-.04em; }
.volunteer-intro > p { color:var(--muted); font-size:13px; margin:20px 0; max-width:330px; }
.volunteer-intro .volunteer-hint { margin-top:35px; font-size:9px; }
.volunteer-roles { border-top:1px solid var(--line); }
.volunteer-roles details { border-bottom:1px solid var(--line); }
.volunteer-roles summary { display:grid; grid-template-columns:28px 1fr 28px; gap:18px; padding:26px 12px; cursor:pointer; list-style:none; transition:background .2s; }
.volunteer-roles summary::-webkit-details-marker { display:none; }
.volunteer-roles summary:hover { background:color-mix(in srgb,var(--ink) 4%,transparent); }
.volunteer-number { color:var(--accent); font-size:10px; padding-top:3px; }
.volunteer-roles .eyebrow { display:block; font-size:9px; margin-bottom:10px; }
.volunteer-roles strong { display:block; font-size:25px; font-weight:500; letter-spacing:-.035em; line-height:1.25; }
.volunteer-role { display:block; color:var(--muted); font-size:12px; margin-top:9px; }
.volunteer-plus { color:var(--accent); font-size:23px; transition:transform .25s; }
.volunteer-roles details[open] .volunteer-plus { transform:rotate(45deg); }
.volunteer-body { padding:0 58px 26px; }
.volunteer-body p { color:var(--muted); font-size:13px; line-height:1.9; }
@media (prefers-reduced-motion:no-preference) {
 .volunteer-roles details[open] .volunteer-body { animation:community-open .28s ease-out; }
 .project-visual .image-frame { transition:transform .35s ease; }
 .project-visual:hover .image-frame { transform:translateY(-5px); }
 .button { transition:transform .2s,background .2s,box-shadow .2s; }
 .button:active { transform:translateY(2px); }
 @keyframes community-open { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
}
@media (max-width:760px) {
 .volunteer-layout { grid-template-columns:1fr; gap:35px; }
 .volunteer-mark { font-size:52px; margin-bottom:16px; }
 .volunteer-intro .volunteer-hint { margin-top:24px; }
 .volunteer-roles summary { padding:24px 0; gap:12px; grid-template-columns:22px 1fr 24px; }
 .volunteer-roles strong { font-size:23px; }
 .volunteer-body { padding:0 34px 24px; }
}
.volunteer-roles summary > span { min-width:0; overflow-wrap:anywhere; }
.volunteer-layout > * { min-width:0; } .volunteer-roles summary { grid-template-columns:28px minmax(0,1fr) 28px; } @media(max-width:760px) { .volunteer-roles summary { grid-template-columns:22px minmax(0,1fr) 24px; } }
.volunteer-plus { align-self:start; height:28px; line-height:28px; text-align:center; }
