/* ==========================================================================
   Valence Mwigani Portfolio — Design System
   ========================================================================== */

:root {
  --navy: #071826;
  --navy-2: #0D2435;
  --navy-panel: #132B40;
  --teal: #18D4C1;
  --teal-dark: #14b8a6;
  --teal-soft: #5eead4;
  --teal-tint: #E8FAF7;
  --white: #fff;
  --bg: #F6F8FB;
  --bg-soft: #F1F5F9;
  --text: #0D1B2A;
  --muted: #52606D;
  --border: #DCE5EA;
  --danger: #b42318;
  --success: #067647;
  --heading: "Playfair Display", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --header-offset: 96px;
  --page-gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(3.5rem, 7vw, 7.5rem);
  --text-label: .8125rem;
  --text-meta: .875rem;
  --text-body: 1rem;
  --tap-min: 44px;
  --shadow-sm: 0 1px 3px rgba(7, 24, 38, .06);
  --shadow-md: 0 12px 32px rgba(7, 24, 38, .08);
  --shadow-float: 0 8px 32px rgba(7, 24, 38, .28), 0 2px 8px rgba(7, 24, 38, .12);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  max-width: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
  overflow-x: clip;
}

body {
  max-width: 100%;
  min-width: 0;
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--text-body) / 1.7 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

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

a {
  color: var(--teal-dark);
  text-decoration: none;
  transition: color .2s var(--ease);
}

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

button, input, textarea, select { font: inherit; }

button {
  color: inherit;
  cursor: pointer;
}

h1, h2, h3, h4 {
  margin: 0 0 .65em;
  color: var(--navy);
  font-family: var(--heading);
  line-height: 1.15;
  text-wrap: balance;
}

p { margin: 0 0 1rem; }

ul { margin-top: 0; }

address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--teal);
  color: var(--navy);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform .2s var(--ease);
}

.skip-link:focus { transform: none; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  width: min(100% - (var(--page-gutter) * 2), var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }

.section--white { background: var(--white); }

.section--muted { background: var(--bg); }

.section--dark,
.section--leadership {
  background: var(--navy);
  color: rgba(255, 255, 255, .78);
}

.section--dark h2,
.section--dark h3,
.section--leadership h2,
.section--leadership h3 { color: var(--white); }

.section--dark .eyebrow,
.section--leadership .eyebrow { color: var(--teal-soft); }

.section--dark .section-head p,
.section--leadership .section-head p { color: rgba(255, 255, 255, .62); }

.section--contact { background: var(--white); }

.section-action { margin-top: 2.5rem; text-align: center; }

/* --------------------------------------------------------------------------
   Typography utilities
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-block;
  margin-bottom: .75rem;
  color: var(--teal-dark);
  font-family: var(--body);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2,
.contact-cta h2,
.insights-panel h2,
.page-hero h1 {
  font-size: clamp(1.85rem, 5vw, 3.25rem);
}

.section-head p {
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.05rem);
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--teal-dark);
  font-weight: 600;
  font-size: .9rem;
}

.text-link:hover { color: var(--navy); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  min-height: var(--tap-min);
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .72rem 1.35rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    transform .2s var(--ease),
    background-color .2s var(--ease),
    color .2s var(--ease),
    border-color .2s var(--ease),
    box-shadow .2s var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn[disabled] {
  cursor: wait;
  opacity: .7;
  transform: none;
}

.btn__arrow {
  display: inline-block;
  transition: transform .2s var(--ease);
}

.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--primary {
  border-color: transparent;
  background: var(--teal);
  color: var(--navy);
  box-shadow: 0 6px 20px rgba(24, 212, 193, .28);
}

.btn--primary:hover {
  background: var(--teal-soft);
  color: var(--navy);
  box-shadow: 0 10px 28px rgba(24, 212, 193, .36);
}

.btn--outline {
  border-color: var(--teal-dark);
  background: transparent;
  color: var(--teal-dark);
}

.btn--outline:hover {
  border-color: var(--teal);
  background: var(--teal-tint);
  color: var(--navy);
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, .45);
  background: transparent;
  color: var(--white);
}

.btn--outline-light:hover {
  border-color: var(--teal);
  background: rgba(24, 212, 193, .1);
  color: var(--teal-soft);
}

.btn--secondary {
  border-color: var(--border);
  background: var(--white);
  color: var(--navy);
}

.btn--secondary:hover {
  border-color: var(--teal-dark);
  color: var(--teal-dark);
}

.btn--ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.btn--ghost:hover {
  color: var(--navy);
  background: var(--bg-soft);
}

.btn--light {
  border-color: var(--white);
  background: var(--white);
  color: var(--navy);
}

.btn--light:hover {
  background: var(--teal-tint);
  border-color: var(--teal-soft);
}

.btn--nav {
  min-height: 36px;
  padding: .45rem 1rem;
  border-color: rgba(255, 255, 255, .18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  font-size: .78rem;
  box-shadow: none;
}

.btn--nav:hover {
  border-color: var(--teal);
  background: rgba(24, 212, 193, .14);
  color: var(--teal-soft);
  transform: none;
}

.btn--sm {
  min-height: 38px;
  padding: .5rem .95rem;
  font-size: .82rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   Floating navbar
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  pointer-events: none;
  background: transparent;
  border: none;
}

/* Nav sits as a header sibling (outside the frosted float) so fixed overlay works */
.site-header > .site-nav {
  pointer-events: none;
}

.menu-open .site-header > .site-nav {
  pointer-events: auto;
}

.site-header__float,
.site-header__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.25rem);
  width: min(calc(100% - (var(--page-gutter) * 2)), 1100px);
  max-width: 1100px;
  margin: calc(12px + var(--safe-top)) auto 0;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  background: rgba(7, 24, 38, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-float);
  transition:
    background-color .25s var(--ease),
    padding .25s var(--ease),
    box-shadow .25s var(--ease),
    border-color .25s var(--ease);
}

.site-header.is-scrolled .site-header__float,
.site-header.is-scrolled .site-header__inner {
  margin-top: 12px;
  padding: 8px 16px;
  background: rgba(7, 24, 38, .94);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 6px 24px rgba(7, 24, 38, .32);
}

.site-header__brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: .6rem;
  color: var(--white);
  font-weight: 700;
  white-space: nowrap;
}

.site-logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: min(160px, 40vw);
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.site-nav__links {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: .1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__links a {
  position: relative;
  display: block;
  padding: .42rem .55rem;
  color: rgba(255, 255, 255, .78);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}

.site-nav__links a:hover { color: var(--teal-soft); }

.site-nav__links a.is-active {
  color: var(--teal);
}

.site-nav__links a.is-active::after {
  position: absolute;
  left: .5rem;
  right: .5rem;
  bottom: .15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
  content: "";
}

.site-nav__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: .75rem;
}

.site-nav__cv {
  color: rgba(255, 255, 255, .62);
  font-size: var(--text-label);
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s var(--ease);
}

.site-nav__cv:hover { color: var(--teal-soft); }

.menu-toggle {
  display: none;
  position: relative;
  z-index: 1002;
  flex-shrink: 0;
  width: var(--tap-min);
  height: var(--tap-min);
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 1px;
  background: var(--white);
  transition: transform .2s var(--ease), opacity .2s var(--ease), background-color .2s var(--ease);
}

/* Inner pages — light floating bar */
.site-header--inner .site-header__float,
.site-header--inner .site-header__inner {
  background: rgba(255, 255, 255, .9);
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}

.site-header--inner.is-scrolled .site-header__float,
.site-header--inner.is-scrolled .site-header__inner {
  background: rgba(255, 255, 255, .96);
}

.site-header--inner .site-header__brand { color: var(--navy); }

.site-header--inner .site-nav__links a { color: var(--muted); }

.site-header--inner .site-nav__links a:hover { color: var(--teal-dark); }

.site-header--inner .site-nav__links a.is-active {
  color: var(--teal-dark);
  background: var(--teal-tint);
  border-radius: var(--radius-sm);
}

.site-header--inner .site-nav__links a.is-active::after { display: none; }

.site-header--inner .site-nav__cv { color: var(--muted); }

.site-header--inner .site-nav__cv:hover { color: var(--teal-dark); }

.site-header--inner .btn--nav {
  border-color: var(--border);
  background: var(--bg);
  color: var(--navy);
}

.site-header--inner .btn--nav:hover {
  border-color: var(--teal-dark);
  background: var(--teal-tint);
  color: var(--teal-dark);
}

.site-header--inner .menu-toggle span { background: var(--navy); }

.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }

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

.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Panel wrapper is transparent on desktop; becomes a card in the mobile overlay */
.site-nav__panel { display: contents; }

.site-nav__social { display: none; }

/* --------------------------------------------------------------------------
   Home hero (alias: .hero)
   -------------------------------------------------------------------------- */

.home-hero,
.hero {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 100svh;
  overflow: hidden;
  padding:
    calc(var(--header-offset) + clamp(1rem, 3vh, 2rem))
    clamp(1.25rem, 4vw, 3rem)
    clamp(1.5rem, 4vh, 2.5rem);
  background: var(--navy);
  color: var(--white);
}

.home-hero__ambient,
.hero__ambient,
.home-hero__grid,
.hero__grid,
.home-hero__glow,
.hero__glow,
.home-hero__particles,
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.home-hero__ambient,
.hero__ambient {
  background:
    radial-gradient(circle at 14% 22%, rgba(24, 212, 193, .07), transparent 30%),
    radial-gradient(circle at 80% 40%, rgba(24, 212, 193, .06), transparent 38%);
}

.home-hero__grid,
.hero__grid {
  opacity: .025;
  background-image:
    linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 72% 45%, #000 18%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 72% 45%, #000 18%, transparent 75%);
}

.home-hero__glow,
.hero__glow {
  background: radial-gradient(ellipse 44% 54% at 74% 48%, rgba(24, 212, 193, .11), transparent 72%);
  filter: blur(40px);
}

.home-hero__particles,
.hero__particles {
  background-image:
    radial-gradient(circle 1.2px at 14% 26%, rgba(94, 234, 212, .38), transparent 60%),
    radial-gradient(circle 1px at 24% 64%, rgba(255, 255, 255, .2), transparent 60%),
    radial-gradient(circle 1.4px at 70% 20%, rgba(94, 234, 212, .28), transparent 60%),
    radial-gradient(circle 1px at 86% 56%, rgba(94, 234, 212, .32), transparent 60%);
}

.home-hero__layout,
.hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  width: min(100%, var(--container));
  min-height: calc(100svh - var(--header-offset) - clamp(1rem, 3vh, 2rem));
  margin-inline: auto;
  padding-bottom: clamp(1.5rem, 4vh, 3rem);
}

.home-hero__content,
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  max-width: 34rem;
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
}

.home-hero__eyebrow,
.hero__eyebrow {
  margin: 0 0 1rem;
  color: var(--teal-soft);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.home-hero h1,
.hero h1 {
  margin: 0 0 1.1rem;
  color: var(--white);
  font-size: clamp(2.35rem, 4.4vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-transform: none;
}

.home-hero__title-line,
.hero__title-line { display: block; }

.home-hero__accent,
.hero__accent {
  font-style: normal;
  color: var(--teal);
}

.home-hero__lead,
.hero__lead {
  max-width: 34rem;
  margin: 0;
  color: rgba(255, 255, 255, .8);
  font-size: clamp(.95rem, 1.1vw, 1.05rem);
  line-height: 1.68;
}

.home-hero__actions,
.hero__actions { margin-top: 1.6rem; }

.home-hero__actions .btn--outline,
.hero__actions .btn--outline {
  border-color: rgba(255, 255, 255, .45);
  color: var(--white);
}

.home-hero__actions .btn--outline:hover,
.hero__actions .btn--outline:hover {
  border-color: var(--teal);
  background: rgba(24, 212, 193, .1);
  color: var(--teal-soft);
}

.home-hero__stats,
.hero__stats {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 32rem;
  margin: 2rem 0 0;
  padding: 1.1rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.home-hero__stats li,
.hero__stats li {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: .28rem;
  padding: 0 .8rem;
  border-right: 1px solid rgba(255, 255, 255, .12);
}

.home-hero__stats li:first-child,
.hero__stats li:first-child { padding-left: 0; }

.home-hero__stats li:last-child,
.hero__stats li:last-child {
  padding-right: 0;
  border-right: 0;
}

.home-hero__stats strong,
.hero__stats strong {
  color: var(--white);
  font-family: var(--heading);
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}

.home-hero__stats span,
.hero__stats span {
  color: rgba(255, 255, 255, .62);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.home-hero__visual,
.hero__visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  min-height: 0;
  align-self: center;
  overflow: visible;
  padding-block: clamp(.5rem, 2vh, 1.25rem);
}

.home-hero__visual-glow,
.hero__visual-glow {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(90%, 460px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 212, 193, .18) 0%, rgba(24, 212, 193, .05) 50%, transparent 72%);
  pointer-events: none;
}

.home-hero__visual-grid,
.hero__visual-grid {
  position: absolute;
  left: 50%;
  top: 54%;
  width: min(82%, 400px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: .05;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(94, 234, 212, .7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, .7) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle, #000 28%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle, #000 28%, transparent 72%);
}

.home-hero__visual-rings,
.hero__visual-rings {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(88%, 440px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.home-hero__visual-rings span,
.hero__visual-rings span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(24, 212, 193, .12);
  border-radius: 50%;
}

.home-hero__visual-rings span:nth-child(2),
.hero__visual-rings span:nth-child(2) { inset: 14%; border-color: rgba(24, 212, 193, .18); }

.home-hero__visual-rings span:nth-child(3),
.hero__visual-rings span:nth-child(3) { inset: 30%; border-color: rgba(94, 234, 212, .1); }

.home-hero__visual-particles,
.hero__visual-particles {
  position: absolute;
  inset: 12% 12% 18%;
  pointer-events: none;
  background-image:
    radial-gradient(circle 1.2px at 18% 22%, rgba(94, 234, 212, .4), transparent 60%),
    radial-gradient(circle 1px at 82% 20%, rgba(94, 234, 212, .3), transparent 60%),
    radial-gradient(circle 1px at 14% 70%, rgba(255, 255, 255, .18), transparent 60%);
}

.home-hero__portrait,
.hero__portrait {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.home-hero__portrait::after,
.hero__portrait::after {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: 0;
  z-index: 2;
  height: 40%;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 0%, rgba(7, 24, 38, .4) 45%, var(--navy) 100%);
}

.home-hero__portrait img,
.hero__portrait img {
  display: block;
  width: 100%;
  max-width: min(360px, 100%);
  height: auto;
  max-height: min(62vh, 540px);
  margin-inline: auto;
  object-fit: contain;
  object-position: center bottom;
  mask-image: linear-gradient(180deg, #000 62%, rgba(0, 0, 0, .55) 84%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 62%, rgba(0, 0, 0, .55) 84%, transparent 100%);
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .5));
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

[data-reveal="eyebrow"] { transform: translateY(10px); transition-delay: .04s; }

[data-reveal="heading"] { transform: translateY(18px); transition-delay: .1s; }

[data-reveal="lead"] { transform: translateY(12px); transition-delay: .18s; }

[data-reveal="actions"] { transform: translateY(10px); transition-delay: .26s; }

[data-reveal="stats"] { transform: translateY(14px); transition-delay: .34s; }

[data-reveal="portrait"] { transform: translateY(16px); transition-delay: .14s; transition-duration: .85s; }

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Credibility row
   -------------------------------------------------------------------------- */

.credibility-row {
  padding-block: 1.75rem;
  background: var(--white);
  border-block: 1px solid var(--border);
}

.credibility-row__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.credibility-row__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  min-width: 100px;
  text-align: center;
}

.credibility-row__item strong {
  color: var(--navy);
  font-family: var(--heading);
  font-size: 1.5rem;
  line-height: 1;
}

.credibility-row__item span {
  color: var(--muted);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.credibility-row__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  opacity: .65;
  filter: grayscale(1);
}

.credibility-row__logos img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   About / intro split
   -------------------------------------------------------------------------- */

.section--about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.about-media {
  position: sticky;
  top: calc(var(--header-offset) + 1rem);
}

.about-photo {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-panel);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.about-photo-caption {
  margin: .85rem 0 0;
  color: var(--muted);
  font-size: .82rem;
  text-align: center;
}

.about-content h2 {
  max-width: 20ch;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
}

.about-lead {
  color: var(--text) !important;
  font-size: 1.12rem;
  font-weight: 600;
}

.about-content > p {
  max-width: 65ch;
  color: var(--muted);
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.6rem;
}

/* Capability grid — light, not card-heavy */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.capability-card {
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid var(--border);
  background: transparent;
  transition: background-color .2s var(--ease);
}

.capability-card:nth-child(odd) { border-right: 1px solid var(--border); }

.capability-card:nth-last-child(-n+2) { border-bottom: 0; }

.capability-card:hover { background: var(--teal-tint); }

.capability-card > span {
  color: var(--teal-dark);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: .1em;
}

.capability-card h3 {
  margin: .4rem 0 .35rem;
  font-family: var(--body);
  font-size: .95rem;
  font-weight: 700;
}

.capability-card p {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Skills
   -------------------------------------------------------------------------- */

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

.skill-card {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}

.skill-card:hover {
  border-color: rgba(20, 184, 166, .35);
  background: var(--teal-tint);
}

.skill-card__icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: .85rem;
  border-radius: var(--radius-sm);
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-size: var(--text-label);
  font-weight: 800;
}

.skill-card h3 {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.skill-tags span,
.tag {
  display: inline-flex;
  padding: .28rem .58rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: var(--text-label);
  font-weight: 600;
  line-height: 1.4;
}

.skills-compact {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.skills-compact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .6rem 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.skills-compact__row:last-child { border-bottom: 0; padding-bottom: 0; }

.skills-compact__row h3 {
  flex: 0 0 auto;
  min-width: 150px;
  margin: 0;
  color: var(--navy);
  font-family: var(--body);
  font-size: .85rem;
  font-weight: 700;
}

.skills-compact__row .skill-tags { flex: 1 1 260px; }

/* --------------------------------------------------------------------------
   Projects — featured + grid
   -------------------------------------------------------------------------- */

.projects-section { background: var(--bg); }

.featured-project {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: var(--white);
}

.featured-project__visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background: var(--navy-panel);
}

.featured-project__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.featured-project__visual span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  padding: .3rem .65rem;
  border-radius: var(--radius-pill);
  background: rgba(7, 24, 38, .72);
  color: var(--teal-soft);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.featured-project__body h3 {
  font-family: var(--body);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
}

.featured-project__body p {
  color: var(--muted);
  font-size: .95rem;
}

.featured-project__cat {
  color: var(--teal-dark);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}

.project-card:hover {
  border-color: rgba(20, 184, 166, .4);
  transform: translateY(-2px);
}

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

.project-card__visual {
  position: relative;
  display: flex;
  aspect-ratio: 16 / 10;
  align-items: flex-end;
  padding: 1rem;
  overflow: hidden;
  background: var(--navy-panel);
  color: rgba(255, 255, 255, .88);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project-card__visual span { position: relative; z-index: 2; }

.project-card__visual--photo::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 24, 38, .05) 35%, rgba(7, 24, 38, .85) 100%);
  content: "";
}

.project-card__visual--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transition: transform .45s var(--ease);
}

.project-card:hover .project-card__visual--photo img { transform: scale(1.04); }

.project-card__visual--commerce { background: linear-gradient(140deg, var(--navy), #0e7490); }

.project-card__visual--members { background: linear-gradient(140deg, var(--navy), #0f766e); }

.project-card__visual--learning { background: linear-gradient(140deg, #172554, #155e75); }

.project-card__visual--academy { background: linear-gradient(140deg, #3b174f, #0f766e); }

.project-card__visual--publishing { background: linear-gradient(140deg, #1e293b, #0369a1); }

.project-card__visual--property { background: linear-gradient(140deg, var(--navy-2), #047857); }

.project-card__visual--economy { background: linear-gradient(140deg, var(--navy-2), #7c3aed); }

.project-card__visual--portfolio { background: linear-gradient(140deg, var(--navy-2), #b45309); }

.project-card__visual--erp { background: linear-gradient(140deg, var(--navy-2), #334155); }

.project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.15rem 1.2rem 1.25rem;
}

.project-card__cat {
  color: var(--teal-dark);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: .45rem 0 .4rem;
  font-family: var(--body);
  font-size: 1.02rem;
  font-weight: 700;
}

.project-card p {
  flex: 1;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.6;
}

.project-card .text-link { margin-top: .85rem; font-size: .82rem; }

.project-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .9rem;
}

/* Filters */
.filter-bar {
  display: flex;
  width: 100%;
  gap: .5rem;
  margin: 0 0 1.75rem;
  padding-bottom: .25rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.filter-btn {
  min-height: 40px;
  flex: 0 0 auto;
  padding: .5rem .95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 600;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.filter-btn:hover,
.filter-btn.is-active {
  border-color: var(--teal-dark);
  background: var(--teal);
  color: var(--navy);
}

/* Project dialogs */
.project-dialog {
  width: min(920px, calc(100% - 1.5rem));
  max-height: min(88vh, 900px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 28px 72px rgba(7, 24, 38, .35);
}

.project-dialog::backdrop {
  background: rgba(7, 24, 38, .76);
  backdrop-filter: blur(6px);
}

.project-dialog__inner {
  max-height: min(88vh, 900px);
  overflow-y: auto;
}

.project-dialog__header {
  position: relative;
  padding: 1.85rem 3.75rem 1.35rem 1.85rem;
  background: var(--navy);
}

.project-dialog__header .project-card__cat { color: var(--teal-soft); }

.project-dialog__header h2 {
  margin: .45rem 0 0;
  color: var(--white);
  font-size: clamp(1.65rem, 3.5vw, 2.5rem);
}

.project-dialog__close {
  position: absolute;
  top: .85rem;
  right: .85rem;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1;
}

.project-dialog__close:hover {
  background: rgba(255, 255, 255, .14);
  border-color: var(--teal-soft);
}

.project-dialog__body {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1.75rem;
  padding: 1.75rem;
}

.project-dialog__body h3 {
  margin-top: 1.25rem;
  font-family: var(--body);
  font-size: .95rem;
  font-weight: 700;
}

.project-dialog__body h3:first-child { margin-top: 0; }

.project-dialog__body p,
.project-dialog__body li {
  color: var(--muted);
  font-size: .88rem;
}

.project-dialog__body ul { padding-left: 1.1rem; }

.project-dialog__aside {
  padding: 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.project-dialog__aside .skill-tags { margin-bottom: 1rem; }

.project-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

/* --------------------------------------------------------------------------
   Experience timeline
   -------------------------------------------------------------------------- */

.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, .75fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.timeline-group__heading {
  margin: 0 0 1rem;
  color: var(--teal-dark);
  font-family: var(--body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.timeline-group__heading + .timeline { margin-top: 0; }

.timeline ~ .timeline-group__heading { margin-top: 2.5rem; }

.timeline {
  position: relative;
  margin-left: .75rem;
  padding-left: 1.75rem;
  border-left: 2px solid var(--border);
}

.timeline-item {
  position: relative;
  padding: 0 0 2rem 1rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  position: absolute;
  top: .35rem;
  left: -2.15rem;
  width: 10px;
  height: 10px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-tint);
  content: "";
}

.timeline-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.timeline-item h3 {
  margin-bottom: .15rem;
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 700;
}

.timeline-item .company {
  color: var(--teal-dark);
  font-size: .85rem;
  font-weight: 600;
}

.timeline-item time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 600;
}

.timeline-item ul,
.leadership-card ul {
  margin: .65rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: .88rem;
}

.timeline-item li + li,
.leadership-card li + li { margin-top: .35rem; }

.experience-media {
  display: grid;
  gap: .85rem;
  position: sticky;
  top: calc(var(--header-offset) + 1rem);
}

.experience-media figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background: var(--navy-panel);
}

.experience-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease);
}

.experience-media figure:hover img { transform: scale(1.04); }

.experience-media__stanbic img { object-position: center 12%; }

.experience-media__innovation img { object-position: 32% 18%; }

.experience-media__engineering img { object-position: center 28%; }

/* --------------------------------------------------------------------------
   Leadership dark panels
   -------------------------------------------------------------------------- */

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.leadership-card {
  overflow: hidden;
  padding: 0 clamp(1.35rem, 3vw, 2rem) clamp(1.35rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  background: var(--navy-panel);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}

.leadership-card:hover {
  border-color: rgba(24, 212, 193, .3);
  background: rgba(19, 43, 64, .95);
}

.leadership-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 calc(-1 * clamp(1.35rem, 3vw, 2rem)) 1.35rem;
  overflow: hidden;
  background: var(--navy-2);
}

.leadership-card__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 24, 38, .75));
  content: "";
}

.leadership-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform .45s var(--ease);
}

.leadership-card:hover .leadership-card__media img { transform: scale(1.03); }

.leadership-card__media--speaker img { object-position: center 24%; }

.leadership-card__media--yfl img { object-position: center 42%; }

.leadership-card__org {
  color: var(--teal-soft);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.leadership-card h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.leadership-card ul { color: rgba(255, 255, 255, .68); }

.leadership-card .skill-tags { margin-top: 1rem; }

.leadership-card .skill-tags span {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .78);
}

/* --------------------------------------------------------------------------
   Services — rows + grid
   -------------------------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}

.service-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}

.service-card:hover {
  border-color: rgba(20, 184, 166, .35);
  background: var(--teal-tint);
}

.service-card > span {
  color: var(--teal-dark);
  font-size: var(--text-label);
  font-weight: 800;
  letter-spacing: .06em;
}

.service-card h3 {
  margin: .45rem 0 .4rem;
  font-family: var(--body);
  font-size: .95rem;
  font-weight: 700;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: .83rem;
  line-height: 1.6;
}

.service-rows { display: grid; gap: 0; }

.service-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: start;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border);
  transition: background-color .2s var(--ease);
}

.service-row:first-child { padding-top: 0; }

.service-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.service-row:hover { background: var(--teal-tint); }

.service-row__num {
  color: var(--teal-dark);
  font-size: var(--text-label);
  font-weight: 800;
  letter-spacing: .06em;
}

.service-row__content h3 {
  margin: 0 0 .35rem;
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 700;
}

.service-row__content p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.service-row__link {
  align-self: center;
  color: var(--teal-dark);
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Article previews / insights
   -------------------------------------------------------------------------- */

.insight-feature {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: var(--white);
}

.insight-feature__media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--navy-panel);
}

.insight-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.insight-feature__meta {
  color: var(--teal-dark);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.insight-feature__body h3 {
  margin: .5rem 0 .75rem;
  font-family: var(--body);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
}

.insight-feature__body p {
  color: var(--muted);
  font-size: .95rem;
}

.insight-feature__quote {
  margin: .25rem 0 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--teal);
  color: var(--navy);
  font-family: var(--heading);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.5;
}

.insights-panel {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(135deg, var(--white), var(--teal-tint));
}

.insights-panel > div:first-child p {
  max-width: 58ch;
  color: var(--muted);
}

.coming-soon {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.coming-soon > span {
  display: inline-block;
  margin-bottom: .65rem;
  padding: .28rem .6rem;
  border-radius: var(--radius-pill);
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-size: var(--text-label);
  font-weight: 800;
  text-transform: uppercase;
}

.coming-soon p {
  color: var(--muted);
  font-size: .88rem;
}

/* --------------------------------------------------------------------------
   Education
   -------------------------------------------------------------------------- */

.education-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.education-grid article {
  padding: 1.25rem;
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--white);
  transition: background-color .2s var(--ease);
}

.education-grid article:hover { background: var(--teal-tint); }

.education-grid span {
  color: var(--teal-dark);
  font-size: var(--text-label);
  font-weight: 700;
}

.education-grid h3 {
  margin: .45rem 0 .35rem;
  font-family: var(--body);
  font-size: .98rem;
  font-weight: 700;
}

.education-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
}

/* --------------------------------------------------------------------------
   Contact CTA & forms
   -------------------------------------------------------------------------- */

.contact-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}

.contact-cta > div:first-child p {
  max-width: 60ch;
  color: var(--muted);
}

.contact-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: flex-end;
}

.contact-inline {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: .6rem 1.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .84rem;
}

.contact-inline a { font-weight: 600; }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  grid-template-areas: "methods visual" "methods actions";
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.contact-methods {
  grid-area: methods;
  display: grid;
  gap: 0;
}

.contact-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
  transition: background-color .2s var(--ease), padding-inline .2s var(--ease), margin-inline .2s var(--ease);
}

.contact-methods .contact-row:first-child { padding-top: 0; }

.contact-methods .contact-row:last-child { border-bottom: 0; padding-bottom: 0; }

a.contact-row:hover,
a.contact-row:focus-visible {
  padding-inline: .85rem;
  margin-inline: -.85rem;
  border-radius: var(--radius-sm);
  background: var(--teal-tint);
}

.contact-row__icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-size: var(--text-label);
  font-weight: 800;
  letter-spacing: .02em;
}

.contact-row__text {
  display: block;
  min-width: 0;
}

.contact-row__text strong {
  display: block;
  margin-bottom: .15rem;
  color: var(--muted);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.contact-row__text span {
  display: block;
  color: var(--navy);
  font-size: .98rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-row__arrow {
  color: var(--teal-dark);
  font-size: 1.1rem;
  opacity: 0;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
  transform: translateX(-3px);
}

a.contact-row:hover .contact-row__arrow,
a.contact-row:focus-visible .contact-row__arrow {
  opacity: 1;
  transform: translateX(0);
}

.contact-row--static .contact-row__text span { color: var(--muted); font-weight: 500; }

.contact-visual {
  grid-area: visual;
}

.contact-visual__frame {
  position: relative;
  margin-bottom: 2.25rem;
  padding-bottom: clamp(1.5rem, 5vw, 3rem);
}

.contact-visual__glow {
  position: absolute;
  right: -10%;
  top: -8%;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(24, 212, 193, .16) 0%, rgba(24, 212, 193, .05) 50%, transparent 72%);
  filter: blur(30px);
  pointer-events: none;
}

.contact-visual__media {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-panel);
  box-shadow: var(--shadow-md);
}

.contact-visual__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-visual__media--main {
  aspect-ratio: 4 / 5;
  width: min(100%, 420px);
}

.contact-visual__media--accent {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 46%;
  aspect-ratio: 4 / 5;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-float);
}

.contact-visual__body h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
}

.contact-visual__body p {
  max-width: 48ch;
  color: var(--muted);
}

.contact-actions {
  grid-area: actions;
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */

.page-hero {
  padding: calc(var(--header-offset) + 3rem) 0 3.5rem;
  background: var(--navy);
  color: rgba(255, 255, 255, .72);
  text-align: center;
}

.page-hero .eyebrow { color: var(--teal-soft); }

.page-hero h1 {
  max-width: 100%;
  color: var(--white);
  overflow-wrap: anywhere;
}

.page-hero p {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  overflow-wrap: anywhere;
}

.page-hero--compact {
  padding-bottom: 2rem;
}

.page-hero--compact h1 { margin-bottom: .5rem; }

.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: .45rem;
  margin-bottom: .85rem;
  color: rgba(255, 255, 255, .55);
  font-size: .78rem;
}

.breadcrumbs a { color: var(--teal-soft); }

/* --------------------------------------------------------------------------
   CV viewer
   -------------------------------------------------------------------------- */

.cv-viewer-section { padding-top: 0; }

.cv-viewer {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  box-shadow: var(--shadow-md);
}

.cv-viewer__frame {
  display: block;
  width: 100%;
  min-height: min(82vh, 1100px);
  height: 82vh;
  border: 0;
  background: var(--white);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 2.75rem 0 calc(1.35rem + var(--safe-bottom));
  background: var(--navy);
  color: rgba(255, 255, 255, .6);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.75rem;
}

.site-footer__brand {
  color: var(--white);
  font: 700 1.35rem var(--heading);
}

.site-footer p {
  max-width: 44ch;
  font-size: .84rem;
}

.site-footer h2 {
  margin-bottom: .7rem;
  color: var(--white);
  font: 700 var(--text-label) var(--body);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li { margin-top: .45rem; }

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  color: var(--teal-soft);
  font-size: .9rem;
}

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

.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.site-footer__bottom p {
  margin: 0;
  font-size: .74rem;
}

/* ==========================================================================
   Homepage refinements
   ========================================================================== */

.hero__resume-link {
  display: inline-flex;
  margin-top: 1.15rem;
  color: var(--teal-soft);
}

.hero__resume-link:hover { color: var(--teal); }

/* Compact capability statements — simple rows, not cards */
.capability-list {
  display: grid;
  gap: 0;
  margin-top: 1.6rem;
}

.capability-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .8rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}

.capability-list li:first-child { border-top: 0; padding-top: 0; }

.capability-list li::before {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: .5rem;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

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

.capability-card .skill-tags { margin-top: .85rem; }

/* Two-up project grid for homepage secondary projects */
.project-grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Text-led experience split (intro copy + timeline) */
.experience-layout--split { grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr); }

.experience-layout--split .experience-intro { padding-top: .25rem; }

/* Wider footer grid for full sitemap + contact + social columns */
.site-footer__grid--wide { grid-template-columns: 1.4fr 1fr 1fr 1fr; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.back-to-top {
  color: rgba(255, 255, 255, .6);
  font-size: .74rem;
  font-weight: 600;
}

.back-to-top:hover { color: var(--teal-soft); }

/* --------------------------------------------------------------------------
   Resume document (view-only reading page)
   -------------------------------------------------------------------------- */

.resume-document {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.resume-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.resume-meta div {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.resume-meta strong {
  color: var(--teal-dark);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.resume-meta a,
.resume-meta span {
  color: var(--text);
  font-size: .92rem;
  font-weight: 600;
}

.resume-meta a:hover { color: var(--teal-dark); }

.resume-section {
  padding-top: 2.25rem;
  margin-top: 2.25rem;
  border-top: 1px solid var(--border);
}

.resume-section:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.resume-section h2 {
  margin: .35rem 0 1.15rem;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
}

.resume-lead {
  max-width: 68ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.resume-block + .resume-block {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.resume-block__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .4rem 1rem;
  margin-bottom: .6rem;
}

.resume-block h3 {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
}

.resume-block__org {
  margin: .2rem 0 0;
  color: var(--muted);
  font-size: .85rem;
}

.resume-block time {
  flex: 0 0 auto;
  color: var(--teal-dark);
  font-size: .78rem;
  font-weight: 700;
}

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

.resume-project {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.resume-project h3 {
  margin: 0 0 .3rem;
  font-family: var(--body);
  font-size: .95rem;
  font-weight: 700;
}

.resume-project p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
}

.resume-contact-list {
  display: grid;
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resume-contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .75rem;
  align-items: baseline;
  font-size: .92rem;
}

.resume-contact-list strong {
  flex: 0 0 auto;
  min-width: 90px;
  color: var(--teal-dark);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Article / Insight page
   -------------------------------------------------------------------------- */

.article-hero__media {
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--navy-panel);
}

.article-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.article-hero__panel {
  padding: clamp(1.75rem, 4vw, 2.5rem) 0 clamp(2rem, 5vw, 3rem);
  background: var(--navy);
  color: rgba(255, 255, 255, .72);
}

.article-hero__panel .breadcrumbs {
  justify-content: flex-start;
  margin-bottom: 1.1rem;
}

.article-hero__category {
  display: inline-block;
  margin-bottom: .9rem;
  padding: .32rem .75rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .1);
  color: var(--teal-soft);
  font-size: var(--text-label);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.article-hero__panel h1 {
  max-width: 22ch;
  color: var(--white);
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
}

.article-hero__intro {
  max-width: 62ch;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 1.08rem;
}

.article-body {
  max-width: 700px;
  margin: 0 auto;
}

.prose p {
  margin-bottom: 1.15rem;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.75;
}

.prose h2 {
  margin: 2.5rem 0 1rem;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
}

.prose > *:first-child { margin-top: 0; }

.prose .capability-list { margin: 1.5rem 0 2.25rem; }

.home-hero__stats--three,
.hero__stats--three {
  max-width: 28rem;
}

.home-hero__stats--three li,
.hero__stats--three li {
  flex: 1 1 0;
  text-align: left;
}

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

.project-cover {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--navy-2);
}

.featured-project__visual.project-cover {
  border: 0;
}

.project-cover__img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .3s var(--ease);
}

.project-card:hover .project-cover__img,
.featured-project:hover .project-cover__img {
  transform: scale(1.03);
}

.project-card__visual.project-cover {
  padding: 0;
  align-items: stretch;
  background: transparent;
  color: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.project-dialog__cover {
  margin: 0 1.35rem 0;
  border-radius: var(--radius-sm);
}

.project-dialog__cover .project-cover__img {
  position: absolute;
}

.article-quote {
  margin: 2.75rem 0;
  padding: 1.75rem clamp(1.5rem, 4vw, 2.5rem);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--teal-tint);
  color: var(--navy);
  font-family: var(--heading);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-style: italic;
  line-height: 1.45;
}

/* ==========================================================================
   Responsive system
   Breakpoints: 1023 (tablet), 767 (phone), 480 (narrow), 374 (compact)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tablet / small laptop — max 1023px
   -------------------------------------------------------------------------- */

@media (max-width: 1023px) {
  :root {
    --header-offset: 84px;
    --page-gutter: 1.25rem;
  }

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

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

  .about-grid {
    grid-template-columns: minmax(220px, .75fr) 1fr;
    gap: 2rem;
  }

  .home-hero,
  .hero {
    min-height: auto;
    padding:
      calc(var(--header-offset) + 1.25rem)
      var(--page-gutter)
      1.5rem;
  }

  .home-hero__layout,
  .hero__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    min-height: auto;
    gap: 1.35rem;
  }

  .home-hero__content,
  .hero__content {
    padding-bottom: 1.5rem;
    max-width: none;
  }

  .home-hero h1,
  .hero h1 { font-size: clamp(2.15rem, 4.2vw, 3rem); }

  .home-hero__lead,
  .hero__lead { max-width: none; }

  .home-hero__visual,
  .hero__visual {
    height: auto;
    min-height: 0;
    align-self: end;
  }

  .home-hero__portrait,
  .hero__portrait { max-width: 300px; }

  .home-hero__portrait img,
  .hero__portrait img {
    max-width: 280px;
    max-height: min(54vh, 420px);
  }

  .home-hero__stats,
  .hero__stats {
    max-width: none;
    flex-wrap: wrap;
  }

  .site-nav__links a {
    padding-inline: .4rem;
    font-size: var(--text-label);
  }

  .site-nav__cv { display: none; }

  /* Mobile navigation — floating bar + premium overlay */
  .menu-toggle {
    display: grid;
    place-items: center;
    order: 2;
    margin-left: auto;
  }

  .site-header__float,
  .site-header__inner {
    position: relative;
    z-index: 1002;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: .75rem;
    width: min(calc(100% - (var(--page-gutter) * 2)), 1100px);
    padding: 10px 14px;
    border-radius: 16px;
  }

  .site-header:not(.site-header--inner) .site-header__float,
  .site-header:not(.site-header--inner) .site-header__inner {
    background: rgba(7, 24, 38, .94);
    border-color: rgba(255, 255, 255, .2);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  }

  .site-header__brand {
    order: 1;
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 56px);
  }

  .site-logo {
    height: 36px;
    max-width: min(180px, 62vw);
  }

  .site-nav {
    order: 3;
    position: fixed;
    z-index: 1001;
    inset: 0;
    flex: none;
    width: auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding:
      calc(var(--header-offset) + .85rem + var(--safe-top))
      max(var(--page-gutter), var(--safe-left))
      max(1.5rem, var(--safe-bottom))
      max(var(--page-gutter), var(--safe-right));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(7, 24, 38, .55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .24s var(--ease), visibility .24s var(--ease);
  }

  .menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav__panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    padding: 1rem 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-10px);
    transition: transform .24s var(--ease);
  }

  .menu-open .site-nav__panel { transform: none; }

  .site-nav__links {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    gap: .15rem;
  }

  .site-nav__links a,
  .site-header .site-nav__links a,
  .site-header--inner .site-nav__links a {
    min-height: var(--tap-min);
    padding: .85rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
  }

  .site-nav__links a:hover,
  .site-header--inner .site-nav__links a:hover {
    color: var(--teal-dark);
    background: var(--teal-tint);
  }

  .site-nav__links a.is-active,
  .site-header--inner .site-nav__links a.is-active {
    background: var(--teal-tint);
    color: var(--teal-dark);
  }

  .site-nav__links a.is-active::after { display: none; }

  .site-nav__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: .65rem;
    margin-top: .85rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }

  .site-nav__cv {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--tap-min);
    color: var(--muted);
    font-size: .95rem;
  }

  .site-nav .btn--nav {
    width: 100%;
    min-height: var(--tap-min);
    border-color: transparent;
    background: var(--teal);
    color: var(--navy);
  }

  .site-nav .btn--nav:hover {
    background: var(--teal-soft);
    color: var(--navy);
  }

  .site-nav__social {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .9rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }

  .site-nav__social a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap-min);
    color: var(--teal-dark);
    font-size: .92rem;
    font-weight: 600;
  }

  /* Keep home float dark so the light logo stays visible; light bars stay light */
  .menu-open .site-header:not(.site-header--inner) .site-header__inner,
  .menu-open .site-header:not(.site-header--inner) .site-header__float {
    background: rgba(7, 24, 38, .96);
    border-color: rgba(255, 255, 255, .14);
    box-shadow: var(--shadow-float);
  }

  .menu-open .site-header:not(.site-header--inner) .menu-toggle span {
    background: var(--white);
  }

  .menu-open .site-header--inner .site-header__float,
  .menu-open .site-header--inner .site-header__inner {
    background: rgba(255, 255, 255, .98);
    border-color: var(--border);
    box-shadow: var(--shadow-md);
  }

  .menu-open .site-header--inner .menu-toggle span {
    background: var(--navy);
  }
}

/* --------------------------------------------------------------------------
   Phone / tablet portrait — max 767px
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  :root {
    --header-offset: 76px;
    --page-gutter: 1.25rem;
    --section-y: 3.5rem;
  }

  .about-grid,
  .capability-grid,
  .leadership-grid,
  .insights-panel,
  .insight-feature,
  .featured-project,
  .experience-layout,
  .experience-layout--split,
  .contact-cta,
  .project-grid,
  .project-grid--pair,
  .project-grid--trio,
  .services-grid,
  .skills-grid,
  .education-grid,
  .resume-projects,
  .site-footer__grid,
  .site-footer__grid--wide {
    grid-template-columns: 1fr;
  }

  .capability-card:nth-child(odd) { border-right: 0; }

  .capability-card:not(:last-child) { border-bottom: 1px solid var(--border); }

  .about-media {
    position: static;
    max-width: 100%;
  }

  .about-grid {
    display: flex;
    flex-direction: column;
  }

  .about-content { display: contents; }

  .about-content > .eyebrow { order: 1; }

  .about-content > h2 { order: 2; }

  .about-media { order: 3; margin-bottom: 1.25rem; }

  .about-content > p,
  .about-content > .capability-list,
  .about-content > .btn,
  .about-content > .btn-group,
  .about-content > .text-link,
  .about-content > .about-actions {
    order: 4;
  }

  .about-photo {
    aspect-ratio: 4 / 5;
    max-height: 420px;
  }

  .about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "visual" "methods" "actions";
    gap: 2rem;
  }

  .contact-visual__frame {
    min-height: 0;
    overflow: hidden;
    padding-bottom: 1.5rem;
  }

  .contact-visual__glow {
    right: 0;
    top: 0;
    width: 55%;
  }

  .contact-visual__media--main {
    position: relative;
    width: min(100%, 360px);
    margin-inline: auto;
  }

  .contact-visual__media--accent {
    width: min(46%, 180px);
    right: 4%;
    bottom: -6%;
  }

  .contact-cta__actions { justify-content: flex-start; }

  .experience-media {
    position: static;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
  }

  .experience-media figure:last-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }

  .service-row {
    grid-template-columns: auto 1fr;
    gap: .85rem 1rem;
  }

  .service-row__link {
    display: inline-flex;
    grid-column: 2;
    margin-top: .15rem;
    min-height: var(--tap-min);
    align-items: center;
  }

  /* Homepage hero — deliberate mobile composition */
  .home-hero,
  .hero {
    overflow: visible;
    padding:
      calc(var(--header-offset) + 1.25rem)
      var(--page-gutter)
      2rem;
  }

  .home-hero__grid,
  .hero__grid { opacity: .35; }

  .home-hero__layout,
  .hero__layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: auto;
  }

  .home-hero__content,
  .hero__content { display: contents; }

  .home-hero__eyebrow,
  .hero__eyebrow {
    order: 1;
    margin: 0 0 .75rem;
    font-size: var(--text-label);
  }

  .home-hero h1,
  .hero h1 {
    order: 2;
    margin: 0 0 .9rem;
    font-size: clamp(2.15rem, 8.5vw, 3.1rem);
  }

  .home-hero__title-line,
  .hero__title-line {
    display: inline;
  }

  .home-hero__title-line::after,
  .hero__title-line::after {
    content: " ";
  }

  .home-hero__lead,
  .hero__lead {
    order: 3;
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
  }

  .home-hero__actions,
  .hero__actions {
    order: 4;
    flex-direction: column;
    margin-top: 1.25rem;
    width: 100%;
  }

  .home-hero__actions .btn,
  .hero__actions .btn { width: 100%; }

  .hero__resume-link {
    order: 5;
    margin-top: .85rem;
    min-height: var(--tap-min);
    align-items: center;
  }

  .home-hero__visual,
  .hero__visual {
    order: 6;
    width: auto;
    max-width: 280px;
    height: auto;
    min-height: 0;
    margin: 1.35rem auto 0;
    align-self: center;
    padding-block: .5rem;
  }

  .home-hero__portrait,
  .hero__portrait { max-width: 260px; }

  .home-hero__portrait img,
  .hero__portrait img {
    max-width: 260px;
    max-height: min(42vh, 360px);
    object-position: center top;
  }

  .home-hero__stats,
  .hero__stats,
  .home-hero__stats--three,
  .hero__stats--three {
    order: 7;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: none;
    margin-top: 1.5rem;
    padding-top: 1.1rem;
  }

  .home-hero__stats li,
  .hero__stats li,
  .home-hero__stats--three li,
  .hero__stats--three li {
    padding: .8rem 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  .home-hero__stats li:last-child,
  .hero__stats li:last-child,
  .home-hero__stats--three li:last-child,
  .hero__stats--three li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

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

  .project-dialog__header { padding: 1.25rem 3.25rem 1rem 1.1rem; }

  .project-dialog__cover { margin-inline: 1rem; }

  .timeline {
    margin-left: .2rem;
    padding-left: 1.15rem;
  }

  .timeline-item { padding-left: .55rem; }

  .timeline-item::before { left: -1.52rem; }

  .timeline-item__head { display: block; }

  .timeline-item time {
    display: block;
    margin-top: .35rem;
  }

  .skills-compact__row {
    flex-direction: column;
    align-items: flex-start;
    gap: .55rem;
  }

  .skills-compact__row h3 { min-width: 0; }

  .btn-group:not(.home-hero__actions):not(.hero__actions) {
    flex-direction: column;
  }

  .btn-group:not(.home-hero__actions):not(.hero__actions) .btn { width: 100%; }

  .filter-bar {
    gap: .5rem;
    padding-bottom: .35rem;
    margin-inline: calc(var(--page-gutter) * -1);
    padding-inline: var(--page-gutter);
  }

  .filter-btn {
    min-height: var(--tap-min);
    padding-inline: 1rem;
    font-size: .88rem;
  }

  .page-hero {
    padding-top: calc(var(--header-offset) + 2rem);
    padding-bottom: 2.25rem;
  }

  .page-hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.55rem);
  }

  .contact-row {
    gap: .85rem;
    min-height: var(--tap-min);
    padding-block: 1rem;
  }

  .contact-row__arrow {
    opacity: .55;
  }

  a.contact-row:hover,
  a.contact-row:focus-visible {
    padding-inline: .65rem;
    margin-inline: -.65rem;
  }

  .contact-row__icon {
    font-size: var(--text-label);
  }

  .contact-row__text strong {
    font-size: var(--text-label);
  }

  .site-footer__grid,
  .site-footer__grid--wide {
    gap: 1.75rem;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: .85rem;
  }

  .back-to-top {
    min-height: var(--tap-min);
    align-items: center;
    display: inline-flex;
    font-size: .88rem;
  }

  .section-action .btn,
  .contact-cta__actions .btn {
    width: 100%;
    max-width: 24rem;
  }

  .leadership-card,
  .insights-panel,
  .section--leadership .capability-card {
    padding: 1.25rem;
  }

  .article-hero__media { aspect-ratio: 4 / 3; }

  .article-hero__panel h1 { max-width: 100%; }

  .article-hero__intro,
  .prose p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .resume-document {
    padding: 1.35rem 1.15rem;
    border-radius: var(--radius-sm);
  }

  .resume-meta {
    gap: 1rem 1.5rem;
  }

  .resume-meta strong,
  .resume-contact-list strong {
    font-size: var(--text-label);
  }

  .resume-block__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .cv-viewer__frame {
    height: min(78vh, 720px);
  }

  .project-card h3,
  .featured-project__body h3 {
    font-size: clamp(1.2rem, 4.5vw, 1.45rem);
  }

  .skill-tags {
    gap: .35rem;
  }

  .skill-tags span {
    font-size: .78rem;
  }
}

/* --------------------------------------------------------------------------
   Narrow phones — max 480px
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
  :root {
    --page-gutter: 1rem;
    --header-offset: 72px;
    --section-y: 3.15rem;
  }

  .site-header__float,
  .site-header__inner {
    width: min(calc(100% - (var(--page-gutter) * 2)), 1100px);
    margin-top: calc(10px + var(--safe-top));
    padding: 9px 12px;
    border-radius: 14px;
  }

  .site-logo {
    height: 34px;
    max-width: min(170px, 60vw);
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .home-hero h1,
  .hero h1 { font-size: clamp(1.95rem, 9vw, 2.45rem); }

  .home-hero__visual,
  .hero__visual { max-width: 240px; }

  .home-hero__portrait,
  .hero__portrait { max-width: 220px; }

  .home-hero__portrait img,
  .hero__portrait img {
    max-width: 220px;
    max-height: min(36vh, 300px);
  }

  .contact-visual__media--accent { width: 48%; }

  .contact-cta__actions,
  .contact-inline {
    flex-direction: column;
    width: 100%;
  }

  .contact-cta__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .credibility-row__inner { gap: 1rem; }

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

  .experience-media figure:last-child {
    grid-column: auto;
  }

  .page-hero h1 { font-size: clamp(1.8rem, 9vw, 2.25rem); }

  .btn {
    white-space: normal;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Compact phones — max 374px
   -------------------------------------------------------------------------- */

@media (max-width: 374px) {
  :root {
    --page-gutter: 0.875rem;
    --header-offset: 68px;
  }

  .home-hero h1,
  .hero h1 { font-size: clamp(1.8rem, 9.5vw, 2.15rem); }

  .home-hero__lead,
  .hero__lead { font-size: .95rem; }

  .site-nav__panel { padding: .85rem .75rem 1rem; }

  .project-card,
  .featured-project__body {
    padding-inline: 1rem;
  }
}

/* --------------------------------------------------------------------------
   Short desktop viewports
   -------------------------------------------------------------------------- */

@media (max-height: 820px) and (min-width: 768px) {
  .home-hero h1,
  .hero h1 { font-size: clamp(2rem, 3.8vw, 3rem); }

  .home-hero__lead,
  .hero__lead { font-size: .92rem; }

  .home-hero__content,
  .hero__content { padding-bottom: 1.25rem; }

  .home-hero__actions,
  .hero__actions { margin-top: 1.1rem; }

  .home-hero__stats,
  .hero__stats {
    margin-top: 1.35rem;
    padding-top: .85rem;
  }

  .home-hero__visual,
  .hero__visual { height: auto; min-height: 0; }

  .home-hero__portrait img,
  .hero__portrait img { max-height: min(56vh, 440px); }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

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

  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .project-card:hover,
  .service-card:hover,
  .skill-card:hover { transform: none; }

  .site-nav,
  .site-nav__panel { transition: none; }
}
