:root {
  --bg: #07111d;
  --bg-soft: #0c1a2b;
  --panel: rgba(7, 17, 29, 0.76);
  --panel-strong: rgba(12, 26, 43, 0.92);
  --line: rgba(120, 193, 255, 0.2);
  --text: #edf4fb;
  --muted: #b8c6d6;
  --text-tertiary: #93a7ba;
  --accent: #78c1ff;
  --accent-strong: #39f0c5;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --header-height: 66px;
  --anchor-gap: 20px;
  --anchor-offset: calc(var(--header-height) + var(--anchor-gap));
  --font-display: "Orbitron", "Space Grotesk", sans-serif;
  --font-heading: "Space Grotesk", Inter, sans-serif;
  --font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-size-body: 1rem;
  --text-size-body-large: 1.0625rem;
  --text-line-height: 1.65;
  --text-line-height-compact: 1.4;
  --content-measure: 72ch;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--anchor-offset) - var(--anchor-gap));
}

main[id],
section[id],
footer[id] {
  scroll-margin-top: calc(var(--anchor-offset) - var(--header-height));
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(var(--text-size-body), 0.97rem + 0.12vw, var(--text-size-body-large));
  font-weight: 400;
  line-height: var(--text-line-height);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at top left, rgba(57, 240, 197, 0.14), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(120, 193, 255, 0.18), transparent 22%),
    linear-gradient(180deg, #050b14 0%, #0b1626 58%, #040811 100%);
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 92%);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 238px 6px 14px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(5, 11, 20, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.header-actions-panel {
  display: contents;
}

.mobile-menu-toggle,
.mobile-menu-backdrop {
  display: none;
}

.language-switcher {
  position: absolute;
  top: 50%;
  right: 150px;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 5px;
  color: var(--text-tertiary);
  font-family: var(--font-body);
  transform: translateY(-50%);
}

.language-switcher button {
  position: relative;
  min-width: 32px;
  min-height: 40px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 0.8125rem/1 var(--font-body);
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  color: var(--accent-strong);
  font-weight: 700;
}

.language-switcher button[aria-pressed="true"]::after {
  position: absolute;
  right: 5px;
  bottom: 5px;
  left: 5px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.language-switcher button:hover {
  color: var(--text);
}

.language-switcher button:focus-visible {
  outline: 3px solid rgba(57, 240, 197, 0.72);
  outline-offset: 1px;
  border-radius: 6px;
}

.recommendation-language-note {
  margin: 8px 0 0;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(57, 240, 197, 0.35);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--accent-strong);
  background: linear-gradient(135deg, rgba(57, 240, 197, 0.18), rgba(120, 193, 255, 0.06));
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.2;
}

.brand-copy strong,
.brand-copy small {
  margin: 0;
}

.brand-copy strong {
  font-size: 0.9375rem;
}

.brand-copy strong,
h1 {
  font-family: var(--font-display);
}

h2,
h3,
h4 {
  font-family: var(--font-heading);
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.2;
}

.nav {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  padding-inline: 2px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
}

.nav a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.footer-links a:hover,
.brand:hover .brand-copy strong {
  color: var(--text);
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(9, 20, 34, 0.82), rgba(7, 17, 29, 0.92));
  box-shadow: var(--shadow);
}

.panel::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 240, 197, 0.14), transparent 68%);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr);
  align-items: start;
  gap: 24px;
  padding: 30px;
  margin-bottom: 12px;
}

.hero-copy,
.hero-card,
.topbar > * {
  min-width: 0;
}

.hero-copy h1 {
  max-width: 26ch;
  margin: 8px 0 14px;
  font-size: clamp(2.3rem, 3.8vw, 3.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero-copy h1 span {
  color: var(--accent-strong);
}

.eyebrow {
  margin: 0;
  color: var(--accent-strong);
  text-transform: uppercase;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.lede,
.panel p,
.timeline-body li,
.timeline-body p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy .hero-specialization {
  max-width: 48rem;
  margin: 0 0 16px;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: clamp(0.875rem, 1.05vw, 1rem);
  font-weight: 600;
  line-height: 1.65;
}

.hero-specialization span {
  margin: 0 5px;
  color: var(--accent-strong);
}

.hero-introduction {
  max-width: 47rem;
}

.hero-copy .hero-introduction p {
  margin: 0 0 9px;
  font-size: var(--text-size-body-large);
  line-height: 1.65;
}

.hero-introduction strong {
  color: var(--text);
  font-weight: 700;
}

.hero-leadership {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 14px 0;
  padding: 9px 0;
  border: 1px solid rgba(57, 240, 197, 0.18);
  border-width: 1px 0;
  background: rgba(57, 240, 197, 0.05);
  list-style: none;
}

.hero-leadership li {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-leadership li:not(:last-child)::after {
  margin: 0 12px;
  color: var(--accent-strong);
  content: "·";
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border: 1px solid rgba(120, 193, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  list-style: none;
  overflow: hidden;
}

.hero-metrics li {
  min-width: 0;
  padding: 15px 13px;
}

.hero-metrics li + li {
  border-left: 1px solid rgba(120, 193, 255, 0.14);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  margin-bottom: 5px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.92rem;
  line-height: 1.25;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: var(--text-line-height-compact);
}

.credibility-strip {
  margin-bottom: 24px;
}

.credibility-strip .hero-metrics {
  background: linear-gradient(180deg, rgba(9, 20, 34, 0.7), rgba(7, 17, 29, 0.82));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 0;
}

.hero-contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 8px;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-underline-offset: 5px;
  transition: color 0.2s ease;
}

.hero-contact-link:hover,
.hero-contact-link:focus-visible {
  color: var(--accent-strong);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(57, 240, 197, 0.4);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(57, 240, 197, 0.2), rgba(120, 193, 255, 0.16));
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(120, 193, 255, 0.6);
}

.button-ghost {
  background: transparent;
}

.topbar .button {
  position: absolute;
  top: 50%;
  right: 14px;
  min-height: 40px;
  flex: 0 0 auto;
  justify-self: end;
  padding-inline: 15px;
  transform: translateY(-50%);
}

.topbar .button:hover {
  transform: translateY(-50%);
}

.feature-strip article {
  padding: 18px;
  border: 1px solid rgba(120, 193, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.feature-strip span {
  color: var(--muted);
}

.hero-card {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(120, 193, 255, 0.18);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(7, 17, 29, 0.88), rgba(14, 32, 54, 0.92));
}

.photo-slot {
  margin-bottom: 14px;
}

.profile-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 440px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(120, 193, 255, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.hero-profile {
  padding: 0 3px 2px;
}

.hero-profile h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.hero-card .hero-profile-role {
  margin: 5px 0 12px;
  color: var(--accent-strong);
  font-weight: 700;
  line-height: 1.45;
}

.hero-card .hero-profile-role > span {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-profile-details {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(120, 193, 255, 0.16);
}

.hero-profile-details div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(120, 193, 255, 0.12);
}

.hero-profile-details dt {
  color: var(--muted);
  white-space: nowrap;
}

.hero-profile-details dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.hero-card .hero-technologies {
  margin: 12px 0 0;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.6;
}

.hero-technologies span {
  margin: 0 4px;
  color: var(--accent-strong);
}

#projects,
#leadership,
#stack,
#experience,
#recommendations,
.feature-strip,
.footer {
  padding: 34px;
}

#projects,
#leadership,
#stack,
#experience,
#recommendations,
#education {
  margin-bottom: 24px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2,
.footer h2 {
  margin: 10px 0 0;
  font-size: clamp(1.5rem, 2vw, 2.4rem);
}

.panel-accent {
  background:
    radial-gradient(circle at top right, rgba(57, 240, 197, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(6, 19, 27, 0.9), rgba(8, 26, 39, 0.94));
}

.checklist,
.timeline-body ul {
  padding-left: 20px;
  margin: 0;
}

.checklist li,
.timeline-body li {
  margin-bottom: 10px;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  padding: 22px;
  border: 1px solid rgba(120, 193, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.timeline-meta span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-strong);
  font-size: 0.9rem;
}

.timeline-meta strong {
  display: block;
  font-size: 1.05rem;
}

.timeline-body h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.experience-details-source[hidden],
.experience-modal[hidden] {
  display: none;
}

.experience-summary > p {
  max-width: 52rem;
  margin: 0 0 16px;
}

.experience-highlights {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.timeline-body .experience-highlights li {
  margin: 0;
  line-height: 1.65;
}

.experience-highlights strong {
  color: var(--text);
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.experience-tags span {
  padding: 7px 11px;
  border: 1px solid rgba(120, 193, 255, 0.28);
  border-radius: 10px;
  background: rgba(120, 193, 255, 0.07);
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.experience-details-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(57, 240, 197, 0.4);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(57, 240, 197, 0.17), rgba(120, 193, 255, 0.1));
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.experience-details-button:hover {
  transform: translateY(-1px);
  border-color: rgba(57, 240, 197, 0.72);
  background: linear-gradient(135deg, rgba(57, 240, 197, 0.23), rgba(120, 193, 255, 0.14));
}

.experience-details-button:focus-visible,
.experience-modal-close:focus-visible,
.experience-modal-dialog:focus-visible,
.experience-modal-body a:focus-visible {
  outline: 3px solid rgba(57, 240, 197, 0.7);
  outline-offset: 3px;
}

.experience-role-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.experience-role-list > div {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(120, 193, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.experience-role-list h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.experience-role-list span {
  color: var(--muted);
  font-size: 0.875rem;
}

.experience-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.experience-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.experience-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 13, 0.82);
  backdrop-filter: blur(8px);
}

.experience-modal-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1100px, 100%);
  max-height: 88vh;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(57, 240, 197, 0.28);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(57, 240, 197, 0.07), transparent 30%),
    linear-gradient(180deg, rgba(9, 20, 34, 0.99), rgba(5, 13, 23, 0.99));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.experience-modal.is-open .experience-modal-dialog {
  opacity: 1;
  transform: translateY(0);
}

.experience-modal-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(120, 193, 255, 0.16);
  background: rgba(7, 17, 29, 0.96);
}

.experience-modal-header h2 {
  margin: 7px 0 5px;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.experience-modal-header #experience-modal-description {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.experience-modal-meta {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.experience-modal-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(120, 193, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.experience-modal-close:hover {
  border-color: rgba(57, 240, 197, 0.62);
  background: rgba(57, 240, 197, 0.1);
}

.experience-modal-body {
  min-height: 0;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.experience-modal-body > :first-child {
  margin-top: 0;
}

.experience-modal-body .hero-actions {
  margin-bottom: 0;
}

.fyware-experience {
  border-color: rgba(57, 240, 197, 0.22);
  background:
    radial-gradient(circle at top right, rgba(57, 240, 197, 0.06), transparent 30%),
    rgba(255, 255, 255, 0.03);
}

.fyware-experience .timeline-meta p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.timeline-body .fyware-career-summary {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.02rem;
}

.timeline-body .confidentiality-note {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.875rem;
  font-style: italic;
}

.fyware-role {
  min-width: 0;
  padding: 24px 0 6px;
  border-top: 1px solid rgba(120, 193, 255, 0.16);
}

.fyware-role-lead {
  border-top-color: rgba(57, 240, 197, 0.28);
}

.fyware-role-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.fyware-role-header .role-label {
  margin: 0 0 6px;
  color: var(--accent-strong);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.fyware-role-header h3 {
  margin: 0;
}

.fyware-role-header .role-dates {
  flex: 0 0 auto;
  margin: 2px 0 0;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: right;
}

.timeline-body .role-summary {
  max-width: 58rem;
  margin: 0 0 20px;
}

.role-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.timeline-body .role-highlights li {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(57, 240, 197, 0.18);
  border-radius: 14px;
  background: rgba(57, 240, 197, 0.05);
}

.role-highlights strong,
.role-highlights span {
  display: block;
}

.role-highlights strong {
  margin-bottom: 6px;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  line-height: 1.35;
}

.role-highlights span {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.fyware-achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
}

.fyware-achievement-grid .case-block {
  min-width: 0;
  margin-bottom: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(120, 193, 255, 0.12);
}

.fyware-achievement-grid .case-block h4 {
  color: var(--accent-strong);
}

.promotion-marker {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  margin: 26px 0 8px;
  padding: 18px;
  border: 1px solid rgba(57, 240, 197, 0.3);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(57, 240, 197, 0.1), rgba(120, 193, 255, 0.06));
}

.promotion-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: rgba(57, 240, 197, 0.14);
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
}

.promotion-marker strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 0.94rem;
  line-height: 1.4;
}

.timeline-body .promotion-marker p {
  margin: 0;
  line-height: 1.65;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-cloud span {
  padding: 10px 14px;
  border: 1px solid rgba(57, 240, 197, 0.22);
  border-radius: 999px;
  background: rgba(57, 240, 197, 0.08);
  color: var(--text);
  white-space: nowrap;
}

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

.expertise-group {
  min-width: 0;
}

.expertise-group h3 {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
}

.expertise-group .tag-cloud {
  gap: 8px;
}

.expertise-group .tag-cloud span {
  padding: 7px 11px;
  font-size: 0.84rem;
}

.technical-expertise-card .platform-line {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(120, 193, 255, 0.14);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.platform-line strong {
  color: var(--text);
}

.platform-line span {
  margin: 0 5px;
  color: var(--accent-strong);
}

.leadership-delivery-card {
  border-color: rgba(57, 240, 197, 0.24);
  background:
    radial-gradient(circle at top right, rgba(57, 240, 197, 0.07), transparent 32%),
    rgba(255, 255, 255, 0.03);
}

.leadership-delivery-card .section-heading h2 {
  color: var(--text);
}

.leadership-evidence-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  list-style: none;
  padding: 0;
}

.timeline-body .leadership-evidence-list li,
.leadership-evidence-list li {
  position: relative;
  margin: 0;
  padding: 14px 0 14px 24px;
  border-top: 1px solid rgba(120, 193, 255, 0.12);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.leadership-evidence-list li:first-child {
  padding-top: 4px;
  border-top: 0;
}

.leadership-evidence-list li::before {
  position: absolute;
  left: 2px;
  top: 20px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 14px rgba(57, 240, 197, 0.35);
  content: "";
}

.leadership-evidence-list li:first-child::before {
  top: 10px;
}

.leadership-evidence-list strong {
  color: var(--text);
}

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

.video-card {
  padding: 26px;
  border: 1px solid rgba(120, 193, 255, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 29, 46, 0.96), rgba(12, 23, 38, 0.96));
}

.video-card h3 {
  margin: 0 0 16px;
  font-size: 1.45rem;
  line-height: 1.35;
}

.video-embed {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 20px;
  border: 1px solid rgba(120, 193, 255, 0.16);
  border-radius: 12px;
  background: rgba(3, 8, 15, 0.85);
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-thumb-link {
  display: block;
  margin-bottom: 20px;
  text-decoration: none;
}

.video-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(120, 193, 255, 0.16);
  border-radius: 12px;
  background: rgba(3, 8, 15, 0.85);
}

.video-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 10, 18, 0.08), rgba(4, 10, 18, 0.45));
}

.project-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 12px;
  background: rgba(8, 8, 10, 0.94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, background-color 180ms ease;
}

.project-play-icon::before {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #fff;
  content: "";
}

.video-thumb-link:hover .project-play-icon,
.video-thumb-link:focus-visible .project-play-icon {
  background: #050506;
  transform: translate(-50%, -50%) scale(1.06);
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(255, 0, 55, 0.9);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.video-summary {
  margin: 0 0 22px;
  color: var(--text);
  font-size: 1.03rem;
  line-height: 1.75;
}

.case-block {
  margin-bottom: 18px;
}

.case-block h4 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text);
}

.case-block p {
  margin: 0;
  color: var(--text);
  line-height: 1.75;
}

.case-block .public-contributions-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.case-list {
  padding-left: 20px;
  margin: 0;
}

.case-list li {
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 18px;
}

.tag-row span {
  padding: 7px 12px;
  border: 1px solid rgba(120, 193, 255, 0.3);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(120, 193, 255, 0.08);
}

.video-card a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(57, 240, 197, 0.28);
  border-radius: 10px;
  color: var(--accent-strong);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.92rem;
  background: rgba(57, 240, 197, 0.06);
}

.video-card a:hover {
  color: var(--text);
  border-color: rgba(120, 193, 255, 0.42);
}

.project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px;
  border: 1px solid rgba(120, 193, 255, 0.16);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(57, 240, 197, 0.07), transparent 34%),
    linear-gradient(180deg, rgba(16, 29, 46, 0.96), rgba(12, 23, 38, 0.96));
}

.project-card-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 20px;
  padding: 26px;
  border-color: rgba(57, 240, 197, 0.28);
}

.project-card-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

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

.project-category {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1.05rem + 0.45vw, 1.55rem);
  line-height: 1.3;
}

.project-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 18px;
  border: 1px solid rgba(120, 193, 255, 0.16);
  border-radius: 14px;
  background: rgba(3, 8, 15, 0.85);
}

.project-card-featured .project-media {
  align-self: start;
  margin: 0;
}

.project-media iframe,
.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.project-media .video-thumb-link,
.project-media .video-thumb {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.project-summary {
  margin: 0 0 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}

.project-facts {
  display: grid;
  gap: 0;
  margin: 0;
}

.project-facts div {
  display: grid;
  grid-template-columns: minmax(82px, 0.28fr) minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid rgba(120, 193, 255, 0.11);
}

.project-facts dt {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.45;
}

.project-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.project-tags span {
  padding: 6px 10px;
  border: 1px solid rgba(120, 193, 255, 0.28);
  border-radius: 9px;
  background: rgba(120, 193, 255, 0.08);
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

.project-case-study-button,
.project-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid rgba(57, 240, 197, 0.36);
  border-radius: 10px;
  color: var(--text);
  background: rgba(57, 240, 197, 0.1);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
}

.project-actions a {
  color: var(--accent-strong);
  background: transparent;
}

.project-case-study-button:hover,
.project-actions a:hover {
  border-color: rgba(57, 240, 197, 0.7);
  background: rgba(57, 240, 197, 0.15);
}

.project-case-study-button:focus-visible,
.project-actions a:focus-visible,
.project-modal-close:focus-visible,
.project-modal-dialog:focus-visible,
.project-modal-body a:focus-visible {
  outline: 3px solid rgba(57, 240, 197, 0.72);
  outline-offset: 3px;
}

.project-modal[hidden] {
  display: none;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.project-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 13, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.project-modal-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1180px, 100%);
  max-height: 90vh;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(57, 240, 197, 0.32);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(57, 240, 197, 0.09), transparent 30%),
    rgba(7, 17, 29, 0.98);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.project-modal.is-open .project-modal-dialog {
  opacity: 1;
  transform: translateY(0);
}

.project-modal-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(120, 193, 255, 0.16);
  background: rgba(7, 17, 29, 0.97);
}

.project-modal-header h2 {
  margin: 4px 0 5px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1.25;
}

.project-modal-header #project-modal-description {
  max-width: var(--content-measure);
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.project-modal-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(120, 193, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.project-modal-body {
  min-height: 0;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.project-modal-layout {
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.project-modal-sidebar {
  position: sticky;
  top: 0;
  padding: 18px;
  border: 1px solid rgba(120, 193, 255, 0.14);
  border-radius: 16px;
  background: rgba(120, 193, 255, 0.05);
}

.project-modal-sidebar dl {
  margin: 0 0 18px;
}

.project-modal-sidebar dl div {
  padding: 10px 0;
  border-top: 1px solid rgba(120, 193, 255, 0.12);
}

.project-modal-sidebar dl div:first-child {
  padding-top: 0;
  border-top: 0;
}

.project-modal-sidebar dt {
  margin-bottom: 4px;
  color: var(--accent-strong);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
}

.project-modal-sidebar dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.project-modal-content {
  min-width: 0;
}

.project-modal-content > section {
  margin-bottom: 24px;
}

.project-modal-content > section + section {
  padding-top: 24px;
  border-top: 1px solid rgba(120, 193, 255, 0.1);
}

.engineering-challenge {
  padding: 20px;
  border: 1px solid rgba(57, 240, 197, 0.28) !important;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(57, 240, 197, 0.09), rgba(120, 193, 255, 0.04));
}

.engineering-challenge h3::after {
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 9px;
  border-radius: 999px;
  background: var(--accent-strong);
  content: "";
}

.project-system-groups .engineering-priority {
  border-color: rgba(57, 240, 197, 0.34);
  background: rgba(57, 240, 197, 0.07);
}

.ik-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 18px;
}

.ik-flow span {
  position: relative;
  display: grid;
  min-height: 58px;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(57, 240, 197, 0.28);
  border-radius: 10px;
  background: rgba(57, 240, 197, 0.06);
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.ik-flow span:not(:last-child)::after {
  position: absolute;
  left: calc(100% + 7px);
  color: var(--accent-strong);
  content: "→";
}

.flow-subtitle {
  margin-bottom: 18px !important;
}

.multiplayer-flow {
  display: grid;
  width: 100%;
  justify-items: center;
  margin: 0;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(57, 240, 197, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at top, rgba(57, 240, 197, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(7, 19, 33, 0.96), rgba(4, 13, 24, 0.98));
}

.flow-node {
  position: relative;
  display: grid;
  width: min(100%, 440px);
  min-height: 54px;
  place-items: center;
  padding: 11px 16px;
  border: 1px solid rgba(120, 193, 255, 0.28);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(18, 39, 61, 0.96), rgba(10, 25, 42, 0.98));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.flow-node:hover {
  border-color: rgba(57, 240, 197, 0.52);
  transform: translateY(-1px);
}

.flow-node strong {
  font: inherit;
}

.flow-decision {
  width: min(100%, 360px);
  min-height: 58px;
  border: 3px double rgba(57, 240, 197, 0.62);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(57, 240, 197, 0.14), rgba(120, 193, 255, 0.08));
  color: var(--accent-strong);
}

.flow-loop {
  border-color: rgba(57, 240, 197, 0.52);
  background: linear-gradient(135deg, rgba(57, 240, 197, 0.12), rgba(12, 31, 49, 0.98));
}

.flow-improvement {
  border-style: dashed;
  border-color: rgba(57, 240, 197, 0.56);
}

.flow-secondary {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.flow-connector {
  position: relative;
  width: 2px;
  height: 30px;
  background: rgba(57, 240, 197, 0.5);
}

.flow-connector::after {
  position: absolute;
  bottom: -1px;
  left: 50%;
  color: var(--accent-strong);
  content: "▼";
  font-size: 0.58rem;
  transform: translate(-50%, 45%);
}

.flow-connector-dotted {
  width: 0;
  border-left: 2px dotted rgba(57, 240, 197, 0.62);
  background: transparent;
}

.flow-split,
.flow-merge,
.flow-results-merge {
  position: relative;
  width: 50%;
  height: 32px;
}

.flow-split::before,
.flow-split::after,
.flow-merge::before,
.flow-merge::after,
.flow-results-merge::before,
.flow-results-merge::after {
  position: absolute;
  content: "";
}

.flow-split::before {
  top: 0;
  left: 50%;
  height: 16px;
  border-left: 1px solid rgba(57, 240, 197, 0.5);
}

.flow-split::after {
  right: 0;
  bottom: 0;
  left: 0;
  height: 16px;
  border-top: 1px solid rgba(57, 240, 197, 0.5);
  border-right: 1px solid rgba(57, 240, 197, 0.5);
  border-left: 1px solid rgba(57, 240, 197, 0.5);
}

.flow-split-outcomes {
  width: 66.666%;
}

.flow-merge::before,
.flow-results-merge::before {
  inset: 0 0 16px;
  border-right: 1px solid rgba(57, 240, 197, 0.5);
  border-bottom: 1px solid rgba(57, 240, 197, 0.5);
  border-left: 1px solid rgba(57, 240, 197, 0.5);
}

.flow-merge::after,
.flow-results-merge::after {
  bottom: 0;
  left: 50%;
  height: 16px;
  border-left: 1px solid rgba(57, 240, 197, 0.5);
}

.flow-branches,
.flow-outcome-layout,
.flow-result-paths {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.flow-branches .flow-node,
.flow-outcome-layout .flow-node,
.flow-result-paths .flow-node {
  width: 100%;
}

.flow-branch-track {
  display: grid;
  min-width: 0;
  justify-items: center;
}

.flow-outcome-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 28px;
}

.flow-result-paths {
  gap: 28px;
}

.flow-outcome {
  display: grid;
  min-width: 0;
  gap: 7px;
  justify-items: center;
}

.flow-branch-label {
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.flow-outcome-loop .flow-node {
  border-style: dashed;
}

.flow-results-merge {
  width: 33.333%;
  transform: translateX(75%);
}

.planned-improvements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.planned-improvements li {
  position: relative;
  padding: 12px 12px 12px 30px;
  border: 1px solid rgba(120, 193, 255, 0.12);
  border-radius: 10px;
  background: rgba(120, 193, 255, 0.035);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.planned-improvements li::before {
  position: absolute;
  top: 12px;
  left: 12px;
  color: var(--accent-strong);
  content: "→";
}

.project-modal-content h3 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.35;
}

.project-modal-content p {
  max-width: var(--content-measure);
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.68;
}

.project-modal-content p + p {
  margin-top: 0.8em;
}

.project-system-groups {
  display: grid;
  gap: 12px;
}

.project-system-groups article {
  padding: 16px;
  border-left: 2px solid rgba(57, 240, 197, 0.55);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.025);
}

.project-system-groups h4 {
  margin: 0 0 7px;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.4;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-strip h2 {
  margin: 8px 0;
  font-size: 1.2rem;
  line-height: 1.4;
}

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

.recommendation-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(120, 193, 255, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(57, 240, 197, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.03);
}

.recommendation-quote {
  margin: 0 0 22px;
  color: var(--text);
  line-height: 1.8;
}

.recommendation-quote::before {
  content: '"';
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--accent-strong);
}

.recommendation-meta strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.35;
}

.recommendation-meta span {
  display: block;
  color: var(--muted);
}

.recommendation-meta {
  margin-top: auto;
  padding-top: 2px;
}

.recommendations-proof-link {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.recommendations-proof-link a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid rgba(57, 240, 197, 0.36);
  border-radius: 10px;
  background: rgba(57, 240, 197, 0.06);
  color: var(--accent-strong);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration-line: underline;
  text-decoration-color: rgba(57, 240, 197, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.recommendations-proof-link a:hover {
  border-color: rgba(57, 240, 197, 0.7);
  background: rgba(57, 240, 197, 0.12);
  color: var(--text);
}

.recommendations-proof-link a:focus-visible {
  outline: 3px solid rgba(57, 240, 197, 0.72);
  outline-offset: 3px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: right;
}

/* Typography system: display for impact, heading for UI, body for reading. */
p {
  margin-block: 0;
}

p + p {
  margin-top: 0.8em;
}

p,
li,
dl,
dt,
dd,
blockquote {
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
p,
li,
dd {
  overflow-wrap: break-word;
}

.brand-copy strong,
.eyebrow,
.section-heading h2,
.footer h2,
.experience-modal-header h2,
.hero-metrics strong,
.play-badge,
.project-modal-header h2 {
  font-family: var(--font-display);
}

.nav a,
.button,
.experience-details-button,
.project-case-study-button,
.project-actions a,
.hero-contact-link,
.recommendations-proof-link a,
.video-card > a:not(.video-thumb-link) {
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 0.84rem + 0.12vw, 0.9375rem);
  font-weight: 600;
  letter-spacing: 0;
}

.hero-profile h2,
.hero-profile-role,
.hero-specialization,
.hero-leadership li,
.hero-technologies,
.video-card h3,
.timeline-body h3,
.case-block h4,
.expertise-group h3,
.experience-role-list h3,
.recommendation-meta strong,
.timeline-meta strong,
.fyware-role-header .role-label,
.fyware-role-header .role-dates,
.role-highlights strong,
.promotion-marker strong,
.project-facts dt,
.project-modal-sidebar dt {
  font-family: var(--font-body);
}

.hero-profile h2,
.hero-profile-role,
.video-card h3,
.timeline-body h3,
.case-block h4,
.experience-role-list h3,
.recommendation-meta strong,
.timeline-meta strong,
.role-highlights strong,
.promotion-marker strong {
  font-weight: 700;
  letter-spacing: 0;
}

.video-card h3,
.timeline-body h3 {
  line-height: 1.3;
}

.case-block h4,
.expertise-group h3 {
  line-height: var(--text-line-height-compact);
}

.tag-row span,
.tag-cloud span,
.experience-tags span,
.project-tags span,
.expertise-group .tag-cloud span,
.hero-leadership li {
  font-family: var(--font-body);
  font-size: clamp(0.8125rem, 0.79rem + 0.08vw, 0.875rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-introduction,
.hero-introduction p,
.hero-profile-details,
.hero-profile-details dt,
.hero-profile-details dd,
.video-summary,
.video-card p,
.video-card li,
.case-block p,
.case-block li,
.case-list,
.case-list li,
.checklist,
.checklist li,
.leadership-evidence-list,
.leadership-evidence-list li,
.experience-summary p,
.experience-highlights,
.experience-highlights li,
.experience-details-source,
.experience-details-source p,
.experience-details-source li,
.experience-modal-body,
.experience-modal-body p,
.experience-modal-body li,
.timeline-meta p,
.timeline-meta span,
.role-summary,
.role-highlights span,
.fyware-career-summary,
.confidentiality-note,
.recommendation-quote,
.recommendation-meta span,
.platform-line,
.footer-links,
.footer-links a {
  font-family: var(--font-body);
  letter-spacing: 0;
}

.hero-introduction,
.experience-summary > p,
.timeline-body .role-summary {
  width: 100%;
  max-width: var(--content-measure);
}

.footer h2 {
  max-width: var(--content-measure);
}

.video-summary,
.video-card p,
.video-card li,
.case-block p,
.case-block li,
.case-list li,
.checklist li,
.leadership-evidence-list li,
.experience-summary p,
.experience-highlights li,
.experience-details-source p,
.experience-details-source li,
.experience-modal-body,
.experience-modal-body p,
.experience-modal-body li,
.role-summary,
.fyware-career-summary,
.recommendation-quote {
  font-size: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
  line-height: var(--text-line-height);
}

.experience-modal-body {
  color: var(--text);
  line-height: 1.68;
}

.experience-modal-body p,
.experience-modal-body > ul,
.experience-modal-body .role-summary {
  max-width: var(--content-measure);
}

.experience-modal-body > h3 + p,
.experience-modal-body > .fyware-career-summary,
.experience-modal-body .role-summary {
  width: 100%;
  max-width: none;
}

.experience-modal-body > p + .case-block,
.experience-modal-body .role-summary + .fyware-achievement-grid {
  margin-top: 24px;
}

.experience-modal-body h3,
.experience-modal-body h4 {
  font-family: var(--font-heading);
}

.timeline-meta span,
.timeline-meta p,
.experience-modal-meta,
.recommendation-meta span,
.role-highlights span,
.experience-role-list span,
.platform-line {
  font-size: clamp(0.875rem, 0.84rem + 0.12vw, 0.9375rem);
  line-height: 1.5;
}

.recommendation-quote {
  color: var(--text);
  font-weight: 400;
  line-height: 1.7;
}

.recommendation-meta span {
  color: var(--muted);
}

.case-block p + p,
.experience-modal-body p + p {
  margin-top: 0.8em;
}

.footer-links a {
  text-decoration: underline;
  text-decoration-color: rgba(57, 240, 197, 0.5);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.case-list li,
.experience-highlights li,
.checklist li,
.leadership-evidence-list li,
.experience-modal-body li,
.fyware-achievement-grid li {
  margin-bottom: 0.6em;
}

.case-list li::marker,
.experience-highlights li::marker,
.checklist li::marker,
.experience-modal-body li::marker,
.fyware-achievement-grid li::marker {
  color: var(--accent-strong);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

@media (max-width: 1100px) {
  .brand-copy small {
    display: none;
  }

  .nav {
    gap: 9px;
  }

}

@media (min-width: 769px) and (max-width: 1100px) {
  .nav {
    max-width: calc(100vw - 390px);
  }
}

@media (max-width: 980px) {
  .hero,
  .feature-strip,
  .footer,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .footer {
    position: static;
  }

  .topbar {
    gap: 10px;
    padding: 6px 234px 6px 12px;
  }

  .nav {
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .hero,
  #projects,
  #leadership,
  #stack,
  #experience,
  #recommendations,
  .feature-strip,
  .footer {
    padding: 26px;
  }

  .hero-card {
    width: 100%;
    max-width: 480px;
    justify-self: center;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-metrics li:nth-child(odd) {
    border-left: 0;
  }

  .hero-metrics li:nth-child(n + 3) {
    border-top: 1px solid rgba(120, 193, 255, 0.14);
  }

  .video-grid,
  .recommendation-grid {
    grid-template-columns: 1fr;
  }

  .project-card-featured {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    text-align: left;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 74px;
    --anchor-gap: 16px;
    --anchor-offset: calc(var(--header-height) + var(--anchor-gap));
  }

  .brand-copy small {
    display: none;
  }

  .nav {
    gap: 10px;
  }

  .topbar .button {
    min-height: 40px;
    padding-inline: 12px;
  }

  .project-modal-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-modal-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 12px;
  }

  .topbar {
    gap: 8px;
    padding: 6px 238px 6px 10px;
  }

  .brand-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .nav {
    gap: 8px;
    max-width: calc(100vw - 215px);
  }

  .nav a {
    min-height: 40px;
    font-size: 0.875rem;
  }

  .topbar .button {
    right: 10px;
    padding-inline: 8px;
    font-size: 0.8125rem;
    white-space: nowrap;
  }

  .language-switcher {
    right: 150px;
  }

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

  .project-card,
  .project-card-featured {
    padding: 18px;
  }

  .project-facts div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

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

  .project-case-study-button,
  .project-actions a {
    width: 100%;
  }

  .recommendations-proof-link a {
    width: 100%;
  }

  .project-modal {
    padding: 8px;
  }

  .project-modal-dialog {
    width: 100%;
    max-height: 96vh;
    border-radius: 18px;
  }

  .project-modal-header,
  .project-modal-body {
    padding: 16px;
  }

  .engineering-challenge {
    padding: 16px;
  }

  .ik-flow {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .ik-flow span:not(:last-child)::after {
    top: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
  }

  .multiplayer-flow {
    padding: 16px;
  }

  .flow-branches,
  .flow-outcome-layout,
  .flow-result-paths,
  .planned-improvements {
    grid-template-columns: 1fr;
  }

  .flow-branches,
  .flow-outcome-layout,
  .flow-result-paths {
    gap: 22px;
  }

  .flow-split,
  .flow-split-outcomes,
  .flow-merge,
  .flow-results-merge {
    width: 2px;
    height: 24px;
    border-left: 1px solid rgba(57, 240, 197, 0.5);
    transform: none;
  }

  .flow-split-outcomes {
    width: 50%;
    height: 32px;
    border-left: 0;
  }

  .flow-split-outcomes::before,
  .flow-split-outcomes::after {
    display: block;
  }

  .flow-split:not(.flow-split-outcomes)::before,
  .flow-split:not(.flow-split-outcomes)::after,
  .flow-merge::before,
  .flow-merge::after,
  .flow-results-merge::before,
  .flow-results-merge::after {
    display: none;
  }

  .flow-branches-room > .flow-node + .flow-node::before,
  .flow-branch-track + .flow-branch-track::before,
  .flow-result-paths .flow-outcome + .flow-outcome::before {
    position: absolute;
    top: -22px;
    left: 50%;
    height: 22px;
    border-left: 1px solid rgba(57, 240, 197, 0.5);
    content: "";
  }

  .flow-branch-track,
  .flow-outcome {
    position: relative;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.05rem, 10vw, 2.75rem);
  }

  .fyware-role-header {
    display: grid;
    gap: 8px;
  }

  .fyware-role-header .role-dates {
    text-align: left;
  }

  .role-highlights,
  .fyware-achievement-grid {
    grid-template-columns: 1fr;
  }

  .promotion-marker {
    grid-template-columns: 1fr;
  }

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

  .experience-details-button {
    width: 100%;
  }

  .experience-modal {
    padding: 0;
  }

  .experience-modal-dialog {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-width: 0;
    border-radius: 0;
  }

  .experience-modal-header {
    padding: 18px;
  }

  .experience-modal-body {
    padding: 18px;
  }

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

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

  .hero,
  #projects,
  #leadership,
  #stack,
  #experience,
  #recommendations,
  .feature-strip,
  .footer {
    border-radius: 24px;
    padding: 22px;
  }

  .topbar {
    border-radius: 18px;
  }
}

@media (max-width: 768px) {
  .topbar {
    position: fixed;
    top: 10px;
    right: 16px;
    left: 16px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 64px;
    padding: 7px 10px;
  }

  .brand-copy {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }

  .brand-copy small {
    display: none;
  }

  .mobile-menu-toggle {
    position: relative;
    z-index: 203;
    display: grid;
    width: 48px;
    height: 48px;
    place-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid rgba(57, 240, 197, 0.38);
    border-radius: 12px;
    background: rgba(12, 26, 43, 0.92);
    color: var(--text);
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .mobile-menu-toggle:focus-visible {
    outline: 3px solid rgba(57, 240, 197, 0.72);
    outline-offset: 2px;
  }

  .header-actions-panel {
    position: fixed;
    z-index: 202;
    top: 0;
    right: 0;
    display: flex;
    width: min(320px, 86vw);
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    padding: 78px 24px 28px;
    overflow-y: auto;
    border-left: 1px solid rgba(57, 240, 197, 0.28);
    background: rgba(5, 11, 20, 0.98);
    box-shadow: -24px 0 64px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 220ms ease, opacity 180ms ease, visibility 220ms;
  }

  .header-actions-panel .nav {
    display: grid;
    max-width: none;
    flex: 0 0 auto;
    gap: 4px;
    overflow: visible;
  }

  .header-actions-panel .nav a {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(120, 193, 255, 0.12);
    font-size: 1rem;
  }

  .header-actions-panel .language-switcher {
    position: static;
    align-self: flex-start;
    transform: none;
  }

  .header-actions-panel .language-switcher button {
    min-height: 44px;
  }

  .header-actions-panel .button,
  .header-actions-panel .button:hover {
    position: static;
    width: 100%;
    min-height: 48px;
    justify-content: center;
    padding-inline: 16px;
    transform: none;
  }

  .mobile-menu-backdrop {
    position: fixed;
    z-index: 201;
    inset: 0;
    display: block;
    padding: 0;
    border: 0;
    background: rgba(2, 7, 13, 0.68);
    opacity: 0;
    visibility: hidden;
    cursor: default;
    transition: opacity 180ms ease, visibility 180ms;
  }

  .topbar.is-menu-open .header-actions-panel,
  .topbar.is-menu-open .mobile-menu-backdrop {
    opacity: 1;
    visibility: visible;
  }

  .topbar.is-menu-open .header-actions-panel {
    transform: translateX(0);
  }

  .topbar.is-menu-open .mobile-menu-toggle span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .topbar.is-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .topbar.is-menu-open .mobile-menu-toggle span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .page-shell {
    width: calc(100% - 32px);
    padding: calc(var(--header-height) + 20px) 0 24px;
  }

  .hero,
  #projects,
  #leadership,
  #stack,
  #experience,
  #recommendations,
  .feature-strip,
  .footer {
    padding: 20px;
    border-radius: 22px;
  }

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

  .hero-card {
    order: -1;
    width: 100%;
    max-width: 420px;
    padding: 12px;
  }

  .photo-slot {
    margin-bottom: 12px;
  }

  .profile-photo {
    width: 100%;
    max-width: 100%;
    max-height: 290px;
    aspect-ratio: 4 / 3;
    object-position: center 16%;
    border-radius: 16px;
  }

  .hero-profile h2 {
    font-size: clamp(1.35rem, 6vw, 1.65rem);
  }

  .hero-copy h1 {
    max-width: none;
    margin: 8px 0 12px;
    font-size: clamp(2rem, 8.5vw, 2.625rem);
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .hero-copy .hero-specialization,
  .hero-copy .hero-introduction p,
  .project-summary,
  .timeline-body p,
  .timeline-body li,
  .recommendation-quote {
    font-size: 1rem;
  }

  .hero-copy .hero-specialization,
  .hero-copy .hero-introduction p {
    line-height: 1.62;
  }

  .hero-leadership {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
  }

  .hero-leadership li::after {
    display: none;
  }

  .hero-actions,
  .project-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .hero-actions .button,
  .hero-contact-link,
  .project-case-study-button,
  .project-actions a,
  .experience-details-button {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .hero-contact-link {
    border: 1px solid rgba(120, 193, 255, 0.24);
    border-radius: 999px;
    text-decoration: none;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-metrics li {
    padding: 13px 12px;
  }

  .section-heading {
    margin-bottom: 16px;
  }

  .section-heading h2,
  .footer h2 {
    margin-top: 7px;
    font-size: clamp(1.55rem, 6.8vw, 2.1rem);
    line-height: 1.18;
    overflow-wrap: break-word;
  }

  #projects,
  #leadership,
  #stack,
  #experience,
  #recommendations,
  #education {
    margin-bottom: 18px;
  }

  .project-card-featured,
  .project-grid,
  .timeline-item,
  .recommendation-grid,
  .feature-strip,
  .leadership-evidence-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-card,
  .project-card-featured,
  .timeline-item,
  .recommendation-card,
  .feature-strip article {
    padding: 18px;
    border-radius: 18px;
  }

  .project-card-featured,
  .timeline-item {
    gap: 16px;
  }

  .project-card h3,
  .timeline-body h3 {
    font-size: clamp(1.2rem, 5.5vw, 1.5rem);
    overflow-wrap: break-word;
  }

  .project-media,
  .project-card-featured .project-media {
    width: 100%;
    max-width: 100%;
    margin-bottom: 16px;
  }

  .project-card-featured .project-media {
    margin-bottom: 0;
  }

  img,
  iframe,
  video {
    max-width: 100%;
  }

  .project-tags,
  .tag-row,
  .tag-cloud,
  .experience-tags {
    max-width: 100%;
  }

  .project-tags span,
  .tag-row span,
  .tag-cloud span,
  .experience-tags span {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .experience-modal,
  .project-modal {
    padding: 0;
  }

  .experience-modal-dialog,
  .project-modal-dialog {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-width: 0;
    border-radius: 0;
  }

  .experience-modal-header,
  .experience-modal-body,
  .project-modal-header,
  .project-modal-body {
    padding: 18px;
  }

  .experience-modal-header h2,
  .project-modal-header h2 {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
    overflow-wrap: break-word;
  }

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

  .footer-links {
    width: 100%;
    text-align: left;
  }

  .footer-links a,
  .recommendations-proof-link a {
    min-height: 48px;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  .topbar {
    right: 10px;
    left: 10px;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-metrics li:nth-child(odd) {
    border-left: 0;
  }

  .hero-metrics li:nth-child(n + 3) {
    border-top: 1px solid rgba(120, 193, 255, 0.14);
  }

  .hero-leadership {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .hero-leadership li::after {
    display: none;
  }

  .hero-profile-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .hero,
  #projects,
  #leadership,
  #stack,
  #experience,
  #recommendations,
  .feature-strip,
  .footer {
    padding: 16px;
    border-radius: 18px;
  }

  .project-card,
  .project-card-featured,
  .timeline-item,
  .recommendation-card,
  .feature-strip article {
    padding: 16px;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 10vw, 2.35rem);
  }

  .eyebrow,
  .project-category {
    letter-spacing: 0.07em;
  }

  .experience-modal-header,
  .experience-modal-body,
  .project-modal-header,
  .project-modal-body {
    padding: 16px;
  }
}

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

  .mobile-menu-toggle span,
  .header-actions-panel,
  .mobile-menu-backdrop {
    transition: none;
  }

  .project-modal,
  .project-modal-dialog,
  .project-case-study-button,
  .flow-node {
    transition-duration: 0.01ms;
  }

  .experience-modal,
  .experience-modal-dialog,
  .experience-details-button {
    transition-duration: 0.01ms;
  }
}
