:root {
  --navy: #0B2A5B;
  --navy-deep: #071B3E;
  --navy-soft: #1B3C73;
  --navy-light: #2E5299;
  --gold: #F5B700;
  --gold-deep: #D9A000;
  --gold-soft: #FFCF47;
  --gold-pale: #FFF4CC;
  --ink: #0F1117;
  --stone: #5A5E6B;
  --stone-light: #8E92A0;
  --paper: #F8F9FC;
  --white: #FFFFFF;
  --surface: rgba(255, 255, 255, 0.80);
  --surface-strong: rgba(255, 255, 255, 0.97);
  --line: rgba(11, 42, 91, 0.09);
  --line-strong: rgba(11, 42, 91, 0.16);
  --shadow-xs: 0 1px 3px rgba(7, 27, 62, 0.06);
  --shadow-sm: 0 2px 8px rgba(7, 27, 62, 0.07), 0 1px 2px rgba(7, 27, 62, 0.04);
  --shadow-md: 0 8px 32px rgba(7, 27, 62, 0.10), 0 2px 6px rgba(7, 27, 62, 0.05);
  --shadow-lg: 0 24px 72px rgba(7, 27, 62, 0.13), 0 6px 18px rgba(7, 27, 62, 0.07);
  --shadow-gold: 0 8px 28px rgba(245, 183, 0, 0.28);
  --radius: 10px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #F6F8FC;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

body::selection {
  color: var(--navy-deep);
  background: var(--gold-soft);
}

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

a:hover {
  color: var(--navy-soft);
  text-decoration: none;
}

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

.container {
  max-width: 1140px;
}

/* ─── Navigation ─────────────────────────────────────── */

.professional-nav {
  padding: 0;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.professional-nav .container {
  height: 66px;
  display: flex;
  align-items: center;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy-deep);
  font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--navy-deep);
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 100%);
  border-radius: 9px;
  box-shadow: var(--shadow-gold);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.navbar-nav {
  gap: 2px;
}

.nav-link {
  color: var(--stone);
  font-size: 0.91rem;
  font-weight: 700;
  padding: 8px 14px !important;
  border-radius: 8px;
  letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--navy-deep);
  background: rgba(11, 42, 91, 0.06);
}

.nav-link.active {
  color: var(--navy-deep);
  background: rgba(11, 42, 91, 0.07);
}

.navbar-toggler {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
}

.navbar-toggler:focus {
  outline: 2px solid rgba(245, 183, 0, 0.6);
  outline-offset: 2px;
}

.navbar-toggler-icon {
  display: grid;
  width: 22px;
  height: auto;
  gap: 5px;
}

.navbar-toggler-icon span {
  display: block;
  height: 2px;
  background: var(--navy-deep);
  border-radius: 999px;
}

/* ─── Hero ───────────────────────────────────────────── */

.hero-section {
  position: relative;
  min-height: 90vh;
  padding: 142px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 5% 0%, rgba(245, 183, 0, 0.18), transparent 32rem),
    radial-gradient(ellipse at 95% 5%, rgba(27, 60, 115, 0.12), transparent 34rem),
    linear-gradient(175deg, #ffffff 0%, #f0f4fb 58%, #e8eef8 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold), var(--navy-soft));
  opacity: 0.7;
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(11, 42, 91, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 80% at 70% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 50%, black 30%, transparent 100%);
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 80px;
  right: 6%;
  width: 320px;
  height: 320px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(245, 183, 0, 0.14) 0%, rgba(27, 60, 115, 0.08) 60%, transparent 100%);
  border-radius: 50%;
  filter: blur(60px);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 72px;
  align-items: center;
}

.eyebrow,
.section-heading span,
.contact-layout span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--navy-light);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-heading span::before,
.contact-layout span::before {
  content: "";
  width: 20px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border-radius: 999px;
  flex: 0 0 auto;
}

.hero-copy h1,
.section-heading h2,
.contact-layout h2 {
  margin: 0;
  color: var(--navy-deep);
  font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  max-width: 800px;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.94;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-soft) 70%, var(--navy-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--stone);
  font-size: 1.2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  gap: 10px;
  border-radius: 10px;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
}

.btn-gold {
  color: var(--navy-deep);
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 100%);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  color: var(--navy-deep);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  border-color: var(--gold-deep);
  box-shadow: 0 12px 36px rgba(245, 183, 0, 0.38);
  transform: translateY(-2px);
}

.btn-outline-light {
  color: var(--navy-deep);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.btn-outline-light:hover {
  color: var(--navy-deep);
  background: var(--white);
  border-color: rgba(11, 42, 91, 0.28);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ─── Hero panel ─────────────────────────────────────── */

.hero-panel {
  position: relative;
  padding: 20px;
  color: var(--navy-deep);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-lg) + 1px);
  background: linear-gradient(140deg, rgba(245, 183, 0, 0.4), transparent 40%, rgba(11, 42, 91, 0.1) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #dde4f0, #c8d3e8);
  border-radius: calc(var(--radius-lg) - 4px);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
  display: block;
}

.hero-role {
  margin-top: 18px;
  padding: 0;
}

.hero-role span,
.quick-facts dt {
  color: var(--stone-light);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-role strong {
  display: block;
  margin-top: 3px;
  font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
}

.quick-facts {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
}

.quick-facts div {
  padding: 13px 15px;
  background: rgba(11, 42, 91, 0.03);
  border: 1px solid rgba(11, 42, 91, 0.07);
  border-radius: var(--radius);
  transition: background 180ms ease, border-color 180ms ease;
}

.quick-facts div:hover {
  background: rgba(11, 42, 91, 0.055);
  border-color: rgba(11, 42, 91, 0.12);
}

.quick-facts dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.97rem;
  line-height: 1.35;
}

/* ─── Sections ───────────────────────────────────────── */

.section-block {
  padding: 96px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 44px;
}

.section-heading.compact {
  max-width: 760px;
}

.section-heading h2,
.contact-layout h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

/* ─── Profile ────────────────────────────────────────── */

.profile-block {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: stretch;
}

.profile-summary {
  padding: 36px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.profile-summary p {
  margin: 0;
  color: var(--stone);
  font-size: 1.1rem;
  line-height: 1.7;
}

.profile-summary p + p {
  margin-top: 20px;
}

.impact-metrics {
  display: grid;
  gap: 14px;
}

.impact-metrics div {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.impact-metrics div:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.impact-metrics strong {
  display: block;
  color: var(--navy);
  font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.impact-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--stone);
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.4;
}

/* ─── Experience ─────────────────────────────────────── */

.experience-block {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(11, 42, 91, 0.04), transparent 40rem),
    #F6F8FC;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline {
  position: relative;
  display: grid;
  gap: 16px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 172px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line-strong) 10%, var(--line-strong) 90%, transparent);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 166px;
  width: 13px;
  height: 13px;
  background: var(--white);
  border: 3px solid var(--gold);
  border-radius: 999px;
  box-shadow: 0 0 0 5px #F6F8FC, var(--shadow-xs);
}

.timeline-date {
  padding-top: 15px;
  color: var(--stone-light);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.timeline-content {
  padding: 26px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.timeline-content:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.timeline-item.featured .timeline-content {
  color: var(--white);
  background: linear-gradient(135deg, #1B3C73 0%, #0B2A5B 55%, #071B3E 100%);
  border-color: rgba(27, 60, 115, 0.3);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.timeline-item.featured .timeline-content::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(245, 183, 0, 0.15), transparent 70%);
  border-radius: 0 var(--radius-lg) 0 0;
  pointer-events: none;
}

.timeline-item.featured::before {
  border-color: var(--gold-soft);
  background: var(--gold);
  box-shadow: 0 0 0 5px #F6F8FC, 0 0 12px rgba(245, 183, 0, 0.4);
}

.role-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.role-line h3,
.stack-grid h3,
.education-list h3,
.courses-panel h3 {
  margin: 0;
  color: var(--navy-deep);
  font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.timeline-item.featured h3,
.timeline-item.featured .role-line span {
  color: var(--white);
}

.role-line span {
  flex: 0 0 auto;
  padding: 4px 10px;
  color: var(--navy-soft);
  background: rgba(11, 42, 91, 0.07);
  border: 1px solid rgba(11, 42, 91, 0.1);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.timeline-item.featured .role-line span {
  color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.timeline-content p {
  margin: 14px 0 0;
  color: var(--stone);
  font-size: 1rem;
  line-height: 1.65;
}

.timeline-item.featured p {
  color: rgba(255, 255, 255, 0.76);
}

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

.tag-list li {
  padding: 5px 11px;
  color: var(--navy-soft);
  background: rgba(11, 42, 91, 0.05);
  border: 1px solid rgba(11, 42, 91, 0.1);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: background 160ms ease, border-color 160ms ease;
}

.tag-list li:hover {
  background: rgba(11, 42, 91, 0.09);
  border-color: rgba(11, 42, 91, 0.18);
}

.timeline-item.featured .tag-list li {
  color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.15);
}

.timeline-item.featured .tag-list li:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ─── Stack ──────────────────────────────────────────── */

.stack-block {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.stack-grid article {
  min-height: 200px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.stack-grid article:hover {
  border-color: rgba(11, 42, 91, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.stack-grid i {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 18px;
  color: var(--navy);
  background: linear-gradient(135deg, rgba(245, 183, 0, 0.18), rgba(245, 183, 0, 0.08));
  border: 1px solid rgba(245, 183, 0, 0.28);
  border-radius: 11px;
  font-size: 1rem;
}

.stack-grid h3 {
  margin-bottom: 10px;
}

.stack-grid p,
.education-list p,
.courses-panel li {
  color: var(--stone);
}

.stack-grid p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ─── Formation ──────────────────────────────────────── */

.formation-block {
  color: var(--white);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(245, 183, 0, 0.16), transparent 28rem),
    radial-gradient(ellipse at 90% 100%, rgba(46, 82, 153, 0.3), transparent 30rem),
    linear-gradient(160deg, #0f2347 0%, #0B2A5B 45%, #071B3E 100%);
}

.formation-block .section-heading span {
  color: var(--gold-soft);
}

.formation-block .section-heading span::before {
  background: var(--gold-soft);
}

.formation-block .section-heading h2 {
  color: var(--white);
  -webkit-text-fill-color: var(--white);
}

.formation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 36px;
  align-items: start;
}

.education-list {
  display: grid;
  gap: 14px;
}

.education-list article {
  padding: 26px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: background 200ms ease, border-color 200ms ease;
}

.education-list article:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.18);
}

.education-list span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-soft);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.education-list h3 {
  color: var(--white);
  font-size: 1.18rem;
}

.education-list p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-weight: 600;
  font-size: 0.97rem;
}

.courses-panel {
  padding: 30px;
  color: var(--navy-deep);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.courses-panel h3 {
  color: var(--navy-deep);
  font-size: 1.15rem;
}

.courses-panel ul {
  display: grid;
  gap: 11px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.courses-panel li {
  position: relative;
  padding-left: 20px;
  color: var(--stone);
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.4;
}

.courses-panel li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 999px;
}

/* ─── Contact ────────────────────────────────────────── */

.contact-band {
  padding: 80px 0;
  background:
    radial-gradient(ellipse at 80% 100%, rgba(11, 42, 91, 0.06), transparent 36rem),
    #F6F8FC;
  border-top: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 36px;
  align-items: center;
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-layout h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  -webkit-text-fill-color: var(--navy-deep);
}

.contact-actions {
  display: grid;
  gap: 10px;
}

.contact-actions a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  color: var(--navy-deep);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.97rem;
  overflow-wrap: anywhere;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.contact-actions a:hover {
  background: var(--gold-pale);
  border-color: rgba(245, 183, 0, 0.3);
  transform: translateX(3px);
  box-shadow: var(--shadow-sm);
}

.contact-actions i {
  flex: 0 0 auto;
  width: 22px;
  color: var(--navy-light);
  text-align: center;
  font-size: 1.05rem;
}

/* ─── Footer ─────────────────────────────────────────── */

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.65);
  background: linear-gradient(135deg, #071B3E 0%, #0B2A5B 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--gold-soft);
  font-weight: 700;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--gold);
}

/* ─── Responsive ─────────────────────────────────────── */

@media (max-width: 991px) {
  body {
    font-size: 17px;
  }

  .professional-nav .container {
    height: auto;
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .navbar-collapse {
    margin-top: 12px;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    width: 100%;
  }

  .hero-section {
    min-height: auto;
    padding: 124px 0 72px;
  }

  .hero-layout,
  .profile-grid,
  .formation-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    gap: 44px;
  }

  .hero-panel,
  .formation-layout .courses-panel {
    max-width: 520px;
  }

  .timeline::before,
  .timeline-item::before {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .timeline-date {
    padding-top: 0;
  }

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

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .hero-section {
    padding: 108px 0 60px;
  }

  .hero-copy h1 {
    font-size: 2.75rem;
  }

  .hero-lead {
    font-size: 1.05rem;
  }

  .hero-actions,
  .role-line,
  .site-footer .container {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .hero-actions a {
    width: 100%;
    justify-content: center;
  }

  .section-block {
    padding: 68px 0;
  }

  .profile-summary {
    padding: 26px;
  }

  .timeline-content {
    padding: 22px;
  }

  .contact-layout {
    padding: 26px;
  }

  .courses-panel {
    padding: 24px;
  }

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

  .stack-grid article {
    min-height: auto;
  }

  .contact-band {
    padding: 58px 0;
  }

  .role-line {
    flex-direction: column;
    gap: 8px;
  }

  .role-line span {
    align-self: flex-start;
  }
}
