:root {
  --bg-sidebar: #071a2c;
  --bg-main: #0f2236;
  --bg-elevated: #142a40;
  --text: #f1f5fb;
  --muted: rgba(226, 235, 246, 0.76);
  --soft: rgba(226, 235, 246, 0.56);
  --line: rgba(155, 185, 221, 0.2);
  --line-strong: rgba(155, 185, 221, 0.36);
  --teal: #43d7cf;
  --coral: #ff755f;
  --yellow: #f3c34c;
  --ink: #071a2c;
  --sidebar-width: clamp(23rem, 27vw, 27.5rem);
  --content-pad: clamp(2.2rem, 4vw, 4.2rem);
  --max-content: 76rem;
  --radius: 0.45rem;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg-main);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

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

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

.mobile-header {
  display: none;
}

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

.profile-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-self: start;
  width: 100%;
  height: 100svh;
  padding: clamp(1.75rem, 3.6vh, 2.8rem) clamp(1.7rem, 3vw, 3rem) 1.75rem;
  overflow-y: auto;
  border-right: 1px solid var(--line-strong);
  background: var(--bg-sidebar);
}

.profile-intro {
  display: grid;
}

.monogram {
  width: fit-content;
  margin-bottom: clamp(1.25rem, 2.8vh, 2.2rem);
  color: var(--teal);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.profile-intro h1 {
  margin: 0;
  font-size: clamp(3.15rem, 4.2vw, 4.35rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.profile-role {
  margin: 1.35rem 0 0;
  color: var(--teal);
  font-size: clamp(1.25rem, 1.75vw, 1.55rem);
  line-height: 1.24;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.profile-purpose {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.site-nav {
  display: grid;
  gap: 0.08rem;
  margin-top: clamp(1.25rem, 2.8vh, 2rem);
  padding: clamp(1rem, 2vh, 1.45rem) 0;
  border-top: 1px solid var(--line);
}

.nav-label {
  margin: 0 0 0.55rem;
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav a {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.15rem;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 600;
  transition: color 160ms ease, transform 160ms ease;
}

.site-nav a i {
  color: var(--soft);
  font-size: 1.05rem;
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--text);
  transform: translateX(0.18rem);
}

.site-nav a.is-active {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25rem;
}

.site-nav a.is-active i {
  color: var(--teal);
}

.sidebar-actions {
  display: grid;
  gap: 0.72rem;
  margin-top: auto;
  padding-top: clamp(1rem, 2.5vh, 1.8rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

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

.button-primary:hover {
  background: #72e9e2;
}

.button-secondary {
  border-color: rgba(243, 195, 76, 0.72);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.sidebar-contact {
  display: grid;
  gap: 0.48rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.78rem;
  font-style: normal;
}

.sidebar-contact a,
.sidebar-contact p {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  min-height: 1.65rem;
  margin: 0;
}

.sidebar-contact a {
  transition: color 160ms ease;
}

.sidebar-contact a:hover {
  color: var(--text);
}

.sidebar-contact i {
  color: var(--muted);
  font-size: 0.95rem;
}

.cv-main {
  min-width: 0;
  background: var(--bg-main);
}

.cv-main > section,
.site-footer {
  width: min(100%, var(--max-content));
  margin-inline: auto;
  padding: clamp(3rem, 4.5vw, 4.5rem) var(--content-pad);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 1rem;
}

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

.section-heading {
  max-width: 49rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.72fr);
  align-items: end;
  gap: 3rem;
  max-width: none;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-heading > p,
.section-heading-row > p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.section-heading-row > p {
  margin: 0;
}

.summary-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(17rem, 0.75fr);
  align-items: start;
  gap: clamp(3rem, 6vw, 6rem);
  min-height: 0;
}

.cv-main > .summary-section {
  padding-top: 2.5rem;
  padding-bottom: 1.2rem;
}

.summary-lede {
  max-width: 43rem;
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.62;
  font-weight: 500;
  letter-spacing: -0.018em;
}

.summary-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}

.summary-pillars article {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.9rem;
  align-items: start;
}

.summary-pillars i {
  color: var(--coral);
  font-size: 1.55rem;
}

.summary-pillars article:last-child i {
  color: var(--teal);
}

.summary-pillars h3 {
  margin: 0;
  color: var(--coral);
  font-size: 0.95rem;
}

.summary-pillars article:last-child h3 {
  color: var(--teal);
}

.summary-pillars p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.profile-synthesis {
  padding-top: 0.15rem;
}

.profile-synthesis ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-synthesis li {
  display: grid;
  gap: 0.28rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.profile-synthesis li:first-child {
  padding-top: 0;
}

.profile-synthesis li span {
  color: var(--coral);
  font-size: 0.8rem;
  font-weight: 700;
}

.profile-synthesis li:nth-child(2) span {
  color: var(--teal);
}

.profile-synthesis li:nth-child(3) span {
  color: var(--yellow);
}

.profile-synthesis li strong {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.synthesis-result {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.synthesis-result i {
  color: var(--teal);
  font-size: 1.55rem;
}

.synthesis-result div {
  display: grid;
  gap: 0.25rem;
}

.synthesis-result span {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 700;
}

.synthesis-result strong {
  font-size: 0.8rem;
  line-height: 1.45;
}

.cv-main > .routes-section {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.routes-section .section-heading {
  margin-bottom: 0.35rem;
}

.route-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.route-tab {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1rem;
  min-height: 6.2rem;
  padding: 0.65rem 2.2rem 0.65rem 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.route-tab + .route-tab {
  padding-left: 2.2rem;
  border-left: 1px solid var(--line-strong);
}

.route-tab > span {
  color: var(--soft);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  transition: color 160ms ease;
}

.route-tab > i {
  align-self: center;
  color: var(--soft);
  font-size: 1.75rem;
  transition: color 160ms ease, transform 160ms ease;
}

.route-tab > strong,
.route-tab > small {
  grid-column: 1 / -1;
}

.route-tab > strong {
  margin-top: 0.2rem;
  font-size: 0.82rem;
}

.route-tab > small {
  max-width: 30rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.route-tab:hover > i {
  transform: translateX(0.25rem);
}

.route-tab.is-active {
  box-shadow: inset 0 -2px 0 var(--teal);
}

.route-education.is-active {
  box-shadow: inset 0 -2px 0 var(--coral);
}

.route-education.is-active > span,
.route-education.is-active > i {
  color: var(--coral);
}

.route-technology.is-active > span,
.route-technology.is-active > i {
  color: var(--teal);
}

.route-details {
  display: grid;
  padding-top: 1.4rem;
}

.route-detail {
  max-width: 54rem;
}

.route-detail h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

.route-detail p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.route-detail ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.5rem;
  margin: 0.9rem 0 0;
  padding: 0;
  color: var(--soft);
  font-size: 0.78rem;
  list-style: none;
}

.route-detail li::before {
  content: "— ";
  color: var(--teal);
}

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

.cv-main > .projects-section {
  padding-top: 1.8rem;
  padding-bottom: 2rem;
}

.projects-section .section-heading {
  margin-bottom: 1rem;
}

.projects-section .section-heading h2 {
  font-size: clamp(1.55rem, 2vw, 2rem);
}

.projects-section .section-heading-row > p {
  font-size: 0.86rem;
  line-height: 1.5;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(11rem, 0.9fr) minmax(14rem, 1.45fr) minmax(9rem, 0.8fr) minmax(6rem, auto);
  align-items: center;
  gap: 1.7rem;
  min-height: 6.7rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 180ms ease, transform 180ms ease;
}

.project-row.is-muted {
  opacity: 0.56;
}

.project-row:hover {
  transform: translateX(0.25rem);
}

.project-identity {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  align-items: center;
  gap: 0.9rem;
}

.project-identity > i {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--coral);
  color: var(--text);
  font-size: 1.3rem;
}

.project-row:nth-child(2) .project-identity > i {
  background: var(--teal);
  color: var(--ink);
}

.project-row:nth-child(3) .project-identity > i {
  background: var(--yellow);
  color: var(--ink);
}

.project-row:nth-child(4) .project-identity > i {
  background: #9bb9dd;
  color: var(--ink);
}

.project-index {
  color: var(--soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.project-identity h3 {
  margin: 0.18rem 0 0;
  font-size: clamp(1.1rem, 1.6vw, 1.42rem);
  line-height: 1.18;
}

.project-row > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.project-disciplines {
  display: grid;
  gap: 0.3rem;
}

.project-disciplines span {
  color: var(--soft);
  font-size: 0.72rem;
}

.project-disciplines strong {
  font-size: 0.82rem;
  line-height: 1.45;
}

.project-row > a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
}

.project-row > a i {
  font-size: 1.1rem;
  transition: transform 160ms ease;
}

.project-row > a:hover i {
  transform: translateX(0.22rem);
}

.project-status {
  justify-self: end;
  color: var(--soft);
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: right;
}

.recommendations-section {
  background: var(--bg-sidebar);
}

.cv-main > .recommendations-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.recommendations-section .section-heading {
  margin-bottom: 1.25rem;
}

.recommendations-section .section-heading h2 {
  font-size: clamp(1.8rem, 2.7vw, 2.7rem);
}

.recommendations-section .section-heading-row > p {
  font-size: 0.86rem;
}

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

.recommendation {
  display: grid;
  grid-template-columns: 2.8rem minmax(18rem, 1.4fr) minmax(10rem, 0.62fr) minmax(12rem, 0.7fr);
  align-items: center;
  gap: 1.5rem;
  min-height: 8rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.recommendation > i {
  align-self: start;
  color: var(--teal);
  font-size: 2.5rem;
}

.recommendation blockquote {
  margin: 0;
}

.recommendation blockquote p {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.28rem, 1.8vw, 1.55rem);
  font-style: italic;
  line-height: 1.25;
  font-weight: 500;
}

.recommendation-author {
  display: grid;
  gap: 0.35rem;
}

.recommendation-author strong {
  font-size: 0.95rem;
}

.recommendation-author span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.recommendation > a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.55rem;
  color: var(--teal);
  font-size: 0.8rem;
}

.recommendation > a span {
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.28rem;
}

.recommendation > a i {
  font-size: 1.05rem;
}

.recommendation > a small {
  grid-column: 1 / -1;
  color: var(--soft);
  font-size: 0.68rem;
}

.timeline-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2.5rem, 5vw, 5rem);
}

.timeline {
  display: grid;
  align-content: start;
  border-top: 1px solid var(--line-strong);
}

.timeline-item {
  display: grid;
  gap: 0.25rem;
  min-height: 4.8rem;
  padding: 1rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, padding-left 160ms ease;
}

.timeline-item:hover {
  color: var(--text);
  padding-left: 0.35rem;
}

.timeline-item.is-active {
  color: var(--text);
  padding-left: 0.5rem;
  box-shadow: inset 2px 0 0 var(--coral);
}

.timeline-item span {
  color: var(--soft);
  font-size: 0.74rem;
}

.timeline-item.is-active span {
  color: var(--coral);
}

.timeline-item strong {
  font-size: 0.9rem;
}

.timeline-detail {
  align-self: start;
  padding-top: 0.9rem;
}

.timeline-details,
.skill-details {
  min-width: 0;
}

.detail-year,
.skill-detail > span {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-detail h3,
.skill-detail h3 {
  max-width: 42rem;
  margin: 0.7rem 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.timeline-detail p,
.skill-detail p {
  max-width: 43rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.detail-tags,
.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.2rem;
  margin-top: 1.6rem;
}

.detail-tags span,
.tool-row span {
  color: var(--soft);
  font-size: 0.78rem;
}

.detail-tags span::before,
.tool-row span::before {
  content: "— ";
  color: var(--teal);
}

.skills-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2.5rem, 5vw, 5rem);
}

.skill-controls {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.skill-node {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  align-items: center;
  min-height: 3.65rem;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, padding-left 160ms ease;
}

.skill-node:hover {
  color: var(--text);
  padding-left: 0.35rem;
}

.skill-node.is-active {
  color: var(--text);
  padding-left: 0.5rem;
  box-shadow: inset 2px 0 0 var(--yellow);
}

.skill-node span {
  color: var(--soft);
  font-size: 0.7rem;
  font-weight: 700;
}

.skill-node.is-active span {
  color: var(--yellow);
}

.skill-detail {
  padding-top: 0.65rem;
}

.skill-detail > span {
  color: var(--yellow);
}

.evidence-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.evidence-list article {
  min-height: 11rem;
  padding: 1.6rem 2rem 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.evidence-list article:nth-child(2n) {
  padding-right: 0;
  padding-left: 2rem;
  border-left: 1px solid var(--line);
}

.evidence-list article > span {
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.evidence-list h3 {
  margin: 0.65rem 0 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.evidence-list p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.downloads-section {
  display: grid;
  grid-template-columns: minmax(15rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  background: var(--bg-sidebar);
}

.downloads-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.downloads-copy > p:not(.eyebrow) {
  margin: 1rem 0 1.8rem;
  color: var(--muted);
  line-height: 1.65;
}

.downloads-copy > a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--teal);
  font-weight: 700;
}

.download-actions {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.download-link {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.35rem 0.9rem;
  align-items: center;
  min-height: 7.4rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  transition: color 160ms ease, padding-left 160ms ease;
}

.download-link:hover {
  color: var(--teal);
  padding-left: 0.35rem;
}

.download-link > i {
  grid-row: 1 / span 3;
  color: var(--teal);
  font-size: 1.45rem;
}

.download-link > span {
  color: var(--soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-link > strong {
  grid-column: 2;
  font-size: 1rem;
  line-height: 1.4;
}

.download-link > small {
  grid-column: 3;
  grid-row: 1 / span 3;
  color: var(--soft);
  font-size: 0.72rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
  border-bottom: 0;
  color: var(--soft);
  font-size: 0.78rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 1180px) {
  :root {
    --sidebar-width: 21.5rem;
    --content-pad: 2.5rem;
  }

  .profile-sidebar {
    padding-inline: 2rem;
  }

  .profile-intro h1 {
    font-size: 3.3rem;
  }

  .summary-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .profile-synthesis {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.65fr);
    gap: 2rem;
  }

  .synthesis-result {
    align-self: end;
  }

  .project-row {
    grid-template-columns: minmax(11rem, 0.82fr) minmax(0, 1.18fr);
  }

  .project-disciplines,
  .project-row > a,
  .project-status {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .recommendation {
    grid-template-columns: 3rem minmax(17rem, 1.2fr) minmax(12rem, 0.75fr);
  }

  .recommendation > a {
    grid-column: 2 / -1;
  }
}

@media (max-height: 800px) and (min-width: 921px) {
  .profile-sidebar {
    padding-top: 1rem;
    padding-bottom: 0.8rem;
    scrollbar-width: none;
  }

  .profile-sidebar::-webkit-scrollbar {
    display: none;
  }

  .monogram {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
  }

  .profile-intro h1 {
    font-size: 3rem;
  }

  .profile-role {
    margin-top: 0.9rem;
    font-size: 1.12rem;
  }

  .profile-purpose {
    margin-top: 0.6rem;
    font-size: 0.82rem;
    line-height: 1.42;
  }

  .site-nav {
    margin-top: 0.75rem;
    padding: 0.65rem 0;
  }

  .site-nav a {
    min-height: 1.9rem;
    font-size: 0.82rem;
  }

  .sidebar-actions {
    gap: 0.5rem;
    padding-top: 0.65rem;
  }

  .button {
    min-height: 2.7rem;
    font-size: 0.82rem;
  }

  .sidebar-contact {
    gap: 0.18rem;
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    font-size: 0.68rem;
  }

  .sidebar-contact a,
  .sidebar-contact p {
    min-height: 1.35rem;
  }
}

@media (max-width: 920px) {
  :root {
    --content-pad: clamp(1rem, 5vw, 2.5rem);
  }

  body {
    padding-top: 4.5rem;
  }

  .mobile-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.5rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg-sidebar);
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 2.8rem;
  }

  .mobile-brand span {
    color: var(--teal);
    font-weight: 700;
  }

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.8rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text);
    font-weight: 700;
  }

  .page-shell {
    display: block;
  }

  .profile-sidebar {
    position: static;
    height: auto;
    min-height: 0;
    padding: 3.2rem var(--content-pad) 2.5rem;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .profile-intro {
    max-width: 42rem;
  }

  .monogram {
    display: none;
  }

  .profile-intro h1 {
    font-size: clamp(3.2rem, 11vw, 5rem);
  }

  .profile-role br {
    display: none;
  }

  .profile-purpose {
    max-width: 36rem;
  }

  .site-nav {
    position: fixed;
    top: 5rem;
    right: 1rem;
    left: 1rem;
    z-index: 100;
    max-height: calc(100svh - 6rem);
    margin: 0;
    padding: 1rem;
    overflow-y: auto;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: #0a1f33;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.75rem);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    min-height: 3rem;
  }

  .sidebar-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 42rem;
    margin-top: 1.8rem;
  }

  .sidebar-contact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 54rem;
  }

  .sidebar-contact a,
  .sidebar-contact p {
    align-items: start;
  }

  .cv-main > section,
  .site-footer {
    scroll-margin-top: 5.5rem;
  }

  .summary-section {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .cv-main > section {
    padding-top: 3.8rem;
    padding-bottom: 3.8rem;
  }

  .section-heading-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .summary-pillars,
  .route-tabs,
  .evidence-list,
  .downloads-section {
    grid-template-columns: 1fr;
  }

  .profile-synthesis {
    grid-template-columns: 1fr;
  }

  .route-tab {
    min-height: 10.5rem;
    padding: 1.5rem 0;
  }

  .route-tab + .route-tab {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    min-height: 0;
    padding: 1.6rem 0;
  }

  .project-disciplines,
  .project-row > a,
  .project-status {
    grid-column: auto;
  }

  .project-row > a {
    justify-content: flex-start;
  }

  .recommendation {
    grid-template-columns: 2.6rem 1fr;
    gap: 1.2rem 1rem;
  }

  .recommendation > i {
    font-size: 2.5rem;
  }

  .recommendation-author,
  .recommendation > a {
    grid-column: 2;
  }

  .timeline-layout,
  .skills-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .evidence-list article,
  .evidence-list article:nth-child(2n) {
    min-height: 0;
    padding: 1.4rem 0;
    border-left: 0;
  }

  .downloads-section {
    display: grid;
  }

  .sidebar-contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .mobile-brand strong {
    display: none;
  }

  .profile-sidebar {
    padding-top: 2.4rem;
  }

  .profile-intro h1 {
    font-size: clamp(3.1rem, 16vw, 4.4rem);
  }

  .profile-role {
    font-size: 1.25rem;
  }

  .sidebar-actions {
    grid-template-columns: 1fr;
  }

  .summary-pillars {
    gap: 1.8rem;
  }

  .summary-pillars article {
    grid-template-columns: 1.7rem 1fr;
  }

  .section-heading h2,
  .downloads-copy h2 {
    font-size: 2.2rem;
  }

  .recommendation blockquote p {
    font-size: 1.4rem;
  }

  .download-link {
    grid-template-columns: 1.8rem 1fr;
  }

  .download-link > small {
    grid-column: 2;
    grid-row: auto;
  }

  .site-footer {
    align-items: flex-start;
    gap: 1rem;
  }
}

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

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