:root {
  --bg: #08111f;
  --bg-2: #101f35;
  --panel: rgba(10, 19, 34, 0.62);
  --panel-border: rgba(255, 255, 255, 0.14);
  --text: #eff4ff;
  --muted: #a5b4d0;
  --accent: #77e6c8;
  --accent-2: #ff9f6e;
  --accent-3: #7fd1ff;
  --shadow: 0 20px 80px rgba(2, 7, 16, 0.45);
  --radius: 28px;
  --max-width: 1180px;
}

body[data-theme="light"] {
  --bg: #eef4ff;
  --bg-2: #dbe6f8;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-border: rgba(7, 16, 27, 0.1);
  --text: #112034;
  --muted: #4d617d;
  --accent: #1f6fe5;
  --accent-2: #d36b2d;
  --accent-3: #2a8cff;
  --shadow: 0 20px 60px rgba(44, 74, 109, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(119, 230, 200, 0.22), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 159, 110, 0.18), transparent 28%),
    linear-gradient(140deg, #07101b 0%, #0b1627 38%, #0f2035 100%);
}

body[data-theme="light"] {
  background:
    linear-gradient(180deg, #fbfdff 0%, #f2f7ff 48%, #e6eefc 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 78%);
  pointer-events: none;
  opacity: 0.55;
}

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

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

.page-shell {
  position: relative;
  overflow: hidden;
}

.noise,
.spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.noise {
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1px),
    radial-gradient(circle at 45% 75%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1px);
  background-size: 180px 180px;
}

body[data-theme="light"] .noise,
body[data-theme="light"] .spotlight {
  opacity: 0.02;
}

.spotlight {
  background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 30%), rgba(127, 209, 255, 0.18), transparent 24%);
}

.section {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 32px 0;
}

.glass {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.topbar {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar-main {
  display: flex;
  align-items: center;
  min-width: 0;
}

.topbar-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle,
.lang-toggle {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 999px;
  padding: 4px;
  isolation: isolate;
  overflow: hidden;
  transition: border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.theme-toggle {
  width: 164px;
}

.lang-toggle {
  width: 196px;
}

.theme-toggle::before,
.lang-toggle::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: rgba(127, 209, 255, 0.2);
  box-shadow: 0 8px 24px rgba(6, 14, 24, 0.2);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), background-color 220ms ease;
  z-index: 0;
}

.theme-toggle[data-active="dark"]::before,
.lang-toggle[data-active="fr"]::before {
  transform: translateX(100%);
}

.theme-option,
.lang-option {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
}

.theme-option.is-active,
.lang-option.is-active {
  color: var(--text);
}

body[data-theme="light"] .theme-toggle,
body[data-theme="light"] .lang-toggle {
  border-color: rgba(17, 32, 52, 0.12);
  background: rgba(17, 32, 52, 0.04);
}

body[data-theme="light"] .theme-option.is-active,
body[data-theme="light"] .lang-option.is-active {
  color: var(--text);
}

body[data-theme="light"] .theme-toggle::before,
body[data-theme="light"] .lang-toggle::before {
  background: rgba(31, 111, 229, 0.14);
  box-shadow: 0 8px 22px rgba(31, 111, 229, 0.12);
}

.hero {
  padding-top: 8px;
  padding-bottom: 12px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.88fr;
  gap: 22px;
  align-items: start;
}

.hero-copy,
.portrait-card,
.story-card,
.quote-card,
.timeline-card,
.constellation-card,
.strength-panel,
.credential-card,
.contact-card,
.signal {
  border-radius: var(--radius);
}

.hero-copy {
  padding: 30px;
}

.eyebrow {
  margin: 0 0 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.8rem;
}

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

h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  max-width: 11ch;
}

h1 span {
  color: var(--accent-2);
  display: block;
}

.lede {
  max-width: 56ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.proof-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 0.86rem;
}

.workflow-scene {
  position: relative;
  margin-top: 14px;
  padding: 16px 16px 12px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(119, 230, 200, 0.1), transparent 24%),
    radial-gradient(circle at 82% 32%, rgba(255, 159, 110, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.03);
}

.workflow-track {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 46%;
  height: 2px;
  background: linear-gradient(90deg, rgba(119, 230, 200, 0.22), rgba(127, 209, 255, 0.34), rgba(255, 159, 110, 0.22));
}

.workflow-pulse {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, #f7fbff 0%, var(--accent-2) 42%, transparent 72%);
  filter: drop-shadow(0 0 14px rgba(255, 159, 110, 0.55));
  animation: workflowPulse 5.2s linear infinite;
}

.workflow-pulse-b {
  animation-delay: 1.7s;
}

.workflow-pulse-c {
  animation-delay: 3.4s;
}

.workflow-stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.workflow-stage {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.workflow-stage strong {
  font-size: 0.88rem;
}

.workflow-stage small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.58rem;
}

.workflow-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(135deg, rgba(119, 230, 200, 0.9), rgba(127, 209, 255, 0.9));
  box-shadow: 0 0 0 10px rgba(119, 230, 200, 0.05);
}

.workflow-stage-core .workflow-dot {
  width: 24px;
  height: 24px;
  border-color: rgba(255, 255, 255, 0.36);
  background: linear-gradient(135deg, var(--accent-2), #ffd2ab);
  box-shadow: 0 0 0 10px rgba(255, 159, 110, 0.08);
}

.workflow-core-ring {
  position: absolute;
  top: -8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 159, 110, 0.24);
  animation: workflowOrbit 3.8s linear infinite;
}

body[data-theme="light"] .workflow-scene {
  background:
    radial-gradient(circle at 20% 20%, rgba(15, 138, 116, 0.06), transparent 24%),
    radial-gradient(circle at 82% 32%, rgba(211, 107, 45, 0.08), transparent 28%),
    rgba(255, 255, 255, 0.72);
}

body[data-theme="light"] .workflow-dot {
  border-color: rgba(17, 32, 52, 0.16);
}

body[data-theme="light"] .proof-chip,
body[data-theme="light"] .contact-ribbon a,
body[data-theme="light"] .theme-toggle,
body[data-theme="light"] .button.secondary,
body[data-theme="light"] .chip,
body[data-theme="light"] .portrait-meta,
body[data-theme="light"] .skill-inspector,
body[data-theme="light"] .strength-card,
body[data-theme="light"] .workflow-scene {
  background-color: rgba(255, 255, 255, 0.7);
}

.cta-row,
.contact-ribbon,
.contact-actions,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-row {
  margin-top: 16px;
}

.button,
.chip {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 13px 18px;
  font: inherit;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--accent), #88f5df);
  color: #08111f;
  font-weight: 700;
}

body[data-theme="light"] .button.primary {
  background: linear-gradient(135deg, #1f6fe5, #49a2ff);
  color: #f8fbff;
}

.button.secondary,
.chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.button-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.button-icon svg {
  width: 100%;
  height: 100%;
}

.contact-ribbon {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-ribbon a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-panel {
  display: grid;
  gap: 10px;
}

.portrait-card {
  position: relative;
  overflow: hidden;
  padding: 14px;
}

.portrait-halo {
  position: absolute;
  inset: 10% auto auto 10%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(119, 230, 200, 0.55), transparent 65%);
  filter: blur(12px);
}

.portrait {
  position: relative;
  width: min(100%, 230px);
  margin: 8px auto 12px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.portrait-name {
  position: relative;
  margin: -2px 0 8px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.portrait-meta {
  position: relative;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.meta-label {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.62rem;
  margin-bottom: 4px;
}

.meta-value {
  color: var(--text);
  line-height: 1.45;
  font-size: 0.84rem;
}

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

.signal {
  padding: 8px 10px;
  border-radius: 18px;
}

.signal-link {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.signal-link:hover {
  transform: translateY(-4px);
  border-color: rgba(127, 209, 255, 0.45);
  background: rgba(16, 32, 53, 0.82);
}

.signal-value {
  display: block;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--accent-3);
  line-height: 1;
  margin-bottom: 4px;
}

.signal-label {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.2;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.04em;
  margin-bottom: 0;
}

.story-layout,
.skill-layout,
.credentials-grid {
  display: grid;
  gap: 18px;
}

.story-layout {
  grid-template-columns: 1.2fr 0.8fr;
}

.story-card,
.quote-card,
.constellation-card,
.strength-panel,
.credential-card {
  padding: 28px;
}

.story-card p,
.quote-card p,
.timeline-card p,
.credential-card li,
.credential-card span {
  color: var(--muted);
  line-height: 1.7;
}

.quote-card {
  display: flex;
  align-items: center;
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(255, 159, 110, 0.22), transparent 26%),
    rgba(10, 19, 34, 0.7);
}

.quote {
  font-size: 1.4rem;
  color: var(--text);
  line-height: 1.5;
}

.focus-list {
  display: grid;
  gap: 14px;
  width: 100%;
}

.focus-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}

.focus-item span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  font-weight: 700;
}

.focus-item p {
  margin-bottom: 0;
  color: var(--text);
}

body[data-theme="light"] .quote-card {
  background:
    radial-gradient(circle at top right, rgba(211, 107, 45, 0.1), transparent 26%),
    rgba(255, 255, 255, 0.76);
}

.chip.active {
  background: linear-gradient(135deg, rgba(119, 230, 200, 0.2), rgba(127, 209, 255, 0.2));
  border-color: rgba(119, 230, 200, 0.45);
}

.timeline {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.timeline-card {
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, opacity 180ms ease;
  scroll-margin-top: 110px;
}

.timeline-card.is-active {
  border-color: rgba(127, 209, 255, 0.5);
  transform: translateY(-2px);
}

.timeline-card.is-hidden {
  display: none;
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.timeline-company {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-company a,
.timeline-top h3 a,
.credential-card a,
.project-links a {
  text-decoration: none;
}

.timeline-company a:hover,
.timeline-top h3 a:hover,
.credential-card a:hover,
.contact-ribbon a:hover {
  color: var(--accent-3);
}

.timeline-top h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.role-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(119, 230, 200, 0.12);
  border: 1px solid rgba(119, 230, 200, 0.2);
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.timeline-meta {
  display: grid;
  gap: 4px;
  text-align: right;
  color: var(--muted);
}

.timeline-card ul {
  margin: 18px 0;
  padding-left: 18px;
  color: var(--text);
}

.timeline-card li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.stack-line {
  color: var(--accent-3);
  font-weight: 600;
}

.skill-layout {
  grid-template-columns: 1.04fr 0.96fr;
}

.project-card {
  padding: 28px;
  scroll-margin-top: 110px;
}

.project-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.project-date {
  color: var(--muted);
  white-space: nowrap;
}

.project-card ul {
  margin: 18px 0;
  padding-left: 18px;
}

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

.project-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

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

.feature-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.certifications-section .feature-card {
  justify-content: space-between;
}

.certifications-section .button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  text-align: center;
  line-height: 1.35;
}

.stacked-links {
  display: grid;
  gap: 10px;
}

.feature-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.feature-type {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
}

.feature-card h3 a {
  color: var(--text);
  border-bottom: 1px solid rgba(127, 209, 255, 0.28);
}

.feature-card h3 a:hover {
  color: var(--accent-3);
  border-bottom-color: var(--accent-3);
}

.cert-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 14px;
}

.cert-card {
  padding: 16px;
  border-radius: 18px;
}

.cert-list {
  display: grid;
  gap: 8px;
}

.cert-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.35;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.cert-link:hover {
  transform: translateY(-2px);
  border-color: rgba(127, 209, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-3);
}

body[data-theme="light"] .cert-card {
  background: rgba(255, 255, 255, 0.88);
}

body[data-theme="light"] .cert-link {
  background: #f7faff;
  border-color: rgba(17, 32, 52, 0.08);
}

.constellation-card h3,
.strength-panel h3,
.credential-card h3 {
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.constellation {
  position: relative;
  min-height: 360px;
  border-radius: 28px;
  background:
    radial-gradient(circle at center, rgba(127, 209, 255, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}

.constellation::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.2;
}

body[data-theme="light"] .constellation {
  background:
    radial-gradient(circle at center, rgba(42, 140, 255, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(240, 246, 255, 0.92));
}

body[data-theme="light"] .constellation::before {
  opacity: 0.08;
}

.node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(127, 209, 255, 0.18);
  padding: 11px 15px;
  border-radius: 999px;
  color: #eff6ff;
  background:
    linear-gradient(135deg, rgba(16, 32, 53, 0.94), rgba(11, 24, 40, 0.98));
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font: inherit;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

body[data-theme="light"] .node {
  color: #12315d;
  background: linear-gradient(135deg, #ffffff, #dbeaff);
  border: 1px solid rgba(31, 111, 229, 0.14);
  box-shadow: 0 10px 24px rgba(42, 107, 181, 0.14);
}

.node.is-active {
  color: #07101b;
  background: linear-gradient(135deg, #8fe9ff, #77e6c8);
  border-color: rgba(143, 233, 255, 0.62);
  transform: translate(-50%, -50%) scale(1.06);
}

body[data-theme="light"] .node.is-active {
  color: #0d2a57;
  background: linear-gradient(135deg, #eef5ff, #b9d6ff);
  border-color: rgba(31, 111, 229, 0.28);
}

.node:hover {
  border-color: rgba(127, 209, 255, 0.36);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(127, 209, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body[data-theme="light"] .node:hover {
  box-shadow:
    0 12px 28px rgba(42, 107, 181, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.skill-inspector {
  margin-top: 18px;
  padding: 20px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 159, 110, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-theme="light"] .skill-inspector {
  background:
    radial-gradient(circle at top right, rgba(42, 140, 255, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.82);
  border-color: rgba(17, 32, 52, 0.08);
}

.skill-inspector-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.skill-inspector-title {
  margin: 0;
  font-size: 1.15rem;
}

.skill-inspector-copy {
  margin: 10px 0 16px;
  color: var(--muted);
  line-height: 1.65;
}

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

.skill-list-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.skill-list {
  margin: 0;
  padding-left: 18px;
}

.skill-list li {
  margin-bottom: 8px;
  color: var(--text);
  line-height: 1.55;
}

.skill-list a {
  color: var(--text);
  border-bottom: 1px solid rgba(127, 209, 255, 0.28);
}

.skill-list a:hover {
  color: var(--accent-3);
  border-bottom-color: var(--accent-3);
}

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

.strength-card {
  min-height: 180px;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(127, 209, 255, 0.12), transparent 36%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.strength-index {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
}

.strength-card h4 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.strength-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.credential-item p,
.credential-card li {
  color: var(--text);
}

.education-track {
  display: grid;
  gap: 16px;
}

.education-entry {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  align-items: start;
}

.education-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
}

.education-body {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.education-entry:last-child .education-body {
  border-bottom: 0;
  padding-bottom: 0;
}

.education-body p {
  margin-bottom: 6px;
  color: var(--text);
}

.education-body span {
  color: var(--muted);
  line-height: 1.55;
}

.education-entry-current .education-year {
  background: linear-gradient(135deg, rgba(31, 111, 229, 0.18), rgba(42, 140, 255, 0.12));
}

.language-stack {
  display: grid;
  gap: 12px;
}

.language-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.language-name {
  color: var(--text);
  font-weight: 600;
}

.language-level {
  color: var(--accent);
  font-size: 0.88rem;
}

.clean-list {
  padding-left: 18px;
  margin-bottom: 0;
}

.clean-list li {
  margin-bottom: 10px;
}

.clean-list a {
  color: var(--text);
  border-bottom: 1px solid rgba(127, 209, 255, 0.35);
}

.clean-list a:hover {
  color: var(--accent-3);
  border-bottom-color: var(--accent-3);
}

.contact-card {
  padding: 34px;
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.site-footer {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 0 0 28px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-card h2 {
  max-width: 18ch;
  margin-bottom: 0;
}

.contact-actions {
  justify-content: center;
}

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

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

@keyframes workflowPulse {
  0% {
    left: 0%;
    opacity: 0;
    transform: scale(0.7);
  }
  8% {
    opacity: 1;
  }
  50% {
    transform: scale(1);
  }
  92% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 12px);
    opacity: 0;
    transform: scale(0.72);
  }
}

@keyframes workflowOrbit {
  from {
    transform: rotate(0deg) scale(0.96);
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
  to {
    transform: rotate(360deg) scale(1.04);
    opacity: 0.45;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .story-layout,
  .skill-layout,
  .credentials-grid,
  .contact-card,
  .feature-grid,
  .cert-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .contact-card {
    align-items: flex-start;
  }

  .hero-copy {
    order: 2;
    padding-top: 24px;
  }

  .hero-panel {
    order: 1;
  }

  .timeline-top {
    flex-direction: column;
  }

  .project-top {
    flex-direction: column;
  }

  .timeline-meta {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .section {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .topbar {
    width: min(calc(100% - 24px), var(--max-width));
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }

  .topbar-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .topbar-links {
    flex-wrap: wrap;
  }

  .topbar-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .theme-toggle,
  .lang-toggle {
    width: 100%;
    max-width: 240px;
  }

  .hero-copy,
  .portrait-card,
  .story-card,
  .quote-card,
  .timeline-card,
  .constellation-card,
  .strength-panel,
  .credential-card,
  .contact-card,
  .signal {
    border-radius: 22px;
  }

  .hero-copy,
  .story-card,
  .quote-card,
  .timeline-card,
  .constellation-card,
  .strength-panel,
  .credential-card,
  .contact-card {
    padding: 20px;
  }

  .workflow-scene {
    padding: 14px 14px 10px;
  }

  h1 {
    font-size: 2.9rem;
  }

  .signal-grid,
  .strength-grid {
    grid-template-columns: 1fr;
  }

  .workflow-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 22px;
  }

  .workflow-track {
    top: 50%;
    left: 12%;
    right: 12%;
  }

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

  .constellation {
    min-height: 300px;
  }

  .site-footer {
    width: min(calc(100% - 24px), var(--max-width));
  }
}

@media (prefers-reduced-motion: reduce) {
  .workflow-pulse,
  .workflow-core-ring {
    animation: none;
  }
}
