:root {
  color-scheme: light;
  --paper: #f8f6ef;
  --white: #fffdf7;
  --ink: #171e3d;
  --muted: #4c526d;
  --cobalt: #233bce;
  --blue-tint: #e7ebff;
  --line: #cccbda;
  --display: Georgia, 'Times New Roman', serif;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, ::before, ::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, p, figure { margin: 0; }
img, video { display: block; max-width: 100%; }
a { color: var(--cobalt); text-underline-offset: .18em; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 4px; }
::selection { background: var(--cobalt); color: #fff; }

.shell { width: min(100% - 5rem, 78rem); margin-inline: auto; }
main { flex: 1; padding-bottom: clamp(3.5rem, 8vw, 7rem); }
.skip { position: fixed; z-index: 3; inset: .75rem auto auto .75rem; padding: .7rem 1rem; transform: translateY(-180%); background: var(--white); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; min-height: 5.15rem; gap: 1.7rem; align-items: center; justify-content: space-between; padding-block: .55rem; }
.brand { font: 700 clamp(1.2rem, 2vw, 1.5rem)/1.15 var(--display); color: var(--ink); white-space: nowrap; text-decoration: none; letter-spacing: -.05em; }
.brand span, h1 span { color: var(--cobalt); }
#site-nav { display: flex; align-items: center; gap: clamp(.65rem, 1.4vw, 1.5rem); }
#site-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: .875rem;
  text-decoration: none;
  padding-block: .65rem;
  border-bottom: 2px solid transparent;
}
#site-nav a:hover, #site-nav a[aria-current] { color: var(--cobalt); border-color: var(--cobalt); }
.menu-toggle { color: var(--cobalt); background: transparent; border: 1px solid currentColor; border-radius: 99px; padding: .5rem .9rem; font-weight: 650; cursor: pointer; }

.home-hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: stretch;
  margin-top: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  background: var(--white);
}
.home-intro { min-width: 0; padding: clamp(2rem, 5.5vw, 5.25rem); align-self: center; }
.eyebrow { font-size: .875rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--cobalt); }
h1, h2 { font-family: var(--display); font-weight: 400; }
h1 { font-size: clamp(3rem, 8vw, 7rem); line-height: .95; letter-spacing: -.071em; overflow-wrap: anywhere; }
.home h1 { margin-block: 1.15rem 1.5rem; font-size: clamp(3.25rem, 7.75vw, 7.25rem); }
.intro { max-width: 36em; color: var(--muted); line-height: 1.62; font-size: clamp(1.0625rem, 1.7vw, 1.3rem); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2.95rem;
  padding: .65rem 1.17rem;
  border: 1px solid var(--cobalt);
  border-radius: 99px;
  background: var(--cobalt);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  line-height: 1.3;
  cursor: pointer;
}
.button:hover { background: #17278e; border-color: #17278e; }
.button-outline { color: var(--cobalt); background: transparent; }
.button-outline:hover { color: #fff; }
.home-intro .button { margin-top: 1.65rem; }
.hero-image { width: 100%; height: 100%; min-height: clamp(25rem, 42vw, 35rem); max-height: 38rem; object-fit: cover; object-position: 50% 51%; background: var(--cobalt); }
.home-links { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.25rem; }
.home-links a { display: grid; gap: .4rem; padding: 1rem clamp(.8rem, 2vw, 1.5rem); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.home-links a:hover { color: var(--cobalt); background: var(--blue-tint); }
.home-links strong { font: 400 clamp(1.35rem, 2.4vw, 2rem)/1.2 var(--display); }
.home-links span { color: var(--muted); }

.page-intro { padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 4vw, 3.55rem); }
.page-intro .intro { margin-top: 1.25rem; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.95rem); line-height: 1.1; letter-spacing: -.04em; }
.about-intro { display: grid; grid-template-columns: 1fr auto; gap: clamp(1rem, 5vw, 4rem); align-items: center; }
.profile-frame { padding: .65rem; width: clamp(9rem, 19vw, 15rem); border: 1px solid var(--line); background: var(--white); }
.profile-frame img { width: 100%; height: auto; }
.feature { display: grid; grid-template-columns: 1fr 1.5fr; align-items: start; gap: 1.3rem clamp(1.5rem, 5vw, 4rem); padding: clamp(1.4rem, 4vw, 3rem); background: var(--blue-tint); border: 1px solid #c7d0fd; }
.feature p, .contact-card p, .document p { color: var(--muted); line-height: 1.65; }
.feature h2 + p { margin-top: .65rem; }
.feature .underlined { display: inline-block; margin-top: .65rem; font-weight: 650; }
.feature video { width: 100%; height: auto; aspect-ratio: 854 / 480; background: var(--ink); }

.gallery { margin-bottom: 2.25rem; }
.gallery h2 { margin-bottom: 1.25rem; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2.5rem); }
.gallery-grid figure { min-width: 0; padding: .7rem; border: 1px solid var(--line); background: var(--white); }
.gallery-link { display: block; box-shadow: 0 0 0 1px var(--line); }
.gallery-link:hover { box-shadow: 0 0 0 2px var(--cobalt); }
.gallery-link img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.gallery-grid figcaption { padding: .85rem .2rem .25rem; font-weight: 650; }
.gallery-dialog { width: min(95vw, 51rem); max-height: 94dvh; padding: .75rem; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.gallery-dialog::backdrop { background: #141b39d9; }
.gallery-dialog form { display: flex; justify-content: end; margin-bottom: .7rem; }
.gallery-dialog img { margin-inline: auto; max-height: min(72dvh, 75vw); object-fit: contain; }
.gallery-dialog figcaption { text-align: center; padding-block: .65rem .1rem; }
.button-small { min-height: 2.45rem; padding: .37rem .9rem; }

.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1rem, 3vw, 2.5rem); }
.contact-card { padding: clamp(1.3rem, 4vw, 3rem); background: var(--white); border: 1px solid var(--line); min-width: 0; }
.contact-card .email-address { margin-top: .6rem; overflow-wrap: anywhere; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.05rem; }
.contact-card .feedback { min-height: 1.5em; margin-top: .5rem; color: var(--cobalt); }
.socials { background: var(--blue-tint); }
.socials ul { list-style: none; margin: .6rem 0 0; padding: 0; }
.socials a { display: block; padding: .72rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.socials a:hover { color: var(--cobalt); }

.document-title h1 { max-width: 15ch; font-size: clamp(2.9rem, 7.2vw, 6.3rem); letter-spacing: -.058em; }
.document { max-width: 55rem; border-left: 3px solid var(--cobalt); background: var(--white); padding: 0 clamp(1rem, 4vw, 3.25rem); }
.document section { padding-block: clamp(1.25rem, 3vw, 2rem); }
.document section + section { border-top: 1px solid var(--line); }
.document h2 { margin-bottom: .65rem; font-size: clamp(1.5rem, 2.9vw, 2.25rem); }
.document p { max-width: 68ch; overflow-wrap: anywhere; }
.document p + p { margin-top: .55rem; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner, .footer-inner nav { display: flex; flex-wrap: wrap; gap: .7rem 1.65rem; }
.footer-inner { justify-content: space-between; align-items: center; padding-block: 1.25rem; }
.footer-inner p { color: var(--muted); }
.footer-inner a { padding-block: .35rem; }

@media (max-width: 65rem) {
  .shell { width: min(100% - 3rem, 78rem); }
  .header-inner { flex-wrap: wrap; min-height: 4.3rem; gap: .45rem 1rem; }
  #site-nav { flex-basis: 100%; flex-wrap: wrap; gap: 0 1.2rem; padding-bottom: .35rem; }
  #site-nav a { padding-block: .73rem; }
}
@media (max-width: 47rem) {
  .shell { width: calc(100% - 2rem); }
  .home-hero, .feature, .contact-grid { grid-template-columns: 1fr; }
  .home h1 { font-size: clamp(3rem, 10.5vw, 5.65rem); }
  .home-intro { padding: clamp(1.2rem, 6vw, 3rem); }
  .hero-image { min-height: 0; height: auto; max-height: 28rem; aspect-ratio: 1.25; }
  .home-links { grid-template-columns: 1fr; }
  .about-intro { grid-template-columns: 1fr; gap: 0; }
  .profile-frame { margin-bottom: 1.5rem; }
}
@media (max-width: 32rem) {
  #site-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: 1fr; }
}
