:root {
  color-scheme: light;
  --bg: #f8f9f7;
  --surface: #ffffff;
  --surface-muted: #f0f5f2;
  --surface-strong: #e2eee8;
  --ink: #0d1413;
  --ink-soft: #263330;
  --muted: #66736f;
  --line: rgba(16, 22, 21, 0.12);
  --line-strong: rgba(16, 22, 21, 0.2);
  --accent: #256d5a;
  --accent-strong: #16483e;
  --accent-soft: #dceee7;
  --blue: #2c5d86;
  --warm: #9a6730;
  --shadow: 0 24px 70px rgba(16, 22, 21, 0.08);
  --shadow-soft: 0 14px 40px rgba(16, 22, 21, 0.055);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.65) inset, 0 18px 46px rgba(16, 22, 21, 0.05);
  --radius: 8px;
  --container: 1160px;
  --content-measure: 760px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1211;
  --surface: #111a18;
  --surface-muted: #17221f;
  --surface-strong: #20312d;
  --ink: #edf6f2;
  --ink-soft: #c8d8d1;
  --muted: #94a59e;
  --line: rgba(232, 246, 240, 0.12);
  --line-strong: rgba(232, 246, 240, 0.22);
  --accent: #67d1ae;
  --accent-strong: #9ee2cb;
  --accent-soft: rgba(103, 209, 174, 0.14);
  --blue: #8fc5ed;
  --warm: #d4a96e;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.24);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 18px 46px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

main section {
  scroll-margin-top: 14px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(37, 109, 90, 0.055), transparent 32%),
    linear-gradient(90deg, rgba(16, 22, 21, 0.024) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 22, 21, 0.024) 1px, transparent 1px),
    var(--bg);
  background-size: 56px 56px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  transition: background-color 180ms ease, color 180ms ease;
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% 8%, rgba(103, 209, 174, 0.12), transparent 32%),
    linear-gradient(90deg, rgba(232, 246, 240, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(232, 246, 240, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 56px 56px;
}

img {
  display: block;
  max-width: 100%;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(37, 109, 90, 0.35);
  outline-offset: 3px;
}

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(248, 249, 247, 0.84);
  backdrop-filter: blur(20px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

[data-theme="dark"] .site-header {
  background: rgba(12, 18, 17, 0.84);
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(16, 22, 21, 0.05);
}

[data-theme="dark"] .site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.nav {
  width: min(100% - 48px, var(--container));
  min-height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 0.78rem;
  box-shadow: var(--shadow-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.is-active {
  background: var(--surface);
  color: var(--accent-strong);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.theme-toggle:hover {
  border-color: rgba(37, 109, 90, 0.34);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.nav-toggle {
  position: relative;
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle__line {
  position: absolute;
  left: 50%;
  display: block;
  width: 18px;
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
  transform-origin: center;
  transition: top 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.nav-toggle__line:nth-child(1) {
  top: 14px;
}

.nav-toggle__line:nth-child(2) {
  top: 20px;
}

.nav-toggle__line:nth-child(3) {
  top: 26px;
}

.nav-open .nav-toggle__line:nth-child(1) {
  top: 20px;
  transform: translateX(-50%) rotate(45deg);
}

.nav-open .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle__line:nth-child(3) {
  top: 20px;
  transform: translateX(-50%) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: min(860px, calc(100svh - 72px));
  display: grid;
  align-items: center;
  padding: clamp(68px, 8vw, 104px) 0 clamp(52px, 6vw, 78px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% auto auto 50%;
  width: min(46vw, 560px);
  height: min(46vw, 560px);
  border: 1px solid rgba(37, 109, 90, 0.16);
  border-radius: 50%;
  transform: translateX(-8%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.72fr);
  gap: clamp(42px, 6vw, 84px);
  align-items: center;
}

.eyebrow,
.section-kicker,
.panel-label,
.project-meta {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 700px;
  margin-top: 16px;
  color: var(--ink);
  font-size: clamp(3.8rem, 7.6vw, 7.1rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero__title {
  max-width: 700px;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  font-weight: 800;
  line-height: 1.42;
  text-wrap: balance;
}

.hero-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 650px;
  margin-top: 16px;
}

.hero-stack li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(37, 109, 90, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-strong);
  padding: 0 12px;
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(16, 22, 21, 0.04);
}

[data-theme="dark"] .hero-stack li {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.hero__summary {
  max-width: 660px;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.08rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 19px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button--primary {
  background: var(--accent-strong);
  color: var(--surface);
  box-shadow: 0 16px 34px rgba(22, 72, 62, 0.22);
}

.button--primary:hover {
  color: var(--surface);
  background: var(--accent);
}

.button--secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

[data-theme="dark"] .button--secondary {
  background: rgba(255, 255, 255, 0.06);
}

.button--secondary:hover {
  border-color: rgba(37, 109, 90, 0.34);
  background: var(--surface);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 650;
}

.contact-row li {
  position: relative;
}

.contact-row li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.hero__visual {
  display: grid;
  gap: 18px;
}

.portrait-shell {
  position: relative;
  overflow: hidden;
  min-height: clamp(390px, 38vw, 460px);
  border: 1px solid rgba(16, 22, 21, 0.14);
  border-radius: var(--radius);
  background: var(--surface-muted);
  box-shadow: var(--shadow);
}

[data-theme="dark"] .portrait-shell {
  background: var(--surface-muted);
}

.portrait-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 14%;
}

.outcome-panel,
.statement-card,
.snapshot-card,
.experience-card,
.project-card,
.skill-card,
.skill-overview,
.skill-group,
.credential-panel,
.credential-card,
.mini-card,
.repo-panel,
.contact-details,
.github-activity {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
}

[data-theme="dark"] .outcome-panel,
[data-theme="dark"] .statement-card,
[data-theme="dark"] .snapshot-card,
[data-theme="dark"] .experience-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .skill-card,
[data-theme="dark"] .skill-overview,
[data-theme="dark"] .skill-group,
[data-theme="dark"] .credential-panel,
[data-theme="dark"] .credential-card,
[data-theme="dark"] .mini-card,
[data-theme="dark"] .repo-panel,
[data-theme="dark"] .contact-details,
[data-theme="dark"] .github-activity {
  background: rgba(17, 26, 24, 0.86);
}

.outcome-panel {
  padding: 18px;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.outcome-grid span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(248, 249, 247, 0.84);
}

[data-theme="dark"] .outcome-grid span {
  background: rgba(23, 34, 31, 0.84);
}

.outcome-grid strong {
  color: var(--accent-strong);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1;
}

.outcome-grid small {
  color: var(--muted);
  font-weight: 650;
  line-height: 1.35;
}

.section {
  padding: clamp(76px, 9vw, 116px) 0;
}

.section--tinted {
  background: rgba(238, 244, 241, 0.75);
  border-block: 1px solid rgba(16, 22, 21, 0.07);
}

[data-theme="dark"] .section--tinted {
  background: rgba(17, 26, 24, 0.64);
  border-block-color: var(--line);
}

.section-heading {
  max-width: var(--content-measure);
  margin-bottom: 38px;
}

.section-heading h2 {
  margin-top: 10px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-heading p:not(.section-kicker) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.03rem;
  max-width: 680px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.58fr);
  gap: 24px;
}

.statement-card,
.snapshot-card {
  padding: clamp(22px, 4vw, 34px);
}

.statement-card h3,
.snapshot-card h3,
.experience-card h3,
.project-card h3,
.skill-group h3,
.credential-panel h3,
.skill-card h3,
.column-title {
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.25;
}

.statement-card h3 {
  margin-bottom: 14px;
}

.statement-card p {
  color: var(--muted);
  font-weight: 560;
}

.statement-card p + p {
  margin-top: 14px;
}

.about-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.about-principles span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(37, 109, 90, 0.18);
  border-radius: 999px;
  background: rgba(220, 238, 231, 0.58);
  color: var(--accent-strong);
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 800;
}

.snapshot-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.snapshot-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.snapshot-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.snapshot-list span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.snapshot-list strong {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.4;
}

.check-list {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
  font-weight: 600;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.snapshot-card dl,
.contact-details dl {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.snapshot-card div,
.contact-details div {
  display: grid;
  gap: 4px;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.career-timeline {
  display: grid;
  gap: 28px;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.timeline-rail {
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-entry:not(:last-child) .timeline-rail::after {
  content: "";
  position: absolute;
  top: 60px;
  bottom: -30px;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, rgba(37, 109, 90, 0.45), rgba(37, 109, 90, 0.08));
  transform: translateX(-50%);
}

.timeline-node {
  position: sticky;
  top: 96px;
  z-index: 1;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(37, 109, 90, 0.26);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-strong);
  box-shadow: 0 10px 28px rgba(16, 22, 21, 0.08);
}

.timeline-entry--current .timeline-node {
  background: var(--accent-strong);
  color: var(--surface);
}

.experience-card {
  padding: clamp(22px, 4vw, 34px);
}

.timeline-entry--current .experience-card {
  border-color: rgba(37, 109, 90, 0.28);
  border-left: 3px solid var(--accent);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(220, 238, 231, 0.5));
}

.experience-card__header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.experience-card__header h3 {
  margin-top: 8px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.company-meta {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.status-badge,
.feature-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  width: fit-content;
  border: 1px solid rgba(37, 109, 90, 0.18);
  border-radius: 999px;
  background: rgba(220, 238, 231, 0.7);
  color: var(--accent-strong);
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.feature-label {
  border-color: rgba(44, 93, 134, 0.18);
  background: rgba(44, 93, 134, 0.1);
  color: var(--blue);
}

.role-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.role-item {
  display: grid;
  grid-template-columns: minmax(360px, 0.44fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(248, 249, 247, 0.72);
}

.role-item + .role-item {
  border-top: 1px solid var(--line);
}

.role-item:first-child {
  padding-top: 18px;
}

.role-item:last-child {
  padding-bottom: 18px;
}

.role-item h4 {
  color: var(--ink);
  font-size: 1.03rem;
}

.role-heading {
  min-width: 0;
}

.role-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.role-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(37, 109, 90, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  padding: 0 9px;
  font-size: 0.78rem;
  font-weight: 780;
  line-height: 1;
  white-space: nowrap;
}

.role-points {
  display: grid;
  gap: 9px;
}

.role-points li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-weight: 590;
}

.role-points li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.featured-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 24px;
  min-width: 0;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 109, 90, 0.28);
  box-shadow: var(--shadow);
}

.project-card--featured {
  grid-template-columns: minmax(96px, 0.18fr) minmax(0, 1fr);
  padding: clamp(24px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.9);
}

.featured-projects .project-card--featured:not(:first-child) {
  min-height: 100%;
  align-content: start;
}

.featured-projects .project-card--featured:first-child {
  grid-column: 1 / -1;
  grid-template-columns: minmax(150px, 0.2fr) minmax(0, 1fr);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(220, 238, 231, 0.58));
}

.project-card--compact {
  grid-template-columns: 1fr;
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.project-visual {
  width: 100%;
  aspect-ratio: 1;
  align-self: start;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.project-visual img {
  width: 78%;
  height: 78%;
}

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

.project-card__topline,
.credential-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.project-copy h3 {
  margin-top: 8px;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  text-wrap: balance;
}

.featured-projects .project-card--featured:not(:first-child) .project-copy h3 {
  font-size: clamp(1.22rem, 1.8vw, 1.38rem);
}

.project-copy p:not(.project-meta) {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 540;
  line-height: 1.58;
}

.project-links {
  display: flex;
  gap: 8px;
}

.icon-link {
  flex: 0 0 auto;
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-soft);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.icon-link:hover {
  border-color: rgba(37, 109, 90, 0.34);
  background: var(--accent-soft);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 100%;
  border: 1px solid rgba(37, 109, 90, 0.18);
  border-radius: 999px;
  background: rgba(220, 238, 231, 0.7);
  color: var(--accent-strong);
  padding: 0 11px;
  font-size: 0.78rem;
  font-weight: 800;
}

.more-projects {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-card);
}

.more-projects summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 0 22px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.more-projects summary::-webkit-details-marker {
  display: none;
}

.more-projects summary::marker {
  content: "";
}

.more-projects summary i {
  transition: transform 180ms ease;
}

.more-projects[open] summary {
  border-bottom: 1px solid var(--line);
}

.more-projects[open] summary i {
  transform: rotate(180deg);
}

.secondary-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
}

.github-activity {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding: 24px;
}

.github-activity h3 {
  margin-top: 6px;
  color: var(--ink);
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.25;
}

.github-graph {
  display: grid;
  min-height: 184px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  padding: 18px;
}

.github-graph img {
  display: block;
  width: 100%;
  height: auto;
}

.skills-layout {
  display: grid;
  gap: 18px;
}

.skill-overview {
  padding: clamp(22px, 4vw, 30px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(220, 238, 231, 0.48));
}

.skill-overview__header {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 18px;
}

.skill-overview__header h3 {
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.2;
}

.skill-highlight {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.skill-highlight span {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon meta";
  gap: 2px 10px;
  min-width: 0;
  min-height: 72px;
  align-items: center;
  border: 1px solid rgba(37, 109, 90, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent-strong);
  padding: 12px;
}

.skill-highlight i {
  grid-area: icon;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(37, 109, 90, 0.1);
}

.skill-highlight strong {
  grid-area: title;
  min-width: 0;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.skill-highlight small {
  grid-area: meta;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.skill-group {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  padding: 22px;
}

.skill-group::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(44, 93, 134, 0.72));
}

.skill-group__heading,
.panel-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-group__heading i,
.panel-heading > i {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(37, 109, 90, 0.18);
  border-radius: var(--radius);
  background: rgba(220, 238, 231, 0.58);
  color: var(--accent-strong);
}

.skill-group__heading h3,
.panel-heading h3 {
  min-width: 0;
}

.skill-count {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border: 1px solid rgba(37, 109, 90, 0.16);
  border-radius: 999px;
  background: rgba(220, 238, 231, 0.58);
  color: var(--accent-strong);
  padding: 0 8px;
  font-size: 0.76rem;
  font-weight: 850;
}

.panel-heading span {
  margin-left: auto;
  flex: 0 0 auto;
  width: fit-content;
  border: 1px solid rgba(37, 109, 90, 0.16);
  border-radius: 999px;
  background: rgba(220, 238, 231, 0.58);
  color: var(--accent-strong);
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 800;
}

.skill-list-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.skill-list-compact li {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(37, 109, 90, 0.15);
  border-radius: 999px;
  background: rgba(248, 249, 247, 0.82);
  color: var(--ink-soft);
  padding: 0 11px;
  font-size: 0.86rem;
  font-weight: 720;
  overflow-wrap: anywhere;
}

.credential-stack {
  display: grid;
  gap: 18px;
}

.credential-panel {
  padding: 24px;
}

.cert-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.cert-timeline li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(248, 249, 247, 0.72);
}

.cert-timeline li:first-child {
  padding-top: 16px;
}

.cert-timeline li:nth-child(-n + 2) {
  border-color: rgba(37, 109, 90, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(220, 238, 231, 0.42));
}

.cert-timeline li:last-child {
  padding-bottom: 16px;
}

.cert-timeline time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  width: fit-content;
  min-height: 30px;
  border: 1px solid rgba(37, 109, 90, 0.18);
  border-radius: 999px;
  background: rgba(220, 238, 231, 0.6);
  color: var(--accent-strong);
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.cert-timeline h4,
.compact-list h4 {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.cert-timeline p,
.compact-list p {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 580;
}

.credential-title-row .icon-link {
  width: 34px;
  height: 34px;
}

.compact-list {
  display: grid;
  gap: 0;
  margin-top: 18px;
}

.compact-list div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.compact-list div:first-child {
  padding-top: 0;
  border-top: 0;
}

.compact-list div:last-child {
  padding-bottom: 0;
}

.site-footer {
  padding: clamp(70px, 9vw, 112px) 0 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 42%),
    var(--ink);
  color: rgba(255, 255, 255, 0.74);
}

.site-footer .section-kicker {
  color: #93d4c0;
}

.site-footer .container {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.64fr);
  gap: 34px;
  align-items: start;
}

.footer-intro {
  max-width: 700px;
}

.footer-intro h2 {
  margin-top: 10px;
  color: #f7fffb;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

.footer-intro p:not(.section-kicker) {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.03rem;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.social-links a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: #f7fffb;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.social-links a:hover {
  border-color: rgba(147, 212, 192, 0.44);
  background: rgba(147, 212, 192, 0.12);
  color: #f7fffb;
  transform: translateY(-2px);
}

.footer-contact-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 14px 22px;
  margin-top: 24px;
}

.footer-contact-meta div {
  min-width: 0;
}

.footer-contact-meta dt {
  color: rgba(255, 255, 255, 0.48);
}

.footer-contact-meta dd,
.footer-contact-meta a {
  color: #f7fffb;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 0;
  align-items: start;
}

.footer-panel {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  padding: 24px;
  box-shadow: none;
}

.footer-panel .panel-heading h3 {
  color: #f7fffb;
}

.footer-panel .panel-heading > i {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(147, 212, 192, 0.12);
  color: #93d4c0;
}

.contact-form {
  display: grid;
  gap: 11px;
  margin-top: 20px;
}

.contact-form label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #f7fffb;
  font: inherit;
  padding: 12px 14px;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(147, 212, 192, 0.64);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(147, 212, 192, 0.1);
  outline: 0;
}

.contact-form .button {
  margin-top: 8px;
  justify-self: start;
}

.site-footer .button--primary {
  background: #f7fffb;
  color: #0d1413;
  box-shadow: none;
}

.site-footer .button--primary:hover {
  background: #e7f1ed;
  color: #0d1413;
}

.visually-hidden-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.footer__inner {
  grid-column: 1 / -1;
  min-height: 84px;
  margin-top: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.footer__inner a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f7fffb;
  font-weight: 800;
}

[data-theme="dark"] .about-principles span,
[data-theme="dark"] .tag-list span,
[data-theme="dark"] .status-badge,
[data-theme="dark"] .skill-count,
[data-theme="dark"] .panel-heading span,
[data-theme="dark"] .cert-timeline time {
  border-color: rgba(103, 209, 174, 0.22);
  background: rgba(103, 209, 174, 0.12);
  color: var(--accent-strong);
}

[data-theme="dark"] .feature-label {
  border-color: rgba(143, 197, 237, 0.24);
  background: rgba(143, 197, 237, 0.12);
  color: var(--blue);
}

[data-theme="dark"] .role-item,
[data-theme="dark"] .project-card--featured,
[data-theme="dark"] .project-card--compact,
[data-theme="dark"] .cert-timeline li {
  background: rgba(23, 34, 31, 0.76);
}

[data-theme="dark"] .more-projects {
  border-color: rgba(103, 209, 174, 0.18);
  background: linear-gradient(135deg, rgba(17, 26, 24, 0.94), rgba(23, 34, 31, 0.78));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.055) inset, 0 18px 46px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .more-projects summary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.025);
}

[data-theme="dark"] .more-projects summary i {
  color: var(--accent-strong);
}

[data-theme="dark"] .more-projects[open] summary {
  border-bottom-color: rgba(232, 246, 240, 0.12);
}

[data-theme="dark"] .secondary-project-grid {
  background: rgba(12, 18, 17, 0.18);
}

[data-theme="dark"] .timeline-entry--current .experience-card,
[data-theme="dark"] .featured-projects .project-card--featured:first-child,
[data-theme="dark"] .skill-overview,
[data-theme="dark"] .cert-timeline li:nth-child(-n + 2) {
  border-color: rgba(103, 209, 174, 0.22);
  background: linear-gradient(135deg, rgba(23, 34, 31, 0.95), rgba(103, 209, 174, 0.1));
}

[data-theme="dark"] .role-meta span,
[data-theme="dark"] .skill-highlight span,
[data-theme="dark"] .skill-list-compact li,
[data-theme="dark"] .icon-link {
  border-color: rgba(232, 246, 240, 0.12);
  background: rgba(255, 255, 255, 0.055);
}

[data-theme="dark"] .role-meta span,
[data-theme="dark"] .skill-list-compact li,
[data-theme="dark"] .icon-link {
  color: var(--ink-soft);
}

[data-theme="dark"] .skill-highlight i,
[data-theme="dark"] .skill-group__heading i,
[data-theme="dark"] .panel-heading > i {
  border-color: rgba(103, 209, 174, 0.2);
  background: rgba(103, 209, 174, 0.12);
  color: var(--accent-strong);
}

[data-theme="dark"] .project-visual,
[data-theme="dark"] .github-graph {
  background: rgba(12, 18, 17, 0.64);
}

[data-theme="dark"] .site-footer {
  background:
    linear-gradient(135deg, rgba(103, 209, 174, 0.08), transparent 42%),
    #07100e;
}

[data-theme="dark"] .site-footer .section-kicker {
  color: #9ee2cb;
}

[data-theme="dark"] .footer-panel {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.075);
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.095);
}

[data-theme="dark"] .site-footer .button--primary {
  background: #e7f1ed;
  color: #07100e;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .hero__grid,
  .about-grid,
  .skills-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .container {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    inset: 18% auto auto 30%;
    width: 520px;
    height: 520px;
  }

  .hero__visual {
    max-width: 620px;
    margin-inline: auto;
  }

  .skill-overview {
    position: static;
  }

  .skill-highlight,
  .skill-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-projects,
  .secondary-project-grid {
    grid-template-columns: 1fr;
  }

  .featured-projects .project-card--featured:first-child {
    grid-template-columns: minmax(120px, 0.22fr) minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.985);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  [data-theme="dark"] .nav-links {
    background: rgba(17, 26, 24, 0.985);
  }

  .nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
    justify-content: flex-start;
  }

  .role-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .experience-card__header {
    display: grid;
  }

  .timeline-entry {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .timeline-rail {
    justify-content: flex-start;
  }

  .timeline-entry:not(:last-child) .timeline-rail::after {
    display: none;
  }

  .timeline-node {
    position: static;
    width: 40px;
    height: 40px;
  }

  .project-card,
  .project-card--featured,
  .featured-projects .project-card--featured:first-child {
    grid-template-columns: 1fr;
  }

  .project-visual {
    width: min(160px, 48vw);
  }

  .skill-groups {
    grid-template-columns: 1fr;
  }

  .cert-timeline {
    grid-template-columns: 1fr;
  }

  .cert-timeline li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .github-graph {
    justify-content: start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .github-graph img {
    width: auto;
    min-width: 720px;
    max-width: none;
  }
}

@media (max-width: 620px) {
  .container,
  .nav {
    width: min(100% - 30px, var(--container));
  }

  .nav {
    min-height: 68px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    padding: 44px 0 48px;
  }

  .hero__grid {
    gap: 26px;
  }

  .hero h1 {
    font-size: clamp(3rem, 13.8vw, 4.05rem);
    line-height: 0.93;
  }

  .hero__title {
    margin-top: 20px;
    font-size: 1rem;
    line-height: 1.4;
  }

  .hero__summary {
    margin-top: 14px;
    font-size: 1rem;
  }

  .hero__actions {
    margin-top: 24px;
  }

  .portrait-shell {
    min-height: 350px;
  }

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

  .contact-row {
    display: grid;
    gap: 8px;
    margin-top: 22px;
  }

  .contact-row li::after {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

  .statement-card,
  .snapshot-card,
  .experience-card,
  .project-card,
  .skill-card,
  .skill-overview,
  .skill-group,
  .credential-panel,
  .credential-card,
  .mini-card,
  .contact-details,
  .footer-panel {
    padding: 18px;
  }

  .skill-group__heading,
  .panel-heading {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
  }

  .skill-group__heading {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
  }

  .skill-count {
    margin-left: 0;
  }

  .panel-heading span {
    margin-left: 0;
  }

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

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

  .skill-highlight {
    grid-template-columns: 1fr;
  }

  .cert-timeline li {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .project-card__topline,
  .credential-title-row {
    align-items: flex-start;
  }

  .more-projects summary {
    min-height: 58px;
    padding: 0 18px;
  }

  .secondary-project-grid {
    padding: 12px;
  }

  .github-graph {
    min-height: 154px;
    justify-content: start;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .github-graph img {
    width: auto;
    min-width: 680px;
    max-width: none;
  }

  .contact-form .button {
    width: 100%;
  }

  .footer__inner {
    min-height: 92px;
    display: grid;
    align-content: center;
  }
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
