html:has(> body:is([data-page="palette"], [data-page="about"], [data-page="contact"])),
body:is([data-page="palette"], [data-page="about"], [data-page="contact"]) {
  background: #fff;
  color: #191919;
  color-scheme: light;
}
.profile-page {
  width: min(100%, 1380px);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 72px) clamp(20px, 5.5vw, 86px) clamp(48px, 7vw, 96px);
  font: 400 clamp(16px, 1.22vw, 19px)/1.55 var(--portfolio-font);
}
.profile-page h1, .profile-page h2, .profile-page p, .profile-page figure { margin: 0; }
.profile-page h2 { font-size: clamp(22px, 2.35vw, 34px); line-height: 1.2; font-weight: 400; }
.profile-page .profile-title {
  margin-bottom: clamp(26px, 3.5vw, 52px);
  font-size: clamp(44px, 6.2vw, 88px);
  font-weight: 400;
  line-height: 1.07;
}
.profile-lead { font-size: clamp(20px, 2.15vw, 32px); line-height: 1.34; }
.profile-figure { min-width: 0; }
.profile-figure img { display: block; width: 100%; object-fit: cover; }
.profile-figure figcaption {
  margin-top: .6em;
  color: #595959;
  font-size: clamp(14px, 1vw, 16px);
}
.profile-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  overflow-wrap: anywhere;
}
.profile-link:hover { color: #595959; }

.palette-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
  border-top: 1px solid #222;
  padding-block: clamp(20px, 3vw, 40px);
}
.palette-intro .profile-title { margin: 0; font-size: clamp(30px, 5.15vw, 68px); }
.palette-slogan {
  justify-self: end;
  max-width: 24ch;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.25;
  text-wrap: balance;
}
body[data-page="palette"] #main { container-type: inline-size; }
/* Keep the banner height tied to the text column as the artwork reaches both page edges. */
.palette-banner-slot { position: relative; aspect-ratio: 2.125; }
.palette-banner {
  position: absolute;
  inset-block: 0;
  left: 50%;
  width: 100cqw;
  transform: translateX(-50%);
  overflow: hidden;
}
.palette-banner img { height: 100%; object-fit: fill; }
.palette-section, .palette-programs {
  margin-top: clamp(40px, 5vw, 76px);
  border-top: 1px solid #222;
  padding-top: clamp(18px, 2.4vw, 32px);
}
.palette-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(20px, 5vw, 72px);
  align-items: start;
}
.profile-palette h2, .palette-program-list h3 { text-wrap: balance; }
.palette-section-heading .palette-tagline {
  max-width: 34ch;
  margin-top: .9em;
  color: #595959;
  line-height: 1.45;
}
.palette-copy { max-width: 64ch; line-height: 1.65; }
.palette-copy p + p { margin-top: 1em; }
.palette-copy .profile-link { margin-top: .6em; }
.palette-program-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 42px) clamp(28px, 6vw, 88px);
  margin: clamp(22px, 3vw, 36px) 0 0;
  padding: 0;
  list-style: none;
}
.palette-program-list li { border-top: 1px solid #b6b6b0; padding-top: 1em; }
.palette-program-list h3 { margin: 0; font-size: clamp(20px, 1.85vw, 27px); line-height: 1.25; font-weight: 400; }
.palette-program-list p { margin-top: .65em; max-width: 52ch; }

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.about-identity { min-width: 0; }
.about-identity .about-name { margin-top: .6em; font-size: clamp(28px, 2.65vw, 40px); }
.about-identity .about-roles { margin-top: .4em; line-height: 1.45; }
.about-credentials {
  list-style: none;
  border-top: 1px solid #b6b6b0;
  margin: 1.1em 0 0;
  padding: .9em 0 0;
  font-size: clamp(15px, 1.1vw, 17px);
}
.about-credentials li + li { margin-top: .32em; }
.about-copy {
  min-width: 0;
  max-width: 67ch;
  border-top: 1px solid #222;
  padding-top: clamp(16px, 1.6vw, 24px);
  line-height: 1.65;
}
.about-copy p + p { margin-top: 1.1em; }
.about-links { display: flex; flex-wrap: wrap; column-gap: 1.8em; margin-top: 1.2em; }
.about-highlights { margin-top: 2em; }
.about-highlights ul { list-style: none; padding: 0; margin: .8em 0 0; }
.about-highlights li { display: grid; grid-template-columns: auto 1fr; gap: 1.2em; border-top: 1px solid #bbb; padding-block: .6em; }

.profile-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(32px, 9vw, 145px); }
.contact-intro { min-width: 0; }
.contact-intro .profile-lead { max-width: 29ch; }
.contact-intro .profile-link { margin-top: 1em; }
.profile-form {
  min-width: 0;
  margin: 0;
  border-top: 1px solid #222;
  padding-top: clamp(18px, 2vw, 30px);
}
.profile-form label { display: block; margin-bottom: 1.25em; }
.profile-form label > span { display: block; margin-bottom: .5em; font-size: 1.12em; }
.profile-form input, .profile-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid #aca9a4;
  border-radius: 0;
  padding: .65em .8em;
  color: #191919;
  background: #fff;
  font: 400 16px/1.5 var(--portfolio-font);
}
.profile-form textarea { resize: vertical; }
.profile-submit {
  min-height: 45px;
  border: 1px solid #191919;
  border-radius: 0;
  padding: .55em 1.2em;
  color: #fff;
  background: #191919;
  font: inherit;
  cursor: pointer;
}
.profile-submit:hover { background: #383833; }
.profile-submit:focus-visible { outline: 2px solid #191919; }
.profile-form .profile-form-status { margin-top: 1em; line-height: 1.4; font-size: .94em; color: #50504b; }
.profile-form .profile-form-status:empty { margin: 0; }
.profile-form .profile-manual-copy { margin-top: .8em; }
.profile-form [hidden] { display: none; }

@media (max-width: 820px) {
  .about-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .about-identity { width: min(100%, 420px); }
  .palette-intro { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .palette-intro .profile-title { font-size: clamp(24px, 8.15vw, 68px); }
  .palette-slogan { justify-self: start; max-width: none; }
  .palette-section { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 650px) {
  .profile-page { padding-inline: clamp(16px, 5vw, 30px); }
  .palette-program-list, .profile-contact { grid-template-columns: minmax(0, 1fr); }
  .palette-banner-slot { aspect-ratio: 1.375; }
  .contact-intro .profile-lead { max-width: 42ch; }
}
