:root {
  --ink: #17181c;
  --ink-soft: #55565d;
  --paper: #f7f4ef;
  --surface: #fffdf9;
  --white: #ffffff;
  --wine: #711c36;
  --wine-dark: #4d1024;
  --wine-soft: #f4e8ec;
  --gold: #c79b52;
  --line: #ded8cf;
  --line-dark: #c9c0b4;
  --shadow: 0 18px 60px rgba(37, 24, 29, 0.08);
  --sidebar: 18rem;
  --content: 68rem;
  --reading: 48rem;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(113, 28, 54, 0.025) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: var(--wine);
  text-decoration-color: rgba(113, 28, 54, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--wine-dark);
  text-decoration-color: currentColor;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 1rem;
  top: 1rem;
  transform: translateY(-200%);
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--wine);
  border-radius: 0.35rem;
}

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

.site-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 2.25rem 1.75rem;
  color: rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.1), transparent 28%),
    linear-gradient(165deg, var(--wine) 0%, var(--wine-dark) 100%);
  overflow: auto;
}

.brand,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: grid;
  line-height: 1.25;
}

.brand-copy strong,
.mobile-brand strong {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-copy small,
.mobile-brand small {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.74rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.primary-nav {
  display: grid;
  gap: 0.3rem;
  margin: 4.5rem 0 2rem;
}

.primary-nav > .nav-page {
  position: relative;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.65rem;
  align-items: center;
  min-height: 3.15rem;
  padding: 0.55rem 0.7rem;
  color: rgba(255, 255, 255, 0.72);
  border-radius: 0.45rem;
  font-size: 0.95rem;
  font-weight: 580;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.primary-nav > .nav-page > span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.primary-nav > .nav-page:hover,
.primary-nav > .nav-page[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(0.2rem);
}

.primary-nav > .nav-page[aria-current="page"]::before {
  position: absolute;
  left: -1.75rem;
  width: 0.28rem;
  height: 1.8rem;
  background: var(--gold);
  content: "";
}

.subnav {
  display: none;
  gap: 0.08rem;
  margin: 0.1rem 0 0.75rem 2.68rem;
  padding: 0.25rem 0 0.35rem 0.72rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.primary-nav > .nav-page[aria-current="page"] + .subnav:not(:empty) {
  display: grid;
}

.subnav a {
  padding: 0.38rem 0.45rem;
  color: rgba(255, 255, 255, 0.62);
  border-radius: 0.28rem;
  font-size: 0.76rem;
  font-weight: 520;
  line-height: 1.35;
  text-decoration: none;
}

.subnav a:hover,
.subnav a[aria-current="location"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-note {
  margin-top: auto;
  padding-top: 2.5rem;
}

.sidebar-note p {
  margin: 0.7rem 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--serif);
  font-size: 0.9rem;
  line-height: 1.55;
}

.note-line {
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--gold);
}

.mobile-header {
  display: none;
}

.main-content {
  min-width: 0;
  padding: 0 clamp(1.2rem, 4vw, 4.5rem) 3rem;
}

.content-toolbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 4.75rem;
  margin: 0 calc(clamp(1.2rem, 4vw, 4.5rem) * -1);
  padding: 0 clamp(1.2rem, 4vw, 4.5rem);
  background: rgba(247, 244, 239, 0.91);
  border-bottom: 1px solid rgba(201, 192, 180, 0.62);
  backdrop-filter: blur(14px);
}

.content-toolbar p {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  margin: 0;
  line-height: 1;
}

.toolbar-kicker {
  color: var(--ink-soft);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.content-toolbar strong {
  font-family: var(--serif);
  font-size: 1.05rem;
}

.content-toolbar > div {
  display: flex;
  gap: 0.4rem;
}

.content-toolbar button,
.section-index button {
  border: 1px solid var(--line-dark);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.content-toolbar button {
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 99rem;
  font-size: 0.78rem;
  font-weight: 650;
}

.content-toolbar button:hover,
.section-index button:hover {
  color: var(--white);
  background: var(--wine);
  border-color: var(--wine);
}

.portfolio-page {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 7rem) 0;
}

.js .portfolio-page:not(.is-active) {
  display: none;
}

.js .portfolio-page.is-active {
  animation: page-in 380ms ease both;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(0.7rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .portfolio-page.is-active { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

.portfolio-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 19rem);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  align-content: center;
  min-height: min(44rem, calc(100vh - 8rem));
  padding: clamp(2rem, 7vw, 6rem);
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(67, 10, 30, 0.97), rgba(113, 28, 54, 0.9)),
    var(--wine);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  isolation: isolate;
  overflow: hidden;
}

.hero-copy {
  min-width: 0;
}

.hero-portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
}

.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.45rem;
  box-shadow: 0 18px 48px rgba(25, 4, 12, 0.3);
}

.hero-portrait figcaption {
  margin-top: 0.65rem;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.67rem;
  line-height: 1.45;
}

.hero-portrait a {
  color: inherit;
  text-decoration-color: rgba(255, 255, 255, 0.42);
  text-underline-offset: 0.16em;
}

.hero-portrait a:hover {
  color: white;
}

.portfolio-hero::before {
  position: absolute;
  inset: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.4rem;
  content: "";
  z-index: -1;
}

.portfolio-hero::after {
  position: absolute;
  right: -0.06em;
  bottom: -0.34em;
  color: rgba(255, 255, 255, 0.045);
  content: "K";
  font-family: var(--serif);
  font-size: clamp(18rem, 42vw, 39rem);
  font-weight: 700;
  line-height: 1;
  z-index: -1;
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portfolio-hero h1,
.page-intro h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.portfolio-hero h1 {
  max-width: 9ch;
  font-size: clamp(4rem, 10vw, 8.2rem);
}

.hero-lead {
  max-width: 36rem;
  margin: 2rem 0 0;
  color: rgba(255, 255, 255, 0.79);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.45;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2.3rem;
}

.hero-meta span {
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 99rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.76rem;
}

.portfolio-map {
  display: grid;
  grid-template-columns: minmax(14rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  margin: clamp(3rem, 7vw, 6rem) 0;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  box-shadow: var(--shadow);
}

.portfolio-map-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.portfolio-map-copy > p:last-child {
  margin: 1.2rem 0 0;
  color: var(--ink-soft);
}

.map-kicker {
  margin: 0 0 0.8rem;
  color: var(--wine);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.portfolio-map-grid a {
  display: grid;
  align-content: start;
  min-height: 11rem;
  padding: 1.15rem;
  color: var(--ink);
  background: #fbf7f8;
  border: 1px solid #e8d8de;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.portfolio-map-grid a:hover {
  color: var(--wine-dark);
  border-color: var(--wine);
  box-shadow: 0 10px 28px rgba(77, 16, 36, 0.08);
  transform: translateY(-0.15rem);
}

.portfolio-map-grid span {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 1.45rem;
}

.portfolio-map-grid strong {
  margin-top: 0.8rem;
  font-family: var(--serif);
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.28;
}

.portfolio-map-grid small {
  align-self: end;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-intro {
  display: grid;
  grid-template-columns: minmax(5rem, 0.22fr) 1fr;
  gap: clamp(1rem, 4vw, 4rem);
  align-items: start;
  padding: 2rem 0 clamp(3rem, 8vw, 7rem);
}

.page-number {
  color: var(--wine);
  font-family: var(--serif);
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 0.8;
}

.page-intro h1 {
  max-width: 19ch;
  font-size: clamp(2.7rem, 5.6vw, 5.2rem);
  line-height: 1.02;
}

.page-intro div > p:last-child {
  max-width: 36rem;
  margin: 1.4rem 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.section-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2.5rem 0 4rem;
  padding: 0;
}

.section-index:empty {
  display: none;
}

.section-index button {
  max-width: 22rem;
  min-height: 2.6rem;
  padding: 0.5rem 0.8rem;
  border-radius: 0.35rem;
  font-size: 0.8rem;
  line-height: 1.25;
  text-align: left;
}

.competency-card {
  margin: 0 0 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  box-shadow: 0 8px 30px rgba(37, 24, 29, 0.035);
  overflow: clip;
}

.competency-card > summary {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  min-height: 5.2rem;
  padding: 1.25rem clamp(1rem, 3vw, 2rem);
  cursor: pointer;
  list-style: none;
}

.summary-copy {
  min-width: 0;
}

.section-kind {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--wine);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-transform: uppercase;
}

.competency-card > summary::-webkit-details-marker {
  display: none;
}

.competency-card > summary:hover {
  background: var(--wine-soft);
}

.competency-card[open] > summary {
  color: var(--wine-dark);
  background: linear-gradient(90deg, var(--wine-soft), rgba(244, 232, 236, 0.28));
  border-bottom: 1px solid var(--line);
}

.competency-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.25;
}

.chevron {
  position: relative;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
}

.chevron::before,
.chevron::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.72rem;
  height: 1px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.chevron::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.competency-card[open] .chevron::after {
  transform: translate(-50%, -50%) rotate(0);
}

.competency-body {
  width: min(100%, calc(var(--reading) + 4rem));
  padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 4vw, 3.5rem) clamp(2.5rem, 6vw, 5rem);
}

.competency-body > * {
  max-width: var(--reading);
}

.competency-body p {
  margin: 0 0 1.15em;
  font-size: 1.04rem;
}

.competency-body p:has(> strong:only-child) {
  margin-top: 2rem;
  color: var(--wine-dark);
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.4;
}

.competency-body h3,
.competency-body h4 {
  margin: 2.6rem 0 1rem;
  font-family: var(--serif);
  line-height: 1.3;
}

.competency-body .supporting-topic {
  padding-top: 2.4rem;
  color: var(--wine-dark);
  border-top: 1px solid var(--line);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.competency-body ul,
.competency-body ol {
  padding-left: 1.45rem;
  margin: 1rem 0 1.5rem;
}

.competency-body li {
  margin: 0.45rem 0;
  padding-left: 0.18rem;
}

.competency-body blockquote {
  margin: 2rem 0;
  padding: 0.4rem 0 0.4rem 1.5rem;
  color: #444148;
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-size: 1.06rem;
}

.competency-body blockquote > :last-child {
  margin-bottom: 0;
}

.competency-body em {
  color: #504951;
}

.competency-body hr {
  width: 4rem;
  margin: 3rem 0;
  border: 0;
  border-top: 2px solid var(--gold);
}

.competency-body a[href^="http"] {
  overflow-wrap: anywhere;
}

.competency-body p > a.external-evidence:only-child,
.competency-body blockquote p > a.external-evidence:only-child {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  padding: 0.55rem 0.8rem;
  color: var(--wine-dark);
  background: var(--wine-soft);
  border: 1px solid #e8cfd8;
  border-radius: 0.35rem;
  font-size: 0.82rem;
  font-weight: 680;
  line-height: 1.3;
  text-decoration: none;
}

.external-evidence::after {
  flex: 0 0 auto;
  content: "↗";
  font-size: 1rem;
}

.competency-body img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 0.45rem;
}

.competency-body .content-photo {
  max-width: 42rem;
  margin: 2rem 0;
}

.competency-body .content-photo img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0.45rem;
}

.competency-body img[src$="image1.png"],
.competency-body img[src$="image2.png"],
.competency-body img[src$="image3.png"],
.competency-body img[src$="image4.png"],
.competency-body img[src$="image5.png"],
.competency-body img[src$="image6.png"],
.competency-body img[src$="image8.png"],
.competency-body img[src$="image9.png"],
.competency-body img[src$="image10.png"],
.competency-body img[src$="image11.png"] {
  display: inline;
  width: 1.1em !important;
  height: 1.1em !important;
  margin: 0 0.1em;
  border-radius: 0;
  vertical-align: -0.15em;
}

.competency-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  overflow-x: auto;
  font-size: 0.9rem;
}

.competency-body th,
.competency-body td {
  min-width: 10rem;
  padding: 0.8rem;
  border: 1px solid var(--line-dark);
  text-align: left;
  vertical-align: top;
}

.competency-body th {
  color: var(--wine-dark);
  background: var(--wine-soft);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 2rem 0 1rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line-dark);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

.to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 25;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: var(--white);
  background: var(--wine);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(77, 16, 36, 0.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.6rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-scrim {
  display: none;
}

.menu-scrim[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .mobile-header {
    position: sticky;
    z-index: 50;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 4.5rem;
    padding: 0.6rem 1rem;
    color: var(--white);
    background: var(--wine-dark);
    box-shadow: 0 8px 24px rgba(38, 8, 19, 0.16);
  }

  .mobile-brand .brand-mark {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 0.8rem;
  }

  .mobile-brand > span:last-child {
    display: grid;
    line-height: 1.1;
  }

  .mobile-brand strong {
    font-size: 1rem;
  }

  .mobile-brand small {
    font-size: 0.64rem;
  }

  .menu-button {
    display: grid;
    gap: 0.28rem;
    width: 2.8rem;
    height: 2.8rem;
    padding: 0.68rem;
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 0.35rem;
    cursor: pointer;
  }

  .menu-button span[aria-hidden="true"] {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
  }

  .site-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    z-index: 70;
    left: 0;
    top: 0;
    width: min(86vw, 20rem);
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  body.menu-open .sidebar {
    transform: translateX(0);
  }

  .menu-scrim {
    position: fixed;
    z-index: 60;
    inset: 0;
    display: none;
    background: rgba(20, 10, 14, 0.58);
    backdrop-filter: blur(2px);
  }

  body.menu-open .menu-scrim:not([hidden]) {
    display: block;
  }

  .main-content {
    padding-inline: clamp(1rem, 4vw, 2.2rem);
  }

  .content-toolbar {
    top: 4.5rem;
    min-height: 3.9rem;
  }

  .content-toolbar .toolbar-kicker {
    display: none;
  }

  .portfolio-page {
    padding-top: 2.5rem;
  }

  .portfolio-hero {
    grid-template-columns: minmax(0, 1fr) minmax(11rem, 15rem);
    gap: 2rem;
    min-height: 34rem;
    padding: 2rem;
  }

  .page-intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portfolio-map {
    grid-template-columns: 1fr;
  }

  .page-number {
    font-size: 3.8rem;
  }
}

@media (max-width: 560px) {
  body {
    line-height: 1.68;
  }

  .content-toolbar p {
    max-width: 9rem;
    line-height: 1.2;
  }

  .content-toolbar > div {
    gap: 0.25rem;
  }

  .content-toolbar button {
    min-height: 2.2rem;
    padding: 0.35rem 0.52rem;
    font-size: 0.72rem;
  }

  .portfolio-hero {
    grid-template-columns: 1fr;
    min-height: 30rem;
    margin-inline: -0.15rem;
    padding: 1.65rem;
  }

  .hero-portrait {
    width: min(100%, 13rem);
  }

  .portfolio-hero h1 {
    font-size: clamp(3.7rem, 19vw, 5.5rem);
  }

  .hero-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-intro h1 {
    font-size: clamp(2.35rem, 10.5vw, 3.7rem);
  }

  .portfolio-map-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-map-grid a {
    min-height: 9rem;
  }

  .section-index {
    margin-bottom: 2.5rem;
  }

  .section-index button {
    width: 100%;
    max-width: none;
  }

  .competency-card > summary {
    min-height: 4.7rem;
  }

  .competency-body p {
    font-size: 1rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  body {
    background: white;
    color: black;
  }

  .mobile-header,
  .sidebar,
  .content-toolbar,
  .to-top,
  .menu-scrim,
  .section-index,
  .site-footer {
    display: none !important;
  }

  .site-shell {
    display: block;
  }

  .main-content,
  .portfolio-page {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .portfolio-page {
    display: block !important;
    break-before: page;
  }

  .portfolio-page:first-of-type {
    break-before: auto;
  }

  .portfolio-hero {
    display: block;
    min-height: 0;
    color: black;
    background: white;
    border: 2px solid black;
    box-shadow: none;
  }

  .portfolio-hero::after,
  .portfolio-hero::before {
    display: none;
  }

  .hero-portrait {
    width: 10rem;
    margin-top: 1.5rem;
  }

  .hero-portrait figcaption {
    color: black;
  }

  .competency-card {
    border: 0;
    box-shadow: none;
    overflow: visible;
    break-inside: auto;
  }

  .competency-card > summary {
    padding-inline: 0;
    border-bottom: 1px solid #777;
  }

  .chevron {
    display: none;
  }

  .competency-body {
    max-width: none;
    padding-inline: 0;
  }
}
