:root {
  color-scheme: light;
  --ink: #101214;
  --muted: #606874;
  --line: #d8dee6;
  --surface: #f6f8fa;
  --panel: rgba(255, 255, 255, 0.86);
  --accent: #0f766e;
  --warm: #d97706;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --shadow: 0 18px 52px rgba(16, 18, 20, 0.075);
  --site-max-width: 1380px;
  --site-gutter: 24px;
  --nav-height: 54px;
  --main-bottom-gap: 8px;
  --main-component-height: calc(100svh - var(--nav-height) - var(--main-bottom-gap));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 12%, rgba(15, 118, 110, 0.12), transparent 25rem),
    linear-gradient(180deg, #ffffff 0%, var(--surface) 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.38;
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at calc(50% - 760px) 12%, rgba(15, 118, 110, 0.12), transparent 25rem),
    radial-gradient(circle at calc(50% + 760px) 12%, rgba(15, 118, 110, 0.1), transparent 25rem),
    url("assets/healthcare-pattern.svg") center / cover;
  content: "";
  opacity: 0;
}

body::after {
  position: fixed;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: calc(var(--site-max-width) + 440px);
  pointer-events: none;
  background: linear-gradient(180deg, #ffffff 0%, var(--surface) 100%);
  content: "";
  opacity: 0;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 220px,
    #000 calc(100% - 220px),
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 220px,
    #000 calc(100% - 220px),
    transparent 100%
  );
}

body > * {
  position: relative;
  z-index: 2;
}

@media (min-width: 1440px) {
  body::before,
  body::after {
    opacity: 1;
  }
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--site-max-width), calc(100% - var(--site-gutter)));
  height: var(--nav-height);
  margin: 0 auto;
}

.brand,
nav,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  font-weight: 780;
}

.brand-avatar {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  object-fit: cover;
}

.brand-role {
  --role-width: 15ch;
  position: relative;
  display: inline-grid;
  width: calc(var(--role-width) + 1.25rem);
  height: 1.25em;
  align-items: center;
  border-left: 1px solid var(--line);
  margin-left: 0.15rem;
  overflow: hidden;
  padding-left: 0.8rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
  vertical-align: middle;
}

.brand-role-word {
  grid-area: 1 / 1;
  transform: translateY(0);
  transition:
    opacity 360ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

.brand-role-word-enter,
.brand-role-word-exit {
  animation-duration: 420ms;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-role-word-enter-down {
  animation-name: role-enter-from-top;
  transform: translateY(-120%);
}

.brand-role-word-enter-up {
  animation-name: role-enter-from-bottom;
  transform: translateY(120%);
}

.brand-role-word-exit {
  pointer-events: none;
}

.brand-role-word-exit-down {
  animation-name: role-exit-to-bottom;
  transform: translateY(120%);
}

.brand-role-word-exit-up {
  animation-name: role-exit-to-top;
  transform: translateY(-120%);
}

@keyframes role-enter-from-top {
  from {
    opacity: 0;
    transform: translateY(-120%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes role-enter-from-bottom {
  from {
    opacity: 0;
    transform: translateY(120%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes role-exit-to-bottom {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(120%);
  }
}

@keyframes role-exit-to-top {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-120%);
  }
}

@keyframes paired-app-primary {
  0%,
  42% {
    opacity: 1;
    transform: translateY(0);
  }

  48%,
  92% {
    opacity: 0;
    transform: translateY(110%);
  }

  93% {
    opacity: 0;
    transform: translateY(-110%);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes paired-app-secondary {
  0%,
  42% {
    opacity: 0;
    transform: translateY(-110%);
  }

  48%,
  92% {
    opacity: 1;
    transform: translateY(0);
  }

  98%,
  100% {
    opacity: 0;
    transform: translateY(110%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-role-word {
    animation: none;
    transition: none;
  }
}

nav {
  gap: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 720;
}

.site-tabs {
  display: grid;
  min-height: 42px;
  grid-template-columns: auto auto minmax(2rem, 1fr);
  align-items: end;
  margin-bottom: -1px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.social-links a {
  display: inline-flex;
  width: 36px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  padding: 0;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.social-links svg {
  width: 18px;
  height: 18px;
}

.social-links svg:not(.linkedin-logo) {
  fill: currentColor;
}

.linkedin-logo rect {
  fill: currentColor;
  transition: fill 160ms ease;
}

.linkedin-logo path {
  fill: #ffffff;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: rgba(15, 118, 110, 0.34);
  background: rgba(255, 255, 255, 0.86);
  outline: 0;
  box-shadow: 0 8px 20px rgba(16, 18, 20, 0.06);
}

.tab-button {
  position: relative;
  z-index: 2;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 780;
  padding: 0 1rem;
  text-align: left;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.tab-button .tab-title {
  display: block;
  margin: 0;
  color: inherit;
  font-size: 1.19rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.tab-rail {
  grid-column: 3;
  height: 1px;
  align-self: end;
  background: var(--line);
  margin-right: var(--radius-md);
}

.tab-button:hover,
.tab-button:focus-visible {
  outline: 0;
  text-shadow: none;
}

.tab-button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--line);
}

.tab-button[aria-selected="true"] {
  border-color: var(--line);
  border-bottom-color: transparent;
  background: var(--panel);
  color: var(--accent);
  box-shadow: none;
  text-shadow: none;
}

.tab-button[aria-selected="true"]::after {
  right: 1px;
  left: 1px;
  height: 2px;
  background: var(--panel);
}

.tab-button-about:not([aria-selected="true"])::after {
  left: var(--radius-md);
}

.tab-button[aria-selected="true"]:hover,
.tab-button[aria-selected="true"]:focus-visible {
  color: var(--accent);
  text-shadow: none;
}

nav a:hover,
.professional-actions a:hover,
.dot-button:hover {
  color: var(--accent);
}

.social-links a[aria-label="LinkedIn"]:hover,
.social-links a[aria-label="LinkedIn"]:focus-visible {
  color: #0a66c2;
}

.social-links a[aria-label="GitHub"]:hover,
.social-links a[aria-label="GitHub"]:focus-visible {
  color: #181717;
}

.frame {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-self: start;
  width: min(var(--site-max-width), calc(100% - var(--site-gutter)));
  height: var(--main-component-height);
  margin: 0 auto 8px;
  transition: grid-template-rows 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-layer {
  display: block;
  min-width: 0;
  min-height: 0;
}

.site-layer[hidden] {
  display: none;
}

.about-layer:not([hidden]) .hero-panel {
  border-top-left-radius: 0;
}

.layer-content,
.about-grid {
  min-width: 0;
  min-height: 0;
  height: 100%;
}

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

.hero-panel,
.profile-panel,
.projects-panel,
.professional-panel {
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md) var(--radius-md) var(--radius-lg) var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(1rem, 2.4vw, 2rem);
}

.hero-panel,
.professional-panel,
.projects-panel {
  --panel-padding: clamp(1rem, 2.4vw, 2rem);
  padding: var(--panel-padding);
}

.about-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(1.2rem, 3.4vw, 3rem);
  align-items: start;
  max-width: 1180px;
  margin-top: clamp(1.2rem, 3vw, 2.4rem);
}

.about-copy {
  display: grid;
  gap: 0.9rem;
}

.about-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.45vw, 1.32rem);
  font-weight: 560;
  line-height: 1.42;
}

.about-points {
  display: grid;
  gap: 0.68rem;
}

.about-points div {
  border-left: 3px solid rgba(15, 118, 110, 0.42);
  padding-left: 0.78rem;
}

.about-points span {
  display: block;
  margin-bottom: 0.24rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 880;
}

.about-points p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 4rem;
  line-height: 0.96;
  letter-spacing: 0;
}

#intro-title {
  display: block;
  width: 100%;
  max-width: none !important;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.22rem, 1.8vw, 1.62rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.lede {
  max-width: none;
  width: 100%;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(0.84rem, 1vw, 0.95rem);
}

.profile-panel {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.55rem;
  align-content: center;
  position: relative;
  overflow: hidden;
  padding: 0.62rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.91), rgba(255, 255, 255, 0.91)),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(15, 118, 110, 0.08) 24px 25px);
}

.profile-panel::before {
  content: "";
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: var(--radius-md);
  background: rgba(15, 118, 110, 0.08);
}

.avatar {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  object-fit: cover;
  filter: grayscale(0.12);
}

.panel-label {
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-title {
  margin-bottom: 0;
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  font-weight: 820;
  line-height: 0.98;
}

.metrics {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.metrics div {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 0.42rem;
}

.metrics div + div {
  border-left: 1px solid var(--line);
  padding-left: 0.7rem;
}

.metrics dt {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.metrics dd {
  margin: 0.1rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
}

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

.professional-panel {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding-top: clamp(0.8rem, 1.2vw, 1rem);
}

.professional-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.08rem, 1.45vw, 1.34rem);
}

.professional-carousel {
  display: flex;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
  align-items: flex-start;
  gap: 1.125rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.professional-carousel::-webkit-scrollbar,
.project-carousel::-webkit-scrollbar {
  display: none;
}

.professional-carousel.is-auto-scrolling,
.project-carousel.is-auto-scrolling {
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.professional-card {
  --professional-card-body-height: 295px;
  display: grid;
  flex: 0 0 min(68%, 824px);
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto var(--professional-card-body-height) minmax(54px, auto);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(250, 252, 253, 0.94);
  padding: 0.58rem;
  padding-bottom: 0;
  scroll-snap-align: start;
}

.professional-card[hidden] {
  display: grid;
}

.professional-body {
  display: grid;
  min-width: 0;
  min-height: 0;
  position: relative;
  height: 100%;
  grid-template-columns: minmax(360px, 460px) 15px 3px 15px minmax(250px, 320px);
  gap: 0;
}

.professional-body::before {
  content: "";
  grid-column: 3;
  grid-row: 1;
  width: 3px;
  height: 100%;
  border-radius: 999px;
  background: rgba(96, 104, 116, 0.32);
}

.professional-card-header {
  min-width: 0;
  margin-bottom: 1rem;
}

.professional-product {
  display: grid;
  grid-column: 1;
  width: min(100%, 460px);
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto auto auto;
  gap: 0.72rem;
  align-content: start;
  padding-left: 15px;
}

.professional-copy {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.72rem;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 0.62rem;
}

.app-heading {
  display: grid;
  min-width: 0;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0.58rem;
  align-items: center;
}

.app-heading-group {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.72rem;
}

.app-heading-group-paired {
  flex-wrap: wrap;
}

.app-heading-divider {
  display: block;
  width: 1px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(96, 104, 116, 0.54);
}

.app-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(16, 18, 20, 0.18);
  object-fit: cover;
}

.app-icon-svg {
  display: inline-grid;
  place-items: center;
  background: #ffffff;
}

.app-icon-svg svg {
  width: 38px;
  height: 30px;
}

.app-icon-fallback {
  display: inline-grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.95), rgba(16, 18, 20, 0.95));
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 850;
}

.professional-card h3 {
  margin-bottom: 0.18rem;
  font-size: clamp(1.05rem, 1.45vw, 1.22rem);
  line-height: 1;
}

.professional-card h4 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.12rem, 1.5vw, 1.42rem);
  line-height: 1;
}

.professional-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.contribution-button {
  width: fit-content;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 860;
  line-height: 1;
  margin: 0 0 0.58rem;
  padding: 0;
  text-align: left;
  transition:
    color 160ms ease,
    text-underline-offset 160ms ease;
}

.contribution-button:hover,
.contribution-button:focus-visible {
  color: var(--ink);
  outline: 0;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.professional-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin-bottom: 0;
}

.professional-meta a,
.professional-meta span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

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

.professional-focus-cards {
  align-self: stretch;
  align-content: center;
  align-items: center;
  place-self: center stretch;
  gap: 0.34rem;
  height: 100%;
  margin: 0;
  padding: 0;
}

.professional-media {
  --media-gap: 0.24rem;
  display: flex;
  width: calc(100% + 10px);
  max-width: calc(100% + 10px);
  min-width: 0;
  min-height: 0;
  height: auto;
  align-items: flex-start;
  justify-content: center;
  gap: var(--media-gap);
  justify-self: center;
  padding: 5px;
  overflow-x: hidden;
  overflow-y: hidden;
  scrollbar-width: none;
}

.professional-media::-webkit-scrollbar {
  display: none;
}

.professional-media-empty {
  border: 1px solid transparent;
}

.professional-media-placeholder {
  width: 100%;
}

.tablet-placeholder {
  display: grid;
  width: min(100%, 306px);
  aspect-ratio: 4 / 3;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(246, 248, 250, 0.95)),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(96, 104, 116, 0.08) 22px 23px);
  box-shadow: 0 18px 38px rgba(16, 18, 20, 0.12);
}

.tablet-placeholder-screen {
  display: grid;
  width: 74%;
  gap: 0.72rem;
}

.tablet-placeholder-screen span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(96, 104, 116, 0.18);
}

.tablet-placeholder-screen span:nth-child(1) {
  width: 58%;
  background: rgba(15, 118, 110, 0.24);
}

.tablet-placeholder-screen span:nth-child(2) {
  width: 84%;
}

.tablet-placeholder-screen span:nth-child(3) {
  width: 68%;
}

.professional-contributions {
  display: flex;
  grid-column: 5;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  border-left: 0;
  padding: 0.1rem 15px 0.1rem 0;
}

.professional-contributions .panel-label {
  margin-bottom: 0.34rem;
  color: var(--accent);
}

.professional-contribution-list {
  display: grid;
  gap: 0.82rem;
  margin: 0;
  padding-left: 1.05rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 620;
  line-height: 1.36;
}

.professional-links {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 0.68rem;
}

.professional-links a {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 840;
}

.professional-preview-frame {
  display: block;
  width: min(
    calc((100% - ((var(--media-layout-count, var(--media-count, 1)) - 1) * var(--media-gap))) / var(--media-layout-count, var(--media-count, 1))),
    calc(var(--display-width) * 1px)
  );
  height: auto;
  flex: 0 1 auto;
  max-width: calc(var(--image-width) * 1px);
  aspect-ratio: var(--display-width) / var(--display-height);
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: none;
  filter: drop-shadow(4px 4px 3px rgba(16, 18, 20, 0.16));
}

.professional-preview-frame-top-left {
  border-radius: 10px 0 0 0;
}

.professional-preview-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

.projects-panel {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.42rem;
}

.panel-heading-title {
  display: grid;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.3rem;
}

.panel-heading-title .eyebrow {
  margin: 0;
  line-height: 1.25;
}

.section-disclaimer {
  margin: 0;
  color: rgba(107, 114, 128, 0.66);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  max-width: none;
  white-space: nowrap;
}

.carousel-dots {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 0.48rem;
  min-width: 56px;
  min-height: 34px;
}

.dot-button {
  --dot-active-color: #6b7280;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(96, 104, 116, 0.44);
  border-radius: 999px;
  background-color: transparent;
  cursor: pointer;
  padding: 0;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    width 160ms ease,
    height 160ms ease;
}

.dot-button[aria-current="true"] {
  width: 12px;
  height: 12px;
  border-color: var(--dot-active-color);
  background-color: var(--dot-active-color);
}

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(16, 18, 20, 0.36);
  padding: 1rem;
}

.modal-backdrop[aria-hidden="false"] {
  display: flex;
}

.contribution-modal {
  --modal-fill: rgba(255, 255, 255, 0.96);
  --exit-size: 34px;
  position: relative;
  width: min(80vw, 1040px);
  height: min(80vh, 680px);
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--modal-fill);
  box-shadow: 0 28px 80px rgba(16, 18, 20, 0.22);
  padding: 1rem;
}

.modal-exit-control {
  position: absolute;
  top: -22px;
  right: -18px;
  z-index: 5;
  width: var(--exit-size);
  height: var(--exit-size);
}

.modal-close {
  display: inline-grid;
  width: var(--exit-size);
  height: var(--exit-size);
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1;
  padding: 0;
  box-shadow:
    0 12px 28px rgba(16, 18, 20, 0.16),
    0 0 0 7px rgba(255, 255, 255, 0.72);
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--accent);
  outline: 2px solid rgba(15, 118, 110, 0.18);
  outline-offset: 2px;
}

.modal-grid {
  display: grid;
  height: 100%;
  min-width: 0;
  min-height: 0;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1rem;
}

.modal-contribution-copy,
.modal-product-summary {
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  padding: 1rem;
}

.modal-contribution-copy {
  overflow-y: auto;
}

.modal-contribution-copy h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 0.98;
}

.modal-contribution-copy p {
  margin-bottom: 1.15rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.contribution-list {
  display: grid;
  gap: 0.72rem;
  margin: 0;
  padding-left: 1.05rem;
  color: var(--ink);
  font-size: 0.94rem;
}

.modal-product-summary {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 0.74rem;
  overflow: hidden;
}

.modal-product-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.modal-tags {
  margin: 0;
}

.modal-media {
  display: flex;
  min-height: 0;
  gap: 0.42rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.modal-media img {
  width: auto;
  height: 100%;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  object-fit: contain;
  box-shadow: 0 10px 22px rgba(16, 18, 20, 0.12);
}

.modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  border-top: 1px solid var(--line);
  padding-top: 0.68rem;
}

.modal-links a {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 820;
}

.project-carousel {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.project-card {
  display: flex;
  flex: 0 0 min(58%, 680px);
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  padding: 0.58rem;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
  scroll-snap-align: start;
}

.project-card[hidden] {
  display: flex;
}

.project-card:hover {
  border-color: rgba(15, 118, 110, 0.48);
  box-shadow: 0 14px 34px rgba(16, 18, 20, 0.08);
  transform: translateY(-2px);
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.48rem;
}

.project-icon {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 850;
}

.project-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card h3 {
  margin-bottom: 0.28rem;
  font-size: clamp(1.1rem, 1.6vw, 1.38rem);
  line-height: 1;
}

.project-card p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 0.52rem;
  color: var(--muted);
  font-size: 0.82rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
  margin: auto 0 0.52rem;
  padding: 0;
  list-style: none;
}

.tag-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.38rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 780;
}

.project-links {
  display: flex;
  gap: 0.6rem;
  border-top: 1px solid var(--line);
  padding-top: 0.48rem;
}

.project-links a {
  font-size: 0.8rem;
  font-weight: 820;
}

.project-links a:first-child {
  color: var(--accent);
}

@media (min-width: 1280px) and (min-height: 940px) {
  body {
    grid-template-rows: var(--nav-height) minmax(0, 1fr);
  }

  .frame {
    --main-component-height: min(720px, calc(100svh - var(--nav-height) - 40px));
    align-self: center;
    margin-block: 0;
  }

  .professional-carousel,
  .project-carousel {
    width: 100%;
    margin-block: auto;
  }

  .project-carousel {
    flex: 0 0 auto;
  }
}

@media (max-width: 920px) {
  body {
    overflow: auto;
  }

  .site-header {
    height: auto;
    padding: 14px 0;
  }

  .frame {
    grid-template-rows: auto auto;
    height: auto;
  }

  .about-grid,
  .professional-panel,
  .about-detail {
    grid-template-columns: 1fr;
  }

  .professional-card,
  .professional-body,
  .professional-copy {
    grid-template-columns: 1fr;
  }

  .professional-card {
    grid-template-rows: auto auto auto;
  }

  .professional-body {
    height: auto;
  }

  .professional-body::before {
    display: none;
  }

  .professional-product {
    grid-column: 1;
    grid-template-rows: auto auto;
  }

  .professional-contributions {
    grid-column: 1;
    padding-top: 0.72rem;
  }

  .professional-media {
    max-height: 160px;
  }

  .project-carousel {
    display: flex;
  }

  .professional-carousel {
    display: flex;
  }

  .project-card,
  .professional-card {
    flex-basis: 86%;
  }

  .professional-media {
    max-height: 160px;
  }

  .contribution-modal {
    width: min(92vw, 1040px);
    height: min(86vh, 740px);
  }

  .modal-grid {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .modal-product-summary {
    min-height: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .frame {
    transition: none;
  }
}

@media (max-width: 560px) {
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    gap: 0.5rem;
    width: min(var(--site-max-width), calc(100% - var(--site-gutter)));
  }

  .brand {
    min-width: 0;
    gap: 0.365rem;
    font-size: 0.94rem;
    white-space: nowrap;
  }

  .brand-avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .brand-role {
    width: calc(var(--role-width) + 0.88rem);
    flex: 0 0 auto;
    margin-left: 0.081rem;
    padding-left: 0.454rem;
    font-size: 0.78rem;
  }

  .section-disclaimer {
    white-space: normal;
  }

  nav {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 0.45rem;
  }

  .site-tabs {
    grid-template-columns: auto auto minmax(1rem, 1fr);
  }

  .social-links {
    flex-wrap: nowrap;
    gap: 0.22rem;
  }

  .social-links a {
    width: 32px;
    min-height: 32px;
  }

  .social-links svg {
    width: 16px;
    height: 16px;
  }

  .app-heading-group-paired {
    display: grid;
    min-height: 46px;
    align-items: center;
    gap: 0;
    overflow: hidden;
  }

  .app-heading-group-paired .app-heading {
    grid-area: 1 / 1;
    animation: paired-app-primary 7.2s infinite cubic-bezier(0.22, 1, 0.36, 1);
  }

  .app-heading-group-paired .app-heading-divider {
    display: none;
  }

  .app-heading-group-paired .app-heading-divider + .app-heading {
    animation-name: paired-app-secondary;
  }

  .tab-button {
    min-height: 38px;
    padding: 0 0.58rem;
    font-size: 0.78rem;
  }

  .tab-button .tab-title {
    font-size: clamp(0.828rem, 3.62vw, 1.09rem);
    letter-spacing: 0.05em;
    white-space: nowrap;
  }

  .frame {
    width: min(var(--site-max-width), calc(100% - var(--site-gutter)));
    height: auto;
    min-height: calc(100svh - 148px);
  }

  h1 {
    font-size: 2.55rem;
  }

  .profile-panel,
  .metrics {
    grid-template-columns: 1fr;
  }

  .metrics div + div {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 360px) {
  .site-header {
    gap: 0.38rem;
  }

  .brand {
    gap: 0.259rem;
    font-size: 0.78rem;
  }

  .brand-avatar {
    width: 28px;
    height: 28px;
  }

  .brand-role {
    width: calc(var(--role-width) + 0.5rem);
    margin-left: 0.032rem;
    padding-left: 0.324rem;
    font-size: 0.6rem;
  }

  nav {
    gap: 0.32rem;
  }

  .social-links {
    gap: 0.12rem;
  }

  .social-links a {
    width: 30px;
    min-height: 30px;
  }
}

@media (max-width: 560px) and (prefers-reduced-motion: reduce) {
  .app-heading-group-paired .app-heading {
    animation: none;
  }

  .app-heading-group-paired .app-heading-divider + .app-heading {
    opacity: 0;
    pointer-events: none;
  }
}
