:root {
  color-scheme: dark;
  --color-page: #090909;
  --color-page-rgb: 9, 9, 9;
  --color-sidebar: #090909;
  --color-sidebar-ink: #ffffff;
  --color-sidebar-muted: #b6b6b6;
  --color-sidebar-soft: rgba(255, 255, 255, 0.04);
  --color-sheet: transparent;
  --color-sheet-soft: transparent;
  --color-ink: #ededed;
  --color-ink-strong: #ffffff;
  --color-muted: #929292;
  --color-muted-dark: #b6b6b6;
  --color-line: rgba(255, 255, 255, 0.08);
  --color-line-strong: rgba(255, 255, 255, 0.14);
  --color-sidebar-line: rgba(255, 255, 255, 0.12);
  --color-accent: #d8d8d8;
  --color-accent-rgb: 216, 216, 216;
  --color-accent-dark: #bdbdbd;
  --color-accent-soft: rgba(255, 255, 255, 0.08);
  --color-focus: #ffffff;
  --color-control-bg: rgba(255, 255, 255, 0.08);
  --color-control-border: rgba(255, 255, 255, 0.22);
  --color-brand-media-bg: rgba(255, 255, 255, 0.08);
  --color-active-inner-shadow: rgba(255, 255, 255, 0.06);
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sidebar-width: 360px;
  --viewer-max: 1040px;
  --radius: 6px;
  --section-space: 56px;
  --card-padding: 0;
}

:root[data-mode="sys"] {
  --color-page: #090909;
  --color-page-rgb: 9, 9, 9;
  --color-sidebar: #090909;
  --color-accent: #d8d8d8;
  --color-accent-rgb: 216, 216, 216;
  --color-accent-dark: #bdbdbd;
}

:root[data-mode="photo"] {
  --color-page: #090909;
  --color-page-rgb: 9, 9, 9;
  --color-sidebar: #090909;
  --color-accent: #d8d8d8;
  --color-accent-rgb: 216, 216, 216;
  --color-accent-dark: #bdbdbd;
}

:root[data-mode="medical"] {
  --color-page: #090909;
  --color-page-rgb: 9, 9, 9;
  --color-sidebar: #090909;
  --color-accent: #d8d8d8;
  --color-accent-rgb: 216, 216, 216;
  --color-accent-dark: #bdbdbd;
}

@media (prefers-color-scheme: light) {
  :root,
  :root[data-mode="sys"],
  :root[data-mode="photo"],
  :root[data-mode="medical"] {
    color-scheme: light;
    --color-page: #f7f7f7;
    --color-page-rgb: 247, 247, 247;
    --color-sidebar: #eeeeee;
    --color-sidebar-ink: #111111;
    --color-sidebar-muted: #555555;
    --color-sidebar-soft: rgba(17, 17, 17, 0.04);
    --color-sheet: transparent;
    --color-sheet-soft: transparent;
    --color-ink: #222222;
    --color-ink-strong: #0f1111;
    --color-muted: #636363;
    --color-muted-dark: #555555;
    --color-line: rgba(17, 17, 17, 0.11);
    --color-line-strong: rgba(17, 17, 17, 0.18);
    --color-sidebar-line: rgba(17, 17, 17, 0.16);
    --color-accent: #303030;
    --color-accent-rgb: 48, 48, 48;
    --color-accent-dark: #111111;
    --color-accent-soft: rgba(17, 17, 17, 0.1);
    --color-focus: #111111;
    --color-control-bg: rgba(17, 17, 17, 0.08);
    --color-control-border: rgba(17, 17, 17, 0.3);
    --color-brand-media-bg: rgba(17, 17, 17, 0.08);
    --color-active-inner-shadow: rgba(17, 17, 17, 0.07);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
}

:root[data-theme="light"],
:root[data-theme="light"][data-mode="sys"],
:root[data-theme="light"][data-mode="photo"],
:root[data-theme="light"][data-mode="medical"] {
  color-scheme: light;
  --color-page: #f7f7f7;
  --color-page-rgb: 247, 247, 247;
  --color-sidebar: #eeeeee;
  --color-sidebar-ink: #111111;
  --color-sidebar-muted: #555555;
  --color-sidebar-soft: rgba(17, 17, 17, 0.04);
  --color-sheet: transparent;
  --color-sheet-soft: transparent;
  --color-ink: #222222;
  --color-ink-strong: #0f1111;
  --color-muted: #636363;
  --color-muted-dark: #555555;
  --color-line: rgba(17, 17, 17, 0.11);
  --color-line-strong: rgba(17, 17, 17, 0.18);
  --color-sidebar-line: rgba(17, 17, 17, 0.16);
  --color-accent: #303030;
  --color-accent-rgb: 48, 48, 48;
  --color-accent-dark: #111111;
  --color-accent-soft: rgba(17, 17, 17, 0.1);
  --color-focus: #111111;
  --color-control-bg: rgba(17, 17, 17, 0.08);
  --color-control-border: rgba(17, 17, 17, 0.3);
  --color-brand-media-bg: rgba(17, 17, 17, 0.08);
  --color-active-inner-shadow: rgba(17, 17, 17, 0.07);
}

:root[data-theme="dark"],
:root[data-theme="dark"][data-mode="sys"],
:root[data-theme="dark"][data-mode="photo"],
:root[data-theme="dark"][data-mode="medical"] {
  color-scheme: dark;
  --color-page: #090909;
  --color-page-rgb: 9, 9, 9;
  --color-sidebar: #090909;
  --color-sidebar-ink: #ffffff;
  --color-sidebar-muted: #b6b6b6;
  --color-sidebar-soft: rgba(255, 255, 255, 0.04);
  --color-sheet: transparent;
  --color-sheet-soft: transparent;
  --color-ink: #ededed;
  --color-ink-strong: #ffffff;
  --color-muted: #929292;
  --color-muted-dark: #b6b6b6;
  --color-line: rgba(255, 255, 255, 0.08);
  --color-line-strong: rgba(255, 255, 255, 0.14);
  --color-sidebar-line: rgba(255, 255, 255, 0.12);
  --color-accent: #d8d8d8;
  --color-accent-rgb: 216, 216, 216;
  --color-accent-dark: #bdbdbd;
  --color-accent-soft: rgba(255, 255, 255, 0.08);
  --color-focus: #ffffff;
  --color-control-bg: rgba(255, 255, 255, 0.08);
  --color-control-border: rgba(255, 255, 255, 0.22);
  --color-brand-media-bg: rgba(255, 255, 255, 0.08);
  --color-active-inner-shadow: rgba(255, 255, 255, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    linear-gradient(90deg, var(--color-sidebar) 0, var(--color-sidebar) var(--sidebar-width), rgba(var(--color-page-rgb), 0.96) var(--sidebar-width)),
    linear-gradient(rgba(var(--color-accent-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--color-accent-rgb), 0.035) 1px, transparent 1px),
    var(--color-page);
  background-size: auto, 40px 40px, 40px 40px, auto;
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--color-accent);
}

button,
a {
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

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

.skip-link {
  position: absolute;
  left: 18px;
  top: 14px;
  z-index: 20;
  padding: 8px 11px;
  background: var(--color-ink);
  color: var(--color-sidebar);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(-150%);
}

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

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

.site-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(var(--color-accent-rgb), 0.08), transparent 34%),
    var(--color-sidebar);
  color: var(--color-sidebar-muted);
  border-right: 1px solid var(--color-sidebar-line);
}

.sidebar-inner {
  display: grid;
  min-height: max(100vh, 100%);
  grid-template-rows: auto auto auto 1fr auto;
  gap: 28px;
  padding: 48px 34px;
}

.transition-target {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
  will-change: opacity, transform;
}

html[data-transitioning] .transition-target {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition-duration: 140ms;
}

html[data-transitioning] .mode-button {
  pointer-events: none;
}

.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 30;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  background: rgba(var(--color-page-rgb), 0.86);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius);
  color: var(--color-ink-strong);
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.theme-toggle:hover {
  background: var(--color-control-bg);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}

.theme-icon {
  grid-area: 1 / 1;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: opacity 160ms ease, transform 160ms ease;
}

.theme-icon-sun {
  opacity: 0;
  transform: rotate(-18deg) scale(0.7);
}

.theme-icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

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

:root[data-active-theme="dark"] .theme-icon-moon {
  opacity: 0;
  transform: rotate(18deg) scale(0.7);
}

.eyebrow,
.section-kicker,
.mode-label,
.viewer-toolbar p {
  margin: 0;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  color: var(--color-ink-strong);
}

.site-sidebar h1,
.site-sidebar h2,
.site-sidebar h3 {
  color: var(--color-sidebar-ink);
}

h1 {
  margin: 12px 0 14px;
  font-size: 2.72rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.96;
}

h2 {
  max-width: 840px;
  margin-bottom: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.14;
}

h3 {
  margin-bottom: 4px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.identity-line {
  margin-bottom: 24px;
  color: var(--color-sidebar-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.55;
  text-transform: uppercase;
}

.photography-brand {
  display: none;
  width: 100%;
  max-width: 100%;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--color-sidebar-line);
  border-radius: var(--radius);
  text-decoration: none;
}

:root[data-mode="photo"] .photography-brand {
  display: flex;
}

.photography-brand img {
  display: block;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  padding: 7px;
  background: var(--color-brand-media-bg);
  border: 1px solid var(--color-sidebar-line);
  border-radius: var(--radius);
  filter: grayscale(1) contrast(1.08);
  object-fit: contain;
}

.photography-brand div {
  min-width: 0;
}

.photography-brand span,
.photography-brand small {
  display: block;
}

.photography-brand span {
  color: var(--color-sidebar-ink);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.photography-brand small {
  margin-top: 3px;
  color: var(--color-sidebar-muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.headline-badge {
  display: inline-flex;
  margin-bottom: 18px;
}

.hero-headline {
  margin: 0;
  padding: 5px 10px;
  background: var(--color-control-bg);
  border: 1px solid var(--color-control-border);
  border-radius: 4px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-summary {
  margin-bottom: 0;
  color: var(--color-sidebar-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.mode-panel {
  padding-top: 28px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--color-sidebar-line);
  border-radius: var(--radius);
}

.mode-label {
  margin-bottom: 10px;
}

.mode-switcher {
  display: grid;
  gap: 12px;
}

.mode-button {
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--color-sidebar-line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-sidebar-muted);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-align: left;
  text-transform: uppercase;
}

.mode-button:hover {
  background: rgba(var(--color-accent-rgb), 0.12);
  color: var(--color-sidebar-ink);
}

.mode-button.is-active {
  background: rgba(var(--color-accent-rgb), 0.14);
  border-color: var(--color-accent);
  color: var(--color-sidebar-ink);
  box-shadow: inset 0 0 0 1px var(--color-active-inner-shadow), 0 8px 24px rgba(var(--color-accent-rgb), 0.14);
}

.sidebar-actions {
  display: grid;
  gap: 14px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
}

.contact-actions .button-primary,
.contact-actions .button-secondary {
  white-space: nowrap;
}

.button-primary {
  background: var(--color-accent);
  color: var(--color-page);
  border-color: var(--color-accent);
}

.button-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-page);
  transform: translateY(-1px);
}

.button-secondary {
  background: transparent;
  border-color: rgba(var(--color-accent-rgb), 0.54);
  color: var(--color-accent);
}

.site-sidebar .button-secondary {
  color: var(--color-sidebar-ink);
}

.button-secondary:hover {
  background: rgba(var(--color-accent-rgb), 0.1);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}

.site-sidebar .button-secondary:hover {
  color: var(--color-sidebar-ink);
}

.contact-strip {
  align-self: end;
  display: grid;
  gap: 12px;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--color-sidebar-line);
  color: var(--color-sidebar-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-style: normal;
  letter-spacing: 0.03em;
  line-height: 1.45;
}

.contact-strip a {
  color: var(--color-sidebar-ink);
}

.cv-viewer {
  min-width: 0;
  padding: 64px 80px 72px;
  overflow-y: auto;
}

.viewer-toolbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 5;
  width: min(100%, var(--viewer-max));
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto 10px;
  padding: 0 0 12px;
  background: rgba(var(--color-page-rgb), 0.9);
  border: 0;
  border-bottom: 1px solid var(--color-line);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.viewer-toolbar div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.document-sheet {
  width: min(100%, var(--viewer-max));
  margin: 0 auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.section {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 72px;
  padding: var(--section-space) 0;
  border-top: 1px solid var(--color-line);
}

.section:first-child {
  border-top: 0;
}

.section-heading {
  align-self: start;
}

.section-heading h2,
.section-contact h2 {
  display: none;
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--color-ink-strong);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

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

.section-body > p {
  color: var(--color-muted);
  font-size: 0.98rem;
  line-height: 1.62;
}

.intro-body > p:first-child {
  max-width: 860px;
  color: var(--color-ink);
  font-size: 1rem;
  line-height: 1.62;
}

.cta-note {
  display: none;
  max-width: 860px;
  margin: 8px 0 0;
  padding: 0;
  background: transparent;
  border-left: 0;
  border-radius: 0;
  color: var(--color-muted);
  font-weight: 400;
  line-height: 1.44;
}

.section-certifications {
  display: none;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 5px 8px;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.tag-list li:hover {
  background: transparent;
  border-color: rgba(var(--color-accent-rgb), 0.5);
}

.timeline {
  display: grid;
  gap: 28px;
  border-top: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 32px;
  padding: 0;
  border-bottom: 0;
}

.timeline-period {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.timeline-body {
  position: relative;
  padding-left: 0;
  border-left: 0;
}

.timeline-body::before {
  content: none;
}

.timeline-item p,
.project-card p,
.credential-card p,
.section-contact p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.card-grid,
.credential-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 64px;
}

.credential-list {
  grid-template-columns: 1fr;
}

.project-card,
.credential-card {
  padding: var(--card-padding);
  background: transparent;
  border: 0;
  border-radius: 0;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.credential-card {
  min-height: auto;
}

.project-card:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.section-contact {
  display: block;
  padding: var(--section-space) 0 0;
  background: transparent;
  border-top: 1px solid var(--color-line);
  border-radius: 0;
}

.section-contact .section-kicker {
  color: var(--color-ink-strong);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  align-items: center;
  gap: 56px;
}

.contact-grid h2 {
  max-width: 660px;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.site-footer {
  width: min(100%, var(--viewer-max));
  margin: 52px auto 0;
  padding: 0 2px 10px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  line-height: 1.45;
}

.site-footer p {
  margin: 0 0 4px;
}

@media (max-width: 1080px) {
  :root {
    --sidebar-width: 340px;
    --section-space: 48px;
  }

  .sidebar-inner {
    padding: 42px 30px;
  }

  .section {
    gap: 52px;
    grid-template-columns: 150px minmax(0, 1fr);
    padding-inline: 0;
  }

  .cv-viewer {
    padding: 56px 56px 64px;
  }
}

@media (max-width: 860px) {
  body {
    background:
      linear-gradient(rgba(var(--color-accent-rgb), 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(var(--color-accent-rgb), 0.035) 1px, transparent 1px),
      var(--color-page);
    background-size: 40px 40px, 40px 40px, auto;
  }

  .app-frame {
    grid-template-columns: 1fr;
  }

  .site-sidebar {
    position: relative;
    min-height: auto;
  }

  .sidebar-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 24px;
    padding: 40px 34px;
  }

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

  .mode-button {
    text-align: center;
  }

  .contact-strip {
    align-self: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cv-viewer {
    padding: 42px 34px 56px;
  }

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

  .viewer-toolbar {
    position: static;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 46px 0;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 2.6rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .sidebar-inner,
  .cv-viewer {
    padding: 32px 22px;
  }

  .mode-switcher,
  .contact-strip,
  .timeline-item,
  .card-grid,
  .credential-list {
    grid-template-columns: 1fr;
  }

  .viewer-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .document-sheet {
    border-radius: 0;
  }

  .section {
    padding: 38px 0;
  }

  .sidebar-actions,
  .contact-actions,
  .button-primary,
  .button-secondary {
    width: 100%;
  }

  .contact-actions {
    gap: 8px;
  }

  .contact-actions .button-primary,
  .contact-actions .button-secondary {
    padding-inline: 6px;
    font-size: 0.68rem;
  }

  .timeline-item {
    gap: 10px;
  }

  .timeline-body {
    padding-left: 0;
  }

  .project-card,
  .credential-card {
    min-height: auto;
  }
}

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

  html[data-transitioning] .transition-target {
    transform: none;
  }
}

@media print {
  :root {
    --color-page: #ffffff;
    --color-sidebar: #ffffff;
    --color-sidebar-ink: #111111;
    --color-sidebar-muted: #444444;
    --color-sheet: #ffffff;
    --color-ink: #111111;
    --color-ink-strong: #111111;
    --color-muted: #444444;
    --color-line: #cccccc;
    --color-accent: #111111;
    --color-accent-rgb: 17, 17, 17;
  }

  body {
    background: #ffffff;
    color: #111111;
    font-size: 11pt;
  }

  .skip-link,
  .mode-panel,
  .sidebar-actions,
  .viewer-toolbar,
  .contact-actions {
    display: none;
  }

  .app-frame,
  .section,
  .timeline-item,
  .card-grid,
  .credential-list {
    display: block;
  }

  .site-sidebar {
    min-height: auto;
    border-right: 0;
  }

  .sidebar-inner,
  .cv-viewer,
  .section {
    padding: 14pt 0;
  }

  .document-sheet {
    border: 0;
    box-shadow: none;
  }
}
