/* ═══════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* safety net: no element should ever be able to push a horizontal scrollbar */
  width: 100%;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background-color: #F8FAFC;
  color: #1E3A5F;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

img { max-width: 100%; display: block; } /* images never exceed their container, on any viewport */

/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════════ */
:root {
  --navy:       #1E3A5F;
  --blue:       #4A6FA5;
  --sky:        #DCE7F5;
  --white:      #F8FAFC;
  --mid:        #B0C4DE;
  --text-muted: #6B87A8;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --shadow-sm:  0 2px 8px rgba(30,58,95,0.10);
  --shadow-md:  0 4px 16px rgba(30,58,95,0.15);
  --shadow-lg:  0 8px 28px rgba(30,58,95,0.20);
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT UTILITY
═══════════════════════════════════════════════════════════ */
.container {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 60px);
  width: 100%;
}

.section {
  padding: 5rem 1.25rem;
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(248,250,252,0.97);
  border-bottom: 1px solid var(--mid);
  z-index: 9999;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
}
body { padding-top: 56px; }

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
}

.logo {
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}
.logo:hover { color: var(--blue); }

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link:focus-visible {
  background: var(--sky);
  color: var(--blue);
}

.nav-cv {
  background: var(--navy);
  color: var(--white) !important;
  margin-left: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-cv:hover,
.nav-cv:focus-visible {
  background: var(--blue);
  color: var(--white) !important;
}

/* Hamburger */
#nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  position: relative;
  transition: all 0.28s ease;
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
}
.hamburger::before { top: -8px; }
.hamburger::after  { top:  8px; }
#nav-toggle[aria-expanded="true"] .hamburger               { background: transparent; }
#nav-toggle[aria-expanded="true"] .hamburger::before       { transform: rotate(45deg); top: 0; }
#nav-toggle[aria-expanded="true"] .hamburger::after        { transform: rotate(-45deg); top: 0; }

/* ═══════════════════════════════════════════════════════════
   SECTION EYEBROWS & HEADINGS
═══════════════════════════════════════════════════════════ */
.section-eyebrow {
  font-size: 0.95rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-blue);
  margin-bottom: 0.5rem;
}

.section-heading {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2.5rem;
  line-height: 1.3;

}

.section-heading-light {
  color: var(--white);
  align-self: left;
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero-section {
  padding-top: 100px;
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: clamp(200px, 22%, 290px) minmax(0, 1fr);
  gap: 2rem clamp(1.5rem, 2.5vw, 2rem);
  align-items: start;
}

/* Photo column */
.hero-photo-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.profile-photo {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.hero-photo-caption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.hero-caption-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.hero-caption-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue);
}

.hero-caption-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.3rem;
}

.hero-caption-meta div {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Right area */
.hero-right-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 1.8rem;
  align-items: start;
  position: relative;
  left: -1px;
  top: 20px;
  min-width: 0;
}

/* Centre content column */
.hero-content-column {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Statement box */
.hero-quickread {
  list-style: none;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--mid);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.hero-quickread li {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.5;
}

.hero-quickread li strong {
  font-weight: 700;
}

.hero-summary {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.hero-summary-companies {
  margin-top: -0.4rem;
}

.hero-tagline {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 0.55rem 0.85rem;
  background: var(--sky);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--mid);
}

/* Evidence aside */
.hero-evidence {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  margin-top: -15px;
}

.metrics-title {
  font-size: 1.22rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  color: var(--navy);
  text-align: center;
  width: 100%;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 0.65rem;
  width: 100%;
}

.metric-card {
  background: var(--white);
  border: 1px solid var(--mid);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.8rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  min-height: 170px;
  min-width: 0;
}
.metric-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.metric-icon {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-size: 0.95rem;
  opacity: 0.3;
}

.metric-primary {
  border-left: 3px solid var(--navy);
  background: var(--sky);
}

.metric-value {
  font-size: 2.0rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.metric-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.metric-context {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.2rem;
}

.metric-stat {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--blue);
  margin-top: auto;
}

/* Utility buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 1.2rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   HERO RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1199px) {
  .hero-right-area { grid-template-columns: minmax(0, 1fr); }
  .metrics-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-photo-column { align-items: center; }
  .profile-photo { max-width: 220px; margin: 0 auto; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .container { padding: 0 1.25rem; }
}

/* ═══════════════════════════════════════════════════════════
   JOURNEY SECTION
═══════════════════════════════════════════════════════════ */
.journey-section {
  background: var(--white);
  padding-top: 5rem;
  overflow: hidden;
}

.journey-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.6fr) minmax(0, 1.8fr);
  gap: 50px;
  width: 100%;
  align-items: start;
}

.journey-story {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
}

.journey-intro {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.6;
}

.journey-story p {
  font-size: 0.97rem;
  color: var(--text-muted);
}

.journey-quote {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--navy);
  border-left: 3px solid var(--blue);
  padding: 0.75rem 1rem;
  background: var(--sky);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.55;
  margin-top: 0.5rem;
}

/* Arc column */
.journey-arc-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

.arc-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.journey-arc {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.arc-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.45rem 0;
  border-left: 2px solid var(--mid);
  padding-left: 1rem;
  position: relative;
}
.arc-done { color: var(--navy); border-left-color: var(--blue); }
.arc-current {
  color: var(--blue);
  border-left-color: var(--navy);
  font-size: 0.95rem;
}
.arc-marker {
  position: absolute;
  left: -5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mid);
  flex-shrink: 0;
}
.arc-done    .arc-marker { background: var(--blue); }
.arc-current .arc-marker { background: var(--navy); width: 10px; height: 10px; left: -6px; }

/* ═══════════════════════════════════════════════════════════
   STRENGTH CARDS — fluid grid that never overflows its column.
   auto-fit + a clamped minimum (via min()) means it shows as many
   260px+ columns as actually fit, and gracefully drops to a single
   column rather than forcing overflow at in-between widths.
═══════════════════════════════════════════════════════════ */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.strength-card {
  background: var(--white);
  border: 1px solid var(--mid);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 290px;
  min-width: 0;
}
.strength-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

/* Icon wrap — circular navy background matching screenshot */
.strength-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.strength-icon-svg {
  font-size: 0.95rem;
  color: var(--blue);
}

.strength-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.strength-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 0.5rem;
}

/* "Tools:" label — plain bold text, matching screenshot */
.strength-tools-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

/* Tool names — blue dot-separated, matching screenshot */
.strength-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  line-height: 1.5;
}

.strength-tools span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
}

.strength-tools span::after {
  content: ' • ';
  color: var(--mid);
}

.strength-tools span:last-child::after {
  content: '';
}
/* ═══════════════════════════════════════════════════════════
   EXPERIENCE TIMELINE
═══════════════════════════════════════════════════════════ */
.career-section { background: var(--sky); overflow: hidden; }

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}

.role-meta { flex: 1; min-width: 0; }

.timeline-item {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.timeline-item ul li { margin-bottom: 0.4rem; }

.primary-role {
  width: 100%;
  min-height: 560px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--mid);
  border-left: 5px solid var(--navy);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: box-shadow .25s, transform .25s;
}
.primary-role:hover,
.primary-role:focus-within {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  outline: none;
}
.primary-role:focus { outline: 2px solid var(--blue); outline-offset: 3px; }

.role-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.role-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.role-company {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.company-flag { font-size: 1rem; }

.role-period { text-align: right; flex-shrink: 0; }

.period-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--sky);
  border: 1px solid var(--mid);
  border-radius: 20px;
  padding: 0.2rem 0.7rem;
}
.role-discipline {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 0.4rem;
  font-weight: 600;
}

.role-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  background: var(--sky);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin: 1rem 0 1.25rem;
}
.role-metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100px;
  text-align: center;
  min-width: 0;
}
.rm-value {
  font-size: 1rem;
  font-weight: 850;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.rm-label {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--blue);
}

.role-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0;
}
.role-bullets li {
  font-size: 0.9rem;
  color: #3D5A7A;
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.6;
}
.role-bullets li::before {
  content: '◆';
  position: absolute;
  left: 0;
  font-size: 0.45rem;
  color: var(--blue);
  top: 0.45em;
}
.role-bullets li strong { color: var(--navy); font-weight: 700; }

/* Secondary roles */
.secondary-roles {
  grid-column: 1 / -1;
  width: 100%;
}
.secondary-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  width: 100%;
}
.secondary-role {
  width: 100%;
  min-height: 520px;
  background: white;
  border: 1px solid var(--mid);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}
.secondary-role:hover,
.secondary-role:focus-within {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.role-title-sm {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
}
.role-company-sm {
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0;
}
.role-bullets-sm {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
  margin-top: 0.75rem;
}
.role-bullets-sm li {
  font-size: 0.85rem;
  color: #3D5A7A;
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.6;
}
.role-bullets-sm li::before {
  content: '◆';
  position: absolute;
  left: 0;
  font-size: 0.4rem;
  color: var(--blue);
  top: 0.45em;
}
.role-bullets-sm li strong { color: var(--navy); font-weight: 700; }

/* ═══════════════════════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════════════════════ */
.projects-section { background: var(--white); overflow: hidden; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--mid);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.25s, transform 0.25s;
  min-width: 0;
}
.project-card:hover,
.project-card:focus-within {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.project-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
}
.project-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.github-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}
.github-btn:hover { background: var(--blue); }

.project-dl {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}
.project-dl-item dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.15rem;
}
.project-dl-item dd {
  font-size: 0.87rem;
  color: #3D5A7A;
  line-height: 1.55;
  margin: 0;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.stack-chip {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--sky);
  border: 1px solid var(--mid);
  border-radius: 20px;
  padding: 0.2rem 0.6rem;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════ */
.contact-section {
  background: var(--navy);
  padding: 5rem 1.25rem;
}
.contact-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.contact-eyebrow {
  color: var(--mid);
}
.contact-section .section-heading-light {
  margin-bottom: 2rem;
  font-size: 1.5rem;
}
.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.btn-contact-primary {
  background: var(--white);
  color: var(--navy);
  border-radius: 20px;
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s;
}
.btn-contact-primary:hover { background: var(--sky); }
.btn-contact-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: border-color 0.2s, background 0.2s;
}
.btn-contact-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mid);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
.journey-grid {
  /* arc column is hidden at this width, so collapse to two fluid
     columns (story | strengths) instead of leaving its track as
     dead space that starves the strength cards of room */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 40px;
  width: 100%;
  align-items: start;
  }
.journey-arc-column { display: none; }
}

@media (max-width: 900px) {
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .secondary-grid { grid-template-columns: minmax(0, 1fr); }
  .projects-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .journey-grid { grid-template-columns: minmax(0, 1fr); }

  .nav-menu {
    display: none;
    flex-direction: column;
    background: var(--white);
    border-top: 1px solid var(--mid);
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    padding: 0.5rem 1rem 1rem;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open { display: flex; }
  #nav-toggle { display: block; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section { padding: 3rem 0; }
  .hero-section { padding-top: 80px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 360px) {
  .role-metrics { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  /* Only collapse the 2x2 to a single column on genuinely tiny phones,
     where two columns would squeeze each card under ~190px. */
  .strength-grid { grid-template-columns: minmax(0, 1fr); }
}