/* Theme tokens: dark defaults; light overrides live in body[data-theme="light"]. */
:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-soft: #0c0c0d;
  --bg-elevated: #141414;
  --surface: rgba(22, 22, 23, 0.8);
  --surface-strong: rgba(30, 30, 31, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.045);
  --surface-muted: rgba(255, 255, 255, 0.028);
  --line: rgba(232, 238, 247, 0.12);
  --line-strong: rgba(232, 238, 247, 0.22);
  --line-soft: rgba(232, 238, 247, 0.075);
  --text: #f7f8fb;
  --text-strong: #ffffff;
  --muted: rgba(210, 218, 229, 0.76);
  --muted-strong: rgba(236, 241, 248, 0.9);
  --salesforce: #6eaedb;
  --salesforce-soft: rgba(110, 174, 219, 0.14);
  --salesforce-glow: rgba(110, 174, 219, 0.18);
  --teal: #ffffff;
  --gold: #b8bcc4;
  --rose: #6f747d;
  --success: #85dca8;
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.38);
  --shadow-md: 0 16px 38px rgba(0, 0, 0, 0.24);
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.18);
  --glow: 0 0 0 1px rgba(255, 255, 255, 0.02), 0 20px 42px rgba(110, 174, 219, 0.055);
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --max-width: 1180px;
  --nav-height: 68px;
  --section-gap: 1.65rem;
  --card-padding: 1.05rem;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f7f7;
  --bg-soft: #eeeeef;
  --bg-elevated: #ffffff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-soft: rgba(13, 17, 23, 0.045);
  --surface-muted: rgba(13, 17, 23, 0.026);
  --line: rgba(17, 24, 39, 0.12);
  --line-strong: rgba(17, 24, 39, 0.2);
  --line-soft: rgba(17, 24, 39, 0.075);
  --text: #111827;
  --text-strong: #06080d;
  --muted: rgba(70, 80, 96, 0.82);
  --muted-strong: rgba(17, 24, 39, 0.88);
  --salesforce: #2f78ad;
  --salesforce-soft: rgba(47, 120, 173, 0.12);
  --salesforce-glow: rgba(47, 120, 173, 0.16);
  --shadow-lg: 0 24px 62px rgba(16, 24, 40, 0.13);
  --shadow-md: 0 14px 34px rgba(16, 24, 40, 0.09);
  --shadow-sm: 0 8px 20px rgba(16, 24, 40, 0.08);
  --glow: 0 0 0 1px rgba(17, 24, 39, 0.025), 0 18px 34px rgba(47, 120, 173, 0.065);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  scrollbar-gutter: stable;
  overscroll-behavior-y: none;
}

html.is-script-scrolling {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(110, 174, 219, 0.07), transparent 32%),
    linear-gradient(225deg, rgba(150, 150, 150, 0.075), transparent 36%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 48%, var(--bg) 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.58;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s var(--ease-soft), color 0.3s var(--ease-soft);
  overscroll-behavior-x: none;
}

body.modal-open {
  overflow: hidden;
}

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

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

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

button {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}

ul {
  padding-left: 1.05rem;
}

p,
li,
span,
strong,
a,
h1,
h2,
h3,
h4 {
  overflow-wrap: anywhere;
}

::selection {
  background: rgba(110, 174, 219, 0.28);
  color: var(--text-strong);
}

.page-shell {
  position: relative;
  isolation: isolate;
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth), filter 0.8s var(--ease-smooth);
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  width: 260px;
  height: 2px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(110, 174, 219, 0.08) 16%, rgba(210, 230, 246, 0.62) 58%, rgba(255, 255, 255, 0.98) 78%, transparent 100%);
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.28),
    0 0 24px rgba(110, 174, 219, 0.3);
  opacity: 0;
  transform: translate3d(0, 0, 0) rotate(-30deg);
  animation: shootingStar 6.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.page-shell::before {
  top: 15%;
  right: -270px;
}

.page-shell::after {
  top: 36%;
  right: -210px;
  width: 190px;
  animation-delay: 2.9s;
  animation-duration: 8.2s;
}

body[data-theme="light"] .page-shell::before,
body[data-theme="light"] .page-shell::after {
  display: none;
}

@keyframes shootingStar {
  0%,
  54% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-30deg);
  }
  59% {
    opacity: 1;
  }
  74% {
    opacity: 0;
    transform: translate3d(-72vw, 50vh, 0) rotate(-30deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(-72vw, 50vh, 0) rotate(-30deg);
  }
}

body.intro-active {
  overflow: hidden;
}

body.intro-active .page-shell {
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  filter: blur(10px);
}

.ambient-layer,
.ambient-grid,
.ambient-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient-layer {
  z-index: -3;
  background:
    linear-gradient(115deg, transparent 0%, rgba(110, 174, 219, 0.07) 36%, transparent 60%),
    linear-gradient(245deg, transparent 10%, rgba(150, 150, 150, 0.06) 42%, transparent 68%);
  filter: blur(20px);
  opacity: 0.9;
}

.ambient-grid {
  z-index: -2;
  opacity: 0.1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 78%, transparent 100%);
}

body[data-theme="light"] .ambient-grid {
  opacity: 0.32;
  background-image:
    linear-gradient(to right, rgba(17, 24, 39, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 24, 39, 0.04) 1px, transparent 1px);
}

.ambient-noise {
  z-index: -1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.site-container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.progress-bar-shell {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 80;
  width: 100%;
  height: 3px;
  background: transparent;
}

.progress-bar-shell span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #ffffff, var(--salesforce), #737780);
  box-shadow: 0 0 16px var(--salesforce-glow);
  transition: width 0.16s linear;
}

.welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(110, 174, 219, 0.11), transparent 35%),
    linear-gradient(235deg, rgba(150, 150, 150, 0.09), transparent 40%),
    linear-gradient(180deg, #050505 0%, #151515 56%, #080808 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s var(--ease-smooth), visibility 0.7s var(--ease-smooth);
}

.welcome-screen::before,
.welcome-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.welcome-screen::before {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent),
    linear-gradient(0deg, transparent, rgba(110, 174, 219, 0.055), transparent);
  transform: skewY(-6deg);
  opacity: 0.6;
}

.welcome-screen::after {
  border: 1px solid rgba(255, 255, 255, 0.08);
  inset: 24px;
  opacity: 0.55;
}

body.intro-complete .welcome-screen {
  opacity: 0;
  visibility: hidden;
}

.welcome-screen-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: 3rem;
  width: min(100%, 1100px);
}

.welcome-copy-block {
  position: relative;
  display: grid;
  gap: 0.85rem;
  justify-items: start;
  padding: 1.25rem 0 1.25rem 1.35rem;
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  filter: blur(9px);
  transition: opacity 0.72s var(--ease-smooth), transform 0.72s var(--ease-smooth), filter 0.72s var(--ease-smooth);
}

.welcome-copy-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, #ffffff, #8b8f98, transparent);
}

.welcome-screen.is-language-visible .welcome-copy-block {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.welcome-copy-meta {
  display: grid;
  gap: 0.2rem;
  min-width: min(100%, 240px);
  padding: 0.62rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  backdrop-filter: blur(14px);
}

.welcome-meta-label {
  color: rgba(218, 227, 239, 0.72);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.welcome-word,
.welcome-greeting-word {
  margin: 0;
  color: #ffffff;
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  transition: opacity 0.38s ease, transform 0.38s ease, filter 0.38s ease;
}

.welcome-word {
  font-size: 4.9rem;
}

.welcome-greeting-word {
  font-size: 6rem;
  max-width: 10ch;
}

.welcome-greeting-word.is-switching,
.welcome-language.is-switching,
.welcome-country.is-switching {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  filter: blur(5px);
}

.welcome-language,
.welcome-country {
  margin: 0;
  min-height: 1.45em;
  color: rgba(246, 249, 253, 0.94);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  transition: opacity 0.44s ease, transform 0.44s ease, filter 0.44s ease;
}

.welcome-country {
  color: rgba(246, 249, 253, 0.78);
  font-weight: 600;
}

.welcome-panel {
  display: grid;
  gap: 0.75rem;
  width: min(100%, 560px);
  padding: 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(12, 17, 24, 0.78);
  box-shadow: 0 34px 84px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(20px);
  animation: welcomePanelIn 0.72s var(--ease-smooth) 0.18s both;
}

.welcome-image-frame {
  position: relative;
  width: 100%;
  height: clamp(220px, 34vh, 340px);
  margin: 0 0 0.45rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.welcome-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-panel strong {
  color: #ffffff;
}

.welcome-panel p {
  max-width: 44ch;
  color: rgba(218, 227, 239, 0.74);
  font-size: 0.93rem;
  line-height: 1.7;
}

.welcome-panel-line {
  width: 74px;
  height: 1px;
  background: linear-gradient(90deg, #ffffff, #8b8f98);
}

@keyframes welcomePanelIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  padding-top: 16px;
  transition: opacity 0.28s var(--ease-soft), transform 0.28s var(--ease-soft);
  will-change: opacity, transform;
}

.site-header.nav-hidden {
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
}

.navbar-glass {
  position: relative;
  min-height: var(--nav-height);
  padding: 0.6rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    color-mix(in srgb, var(--bg) 82%, transparent);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.navbar-glass::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, #ffffff, var(--salesforce), #8d929a, #4f5359);
}

.navbar-brand,
.navbar-collapse {
  position: relative;
  z-index: 1;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, var(--salesforce-soft), rgba(120, 120, 120, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: var(--text-strong);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-copy {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-copy small {
  display: block;
  margin-bottom: 0.08rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand-copy span {
  display: block;
  color: var(--text-strong);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: 0;
}

.navbar-toggler {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.72rem;
  color: var(--text);
  box-shadow: none;
}

.navbar-toggler:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px var(--salesforce-soft);
}

.navbar-toggler-icon {
  width: 1.2rem;
  height: 1.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(247,248,251,0.92)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 8h22M4 15h22M4 22h22'/%3E%3C/svg%3E");
}

body[data-theme="light"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(17,24,39,0.92)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 8h22M4 15h22M4 22h22'/%3E%3C/svg%3E");
}

.navbar-nav {
  gap: 0.18rem;
}

.nav-link {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  padding: 0.52rem 0.58rem !important;
  border-radius: 999px;
  transition: color 0.2s var(--ease-soft), background 0.2s var(--ease-soft), transform 0.2s var(--ease-soft);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  transform: translateY(-1px);
}

.nav-theme-item {
  display: flex;
  align-items: center;
  margin-left: 0.24rem;
}

.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    var(--surface);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.2s var(--ease-soft), border-color 0.2s var(--ease-soft), background 0.2s var(--ease-soft);
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.theme-toggle-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.theme-icon-sun,
.theme-icon-moon {
  position: absolute;
  font-size: 0.95rem;
  transition: opacity 0.24s var(--ease-soft), transform 0.24s var(--ease-soft), color 0.24s var(--ease-soft);
}

.theme-icon-sun {
  color: #ffd166;
  text-shadow: 0 0 14px rgba(255, 209, 102, 0.26);
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.theme-icon-moon {
  color: var(--salesforce);
  text-shadow: 0 0 14px var(--salesforce-glow);
  opacity: 0;
  transform: scale(0.72) rotate(-18deg);
}

body[data-theme="light"] .theme-icon-sun {
  opacity: 0;
  transform: scale(0.72) rotate(18deg);
}

body[data-theme="light"] .theme-icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

main {
  padding-bottom: 52px;
}

section {
  scroll-margin-top: 104px;
}

section:focus {
  outline: none;
}

section:focus-visible {
  outline: 2px solid var(--salesforce);
  outline-offset: 8px;
  border-radius: var(--radius-lg);
}

.hero-section {
  padding: 3.35rem 0 1.55rem;
}

.section-shell {
  padding: var(--section-gap) 0;
}

.hero-layout,
.about-layout,
.impact-layout,
.trailblazer-layout,
.contact-layout,
.experience-layout {
  display: grid;
  gap: 0.9rem;
}

.hero-layout {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  align-items: stretch;
}

/* Shared glass surface system used by cards, pills, modals, and links. */
.glass-card,
.content-card,
.gallery-card,
.cert-card,
.metric-card,
.info-pill,
.metric-highlight,
.contact-item,
.list-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.026)),
    var(--surface);
  box-shadow: var(--shadow-md), var(--glow);
  backdrop-filter: blur(16px);
}

body[data-theme="light"] .glass-card,
body[data-theme="light"] .content-card,
body[data-theme="light"] .gallery-card,
body[data-theme="light"] .cert-card,
body[data-theme="light"] .metric-card,
body[data-theme="light"] .info-pill,
body[data-theme="light"] .metric-highlight,
body[data-theme="light"] .contact-item,
body[data-theme="light"] .list-item,
body[data-theme="light"] .navbar-glass {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.7)),
    var(--surface);
}

.glass-card,
.content-card {
  position: relative;
  overflow: hidden;
}

.glass-card::before,
.content-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  pointer-events: none;
}

.glass-card > *,
.content-card > * {
  position: relative;
  z-index: 1;
}

.glass-card,
.content-card,
.cert-card,
.gallery-card,
.metric-card,
.info-pill,
.metric-highlight,
.contact-item,
.icon-link,
.filter-chip,
.btn-custom {
  transition: transform 0.22s var(--ease-soft), border-color 0.22s var(--ease-soft), background 0.22s var(--ease-soft), box-shadow 0.22s var(--ease-soft);
}

.glass-card:hover,
.content-card:hover,
.cert-card:hover,
.gallery-card:hover,
.metric-card:hover,
.info-pill:hover,
.metric-highlight:hover,
.contact-item:hover,
.icon-link:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.hero-card-primary,
.hero-card-secondary,
.content-card {
  padding: var(--card-padding);
}

.hero-card-primary {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, #ffffff, var(--salesforce), #8b8f98);
}

.hero-title {
  position: relative;
  max-width: 12ch;
  color: var(--text-strong);
  font-size: 3.1rem;
  line-height: 1;
  letter-spacing: 0;
}

.hero-lead {
  margin-top: 0.9rem;
  max-width: 68ch;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-support {
  margin-top: 0.75rem;
  max-width: 62ch;
  color: var(--muted-strong);
  font-size: 0.84rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  margin-top: 1.15rem;
}

.btn-custom {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.66rem 0.92rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
}

.btn-custom:hover {
  color: var(--text-strong);
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
}

.btn-custom.btn-solid {
  border-color: transparent;
  background: linear-gradient(135deg, #ffffff, #d9e8f3 58%, var(--salesforce));
  color: #041018;
  box-shadow: 0 16px 32px var(--salesforce-glow);
}

.btn-custom.btn-solid:hover {
  background: linear-gradient(135deg, #ffffff, #eef6fb 58%, #8fc4e8);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.metric-card {
  padding: 0.78rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.metric-card strong {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--text-strong);
  font-size: 0.96rem;
  line-height: 1.1;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.45;
}

.hero-card-secondary {
  display: grid;
  align-content: start;
  gap: 0.9rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  justify-self: start;
  padding: 0.45rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.status-pill i {
  color: var(--success);
}

/* Hero avatar stacks two portraits; theme controls which image is visible. */
.avatar-panel {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.avatar-hover-zone {
  flex: 0 0 auto;
}

.avatar-mark {
  position: relative;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), var(--shadow-sm);
}

.avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.32s var(--ease-soft);
  will-change: opacity;
  backface-visibility: hidden;
}

.avatar-img-dark {
  opacity: 1;
}

body[data-theme="light"] .avatar-img-dark {
  opacity: 0;
}

body[data-theme="light"] .avatar-img-light {
  opacity: 1;
}

.avatar-copy {
  min-width: 0;
}

.avatar-copy h2 {
  margin-bottom: 0.3rem;
  color: var(--text-strong);
  font-size: 1.05rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.avatar-copy p {
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-info-grid {
  display: grid;
  gap: 0.56rem;
}

.info-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.78rem 0.86rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.info-pill span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.info-pill strong {
  color: var(--text-strong);
  font-size: 0.8rem;
  text-align: right;
}

.info-pill-nowrap strong {
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-trailblazer-card-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.58rem;
}

.hero-trailblazer-card-row img {
  width: 100%;
  aspect-ratio: 14 / 3;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.section-heading h2 {
  color: var(--text-strong);
  font-size: 1.5rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff, var(--salesforce), #8b8f98);
}

.section-heading p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.88rem;
}

.about-layout {
  grid-template-columns: 1.12fr 0.88fr;
}

.impact-layout,
.trailblazer-layout,
.contact-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.content-card h3 {
  margin-bottom: 0.62rem;
  color: var(--text-strong);
  font-size: 0.94rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.content-card p,
.content-card li {
  color: var(--muted);
  font-size: 0.81rem;
}

.flow-top-sm {
  margin-top: 0.78rem;
}

.flow-top-md {
  margin-top: 0.95rem;
}

.soft-rule {
  height: 1px;
  margin: 0.95rem 0 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.quote-card {
  display: grid;
  align-content: space-between;
  gap: 0.95rem;
}

.quote-mark {
  width: 42px;
  height: 3px;
  margin-bottom: 0.72rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff, var(--salesforce), #747982);
}

.quote-card strong {
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.snapshot-grid,
.skills-grid,
.projects-grid,
.gallery-grid,
.certifications-grid {
  display: grid;
  gap: 0.85rem;
}

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

.skills-grid,
.projects-grid,
.certifications-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.snapshot-item,
.cert-card,
.gallery-card,
.project-card {
  height: 100%;
}

.snapshot-title {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  color: var(--text-strong);
  font-size: 0.86rem;
}

.snapshot-title i {
  color: var(--salesforce);
  font-size: 0.94rem;
}

.snapshot-item p {
  line-height: 1.58;
}

.section-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-chip,
.inline-text-button {
  cursor: pointer;
}

.filter-chip {
  min-height: 32px;
  padding: 0.4rem 0.64rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: var(--text-strong);
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: linear-gradient(135deg, var(--salesforce-soft), rgba(130, 130, 130, 0.1));
}

.inline-text-button {
  margin-top: 0.72rem;
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  padding: 0.35rem 0;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
}

.inline-text-button:hover {
  color: var(--text-strong);
}

.inline-text-button[hidden] {
  display: none !important;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
}

.chip-row-compact {
  gap: 0.4rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.46rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 0.72rem;
  line-height: 1.25;
}

.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--salesforce);
  box-shadow: 0 0 10px var(--salesforce-glow);
}

.chip-compact {
  padding: 0.36rem 0.5rem;
  font-size: 0.68rem;
}

.skill-bars {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.skill-head {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted-strong);
  font-size: 0.76rem;
}

.skill-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.skill-track span {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffffff, var(--salesforce), #747982);
  animation: loadBar 1s var(--ease-smooth) both;
}

@keyframes loadBar {
  from {
    width: 0;
    opacity: 0.3;
  }
  to {
    width: var(--value);
    opacity: 1;
  }
}

.experience-layout {
  grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr);
  align-items: start;
}

.experience-intro {
  position: sticky;
  top: 108px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0.82rem;
  padding-left: 1.15rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.32rem;
  top: 0.18rem;
  bottom: 0.18rem;
  width: 1px;
  background: linear-gradient(180deg, var(--salesforce), var(--line), #777b83);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.12rem;
  top: 1.15rem;
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, var(--salesforce));
  box-shadow: 0 0 0 4px var(--salesforce-soft);
}

.timeline-card {
  padding: 0.98rem;
}

.timeline-meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 0.72rem;
}

.timeline-meta h3 {
  margin-bottom: 0.18rem;
  font-size: 0.94rem;
}

.timeline-meta p {
  color: var(--muted);
  font-size: 0.8rem;
}

.timeline-date {
  padding: 0.36rem 0.58rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0;
}

/* Certification/project cards are filtered by JS through the .is-hidden toggle. */
.cert-card {
  display: flex;
  align-items: center;
  gap: 0.78rem;
  min-height: 78px;
  padding: 0.78rem 0.85rem;
  box-shadow: var(--shadow-sm);
}

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

.cert-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
}

.cert-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.cert-logo i {
  width: 22px;
  height: 22px;
  object-fit: contain;
  font-size: 0.92rem;
}

.cert-copy {
  min-width: 0;
}

.cert-copy h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 0.82rem;
  line-height: 1.36;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.68rem;
  margin-top: 0.85rem;
}

.metric-highlight {
  padding: 0.82rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.metric-highlight strong {
  display: block;
  margin-bottom: 0.26rem;
  color: var(--text-strong);
  font-size: 0.9rem;
}

.metric-highlight span {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.trailblazer-layout {
  --trailblazer-row-height: 82px;
  --trailblazer-row-gap: 0.42rem;
  grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
  align-items: stretch;
}

.trailblazer-profile-card,
.trailblazer-side-card {
  display: grid;
  gap: 0.78rem;
  height: 100%;
}

.trailblazer-profile-card {
  align-content: start;
}

.trailblazer-side-card {
  align-content: stretch;
}

.trailblazer-profile-top {
  display: block;
}

.trailblazer-link {
  min-width: min(100%, 190px);
  padding: 0.72rem 0.82rem;
}

.trailblazer-link span,
.contact-item span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.trailblazer-link strong,
.contact-item strong {
  color: var(--text-strong);
  font-size: 0.82rem;
}

.trailblazer-highlight {
  display: grid;
  gap: 0.12rem;
  padding: 0.58rem 0.62rem;
  box-shadow: none;
  background: transparent;
  border-color: var(--line-soft);
}

.trailblazer-highlight i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: 0.12rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--salesforce-soft), rgba(130, 130, 130, 0.1));
  color: var(--salesforce);
  font-size: 0.78rem;
}

.trailblazer-highlight strong {
  font-size: 0.76rem;
}

.trailblazer-highlight span {
  font-size: 0.66rem;
}

.trailblazer-image-highlight {
  min-height: 100%;
  align-content: center;
  justify-items: center;
}

.trailblazer-image-highlight img {
  width: min(100%, 150px);
  max-height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.22));
}

.trailblazer-side-block {
  display: grid;
  gap: 0.62rem;
  min-width: 0;
  min-height: 0;
}

.trailblazer-duo-frame {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.68rem;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.trailblazer-duo-frame .trailblazer-side-block + .trailblazer-side-block {
  padding-left: 0.68rem;
  border-left: 1px solid var(--line-soft);
}

.trailblazer-profile-card h3,
.trailblazer-side-card h3 {
  margin-bottom: 0;
  font-size: 0.84rem;
}

.trailblazer-side-card .trailblazer-side-block {
  grid-template-rows: auto minmax(0, 1fr);
}

.trailblazer-profile-card .metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.58rem;
  margin-top: 0.14rem;
}

.trailblazer-focus-shell {
  position: relative;
  padding-right: 0.78rem;
  min-height: 0;
}

.trailblazer-focus-scroll {
  position: relative;
  display: grid;
  gap: var(--trailblazer-row-gap);
  max-height: 286px;
  overflow-y: auto;
  padding-right: 0.12rem;
  scrollbar-width: none;
  mask-image: linear-gradient(to bottom, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  scroll-behavior: smooth;
}

.trailblazer-side-card .trailblazer-focus-scroll {
  height: calc((var(--trailblazer-row-height) * 3) + (var(--trailblazer-row-gap) * 2));
  min-height: 0;
  max-height: calc((var(--trailblazer-row-height) * 3) + (var(--trailblazer-row-gap) * 2));
  grid-auto-rows: var(--trailblazer-row-height);
}

.trailblazer-focus-scroll::-webkit-scrollbar {
  display: none;
}

.trailblazer-focus-rail {
  position: absolute;
  top: 8px;
  right: 0;
  bottom: 8px;
  width: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
  pointer-events: none;
}

.trailblazer-focus-thumb {
  position: absolute;
  left: 0;
  width: 100%;
  height: 72px;
  border-radius: inherit;
  background: linear-gradient(180deg, #ffffff, var(--salesforce), #747982);
  transition: transform 0.18s var(--ease-soft), height 0.18s var(--ease-soft), opacity 0.18s var(--ease-soft);
  will-change: transform, height;
}

.trailblazer-focus-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0.46rem;
  min-height: var(--trailblazer-row-height);
  padding: 0.42rem 0.5rem;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: border-color 0.2s var(--ease-soft), background 0.2s var(--ease-soft), transform 0.2s var(--ease-soft);
  animation: trailblazerFocusIn 0.56s var(--ease-smooth) forwards;
}

.trailblazer-focus-list-item:hover,
.trailblazer-focus-list-item:focus-visible,
.trailblazer-mini-card:hover,
.trailblazer-mini-card:focus-visible {
  border-color: var(--line-strong);
  background: var(--surface-muted);
  outline: none;
}

.trailblazer-focus-list-item:nth-child(2) {
  animation-delay: 0.05s;
}

.trailblazer-focus-list-item:nth-child(3) {
  animation-delay: 0.1s;
}

.trailblazer-focus-list-item:nth-child(4) {
  animation-delay: 0.15s;
}

.trailblazer-focus-list-item:nth-child(5) {
  animation-delay: 0.2s;
}

.trailblazer-focus-copy {
  display: grid;
  align-content: center;
  gap: 0.08rem;
  min-width: 0;
}

.trailblazer-focus-kicker {
  color: var(--muted);
  font-size: 0.54rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.trailblazer-focus-copy strong {
  color: var(--text-strong);
  overflow: hidden;
  font-size: 0.72rem;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trailblazer-focus-copy p {
  color: var(--muted);
  overflow: hidden;
  font-size: 0.6rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.trailblazer-mini-grid {
  display: grid;
  gap: var(--trailblazer-row-gap);
}

.trailblazer-mini-card {
  display: grid;
  align-content: center;
  gap: 0.08rem;
  min-height: var(--trailblazer-row-height);
  padding: 0.42rem 0.5rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
}

.trailblazer-mini-card strong {
  color: var(--text-strong);
  overflow: hidden;
  font-size: 0.72rem;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trailblazer-mini-card p {
  color: var(--muted);
  overflow: hidden;
  font-size: 0.6rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.trailblazer-stamps-card {
  display: grid;
  gap: 0.44rem;
  margin-top: 0.08rem;
  padding-top: 0.58rem;
  border-top: 1px solid var(--line-soft);
}

.trailblazer-stamps-heading {
  display: block;
}

.trailblazer-stamps-heading h3 {
  margin-bottom: 0;
}

.stamp-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.28rem 0.48rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--salesforce-soft), rgba(130, 130, 130, 0.1));
  color: var(--muted-strong);
  font-size: 0.6rem;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0;
}

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

.stamp-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.22rem;
  min-height: 74px;
  padding: 0.34rem 0.32rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: transparent;
  text-align: center;
  transition: transform 0.22s var(--ease-soft), border-color 0.22s var(--ease-soft), background 0.22s var(--ease-soft);
}

.stamp-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--surface-muted);
}

.stamp-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 49px;
}

.stamp-badge img {
  width: 40px;
  max-height: 47px;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.22));
}

.stamp-card strong {
  color: var(--text-strong);
  font-size: 0.58rem;
  line-height: 1.2;
}

@keyframes trailblazerFocusIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gallery rail is horizontal and feeds the modal preview in script.js. */
.gallery-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
}

.gallery-grid {
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 29%);
  grid-template-columns: none;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0.1rem 0 0.35rem;
}

.gallery-grid::-webkit-scrollbar {
  display: none;
}

.gallery-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-soft), border-color 0.2s var(--ease-soft), background 0.2s var(--ease-soft);
}

.gallery-arrow:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--surface-strong);
}

.gallery-card {
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gallery-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s var(--ease-smooth);
  backface-visibility: hidden;
  transform: translateZ(0);
}

.gallery-card:hover .gallery-media img {
  transform: translateZ(0) scale(1.045);
}

.gallery-badge {
  position: absolute;
  left: 0.72rem;
  top: 0.72rem;
  padding: 0.36rem 0.54rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(8, 9, 13, 0.62);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  backdrop-filter: blur(8px);
}

body[data-theme="light"] .gallery-badge {
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  border-color: var(--line);
}

.gallery-caption {
  padding: 0.72rem 0.8rem 0.82rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.projects-grid.is-collapsed .project-card:nth-child(n+4) {
  display: none;
}

.icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.64rem;
}

.contact-icons-only {
  justify-content: flex-start;
}

.icon-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.icon-link i {
  font-size: 1.05rem;
}

.icon-link:hover {
  color: var(--text-strong);
  background: linear-gradient(135deg, var(--salesforce-soft), rgba(130, 130, 130, 0.1));
}

footer {
  padding: 1rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
}

footer p {
  margin: 0;
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  color: var(--text);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.22s var(--ease-soft), transform 0.22s var(--ease-soft), background 0.22s var(--ease-soft);
  will-change: opacity, transform;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--surface-strong);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.62s var(--ease-smooth), transform 0.62s var(--ease-smooth);
  will-change: opacity, transform;
}

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

/* Shared modal layer for gallery preview, project list, certification list, and details. */
.gallery-modal,
.list-modal {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.gallery-modal {
  z-index: 80;
}

.gallery-modal.open,
.list-modal.open {
  display: flex;
}

.gallery-dialog,
.list-modal-dialog {
  width: min(960px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
  animation: dialogIn 0.22s var(--ease-soft);
  will-change: transform, opacity;
}

.list-modal-dialog {
  width: min(880px, 100%);
  max-height: min(78vh, 760px);
  display: grid;
  grid-template-rows: auto 1fr;
  backdrop-filter: blur(18px);
}

.projects-modal-dialog {
  width: min(1120px, 100%);
}

.trailblazer-detail-dialog {
  width: min(560px, 100%);
}

body[data-theme="light"] .gallery-dialog,
body[data-theme="light"] .list-modal-dialog {
  background: #ffffff;
}

@keyframes dialogIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-dialog-head,
.list-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.92rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.gallery-dialog-head {
  color: var(--text-strong);
  font-weight: 800;
}

.gallery-dialog-stage {
  position: relative;
  background: rgba(0, 0, 0, 0.22);
}

.gallery-close,
.list-modal-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
}

.gallery-dialog img {
  width: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
}

.gallery-modal-nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 9, 13, 0.54);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
  transition: background 0.2s var(--ease-soft), transform 0.2s var(--ease-soft);
}

.gallery-modal-nav:hover {
  background: rgba(8, 9, 13, 0.76);
}

.gallery-modal-prev {
  left: 14px;
}

.gallery-modal-next {
  right: 14px;
}

body[data-theme="light"] .gallery-modal-nav {
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  border-color: var(--line);
}

.list-modal-copy h3 {
  margin-bottom: 0.2rem;
  color: var(--text-strong);
  font-size: 1rem;
}

.list-modal-copy p {
  color: var(--muted);
  font-size: 0.82rem;
}

.list-modal-body {
  overflow: auto;
  padding: 1rem;
}

.list-grid {
  display: grid;
  gap: 0.72rem;
}

.projects-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 0.9rem;
  align-items: start;
}

.projects-modal-column {
  display: grid;
  gap: 0.72rem;
}

.projects-modal-column-accent {
  min-height: 100%;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, var(--salesforce-soft), rgba(255, 255, 255, 0.035)),
    var(--surface-muted);
}

.modal-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
}

.modal-section-heading span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.modal-section-heading h4 {
  color: var(--text-strong);
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.2;
}

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

.poc-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0.72rem;
  min-height: 100%;
  padding: 0.82rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.poc-card i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--salesforce-soft);
  color: var(--salesforce);
  font-size: 1rem;
}

.poc-card h4 {
  margin-bottom: 0.28rem;
  color: var(--text-strong);
  font-size: 0.86rem;
  line-height: 1.28;
}

.poc-card p {
  margin-bottom: 0.58rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.list-item {
  padding: 0.86rem 0.9rem;
  box-shadow: none;
}

.cert-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.78rem;
}

.list-cert-logo {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  margin-top: 0.05rem;
}

.list-cert-logo img {
  width: 32px;
  height: 32px;
}

.cert-list-item .list-item-top {
  flex: 1;
  min-width: 0;
}

.list-item-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.82rem;
}

.list-item h4 {
  margin-bottom: 0.22rem;
  color: var(--text-strong);
  font-size: 0.9rem;
  line-height: 1.3;
}

.list-item p,
.list-item li {
  color: var(--muted);
  font-size: 0.82rem;
}

.trailblazer-detail-card p {
  color: var(--muted-strong);
  line-height: 1.65;
}

.list-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0;
}

/* Breakpoints tighten the dashboard layout without changing section order. */
@media (min-width: 1200px) {
  :root {
    --max-width: 1240px;
    --section-gap: 1.9rem;
    --card-padding: 1.18rem;
  }

  .hero-section {
    padding-top: 3.7rem;
  }

  .hero-layout {
    gap: 1rem;
    grid-template-columns: minmax(0, 1.22fr) minmax(340px, 0.78fr);
  }

  .hero-title {
    max-width: 13ch;
    font-size: 3.35rem;
  }

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

  .hero-support {
    font-size: 0.88rem;
  }

  .avatar-mark {
    width: 112px;
    height: 112px;
  }

  .gallery-grid {
    grid-auto-columns: minmax(280px, 31%);
  }

  .gallery-media {
    aspect-ratio: 16 / 11;
  }

  .content-card p,
  .content-card li {
    font-size: 0.84rem;
  }
}

@media (max-width: 1199px) {
  :root {
    --max-width: 1040px;
  }

  .hero-layout,
  .experience-layout,
  .about-layout,
  .impact-layout,
  .trailblazer-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .experience-intro {
    position: static;
  }

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

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

  .hero-title {
    max-width: 18ch;
  }

  .trailblazer-profile-top {
    grid-template-columns: 1fr;
  }

  .trailblazer-link {
    justify-self: start;
  }

  .gallery-grid {
    grid-auto-columns: minmax(230px, 35%);
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  }

  .hero-title {
    max-width: 13ch;
    font-size: 2.85rem;
  }

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

  .avatar-mark {
    width: 104px;
    height: 104px;
  }
}

@media (max-width: 991px) {
  html {
    scroll-padding-top: 98px;
  }

  .site-header {
    top: 10px;
    padding-top: 12px;
  }

  .navbar-glass {
    padding: 0.8rem;
  }

  .navbar-collapse {
    margin-top: 0.82rem;
    padding-top: 0.82rem;
    border-top: 1px solid var(--line);
  }

  .navbar-nav {
    align-items: stretch !important;
  }

  .nav-link {
    padding: 0.72rem 0.75rem !important;
  }

  .nav-theme-item {
    justify-content: flex-end;
    margin-left: 0;
    margin-top: 0.4rem;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  .hero-section {
    padding-top: 3rem;
  }

  .hero-title {
    font-size: 2.65rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-card-primary {
    justify-content: start;
  }

  .avatar-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .avatar-mark {
    width: 94px;
    height: 94px;
  }

  .projects-modal-layout {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-auto-columns: minmax(250px, 46%);
  }

  .welcome-screen-inner {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    text-align: center;
  }

  .welcome-copy-block {
    justify-items: center;
    padding: 1rem 0 0;
  }

  .welcome-copy-block::before {
    top: 0;
    left: 50%;
    width: 96px;
    height: 1px;
    bottom: auto;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, #ffffff, #8b8f98, transparent);
  }

  .welcome-copy-meta,
  .welcome-panel {
    justify-items: center;
  }

  .welcome-image-frame {
    height: clamp(150px, 26vh, 240px);
  }

  .welcome-panel p {
    margin-inline: auto;
  }
}

@media (max-width: 767px) {
  :root {
    --section-gap: 1.35rem;
    --card-padding: 0.95rem;
  }

  html {
    scroll-padding-top: 92px;
  }

  body {
    font-size: 14.5px;
  }

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

  .hero-section {
    padding-top: 2.5rem;
  }

  .hero-title {
    max-width: 100%;
    font-size: 2.2rem;
  }

  .hero-lead {
    max-width: none;
    font-size: 0.87rem;
  }

  .hero-support {
    max-width: none;
    font-size: 0.82rem;
  }

  .hero-actions .btn-custom {
    width: 100%;
  }

  .hero-metrics,
  .metric-grid,
  .snapshot-grid,
  .skills-grid,
  .projects-grid,
  .certifications-grid,
  .trailblazer-profile-card .metric-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-tools {
    justify-content: flex-start;
    width: 100%;
  }

  .trailblazer-duo-frame {
    grid-template-columns: 1fr;
  }

  .trailblazer-duo-frame .trailblazer-side-block + .trailblazer-side-block {
    padding-left: 0;
    padding-top: 0.78rem;
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

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

  .trailblazer-stamps-heading {
    flex-direction: column;
  }

  .info-pill,
  .contact-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .info-pill strong,
  .contact-item strong {
    text-align: left;
  }

  .info-pill-nowrap strong {
    font-size: 0.68rem;
    max-width: 100%;
  }

  .timeline {
    padding-left: 0.98rem;
  }

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

  .timeline-date {
    white-space: normal;
  }

  .gallery-shell {
    position: relative;
    display: block;
  }

  .gallery-grid {
    grid-auto-columns: minmax(235px, 82%);
    padding-inline: 0.1rem;
  }

  .gallery-media {
    aspect-ratio: 4 / 3;
  }

  .gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    background: color-mix(in srgb, var(--bg) 76%, transparent);
  }

  .gallery-arrow:hover {
    transform: translateY(-50%);
  }

  #galleryPrev {
    left: -4px;
  }

  #galleryNext {
    right: -4px;
  }

  .trailblazer-focus-scroll {
    max-height: 278px;
  }

  .trailblazer-side-card,
  .trailblazer-duo-frame {
    height: auto;
  }

  .trailblazer-side-card .trailblazer-focus-scroll {
    height: calc((var(--trailblazer-row-height) * 3) + (var(--trailblazer-row-gap) * 2));
    min-height: 0;
    max-height: calc((var(--trailblazer-row-height) * 3) + (var(--trailblazer-row-gap) * 2));
    grid-auto-rows: var(--trailblazer-row-height);
  }

  .list-modal,
  .gallery-modal {
    padding: 0.75rem;
  }

  .list-modal-head,
  .gallery-dialog-head {
    padding: 0.82rem 0.86rem;
  }

  .list-modal-body {
    padding: 0.82rem;
  }

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

@media (max-width: 575px) {
  .site-container {
    width: min(var(--max-width), calc(100% - 16px));
  }

  .brand-copy small {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .navbar-glass {
    padding: 0.68rem;
  }

  .hero-title {
    font-size: 1.92rem;
  }

  .hero-lead,
  .hero-support,
  .content-card p,
  .content-card li {
    font-size: 0.8rem;
  }

  .metric-card,
  .info-pill,
  .contact-item,
  .cert-card {
    padding: 0.72rem;
  }

  .avatar-panel {
    align-items: flex-start;
    flex-direction: column;
    display: flex;
  }

  .avatar-mark {
    width: 88px;
    height: 88px;
  }

  .cert-card {
    min-height: auto;
  }

  .filter-chip {
    flex: 1 1 auto;
  }

  .trailblazer-focus-shell {
    padding-right: 0.65rem;
  }

  .trailblazer-focus-scroll {
    max-height: 268px;
  }

  .trailblazer-side-card .trailblazer-focus-scroll {
    max-height: calc((var(--trailblazer-row-height) * 3) + (var(--trailblazer-row-gap) * 2));
  }

  .trailblazer-focus-list-item {
    padding: 0.46rem 0.56rem;
  }

  .list-item-top {
    flex-direction: column;
  }

  .gallery-modal-nav {
    top: auto;
    bottom: 12px;
    width: 38px;
    height: 38px;
    transform: none;
  }

  .gallery-modal-nav:hover {
    transform: none;
  }

  .gallery-modal-prev {
    left: 12px;
  }

  .gallery-modal-next {
    right: 12px;
  }

  .welcome-screen {
    padding: 18px;
  }

  .welcome-screen::after {
    inset: 16px;
  }

  .welcome-screen-inner {
    gap: 0.85rem;
  }

  .welcome-copy-block {
    gap: 0.55rem;
  }

  .welcome-copy-meta {
    padding: 0.5rem 0.62rem;
  }

  .welcome-image-frame {
    height: clamp(110px, 22vh, 150px);
    margin-bottom: 0.2rem;
  }

  .welcome-word {
    font-size: 3rem;
  }

  .welcome-greeting-word {
    font-size: 3.35rem;
  }

  .welcome-panel {
    padding: 1.05rem;
  }

  .welcome-panel p {
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  body.intro-active .page-shell {
    opacity: 1;
    visibility: visible;
    transform: none;
    filter: none;
  }

  .welcome-screen {
    display: none;
  }

  .page-shell::before,
  .page-shell::after {
    display: none;
  }
}
