:root {
  --paper: #ffffff;
  --paper-soft: #f5f5f3;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.74);
  --ink: #111111;
  --muted: #181716;
  --subtle: #7b766f;
  --hairline: #e5e2dc;
  --accent: #c5182a;
  --accent-deep: #a90f1c;
  --highlight: #fff1a8;
  --topbar-bg: rgba(255, 255, 255, 0.94);
  --sidebar-bg: rgba(255, 255, 255, 0.78);
  --mobile-sidebar-bg: rgba(255, 255, 255, 0.98);
  --primary-button-bg: #111111;
  --primary-button-text: #ffffff;
  --primary-button-border: #111111;
  --inset-highlight: rgba(255, 255, 255, 0.82);
  --soft-shadow: rgba(0, 0, 0, 0.035);
  --logo-shadow: rgba(17, 17, 17, 0.06);
  --avatar-bg: #e6b3b3;
  --timeline-rail: #e3e1dd;
  --timeline-dot: #b4b2ad;
  --topbar: 70px;
  --sidebar: 238px;
  --publication: 260px;
}

body[data-theme="dark"] {
  --paper: #111416;
  --paper-soft: #191d20;
  --surface: #15191c;
  --surface-soft: rgba(25, 29, 32, 0.78);
  --ink: #f0ece5;
  --muted: #b9b1a7;
  --subtle: #8f877d;
  --hairline: #2b3034;
  --accent: #ea6f7a;
  --accent-deep: #c94e5a;
  --highlight: rgba(234, 111, 122, 0.28);
  --topbar-bg: rgba(17, 20, 22, 0.92);
  --sidebar-bg: rgba(17, 20, 22, 0.72);
  --mobile-sidebar-bg: rgba(17, 20, 22, 0.98);
  --primary-button-bg: #e8ded1;
  --primary-button-text: #111416;
  --primary-button-border: #e8ded1;
  --inset-highlight: rgba(255, 255, 255, 0.05);
  --soft-shadow: rgba(0, 0, 0, 0.24);
  --logo-shadow: rgba(0, 0, 0, 0.22);
  --avatar-bg: #233241;
  --timeline-rail: #272c30;
  --timeline-dot: #6f6962;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  overflow-x: hidden;
  color-scheme: light;
  transition:
    color 180ms ease,
    background 180ms ease;
}

body[data-theme="dark"] {
  color-scheme: dark;
}

body.nav-open {
  overflow: hidden;
}

body.nav-collapsed {
  --sidebar: 0px;
}

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

svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 46px auto minmax(180px, 270px) 1fr;
  align-items: center;
  min-height: var(--topbar);
  padding: 0 18px;
  column-gap: 16px;
  background: var(--topbar-bg);
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 10px 40px var(--soft-shadow);
  backdrop-filter: blur(14px);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.82rem, 2.35vw, 2.42rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.icon-button:hover,
.side-link:hover {
  color: var(--accent);
}

.icon-button:hover {
  background: var(--paper-soft);
}

.theme-toggle {
  position: relative;
}

.theme-icon {
  position: absolute;
  width: 19px;
  height: 19px;
  transition:
    opacity 160ms ease,
    transform 180ms ease;
}

.theme-icon-sun,
body[data-theme="dark"] .theme-icon-moon {
  opacity: 0;
  transform: rotate(-24deg) scale(0.72);
}

body[data-theme="dark"] .theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  gap: 10px;
  color: var(--muted);
  background: var(--paper-soft);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 var(--inset-highlight);
}

.search input {
  width: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 0.9rem;
}

.search input::placeholder {
  color: var(--subtle);
}

.search > svg {
  width: 20px;
  height: 20px;
}

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 80;
  display: grid;
  max-height: min(360px, calc(100vh - var(--topbar) - 28px));
  padding: 8px;
  gap: 4px;
  overflow-y: auto;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  box-shadow: 0 18px 48px var(--soft-shadow);
}

.search-results[hidden] {
  display: none;
}

.search-option {
  display: grid;
  width: 100%;
  padding: 11px 12px;
  gap: 3px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
}

.search-option:hover,
.search-option:focus-visible {
  background: var(--paper-soft);
  outline: 0;
}

.search-option strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.2;
}

.search-option span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.search-empty {
  padding: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  gap: 8px;
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
}

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

.button-dark {
  color: var(--primary-button-text);
  background: var(--primary-button-bg);
  border: 1px solid var(--primary-button-border);
  box-shadow: 0 10px 24px var(--soft-shadow);
}

.page-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: calc(100vh - var(--topbar));
  transition: grid-template-columns 220ms ease;
}

.sidebar {
  position: sticky;
  top: var(--topbar);
  height: calc(100vh - var(--topbar));
  padding: 48px 0 28px;
  border-right: 1px solid var(--hairline);
  background: var(--sidebar-bg);
  overflow: hidden;
  transition:
    opacity 180ms ease,
    transform 220ms ease,
    border-color 180ms ease;
  will-change: transform;
}

body.nav-collapsed .sidebar {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
  border-right-color: transparent;
}

.sidebar nav {
  display: grid;
  gap: 12px;
}

.side-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 28px;
  gap: 16px;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.05vw, 1.08rem);
  transition: color 160ms ease;
}

.side-link::before {
  position: absolute;
  left: 0;
  width: 3px;
  height: 38px;
  background: var(--accent);
  content: "";
  opacity: 0;
}

.side-link.active {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.side-link.active::before {
  opacity: 1;
}

.side-link svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.content-grid {
  display: grid;
  grid-template-columns: var(--publication) minmax(0, 980px);
  justify-content: center;
  gap: 56px;
  padding: 54px clamp(30px, 4vw, 54px) 96px;
}

.publication-card {
  position: sticky;
  top: calc(var(--topbar) + 54px);
  align-self: start;
  min-height: 470px;
  padding: 12px 58px 0 0;
  border-right: 1px solid var(--hairline);
}

.profile-figure {
  position: relative;
  display: block;
  width: min(176px, 100%);
  aspect-ratio: 1;
  margin-bottom: 28px;
  overflow: hidden;
  background: var(--avatar-bg);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  box-shadow:
    inset 0 1px 0 var(--inset-highlight),
    0 16px 36px var(--soft-shadow);
}

.profile-figure img {
  position: absolute;
  top: -26%;
  left: 50%;
  width: 245%;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
}

.publication-card h2,
.editorial-section h2,
.contact-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.035em;
}

.publication-card h2 {
  margin-bottom: 18px;
  font-size: 1.55rem;
}

.publication-card p {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.45;
}

.thin-rule {
  width: 100%;
  height: 1px;
  margin: 38px 0 32px;
  background: var(--hairline);
}

.location,
.subscribe-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.location svg,
.subscribe-row svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.subscribe-row {
  position: relative;
  justify-content: space-between;
  width: 100%;
  margin-top: 34px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  cursor: pointer;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.subscribe-row:hover {
  color: var(--accent);
}

.subscribe-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

.subscribe-row span,
.text-link {
  border-bottom: 1.5px solid currentColor;
}

.subscribe-row svg {
  transition:
    color 180ms ease,
    fill 180ms ease,
    transform 220ms ease;
}

.subscribe-row.is-subscribed {
  color: var(--ink);
}

.subscribe-row.is-subscribed svg {
  color: #b07b00;
  fill: #ffd84f;
  transform: scale(1.12);
  animation: bookmark-pop 420ms cubic-bezier(0.2, 1.4, 0.3, 1);
}

.confetti-piece {
  position: absolute;
  right: 9px;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--confetti-color);
  border-radius: 2px;
  pointer-events: none;
  animation: confetti-burst 760ms cubic-bezier(0.18, 0.9, 0.2, 1) forwards;
  transform: translate(0, 0) rotate(0deg);
}

@keyframes bookmark-pop {
  0% {
    transform: scale(0.84);
  }

  62% {
    transform: scale(1.22);
  }

  100% {
    transform: scale(1.12);
  }
}

@keyframes confetti-burst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.4) rotate(0deg);
  }

  72% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(var(--confetti-x), var(--confetti-y)) scale(1)
      rotate(var(--confetti-rotation));
  }
}

.article {
  min-width: 0;
}

.section-block {
  scroll-margin-top: 120px;
}

.hero {
  padding-top: 0;
}

.stage-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 22px;
  gap: 14px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-family: Georgia, "Times New Roman", serif;
  box-shadow: 0 8px 28px var(--soft-shadow);
}

.stage-pill span {
  width: 11px;
  height: 11px;
  background: var(--accent);
  border-radius: 999px;
}

.hero h1 {
  max-width: 940px;
  margin: 28px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.7rem, 4.75vw, 4.55rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.075em;
}

.mobile-break {
  display: none;
}

.lead {
  max-width: 940px;
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  line-height: 1.28;
}

.author-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 26px;
  gap: 16px;
  color: var(--muted);
  font-size: 1.04rem;
}

.author-row strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.author-row span:empty {
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
  gap: 58px;
}

.hero-cta {
  min-width: 172px;
  font-family: Georgia, "Times New Roman", serif;
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 700;
}

.text-link::after {
  content: "->";
  border: 0;
}

.engagement-bar {
  display: flex;
  align-items: center;
  min-height: 64px;
  margin-top: 30px;
  padding: 0 0;
  gap: 34px;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.engagement-bar > svg {
  width: 25px;
  height: 25px;
}

.metric {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
}

.metric svg {
  width: 26px;
  height: 26px;
}

.spacer {
  flex: 1;
  height: 24px;
  border-left: 1px solid var(--hairline);
}

.intro-copy {
  max-width: 930px;
  margin-top: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.1vw, 1.72rem);
  line-height: 1.36;
}

.intro-copy p {
  margin: 0 0 12px;
}

mark {
  padding: 0 4px;
  color: inherit;
  background: linear-gradient(
    transparent 18%,
    var(--highlight) 18%,
    var(--highlight) 88%,
    transparent 88%
  );
}

.editorial-section,
.contact-section {
  padding-top: 86px;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editorial-section h2,
.contact-section h2 {
  max-width: 790px;
  font-size: clamp(2.45rem, 4.4vw, 4.35rem);
  line-height: 0.98;
}

.story-list,
.timeline,
.highlight-lines {
  margin-top: 34px;
  border-top: 1px solid var(--hairline);
}

.story-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 36px;
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
  overflow-wrap: anywhere;
  transition:
    opacity 180ms ease,
    background 220ms ease;
}

.story-item h3,
.timeline h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.08;
}

.story-item p,
.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.58;
}

.story-item .story-meta {
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 700;
  max-width: 100%;
  overflow-wrap: break-word;
  white-space: normal;
}

.story-points {
  display: grid;
  margin: 0;
  padding-left: 18px;
  gap: 7px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.story-points li::marker {
  color: var(--accent);
}

.project-link {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1.5px solid currentColor;
}

.project-link:hover {
  color: var(--accent);
}

.story-item > span,
.timeline article > span {
  color: var(--subtle);
  font-size: 0.96rem;
}

.highlight-lines p {
  margin: 0;
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.2vw, 1.78rem);
  line-height: 1.45;
}

.timeline article {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
}

.timeline h3,
.timeline p,
.timeline ul,
.timeline-cert,
.timeline-logo {
  grid-column: 2;
}

.timeline article > span {
  grid-row: 1 / span 4;
}

.timeline-logo {
  width: 92px;
  height: 58px;
  margin-bottom: -2px;
  object-fit: contain;
  object-position: left center;
}

.timeline-meta {
  color: var(--ink);
  font-weight: 700;
}

.timeline-place {
  color: var(--subtle);
}

.timeline-cert {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  margin-top: 2px;
  padding: 0 12px;
  gap: 6px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.92rem;
}

.timeline-cert strong {
  color: var(--accent);
  font-weight: 800;
}

.timeline-points {
  display: grid;
  margin: 0;
  padding-left: 18px;
  gap: 7px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.timeline-points li::marker {
  color: var(--accent);
}

.experience-list {
  margin-top: 34px;
  border-top: 1px solid var(--hairline);
}

.experience-company {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 30px;
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
}

.company-logo {
  display: grid;
  width: 64px;
  height: 64px;
  margin-top: 2px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  border-radius: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px var(--soft-shadow);
}

.company-logo-light {
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: none;
}

.company-logo-image {
  width: 72px;
  height: 72px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: 0 10px 24px var(--logo-shadow);
}

.company-logo-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.company-logo-initials {
  display: none;
}

body[data-theme="dark"] .company-logo-image {
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: none;
}

body[data-theme="dark"] .company-logo-image img {
  display: none;
}

body[data-theme="dark"] .company-logo-initials {
  display: block;
}

.company-body {
  min-width: 0;
}

.company-head {
  margin-bottom: 18px;
}

.company-head h3 {
  margin: 0 0 2px;
  font-size: 1.18rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.company-head span,
.experience-role > span {
  display: block;
  color: var(--subtle);
  font-size: 0.96rem;
  line-height: 1.45;
}

.role-list {
  position: relative;
  display: grid;
  gap: 24px;
}

.experience-company.is-grouped .role-list {
  padding-left: 34px;
}

.experience-company.is-grouped .role-list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 17px;
  bottom: 17px;
  width: 2px;
  background: var(--timeline-rail);
  border-radius: 999px;
}

.experience-role {
  position: relative;
  min-width: 0;
}

.experience-company.is-grouped .experience-role::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 7px;
  z-index: 1;
  width: 10px;
  height: 10px;
  background: var(--timeline-dot);
  border: 2px solid var(--paper);
  border-radius: 50%;
}

.experience-role h4 {
  margin: 0 0 2px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.experience-role p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}

.role-summary {
  margin-top: 12px !important;
  color: var(--muted) !important;
}

.role-points {
  display: grid;
  margin: 12px 0 0;
  padding-left: 18px;
  gap: 7px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.role-points li::marker {
  color: var(--accent);
}

.role-skills {
  position: relative;
  margin-top: 12px !important;
  padding-left: 22px;
  font-weight: 700;
}

.role-skills::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.45em;
  width: 9px;
  height: 9px;
  border: 2px solid var(--muted);
  transform: rotate(45deg);
}

.contact-section {
  padding-bottom: 28px;
}

.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 30px;
  gap: 16px;
}

@media (max-width: 1280px) {
  :root {
    --sidebar: 78px;
    --publication: 248px;
  }

  .topbar {
    grid-template-columns: 40px auto minmax(160px, 250px) 1fr;
    padding-inline: 14px;
  }

  .side-link {
    justify-content: center;
    padding: 0;
    gap: 0;
  }

  .side-link span,
  .side-link {
    font-size: 0;
  }

  .side-link svg {
    width: 24px;
    height: 24px;
  }

  .content-grid {
    gap: 42px;
  }

  .publication-card {
    padding-right: 30px;
  }
}

@media (max-width: 1040px) {
  .content-grid {
    grid-template-columns: minmax(0, 900px);
  }

  .publication-card {
    position: static;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    min-height: auto;
    padding: 0 0 30px;
    column-gap: 22px;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .publication-card .profile-figure {
    grid-row: span 4;
    width: 136px;
    height: auto;
    margin-bottom: 0;
  }

  .publication-card .thin-rule,
  .publication-card .subscribe-row {
    display: none;
  }
}

@media (max-width: 820px) {
  :root {
    --topbar: 62px;
    --sidebar: 0px;
  }

  .topbar {
    grid-template-columns: 38px auto 1fr;
    gap: 10px;
    min-height: var(--topbar);
  }

  .search {
    display: none;
  }

  .top-actions {
    gap: 8px;
  }

  .button {
    min-height: 38px;
    padding-inline: 14px;
    font-size: 0.9rem;
  }

  .page-shell {
    display: block;
  }

  body.nav-collapsed {
    --sidebar: 0px;
  }

  body.nav-collapsed .sidebar {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-102%);
    border-right-color: var(--hairline);
  }

  .sidebar {
    position: fixed;
    inset: var(--topbar) auto 0 0;
    z-index: 40;
    width: 224px;
    height: auto;
    padding-top: 24px;
    background: var(--mobile-sidebar-bg);
    transform: translateX(-102%);
    transition: transform 220ms ease;
    box-shadow: 20px 0 60px var(--soft-shadow);
  }

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

  .side-link {
    justify-content: flex-start;
    min-height: 48px;
    padding: 0 24px;
    gap: 14px;
    font-size: 0.98rem;
  }

  .content-grid {
    display: block;
    width: 100%;
    max-width: 100vw;
    padding: 34px 22px 72px;
    overflow-x: hidden;
  }

  .article,
  .publication-card {
    min-width: 0;
    max-width: calc(100vw - 44px);
  }

  .publication-card p,
  .lead,
  .author-row,
  .intro-copy {
    overflow-wrap: anywhere;
  }

  .publication-card p,
  .lead {
    max-width: 92%;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 10.2vw, 3.7rem);
    overflow-wrap: anywhere;
  }

  .lead,
  .intro-copy {
    font-size: 1.32rem;
  }

  .engagement-bar {
    gap: 20px;
    overflow-x: auto;
  }

  .story-item,
  .timeline article {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .timeline h3,
  .timeline p,
  .timeline ul,
  .timeline-cert,
  .timeline-logo {
    grid-column: auto;
  }

  .timeline-logo {
    width: 78px;
    height: 50px;
  }

  .timeline article > span {
    grid-row: auto;
  }

  .experience-company {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 18px;
  }

  .experience-company.is-grouped .role-list {
    padding-left: 30px;
  }

  .experience-company.is-grouped .experience-role::before {
    left: -30px;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 1.64rem;
  }

  .top-actions .button {
    display: none;
  }

  .publication-card {
    grid-template-columns: clamp(96px, 30vw, 116px) minmax(0, 1fr);
    align-items: center;
    column-gap: 16px;
    row-gap: 6px;
  }

  .content-grid {
    padding-right: 22px;
  }

  .article,
  .publication-card {
    max-width: calc(100vw - 44px);
  }

  .publication-card .profile-figure {
    grid-row: span 3;
    width: 100%;
    height: auto;
    margin-bottom: 0;
  }

  .publication-card h2 {
    margin-bottom: 4px;
  }

  .publication-card p {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.34;
  }

  .hero h1 {
    margin-top: 22px;
    font-size: clamp(1.8rem, 7.8vw, 2.08rem);
    letter-spacing: -0.045em;
  }

  .hero h1 .dash,
  .mobile-break {
    display: block;
  }

  .author-row {
    gap: 10px;
  }

  .cta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .editorial-section,
  .contact-section {
    padding-top: 68px;
  }

  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-actions .text-link {
    align-self: flex-start;
  }

  .story-item .story-meta,
  .story-points,
  .timeline-points {
    font-size: 0.94rem;
  }

  .story-item {
    padding-right: 18px;
  }

  .experience-company {
    gap: 12px;
  }

  .company-logo {
    width: 56px;
    height: 56px;
    font-size: 0.8rem;
  }

  .company-logo-image {
    width: 62px;
    height: 62px;
    padding: 7px;
  }

  .experience-role h4 {
    font-size: 1.02rem;
  }

  .experience-role p,
  .experience-role > span,
  .role-points {
    font-size: 0.94rem;
  }
}
