:root {
  color-scheme: light;
  --canvas: #f7f5f0;
  --paper: #fff;
  --ink: #17181b;
  --muted: #4f525b;
  --line: #ddd8ce;
  --accent: #2454b8;
  --surface-shadow:
    0 1px 2px #21335010,
    0 7px 14px -7px #21335032,
    0 22px 34px -22px #2133504d;
  --ease: cubic-bezier(.2, .72, .25, 1);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
p { line-height: 1.55; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[id] { scroll-margin-top: 100px; }
.shell { width: min(1160px, calc(100% - 88px)); margin-inline: auto; }

.skip {
  position: fixed;
  z-index: 5;
  top: 12px;
  left: 12px;
  padding: 12px;
  background: var(--paper);
  transform: translateY(-150%);
}
.skip:focus { transform: translateY(0); }

.topbar { position: sticky; z-index: 2; top: 14px; margin: 14px auto 0; padding-inline: 16px; pointer-events: none; }
.glass {
  position: relative;
  width: min(100%, 600px);
  min-height: 58px;
  margin-inline: auto;
  padding: 6px 7px 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #fffffff2;
  border-radius: 999px;
  background: var(--paper);
  box-shadow:
    0 0 0 1px #273b6225,
    0 3px 7px #17366c23,
    0 20px 38px -11px #17366c55;
  pointer-events: auto;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .glass {
    background: #ffffff53;
    -webkit-backdrop-filter: blur(9px) saturate(155%);
    backdrop-filter: blur(9px) saturate(155%);
  }
  .glass::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    pointer-events: none;
    box-shadow:
      inset 0 2px 2px #fffffffa,
      inset 0 -2px 1px #ffffffba,
      inset 0 -6px 9px #325daf2e,
      inset 5px 0 7px #ffffff75,
      inset -5px 0 7px #ffffff75;
  }
}
.home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--paper);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.home-link:hover, .home-link[aria-current="page"] {
  border-color: #c2d4f2;
  background: #e8effd;
  color: #173f91;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a, .language-switch button, .preview-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  min-height: 44px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.language-switch button {
  appearance: none;
  cursor: pointer;
}
.nav-links a:hover, .language-switch button:hover { background: #191a180c; }
.nav-links .nav-edit { background: var(--ink); color: #fff; }
.nav-links .nav-edit:hover { background: var(--accent); color: #fff; }
.preview-label { color: var(--muted); }

.member-login {
  max-width: 560px;
  margin: clamp(36px, 8vw, 100px) auto 0;
  padding: clamp(24px, 6vw, 54px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 2px 8px #312a1e0b;
}
.member-login h1 { font-size: clamp(2.35rem, 6vw, 4rem); }
.member-login p { margin: 15px 0 0; color: var(--muted); }
.member-login .sign-in-action {
  padding-inline: 17px;
  margin-top: 22px;
  background: var(--ink);
  color: white;
  font-family: inherit;
  cursor: pointer;
}
.member-login .sign-in-action:hover { background: var(--accent); }
.owner-sign-in {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  color: var(--muted);
  font-size: .9rem;
  text-underline-offset: .2em;
}

.intro { padding: 72px 0; }
.home-intro {
  position: relative;
  overflow: clip;
  padding: clamp(70px, 11vw, 146px) 0 clamp(28px, 5vw, 60px);
}
.home-intro::before {
  content: "";
  display: block;
  width: clamp(38px, 7vw, 88px);
  height: 2px;
  margin-bottom: clamp(18px, 3vw, 34px);
  background: var(--accent);
}
@supports (animation-timeline: view()) and (animation-range: exit 0% exit 70%) {
  @media (prefers-reduced-motion: no-preference) {
    .home-intro { view-timeline-name: --home-intro; }
    .home-intro::before {
      animation: editorial-rule linear both;
      animation-timeline: --home-intro;
      animation-range: exit 0% exit 70%;
    }
  }
}
@keyframes editorial-rule {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(64px); opacity: 0; }
}
h1 {
  font-size: clamp(3.1rem, 8vw, 8rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.045em;
}
.home-intro h1 { text-wrap: balance; }
.home-intro h1 span {
  color: #345180;
  text-shadow: 0 2px 6px #233e6415;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-intro h1 span { transition: color 180ms ease, text-shadow 180ms ease; }
  .home-intro h1:hover span {
    color: #254d8a;
    text-shadow: 0 3px 9px #233e6426;
  }
}
.intro > p:not(.role) { max-width: 470px; margin-top: 20px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.15rem); }
.home-intro > p:not(.role) { max-width: 390px; }
#people { margin-top: clamp(36px, 5vw, 57px); }
.section-head { border-top: 1px solid var(--line); padding: 15px 0 21px; }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.95rem); font-weight: 660; letter-spacing: -.05em; }
.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 25px); }
.person-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid #dde1e8;
  border-radius: 17px;
  background: var(--paper);
  box-shadow: var(--surface-shadow);
  transition: transform 230ms var(--ease), border-color 230ms ease, box-shadow 230ms ease;
}
.portrait {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 1.4;
  border-radius: 14px;
  background: #dce8f9;
  color: #2c4a76;
}
.person-card .portrait {
  margin: 5px 5px 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px #ffffff8c, inset 0 -4px 10px #21335012, 0 2px 4px #21335019;
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tone-index-1 { background: #e1e7e5; color: #2e514d; }
.tone-index-2 { background: #ece5de; color: #624d3d; }
.portrait-shape, .portrait-shape::after {
  position: absolute;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.portrait-shape {
  z-index: -1;
  width: 79%;
  opacity: .38;
  transform: translate(-25%, 4%);
}
.portrait-shape::after { content: ""; width: 100%; left: 53%; top: 0; }
.tone-index-1 .portrait-shape { width: 70%; border-radius: 15%; transform: rotate(-29deg) translate(0, -33%); }
.tone-index-1 .portrait-shape::after { border-radius: inherit; left: 24%; top: 49%; }
.tone-index-2 .portrait-shape { width: 78%; border-radius: 50% 50% 12% 12%; transform: rotate(42deg) translate(-10%, 9%); }
.tone-index-2 .portrait-shape::after { border-radius: inherit; left: 19%; top: 48%; }
.initials {
  padding-right: .08em;
  font-size: clamp(3.4rem, 9vw, 8.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.045em;
  transition: transform 320ms var(--ease);
}
.card-copy { position: relative; container-type: inline-size; padding: 16px 55px 20px 15px; }
.card-copy h3 {
  font-size: clamp(.875rem, 11cqi, 2.15rem);
  line-height: 1.06;
  letter-spacing: -.045em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.role { font-size: .88rem; color: var(--accent); font-weight: 650; }
.card-copy .role { margin-top: 5px; }
.card-bio { margin-top: 8px; font-size: .94rem; color: var(--muted); }
.arrow {
  position: absolute;
  right: 13px;
  top: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.15rem;
  transition: transform 210ms var(--ease), background-color 150ms ease, color 150ms ease;
}
.person-card:focus-visible {
  border-color: #86a4df;
  box-shadow: var(--surface-shadow), 0 8px 24px -10px #305fa959;
}
.person-card:focus-visible .arrow { background: var(--ink); color: #fff; }
@media (hover: hover) {
  .person-card:hover {
    transform: translateY(-4px);
    border-color: #86a4df;
    box-shadow: var(--surface-shadow), 0 8px 24px -10px #305fa959;
  }
  .person-card:hover .arrow { transform: translateX(3px); background: var(--ink); color: #fff; }
  .person-card:hover .initials { transform: scale(1.045); }
}

.profile-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(26px, 7vw, 90px);
  margin-top: clamp(20px, 4vw, 50px);
  padding: clamp(26px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 2px 8px #312a1e0b;
}
.profile-hero .intro { container-type: inline-size; min-width: 0; padding: 0; }
.profile-portrait-frame {
  padding: clamp(7px, 1vw, 12px);
  border: 1px solid #fff;
  border-radius: 23px;
  background: #ffffff72;
  box-shadow: inset 0 -6px 12px #7098d126, inset 0 2px 3px #fff, var(--surface-shadow);
}
.profile-portrait-frame .portrait {
  border-radius: 15px;
  box-shadow: inset 0 -6px 12px #2133501a, 0 2px 5px #21335026;
}
.profile-hero h1 {
  font-size: clamp(1.5rem, 12cqi, 6rem);
  margin-top: 9px;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 20px;
  padding-inline: 13px;
  border: 1px solid #fff;
  border-radius: 99px;
  background: #ffffff85;
  box-shadow: inset 0 -2px 4px #819cc629, 0 3px 9px #21335016;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}
.section-nav {
  position: sticky;
  z-index: 1;
  top: 84px;
  width: fit-content;
  max-width: 100%;
  min-height: 54px;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  margin: 22px auto 12px;
  padding: 4px;
}
.section-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: clamp(8px, 2vw, 17px);
  border-radius: 99px;
  font-size: clamp(.78rem, 2.4vw, .94rem);
  font-weight: 650;
  text-decoration: none;
}
.section-nav a:hover, .back:hover { color: var(--accent); }
.section-nav:not(.has-sliding-highlight) a:hover { background: #ffffffb0; }
main:has(#experience:target) .section-nav:not(.has-sliding-highlight) a[href="#experience"],
main:has(#education:target) .section-nav:not(.has-sliding-highlight) a[href="#education"],
main:has(#projects:target) .section-nav:not(.has-sliding-highlight) a[href="#projects"],
main:has(#accomplishments:target) .section-nav:not(.has-sliding-highlight) a[href="#accomplishments"] {
  background: #e2ecfc;
  color: #173f91;
}
.section-nav a[aria-current="location"] { color: #173f91; }
.section-nav-highlight {
  position: absolute;
  inset: 0 auto auto 0;
  border: 1px solid #bcd0f0;
  border-radius: 99px;
  background: #e2ecfc;
  box-shadow: inset 0 1px 3px #ffffffc4;
  opacity: 0;
  pointer-events: none;
}
.section-nav-highlight.is-visible { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .section-nav-highlight {
    transition: transform 550ms cubic-bezier(.22, .61, .36, 1),
      width 550ms cubic-bezier(.22, .61, .36, 1),
      height 550ms cubic-bezier(.22, .61, .36, 1),
      opacity 480ms ease;
  }
}
.profile-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px;
  padding-block: 36px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 156px;
  overflow-wrap: anywhere;
}
.profile-section:target > h2 { color: var(--accent); }
.profile-section .entry {
  padding: clamp(16px, 4vw, 27px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--surface-shadow);
}
.entry + .entry { margin-top: 18px; }
.organization-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--accent);
  font-weight: 650;
}
.entry h3 + .organization-identity { margin-block: 6px 0; }
.organization-identity img {
  flex: 0 0 52px;
  object-fit: contain;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.entry h3 { font-size: clamp(1.37rem, 3vw, 1.85rem); letter-spacing: -.05em; }
.entry p:not(.meta) { margin-top: 6px; color: var(--muted); max-width: 65ch; }
.meta, figcaption { font-size: .88rem; color: var(--muted); }
.meta { font-variant-numeric: tabular-nums; }
.organization { font-weight: 650; }
.project { padding: clamp(16px, 4vw, 27px); border: 1px solid var(--line); background: var(--paper); border-radius: 13px; box-shadow: var(--surface-shadow); }
.project-detail { max-width: 840px; margin: 32px auto 0; overflow-wrap: anywhere; }
.project-detail h1 { margin-block: 8px 16px; font-size: clamp(2rem, 6vw, 4rem); text-wrap: balance; }
.project-links { display: flex; flex-wrap: wrap; gap: 9px; }
.button { display: inline-flex; gap: 8px; align-items: center; padding: 8px 13px; border: 1px solid var(--line); border-radius: 99px; font-size: .875rem; font-weight: 650; text-decoration: none; margin-top: 12px; min-height: 44px; }
.button:hover { background: var(--ink); color: #fff; }
.project-media { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; margin-top: 18px; }
.project-media img, .project-media iframe { width: 100%; border: 0; border-radius: 9px; }
.project-media iframe { aspect-ratio: 16/9; display: block; background: var(--ink); }
figcaption { margin-top: 6px; }
.footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 55px;
  padding-bottom: 12px;
}
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #606776;
  font-size: .75rem;
  text-decoration: none;
}
.footer-credit svg { flex: none; }
.footer-credit:hover { color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  :root { scroll-behavior: smooth; }
  .home-link, .nav-links a, .language-switch button, .button, .profile-section .entry {
    transition: translate 200ms var(--ease), background-color 200ms ease,
      border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
  }
  :is(.portrait, .organization-identity, .project-media) img {
    transition: transform 650ms cubic-bezier(.22, .61, .36, 1);
  }
  @media (hover: hover) {
    .home-link:hover, .nav-links a:hover, .language-switch button:hover, .button:hover { translate: 0 -2px; }
    .profile-section .entry:hover {
      border-color: #c2d4f2;
      box-shadow: var(--surface-shadow), 0 12px 26px -15px #305fa969;
    }
    .person-card:hover .portrait img,
    :is(.portrait, .organization-identity, .project-media) img:hover {
      transform: scale(1.045);
    }
  }
  .person-card:active .portrait img,
  :is(.portrait, .organization-identity, .project-media) img:active {
    transform: scale(1.08);
    transition-duration: 320ms;
  }
}
@media (max-width: 800px) {
  .shell { width: calc(100% - 48px); }
  .home-intro h1 { font-size: clamp(2.9rem, 9.3vw, 6rem); }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 32px); }
  .people-grid { grid-template-columns: 1fr; gap: 25px; }
  .person-card .portrait { aspect-ratio: 1.75; }
  .initials { font-size: clamp(4rem, 16vw, 7.5rem); }
  .profile-hero, .profile-section { grid-template-columns: minmax(0, 1fr); }
  .glass.section-nav {
    flex-wrap: nowrap;
    justify-content: safe center;
    gap: 2px;
    padding-inline: 4px;
    overflow-x: auto;
  }
  .section-nav a {
    flex: none;
    padding-inline: clamp(5px, 1.5vw, 9px);
    white-space: nowrap;
  }
  .section-nav a:focus-visible { outline-offset: -2px; }
  .profile-section { gap: 13px; padding-block: 26px; scroll-margin-top: 176px; }
}
@media (max-width: 380px) {
  .home-intro h1 { font-size: clamp(1.9rem, 10.5vw, 2.9rem); }
  .glass { padding-left: 11px; gap: 4px; }
  .home-link { padding-inline: 9px; font-size: .8rem; }
  .nav-links a, .language-switch button, .preview-label { padding-inline: 8px; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .person-card, .initials, .arrow { transition: none; }
  .person-card:hover,
  .person-card:hover .initials,
  .person-card:hover .arrow { transform: none; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .glass { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .glass::before { content: none; }
  .profile-portrait-frame, .back { background: var(--paper); }
}
