:root {
  color-scheme: light;
  --ink: #243a3a;
  --ink-soft: #546464;
  --teal: #356c68;
  --teal-dark: #254c4b;
  --teal-light: #e2ece7;
  --paper: #f7f5f0;
  --white: #fffefa;
  --line: #d9ded7;
  --accent: #bf946c;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.skip-link:focus {
  z-index: 20;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.8rem 1rem;
  clip: auto;
  clip-path: none;
  background: var(--white);
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgb(36 58 58 / 8%);
  background: rgb(247 245 240 / 94%);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  width: min(1340px, calc(100% - 72px));
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 208px;
}

.brand img,
.footer-brand img {
  width: 100%;
  height: auto;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.3vw, 2.5rem);
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 600;
}

.primary-navigation > a,
.nav-dropdown__trigger {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  transition: color 160ms ease;
}

.primary-navigation > a:hover,
.nav-dropdown__trigger:hover,
.nav-submenu a:hover {
  color: var(--teal);
}

.nav-contact {
  min-height: auto !important;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--teal);
  border-radius: 2px;
  color: var(--teal-dark);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown__button {
  display: inline-grid;
  width: 28px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  color: var(--teal-dark);
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
}

.nav-dropdown__button[aria-expanded="true"] {
  transform: rotate(180deg);
}

.nav-submenu {
  position: absolute;
  top: calc(100% - 3px);
  left: -1.1rem;
  display: grid;
  width: 300px;
  max-height: 70vh;
  gap: 0.15rem;
  overflow-y: auto;
  padding: 0.8rem;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 18px 45px rgb(36 58 58 / 12%);
  list-style: none;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 140ms ease 220ms, transform 140ms ease 220ms, visibility 0s linear 360ms;
}

/* Invisible hover bridge so the menu stays open while moving the pointer down */
.nav-dropdown::after {
  position: absolute;
  top: 100%;
  left: -1.1rem;
  width: 300px;
  height: 18px;
  content: "";
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu,
.nav-dropdown.is-open .nav-submenu {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.nav-submenu a {
  display: block;
  padding: 0.5rem 0.65rem;
  font-size: 0.8rem;
}

.nav-submenu a span {
  color: var(--ink-soft);
  font-weight: 400;
}

.menu-toggle {
  display: none;
}

.home-hero {
  display: grid;
  width: min(1340px, calc(100% - 72px));
  min-height: min(720px, calc(100vh - 96px));
  grid-template-columns: 0.93fr 1.07fr;
  align-items: center;
  gap: clamp(2rem, 7vw, 7.5rem);
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.home-hero__content {
  padding: 2rem 0 2rem 3.2rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow--accent {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--teal);
}

.eyebrow--accent span {
  width: 24px;
  height: 1px;
  background: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

h1 em,
h2 em {
  color: var(--teal);
  font-weight: 500;
}

.home-hero h1 {
  max-width: 650px;
  margin: 1.3rem 0 1.45rem;
  font-size: clamp(3.3rem, 5.6vw, 5.35rem);
}

.home-hero__intro {
  max-width: 500px;
  margin-bottom: 1.8rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.85;
}

.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 0.85rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.button--primary {
  color: white;
  background: var(--teal);
}

.button--primary:hover {
  background: var(--teal-dark);
}

.button--outline {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: transparent;
}

.button--outline:hover {
  color: white;
  background: var(--teal);
}

.button--light {
  color: var(--teal-dark);
  background: var(--white);
}

.button--light:hover {
  background: var(--teal-light);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.text-link span {
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.home-hero__meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 3.4rem;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.55;
}

.meta-mark {
  color: var(--accent);
  font-size: 2rem;
}

.home-hero__visual {
  position: relative;
  min-height: 475px;
  padding: 0 2.3rem 2rem 0;
}

.hero-image-frame {
  height: 100%;
  min-height: 475px;
  overflow: hidden;
  background: var(--teal-light);
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  min-height: 475px;
  object-fit: cover;
  object-position: center;
}

.hero-note {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  min-width: 230px;
  align-items: center;
  gap: 0.8rem;
  padding: 1.15rem 1.35rem;
  background: var(--white);
  box-shadow: 0 15px 35px rgb(36 58 58 / 9%);
  font-family: var(--serif);
  font-size: 0.94rem;
  line-height: 1.35;
}

.hero-note__icon {
  color: var(--teal);
  font-size: 1.5rem;
}

.hero-index {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.welcome-strip {
  display: flex;
  min-height: 105px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem max(36px, calc((100vw - 1250px) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f2f0e9;
}

.welcome-strip p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.18rem;
}

.welcome-strip .eyebrow {
  display: inline-block;
  margin: 0 1rem 0 0;
  font-family: var(--sans);
  font-size: 0.66rem;
}

.section {
  width: min(1210px, calc(100% - 72px));
  margin: 0 auto;
  padding: 7rem 0;
}

.section--intro {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  align-items: start;
  gap: 1.5rem 5rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.6rem, 4.3vw, 4.2rem);
}

.section-intro-copy {
  max-width: 470px;
  padding-top: 2rem;
}

.section-intro-copy p {
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
  line-height: 1.9;
}

.home-team-image {
  grid-column: 1 / -1;
  max-height: 500px;
  margin-top: 2.5rem;
  overflow: hidden;
  background: var(--teal-light);
}

.home-team-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  object-position: center 42%;
}

.intro-caption {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.69rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.services-preview {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: 5rem;
  border-top: 1px solid var(--line);
}

.section-heading--wide .section-lede {
  max-width: 370px;
  margin: 1.5rem 0 1.8rem;
  color: var(--ink-soft);
  line-height: 1.8;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  min-height: 76px;
  grid-template-columns: 36px 52px 1fr 20px;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  transition: padding 160ms ease, background-color 160ms ease;
}

.service-row:hover {
  padding: 0 0.6rem;
  background: #f0eee7;
}

.service-row__number {
  color: #8b9890;
  font-size: 0.67rem;
  font-weight: 700;
}

.service-row img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.service-row__title {
  font-family: var(--serif);
  font-size: 1.2rem;
}

.service-row__arrow {
  color: var(--teal);
  font-size: 1rem;
}

.appointment-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 5rem max(36px, calc((100vw - 1210px) / 2));
  color: white;
  background: var(--teal-dark);
}

.appointment-banner h2 {
  margin: 0;
  font-size: clamp(2.6rem, 4vw, 3.8rem);
}

.appointment-banner h2 em {
  color: #c6ddd3;
}

.eyebrow--light {
  color: #c6ddd3;
}

.appointment-banner__aside {
  max-width: 380px;
}

.appointment-banner__aside p {
  margin-bottom: 1.4rem;
  color: rgb(255 255 255 / 80%);
  line-height: 1.8;
}

.team-preview {
  padding-bottom: 8rem;
}

.team-preview .section-heading--wide {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.5rem 2rem;
  margin-bottom: 2.2rem;
}

.team-preview .section-heading--wide .eyebrow {
  grid-column: 1 / -1;
}

.team-preview .section-heading--wide .text-link {
  padding-bottom: 0.5rem;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}

.people-grid--featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.person-card {
  min-width: 0;
  background: var(--white);
}

.person-card__image-link {
  display: block;
  overflow: hidden;
  background: var(--teal-light);
}

.person-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 350ms ease;
}

.person-card__image-link:hover .person-card__image {
  transform: scale(1.035);
}

.person-card__body {
  padding: 1.3rem 1.35rem 1.5rem;
}

.person-card__body .eyebrow {
  margin-bottom: 0.4rem;
  font-size: 0.61rem;
}

.person-card h3 {
  margin-bottom: 0.45rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.25;
}

.person-card__body > p:not(.eyebrow) {
  min-height: 3.25em;
  margin-bottom: 1rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.65;
}

.person-card .text-link {
  font-size: 0.72rem;
}

.page-hero {
  width: min(1200px, calc(100% - 72px));
  margin: 0 auto;
  padding: 7rem 0 5rem;
}

.page-hero--small {
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(3rem, 6vw, 5.4rem);
}

.page-hero > p:last-child {
  max-width: 610px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.team-group {
  padding-top: 1.5rem;
  padding-bottom: 4.5rem;
}

.group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.group-heading .eyebrow {
  margin: 0;
  color: var(--teal);
}

.group-heading > span {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.speciality-list {
  padding-top: 1rem;
}

.speciality-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) 1.2fr;
  gap: 2.5rem;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
}

.speciality-card:last-child {
  border-bottom: 1px solid var(--line);
}

.speciality-card__header {
  display: grid;
  grid-template-columns: 35px 58px 1fr;
  align-items: center;
  gap: 0.7rem;
}

.speciality-card__header img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.speciality-card__header h2 {
  margin: 0;
  font-size: 1.75rem;
}

.speciality-card__content > p {
  max-width: 600px;
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.speciality-card__members {
  display: grid;
  gap: 0.7rem;
}

.speciality-member {
  display: grid;
  grid-template-columns: minmax(165px, 0.65fr) minmax(0, 1.35fr);
  align-items: start;
  gap: 1.2rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.speciality-member a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.25rem 0;
  font-size: 0.8rem;
  font-weight: 600;
}

.speciality-member a:hover {
  color: var(--teal);
}

.speciality-member p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.65;
}

.speciality-member span {
  color: var(--teal);
}

.centered-cta {
  padding: 1rem 2rem 7rem;
  text-align: center;
}

.cabinet-story {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  padding-top: 2rem;
}

.cabinet-story__image {
  position: relative;
  background: var(--teal-light);
}

.cabinet-story__image img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
}

.image-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 0.8rem 1rem;
  color: var(--ink);
  background: var(--white);
  font-size: 0.68rem;
}

.cabinet-story__copy h2,
.contact-information h2,
.profile-details h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.8rem, 4.5vw, 4.3rem);
}

.cabinet-story__copy > p:not(.eyebrow) {
  color: var(--ink-soft);
  line-height: 1.85;
}

.cabinet-story__copy .button {
  margin-top: 1rem;
}

.address-band {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1rem;
  padding: 2rem max(36px, calc((100vw - 1210px) / 2));
  border-top: 1px solid var(--line);
  background: #f0eee7;
}

.address-band .eyebrow {
  margin: 0;
}

.address-band > p:nth-child(2) {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.45;
}

.profile-hero {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: 4rem clamp(2rem, 7vw, 7rem);
  background: #f0eee7;
}

.profile-hero__image {
  width: 240px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: var(--teal-light);
  box-shadow: 0 12px 30px rgb(30 40 40 / 12%);
}

.profile-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.profile-hero__content {
  align-self: center;
}

.back-link {
  display: inline-block;
  margin-bottom: 3.5rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
}

.profile-hero__content h1 {
  margin: 0 0 1rem;
  font-size: clamp(3rem, 5.2vw, 5rem);
}

.profile-hero__content h1 em {
  color: var(--accent);
}

.profile-specialty {
  max-width: 500px;
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.4;
}

.notice {
  max-width: 500px;
  padding: 0.7rem 1rem;
  border-left: 2px solid var(--accent);
  color: var(--ink);
  background: rgb(255 254 250 / 75%);
  font-size: 0.8rem;
}

.profile-details {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 4rem;
}

.profile-biography > p {
  max-width: 720px;
  color: var(--ink-soft);
  line-height: 1.9;
}

.profile-contact {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #efede6;
}

.profile-contact p:not(.eyebrow) {
  margin-bottom: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.profile-contact .eyebrow {
  color: var(--teal);
}

.profile-contact .direct-contact {
  margin-top: 0.5rem;
}

.profile-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem max(36px, calc((100vw - 1210px) / 2));
  background: var(--teal-dark);
}

.profile-next .eyebrow {
  margin: 0;
  color: #d5e5dc;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(3rem, 9vw, 9rem);
  padding-top: 1rem;
  padding-bottom: 8rem;
}

.contact-information h2 {
  margin-bottom: 2.5rem;
}

.contact-detail {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.contact-detail .eyebrow {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.62rem;
}

.contact-detail > a,
.contact-detail > p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.5;
}

.contact-reminder {
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.contact-form-wrap {
  padding: 2rem;
  border: 1px solid var(--line);
  background: var(--white);
}

.contact-form-wrap h2 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.form-intro {
  max-width: 620px;
  margin-bottom: 1.8rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.75;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.form-grid label {
  display: grid;
  gap: 0.4rem;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
}

.form-grid input:not([type="checkbox"]),
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  border: 1px solid #cbd2cb;
  border-radius: 0;
  color: var(--ink);
  background: #fff;
  font-size: 0.84rem;
  font-weight: 400;
}

.form-grid textarea {
  resize: vertical;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.form-grid__full {
  grid-column: 1 / -1;
}

.privacy-check {
  display: flex !important;
  align-items: flex-start;
  gap: 0.65rem !important;
  color: var(--ink-soft) !important;
  font-weight: 400 !important;
}

.privacy-check input {
  margin: 0.2rem 0 0;
  accent-color: var(--teal);
}

.contact-form-wrap form > .button {
  margin-top: 1.4rem;
}

.form-feedback {
  margin: 1rem 0 0;
  color: var(--teal-dark);
  font-size: 0.82rem;
}

.form-feedback--error {
  color: #b42318;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  padding: 4rem max(36px, calc((100vw - 1210px) / 2)) 1.4rem;
  color: rgb(255 255 255 / 88%);
  background: #203f3f;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  align-items: center;
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer-brand {
  display: block;
  width: 210px;
  padding: 0.6rem;
  background: white;
}

.footer-main .eyebrow {
  color: #bed6cd;
  font-size: 0.61rem;
}

.footer-main p:not(.eyebrow) {
  margin-bottom: 0;
  font-size: 0.82rem;
  line-height: 1.7;
}

.footer-phone {
  display: inline-block;
  margin-top: -0.25rem;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgb(255 255 255 / 20%);
  color: rgb(255 255 255 / 64%);
  font-size: 0.66rem;
}

.footer-bottom a:hover {
  color: white;
}

@media (max-width: 980px) {
  .header-inner {
    width: min(100% - 48px, 1340px);
  }

  .brand {
    width: 180px;
  }

  .primary-navigation {
    gap: 1rem;
    font-size: 0.76rem;
  }

  .home-hero {
    width: min(100% - 48px, 1340px);
    gap: 2rem;
  }

  .home-hero__content {
    padding-left: 0;
  }

  .home-hero__visual,
  .hero-image-frame,
  .hero-image-frame img {
    min-height: 400px;
  }

  .section,
  .page-hero {
    width: min(100% - 48px, 1210px);
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main .button {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .header-inner {
    width: calc(100% - 36px);
    min-height: 78px;
  }

  .brand {
    width: 165px;
  }

  .menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    color: var(--teal-dark);
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle__icon,
  .menu-toggle__icon::before,
  .menu-toggle__icon::after {
    position: relative;
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: transform 160ms ease;
  }

  .menu-toggle__icon::before,
  .menu-toggle__icon::after {
    position: absolute;
    left: 0;
    content: "";
  }

  .menu-toggle__icon::before {
    transform: translateY(-6px);
  }

  .menu-toggle__icon::after {
    transform: translateY(6px);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__icon {
    background: transparent;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__icon::before {
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__icon::after {
    transform: rotate(-45deg);
  }

  .primary-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1.1rem 1.2rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 15px 25px rgb(36 58 58 / 8%);
    font-size: 0.86rem;
  }

  .primary-navigation.is-open {
    display: flex;
    flex-direction: column;
  }

  .primary-navigation > a,
  .nav-dropdown__trigger {
    min-height: 45px;
  }

  .nav-contact {
    justify-content: center;
    margin-top: 0.5rem;
  }

  .nav-dropdown {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav-dropdown__top {
    justify-content: space-between;
  }

  .nav-submenu {
    position: static;
    display: none;
    width: 100%;
    max-height: 220px;
    gap: 0;
    padding: 0 0 0.6rem 0.65rem;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .nav-dropdown::after {
    display: none;
  }

  .nav-dropdown:hover .nav-submenu,
  .nav-dropdown:focus-within .nav-submenu,
  .nav-dropdown.is-open .nav-submenu {
    display: grid;
  }

  .nav-submenu a {
    padding: 0.45rem;
  }

  .home-hero {
    width: calc(100% - 36px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 2.2rem;
    padding: 3.7rem 0 3.5rem;
  }

  .home-hero__content {
    padding: 0;
  }

  .home-hero h1 {
    font-size: clamp(3rem, 13vw, 4.3rem);
  }

  .home-hero__intro {
    font-size: 0.93rem;
  }

  .home-hero__meta {
    margin-top: 2rem;
  }

  .home-hero__visual,
  .hero-image-frame,
  .hero-image-frame img {
    min-height: 290px;
  }

  .home-hero__visual {
    padding-right: 1.2rem;
  }

  .hero-note {
    min-width: 190px;
    padding: 0.9rem 1rem;
    font-size: 0.82rem;
  }

  .welcome-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.3rem 18px;
  }

  .welcome-strip p {
    font-size: 1.02rem;
  }

  .welcome-strip .eyebrow {
    display: block;
    margin-bottom: 0.4rem;
  }

  .section,
  .page-hero {
    width: calc(100% - 36px);
  }

  .section {
    padding: 4.5rem 0;
  }

  .section--intro,
  .services-preview,
  .cabinet-story,
  .profile-details,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-intro-copy {
    padding-top: 0;
  }

  .home-team-image {
    margin-top: 0.5rem;
  }

  .home-team-image img {
    min-height: 260px;
    object-fit: cover;
  }

  .intro-caption {
    flex-direction: column;
    gap: 0.45rem;
  }

  .services-preview {
    gap: 2.5rem;
  }

  .appointment-banner {
    align-items: flex-start;
    flex-direction: column;
    padding: 3.6rem 18px;
  }

  .appointment-banner__aside {
    max-width: none;
  }

  .team-preview .section-heading--wide {
    grid-template-columns: 1fr;
  }

  .team-preview .section-heading--wide .text-link {
    justify-self: start;
    padding: 0.5rem 0 0;
  }

  .people-grid,
  .people-grid--featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .person-card__body {
    padding: 1rem;
  }

  .person-card h3 {
    font-size: 1.1rem;
  }

  .person-card__body > p:not(.eyebrow) {
    font-size: 0.76rem;
  }

  .page-hero,
  .page-hero--small {
    padding: 4rem 0 2.8rem;
  }

  .page-hero h1 {
    font-size: clamp(2.85rem, 12vw, 4.2rem);
  }

  .team-group {
    padding-top: 1rem;
    padding-bottom: 3rem;
  }

  .speciality-card {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 1.6rem 0;
  }

  .speciality-card__header {
    grid-template-columns: 30px 45px 1fr;
  }

  .speciality-card__header img {
    width: 38px;
    height: 38px;
  }

  .speciality-card__header h2 {
    font-size: 1.5rem;
  }

  .speciality-member {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .cabinet-story {
    padding-top: 0;
  }

  .cabinet-story__image img {
    min-height: 250px;
  }

  .address-band {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.6rem 18px;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 18px 3rem;
  }

  .profile-hero__image {
    width: 150px;
  }

  .back-link {
    margin-bottom: 2.1rem;
  }

  .profile-hero__content h1 {
    font-size: clamp(2.8rem, 11vw, 4rem);
  }

  .profile-details {
    gap: 0.5rem;
  }

  .profile-next {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.6rem 18px;
  }

  .contact-layout {
    gap: 2rem;
    padding-top: 0;
    padding-bottom: 4.5rem;
  }

  .contact-information h2 {
    margin-bottom: 1.5rem;
  }

  .contact-form-wrap {
    padding: 1.2rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid__full {
    grid-column: auto;
  }

  .site-footer {
    padding: 3rem 18px 1.2rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 2rem;
  }

  .footer-brand {
    width: 190px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.4rem;
  }
}

@media (max-width: 400px) {
  .people-grid,
  .people-grid--featured {
    grid-template-columns: 1fr;
  }

  .person-card__image {
    aspect-ratio: 1.15 / 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
