:root {
  color-scheme: light;
  --ink: #393346;
  --muted: #6e6878;
  --purple: #856f9c;
  --purple-deep: #6f5b86;
  --lavender: #e9e1f0;
  --sky: #f5fafd;
  --paper: #fff;
  --line: #e6e1ea;
  font-family: "Avenir Next", Avenir, "Trebuchet MS", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
}

a {
  color: var(--purple-deep);
  text-underline-offset: 0.2em;
}

a:hover {
  color: #4f3b67;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b486d2;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.5rem 0.8rem;
  transform: translateY(-180%);
  background: #fff;
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(133, 111, 156, 0.16);
  background: #fff;
}

.homepage .site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  border-bottom-color: rgba(255, 255, 255, 0.5);
  background: transparent;
}

.homepage .site-header .brand,
.homepage .site-header .brand-tagline,
.homepage .site-header .nav-list a {
  color: rgba(255, 255, 255, 0.94);
}

.homepage .site-header .nav-list a[aria-current="page"] {
  box-shadow: inset 0 -2px #fff;
}

.nav-wrap {
  display: flex;
  width: min(1160px, calc(100% - 3rem));
  min-height: 92px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: grid;
  gap: 0.05rem;
  color: var(--purple);
  line-height: 1.2;
  text-decoration: none;
}

.brand-name {
  font-family: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.brand-name span {
  font-size: 0.78em;
  font-weight: 400;
}

.brand-tagline {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 2.35rem);
  list-style: none;
}

.nav-list a {
  display: inline-block;
  padding-block: 0.6rem;
  color: var(--ink);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--purple);
}

.nav-list a[aria-current="page"] {
  box-shadow: inset 0 -2px var(--purple);
}

.mobile-menu {
  display: none;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-color: var(--purple);
  background-image:
    linear-gradient(115deg, rgba(98, 78, 122, 0.92), rgba(133, 111, 156, 0.78)),
    url("images/header-circles.png");
  background-position: center, center 42%;
  background-size: cover;
}

.home-hero {
  display: grid;
  min-height: min(610px, 72vh);
  padding: 5rem 1.5rem 6rem;
  place-items: center;
  text-align: center;
  background-color: #6a73da;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.34)),
    url("images/home-page-header.jpg");
  background-position: center center;
}

.hero-content {
  width: min(760px, 100%);
  animation: rise-in 700ms ease-out both;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: #e9e1f0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5.4vw, 4.5rem);
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1.16;
}

.home-hero h1 {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
  margin: 1.15rem auto 2rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.button {
  display: inline-flex;
  min-height: 46px;
  padding: 0.68rem 1.55rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-light {
  background: #fff;
  color: var(--purple-deep);
}

.button-light:hover {
  background: var(--sky);
  color: var(--purple-deep);
}

.button-outline {
  border-color: var(--purple);
  color: var(--purple-deep);
}

.button-outline:hover {
  background: var(--purple);
  color: #fff;
}

.button-solid {
  background: var(--purple);
  color: #fff;
}

.button-solid:hover {
  background: var(--purple-deep);
  color: #fff;
}

.button-blue {
  background: #0ea0d7;
  color: #fff;
}

.button-blue:hover {
  background: #0782b1;
  color: #fff;
}

.scroll-cue {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  color: rgba(255, 255, 255, 0.82);
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
  transform: translateX(-50%);
}

.welcome-section {
  padding: 6.4rem 1.5rem 6rem;
  background: var(--sky);
}

.content-wrap {
  width: min(1060px, calc(100% - 3rem));
  margin-inline: auto;
}

.narrow {
  width: min(770px, 100%);
}

.center {
  text-align: center;
}

.welcome-section .eyebrow {
  color: var(--purple);
}

h2,
h3 {
  color: var(--purple-deep);
  font-weight: 500;
  line-height: 1.35;
}

.welcome-section h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}

.lead {
  margin: 0 auto;
  font-size: 1.15rem;
}

.welcome-copy {
  margin: 1.7rem auto 2rem;
  color: var(--muted);
}

.welcome-copy p {
  margin: 0.7rem 0;
}

.closing-band {
  padding: 1.5rem 0;
  background: #eee9f2;
}

.closing-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.closing-inner p {
  margin: 0;
  color: var(--purple-deep);
  font-size: 1.05rem;
}

.text-link {
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.page-hero {
  padding: 4.2rem 1.5rem;
  text-align: center;
}

.page-hero .eyebrow {
  margin-bottom: 0.6rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
}

.page-content {
  padding-block: 4.5rem 5rem;
}

.page-content h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.page-content h3 {
  margin: 1.8rem 0 0.65rem;
  font-size: 1.12rem;
  font-weight: 600;
}

.page-content p {
  margin: 0 0 1.15rem;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 225px;
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}

.portrait-frame {
  margin: 0.35rem 0 0;
  padding: 0.55rem;
  background: var(--sky);
  box-shadow: 0 12px 30px rgba(51, 40, 66, 0.12);
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: auto;
}

blockquote {
  margin: 1.6rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid #c9b7d7;
  color: var(--purple-deep);
  font-size: 1.12rem;
  font-style: italic;
}

blockquote cite {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.purpose-section {
  margin-top: 3.5rem;
  padding-top: 2.6rem;
  border-top: 1px solid var(--line);
}

.credential-list {
  display: grid;
  margin: 0.5rem 0 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 2rem;
  list-style: none;
}

.credential-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
}

.credential-list li::before {
  position: absolute;
  left: 0;
  color: var(--purple);
  content: "✧";
}

.modality {
  padding-block: 0.2rem 2.7rem;
  border-bottom: 1px solid var(--line);
}

.modality + .modality {
  padding-top: 2.7rem;
}

.modality:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.modality ul,
.modality ol {
  margin: 0.4rem 0 0;
  padding-left: 1.5rem;
}

.modality li {
  margin-bottom: 0.85rem;
  padding-left: 0.25rem;
}

.modality li::marker {
  color: var(--purple);
}

.note {
  color: var(--muted);
  font-size: 0.93rem;
  font-style: italic;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5.5rem);
}

.email-line span {
  color: var(--muted);
}

.contact-details {
  display: grid;
  margin: 1.7rem 0 2rem;
  padding: 0;
  gap: 0.65rem;
  list-style: none;
}

.contact-details li {
  position: relative;
  padding-left: 1.35rem;
}

.contact-details li::before {
  position: absolute;
  left: 0;
  color: var(--purple);
  content: "✧";
}

.policy-card {
  margin-top: 1.4rem;
  padding: 1.15rem 1.25rem;
  background: var(--sky);
}

.policy-card h3 {
  margin: 0 0 0.35rem;
}

.policy-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-card {
  padding: 1.8rem;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 36px rgba(51, 40, 66, 0.07);
}

.contact-logo {
  display: block;
  width: 118px;
  height: auto;
  margin: 0 auto 1rem;
}

.contact-card h2,
.contact-card > p {
  text-align: center;
}

.contact-card h2 {
  margin-bottom: 0.25rem;
  font-size: 1.4rem;
}

.contact-card > p {
  color: var(--muted);
  font-size: 0.9rem;
}

.email-button {
  display: flex;
  width: fit-content;
  margin: 1.25rem auto 0;
}

.site-footer {
  padding: 2.5rem 1.5rem;
  background: #352f3c;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.footer-brand {
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.footer-brand:hover {
  color: #e9e1f0;
}

.site-footer p {
  margin: 0.2rem 0 0.8rem;
  color: #c8bbd2;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer small {
  font-size: 0.77rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    width: min(100% - 2rem, 600px);
    min-height: 0;
    padding-block: 0.8rem;
    flex-direction: row;
    gap: 1rem;
  }

  .brand {
    text-align: left;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    position: relative;
    display: block;
  }

  .mobile-menu > summary {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    padding: 0.55rem 0.65rem;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 4px;
    color: var(--purple-deep);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    list-style: none;
  }

  .mobile-menu > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu > summary:hover {
    background: var(--sky);
  }

  .menu-icon {
    display: grid;
    width: 18px;
    gap: 4px;
  }

  .menu-icon span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }

  .mobile-menu[open] > summary {
    background: var(--sky);
  }

  .mobile-nav-list {
    position: absolute;
    z-index: 5;
    top: calc(100% + 0.55rem);
    right: 0;
    display: grid;
    width: min(280px, calc(100vw - 2rem));
    margin: 0;
    padding: 0.45rem;
    gap: 0.15rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(38, 29, 49, 0.2);
    list-style: none;
  }

  .mobile-nav-list a {
    display: flex;
    min-height: 44px;
    padding: 0.65rem 0.8rem;
    align-items: center;
    border-radius: 5px;
    color: var(--ink);
    font-size: 0.92rem;
    text-decoration: none;
  }

  .mobile-nav-list a:hover,
  .mobile-nav-list a[aria-current="page"] {
    background: #f1ebf5;
    color: var(--purple-deep);
  }

  .mobile-nav-list a[aria-current="page"] {
    font-weight: 600;
  }

  .homepage .site-header .mobile-menu > summary {
    color: #fff;
  }

  .homepage .site-header .mobile-menu > summary:hover,
  .homepage .site-header .mobile-menu[open] > summary {
    background: rgba(255, 255, 255, 0.16);
  }

  .home-hero {
    min-height: 510px;
    min-height: min(580px, 72svh);
  }

  .welcome-section {
    padding-block: 4.5rem;
  }

  .content-wrap {
    width: min(100% - 2rem, 600px);
  }

  .page-content {
    padding-block: 3.5rem 4rem;
  }

  .about-intro,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .portrait-frame {
    width: min(225px, 70%);
    margin-inline: auto;
    grid-row: 1;
  }

  .credential-list {
    grid-template-columns: 1fr;
  }

  .contact-card {
    width: min(100%, 460px);
    margin-inline: auto;
  }
}

@media (max-width: 460px) {
  .brand-tagline {
    font-size: 0.55rem;
    letter-spacing: 0.07em;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .page-hero {
    padding-block: 3.3rem;
  }

  .closing-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
