/* =========================================================
   Ravinder Yadav — Cybersecurity GRC & Technology Risk
   Palette derived from the portrait: charcoal, slate,
   warm gray, off-white, muted blue-gray.
   ========================================================= */

:root {
  /* Ink & slate */
  --ink:        #14171c;
  --ink-900:    #1b1f26;
  --ink-800:    #262b34;
  --slate-700:  #3a414d;
  --slate-600:  #4d5665;
  --slate-500:  #67707e;
  --slate-400:  #8b929d;
  --slate-300:  #b3b8c0;

  /* Warm neutrals */
  --paper:      #fbfaf8;
  --paper-2:    #f4f2ee;
  --paper-3:    #eceae5;
  --line:       #e3e1dc;
  --line-2:     #d6d3cd;

  /* Muted blue-gray accent (from shirt / column in portrait) */
  --accent:     #4a5f7a;
  --accent-600: #3d5069;
  --accent-300: #8ea3bd;
  --accent-100: #dde4ec;

  /* Type */
  --font-display: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Rhythm */
  --shell: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 9vw, 148px);
  --radius: 3px;
  --radius-lg: 6px;

  --shadow-sm: 0 1px 2px rgba(20, 23, 28, .04), 0 2px 8px rgba(20, 23, 28, .04);
  --shadow-md: 0 2px 6px rgba(20, 23, 28, .05), 0 12px 32px rgba(20, 23, 28, .07);
  --shadow-lg: 0 18px 50px -12px rgba(20, 23, 28, .28), 0 4px 14px rgba(20, 23, 28, .08);

  --ease: cubic-bezier(.22, .61, .36, 1);

  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.68;
  color: var(--slate-600);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px; font-size: 14px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Layout primitives ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
section[id] { scroll-margin-top: calc(var(--header-h) + 10px); }
.section--tinted { background: var(--paper-2); border-block: 1px solid var(--line); }
.section--dark { background: var(--ink); color: var(--slate-300); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, .display { font-family: var(--font-display); color: var(--ink); letter-spacing: -.022em; }

.display {
  font-size: clamp(1.9rem, 1.15rem + 2.45vw, 3.35rem);
  line-height: 1.1;
  font-weight: 600;
  max-width: 20ch;
}
.section--dark .display, .section--dark h3, .section--dark h4 { color: #fff; }

.eyebrow {
  font-size: clamp(.66rem, .6rem + .18vw, .74rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--slate-500);
}
.eyebrow .dot { color: var(--accent-300); padding-inline: 2px; }

.section-label {
  display: flex; align-items: center; gap: 12px;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 600; color: var(--slate-500);
  margin-bottom: 22px;
}
.section-label span {
  font-family: var(--font-display);
  font-size: .7rem; letter-spacing: .08em;
  color: var(--accent);
  padding-right: 12px;
  border-right: 1px solid var(--line-2);
}
.section--dark .section-label { color: var(--slate-400); }
.section--dark .section-label span { color: var(--accent-300); border-right-color: rgba(255,255,255,.16); }

.lede {
  font-size: clamp(1.02rem, .96rem + .3vw, 1.2rem);
  line-height: 1.62;
  color: var(--slate-700);
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 68px); }
.section-head--center { max-width: 800px; margin-inline: auto; text-align: center; }
.section-head--center .section-label { justify-content: center; }
.section-head__lede { margin-top: 20px; font-size: 1.03rem; color: var(--slate-500); max-width: 62ch; }
.section-head--center .section-head__lede { margin-inline: auto; }
.section--dark .section-head__lede { color: var(--slate-400); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 600; color: var(--accent);
  border-bottom: 1px solid var(--accent-100);
  padding-bottom: 2px;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--accent-600); border-bottom-color: var(--accent); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: .875rem; font-weight: 600; letter-spacing: .01em;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease),
              box-shadow .25s var(--ease);
  will-change: transform;
}
.btn--lg { padding: 15px 30px; font-size: .93rem; }

.btn--solid { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn--solid:hover { background: var(--accent-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: rgba(20,23,28,.03); transform: translateY(-2px); }

.section--dark .btn--solid { background: #fff; color: var(--ink); }
.section--dark .btn--solid:hover { background: var(--accent-100); }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 248, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(251, 250, 248, .94);
  box-shadow: 0 1px 24px rgba(20,23,28,.05);
}
.site-header__inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  background: var(--ink); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .04em;
  border-radius: var(--radius);
  transition: background-color .3s var(--ease);
}
.brand:hover .brand__mark { background: var(--accent); }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: .93rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
}
.brand__role { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-400); }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.nav__list { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 30px); }
.nav__link {
  position: relative;
  font-size: .875rem; font-weight: 500; color: var(--slate-600);
  padding-block: 6px;
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); font-weight: 600; }
.nav__cta { padding: 10px 20px; }

.nav-toggle { display: none; width: 44px; height: 44px; place-items: center; margin-right: -10px; }
.nav-toggle__bars { display: block; width: 22px; height: 12px; position: relative; }
.nav-toggle__bars i {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bars i:first-child { top: 0; }
.nav-toggle__bars i:last-child { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child { transform: translateY(-5px) rotate(-45deg); }

.nav-scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(20,23,28,.34);
  backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.nav-scrim.is-open { opacity: 1; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding-top: clamp(48px, 6vw, 92px); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 620px at 78% -6%, rgba(74, 95, 122, .13), transparent 62%),
    radial-gradient(760px 520px at 4% 12%, rgba(236, 234, 229, .9), transparent 60%),
    linear-gradient(180deg, #fdfcfa 0%, var(--paper) 46%, var(--paper-2) 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px);
  background-size: 100% 96px;
  opacity: .32;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 65%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 65%, transparent);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: center;
  padding-bottom: clamp(56px, 7vw, 110px);
}

.hero__copy { max-width: 620px; }
.hero__name {
  margin-top: 22px;
  font-size: clamp(.82rem, .76rem + .2vw, .9rem);
  font-weight: 700; letter-spacing: .34em; text-transform: uppercase;
  color: var(--slate-500);
}
.hero__headline {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.2rem + 4.6vw, 4.55rem);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--ink);
}
.hero__headline .amp { color: var(--accent-300); font-weight: 500; }
.hero__lede {
  margin-top: 26px;
  font-size: clamp(1.02rem, .95rem + .34vw, 1.19rem);
  line-height: 1.62;
  color: var(--slate-600);
  max-width: 52ch;
}
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta {
  margin-top: 42px; padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px);
}
.hero__meta li { font-size: .9rem; color: var(--ink); font-weight: 500; }
.hero__meta span {
  display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--slate-400); font-weight: 600; margin-bottom: 5px;
}

/* --- Portrait --- */
.hero__media { position: relative; justify-self: end; width: 100%; max-width: 520px; }
.hero__plate {
  position: absolute;
  inset: 8% -7% -9% 16%;
  background: linear-gradient(150deg, rgba(74,95,122,.16), rgba(74,95,122,.05) 46%, rgba(236,234,229,.85));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.hero__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow-lg);
  background: var(--paper-3);
  aspect-ratio: 1086 / 1300;
  isolation: isolate;
}
.hero__frame img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 22%;
  filter: saturate(.92) contrast(1.02);
}
.hero__frame::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,23,28,.10) 0%, transparent 26%, transparent 62%, rgba(20,23,28,.20) 100%),
    linear-gradient(90deg, rgba(74,95,122,.10), transparent 40%);
  pointer-events: none;
}
.hero__badge {
  position: absolute;
  left: -22px; bottom: 34px;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  background: rgba(251,250,248,.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.hero__badge-mark {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  letter-spacing: .02em; color: var(--ink);
}
.hero__badge-text {
  font-size: .68rem; line-height: 1.42; letter-spacing: .06em;
  text-transform: uppercase; color: var(--slate-500); font-weight: 600;
}

/* --- Framework strip --- */
.hero__strip { border-top: 1px solid var(--line); background: rgba(255,255,255,.5); }
.hero__strip-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px clamp(20px, 3vw, 40px);
  padding-block: 22px;
}
.hero__strip-label {
  font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 600; color: var(--slate-400);
}
.hero__strip-list { display: flex; flex-wrap: wrap; gap: 10px clamp(18px, 2.6vw, 34px); }
.hero__strip-list li {
  font-family: var(--font-display);
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  color: var(--slate-700);
  position: relative;
}
.hero__strip-list li + li::before {
  content: ""; position: absolute; left: clamp(-10px, -1.3vw, -17px); top: 50%;
  width: 3px; height: 3px; border-radius: 50%; background: var(--accent-300);
  transform: translateY(-50%);
}

/* =========================================================
   INTRO
   ========================================================= */
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 88px);
}
.intro__head .display { max-width: 15ch; }
.intro__body p + p { margin-top: 18px; }
.intro__list {
  margin-top: 34px; padding-top: 30px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
}
.intro__list li {
  position: relative; padding-left: 20px;
  font-size: .93rem; color: var(--ink); font-weight: 500;
}
.intro__list li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 7px; height: 1px; background: var(--accent);
}

/* =========================================================
   SERVICE CARDS
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card {
  background: var(--paper);
  padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column;
  position: relative;
  transition: background-color .35s var(--ease), transform .35s var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.card:hover { background: #fff; }
.card:hover::before { transform: scaleX(1); }
.card__num {
  font-family: var(--font-display); font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; color: var(--accent-300); margin-bottom: 18px;
}
.card__title { font-size: 1.19rem; font-weight: 600; line-height: 1.3; margin-bottom: 14px; }
.card__text { font-size: .95rem; color: var(--slate-500); }
.card__tags {
  margin-top: auto; padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.card__tags li {
  font-size: .72rem; letter-spacing: .05em; font-weight: 500;
  color: var(--slate-600);
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: rgba(255,255,255,.6);
}

/* =========================================================
   WHY
   ========================================================= */
.section--dark .why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.why {
  background: var(--ink);
  padding: clamp(28px, 3vw, 40px);
  transition: background-color .35s var(--ease);
}
.why:hover { background: var(--ink-800); }
.why__title {
  font-size: 1.08rem; font-weight: 600; margin-bottom: 14px;
  padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.why p { font-size: .93rem; color: var(--slate-400); }

/* =========================================================
   EXPERIENCE
   ========================================================= */
.xp {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 2.2fr);
  gap: clamp(28px, 4vw, 72px);
  padding-block: clamp(38px, 4.5vw, 62px);
  border-top: 1px solid var(--line);
}
.xp:last-child { border-bottom: 1px solid var(--line); }
.xp__period {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 600; color: var(--accent); margin-bottom: 14px;
}
.xp__org { font-size: clamp(1.18rem, 1.05rem + .4vw, 1.45rem); font-weight: 600; line-height: 1.22; }
.xp__role {
  margin-top: 8px; font-size: .92rem; font-weight: 500; color: var(--slate-600);
}
.xp__loc {
  display: inline-block; margin-left: 8px; padding-left: 10px;
  border-left: 1px solid var(--line-2);
  font-size: .82rem; color: var(--slate-400);
}
.xp__note { margin-top: 18px; font-size: .89rem; color: var(--slate-500); max-width: 34ch; }

.xp__themes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 258px), 1fr));
  gap: clamp(20px, 2.4vw, 34px);
}
.theme { padding-top: 18px; border-top: 1px solid var(--line); transition: border-color .35s var(--ease); }
.theme:hover { border-top-color: var(--accent); }
.theme h4 { font-size: 1rem; font-weight: 600; margin-bottom: 9px; }
.theme p { font-size: .91rem; color: var(--slate-500); }

/* =========================================================
   EXPERTISE MATRIX
   ========================================================= */
.matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.matrix__col { background: var(--paper); padding: clamp(26px, 3vw, 38px); }
@media (min-width: 1024px) {
  /* Governance and Regulatory carry the most tags — give them the room. */
  .matrix { grid-template-columns: 1.42fr 1fr 1.2fr 1fr; }
}
.matrix__title {
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 700; color: var(--ink);
  padding-bottom: 16px; margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.matrix__title::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 34px; height: 1px; background: var(--accent);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: .81rem; font-weight: 500; color: var(--slate-700);
  padding: 7px 13px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.tags li:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-1px); }
.tags--invert li {
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.14);
  color: var(--slate-300);
}
.tags--invert li:hover { border-color: var(--accent-300); color: #fff; }

/* =========================================================
   FRAMEWORKS
   ========================================================= */
.fw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(1px, .2vw, 1px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.fw {
  background: var(--paper);
  padding: clamp(26px, 3vw, 36px);
  transition: background-color .3s var(--ease);
}
.fw:hover { background: #fff; }
.fw h3 {
  font-size: 1.06rem; font-weight: 600; margin-bottom: 12px;
  display: inline-block;
  padding-bottom: 8px; border-bottom: 2px solid var(--accent-100);
  transition: border-color .3s var(--ease);
}
.fw:hover h3 { border-bottom-color: var(--accent); }
.fw p { font-size: .91rem; color: var(--slate-500); }
.fw-note {
  margin-top: 26px; font-size: .84rem; color: var(--slate-400);
  max-width: 70ch;
}

/* =========================================================
   TECHNICAL DEPTH
   ========================================================= */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 208px), 1fr));
  gap: clamp(26px, 3vw, 44px);
}
.tech { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); }
.tech h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 18px; }

/* =========================================================
   CREDENTIALS
   ========================================================= */
.creds {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(20px, 2.6vw, 34px);
  align-items: start;
}
.cred--primary {
  background: var(--ink);
  color: var(--slate-300);
  padding: clamp(30px, 3.4vw, 46px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.cred--primary::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(520px 260px at 100% 0%, rgba(142,163,189,.24), transparent 62%);
  pointer-events: none;
}
.cred--primary > * { position: relative; z-index: 1; }
.cred__name {
  font-size: 1.12rem; font-weight: 600; color: #fff;
}
.cred__issuer {
  margin-top: 8px; padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 600; color: var(--accent-300);
}
.cred__body { margin-top: 20px; font-size: .91rem; color: var(--slate-400); }

/* --- Credential badge --- */
.cred-badge {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--line);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.cred-badge > span {
  font-family: var(--font-display);
  font-size: .68rem; font-weight: 700; letter-spacing: .03em; line-height: 1;
  color: var(--slate-700);
}
.cred__rest .cred:hover .cred-badge {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--accent-100);
}

.cred-badge--lg {
  width: clamp(104px, 9vw, 132px);
  height: clamp(104px, 9vw, 132px);
  margin-bottom: 28px;
  background: transparent;
  border-color: rgba(255, 255, 255, .34);
  box-shadow: inset 0 0 0 7px transparent, inset 0 0 0 8px rgba(255, 255, 255, .16);
}
.cred-badge--lg > span {
  font-size: clamp(1.4rem, 1.05rem + .9vw, 1.85rem);
  letter-spacing: .01em; color: #fff;
}

.cred__rest { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.cred__rest .cred {
  padding: 24px 24px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cred__rest .cred:hover {
  border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow-sm);
}
.cred__rest h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.cred__rest p { font-size: .82rem; color: var(--slate-400); letter-spacing: .02em; }

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 5vw, 84px);
}
.about__head .display { max-width: 13ch; }
.about__body p + p { margin-top: 18px; }
.about__profile {
  margin-top: 32px; padding-top: 26px;
  border-top: 1px solid var(--line);
}

/* =========================================================
   PROCESS
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(24px, 3vw, 40px);
  counter-reset: none;
}
.step { padding-top: 24px; border-top: 1px solid var(--line-2); position: relative; }
.step::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 1px; background: var(--accent);
  transition: width .6s var(--ease);
}
.step.is-visible::before { width: 46px; }
.step__num {
  font-family: var(--font-display); font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; color: var(--accent); margin-bottom: 16px;
}
.step__title { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.step p { font-size: .92rem; color: var(--slate-500); }

/* =========================================================
   CONTACT
   ========================================================= */
.section--contact {
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(74,95,122,.10), transparent 60%),
    var(--paper-2);
  border-top: 1px solid var(--line);
}
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.contact__head .display { max-width: 16ch; }
.contact__lede {
  margin-top: 22px; font-size: 1.04rem; color: var(--slate-600); max-width: 50ch;
}
.contact__head .btn { margin-top: 32px; }

.contact__list { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.contact__list li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line-2);
}
.contact__label {
  flex: 0 0 84px;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 600; color: var(--slate-400);
}
.contact__list a, .contact__plain {
  font-size: .96rem; color: var(--ink); font-weight: 500;
  word-break: break-word;
}
.contact__list a {
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.contact__list a:hover { color: var(--accent-600); border-bottom-color: var(--accent-300); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: var(--slate-400); padding-block: clamp(44px, 5vw, 64px); }
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 28px 40px;
}
.footer__name {
  font-family: var(--font-display); font-weight: 700; color: #fff;
  font-size: .95rem; letter-spacing: .16em; text-transform: uppercase;
}
.footer__tag { margin-top: 10px; font-size: .86rem; color: var(--slate-400); }
.footer__loc { margin-top: 4px; font-size: .86rem; color: var(--slate-500); }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__links a {
  font-size: .88rem; color: var(--slate-300);
  border-bottom: 1px solid rgba(255,255,255,.16);
  padding-bottom: 2px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.footer__links a:hover { color: #fff; border-bottom-color: #fff; }
.footer__copy { font-size: .8rem; color: var(--slate-500); width: 100%; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); }

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

.js .reveal-media {
  opacity: 0;
  transform: translateY(24px) scale(.985);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js .reveal-media.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
  :root { --shell: 1120px; }
  .hero__media { max-width: 470px; }
}

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: clamp(44px, 6vw, 64px); }
  .hero__copy { max-width: none; }
  .hero__media { justify-self: start; max-width: 440px; margin-left: 12px; }
  .hero__badge { left: -12px; }

  .intro__grid, .about, .contact { grid-template-columns: 1fr; }
  .intro__head .display, .about__head .display, .contact__head .display { max-width: 22ch; }

  .xp { grid-template-columns: 1fr; gap: 32px; }
  .xp__note { max-width: 52ch; }

  .creds { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  /* backdrop-filter on an ancestor would make the header the containing
     block for the fixed drawer, trapping it inside the header box. */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(251, 250, 248, .97);
  }
  .site-header.is-stuck { background: rgba(251, 250, 248, .99); }

  .nav {
    position: fixed; inset: 0 0 0 auto; z-index: 95;
    width: min(340px, 86vw);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0;
    padding: calc(var(--header-h) + 26px) 30px 40px;
    background: var(--paper);
    border-left: 1px solid var(--line);
    box-shadow: -18px 0 50px -20px rgba(20,23,28,.3);
    transform: translateX(101%);
    visibility: hidden;
    transition: transform .38s var(--ease), visibility 0s linear .38s;
    overflow-y: auto;
  }
  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .38s var(--ease), visibility 0s;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__link {
    display: block; padding: 16px 0;
    font-family: var(--font-display);
    font-size: 1.02rem; font-weight: 500; color: var(--ink);
  }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--accent); }
  .nav__cta { margin-top: 26px; width: 100%; padding: 14px 20px; }
  /* Stays above the open drawer so the close control is reachable. */
  .nav-toggle { display: grid; position: relative; z-index: 96; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 768px) {
  :root { --header-h: 66px; --section-y: clamp(60px, 11vw, 88px); }
  .brand__role { display: none; }
  .hero__inner { padding-bottom: 48px; }
  .hero__media { max-width: 100%; margin-left: 0; }
  .hero__frame { aspect-ratio: 4 / 3.4; }
  .hero__frame img { object-position: 50% 20%; }
  .hero__plate { inset: 10% -4% -6% 10%; }
  .hero__badge { left: 0; bottom: -18px; padding: 12px 16px; }
  .intro__list { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .hero__name { letter-spacing: .26em; }
  .hero__frame { aspect-ratio: 1 / 1.06; }
  .hero__meta { gap: 20px; flex-direction: column; }
  .hero__strip-inner { padding-block: 18px; }
  .card__tags li, .tags li { font-size: .74rem; }
  .contact__label { flex-basis: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__links { gap: 18px 22px; }
}

@media (max-width: 400px) {
  /* Badge drops below the portrait; relative keeps it painted above the plate. */
  .hero__badge { position: relative; z-index: 2; margin-top: 18px; display: inline-flex; }
  .hero__plate { inset: 8% -4% 62px 8%; }
  .hero__actions { flex-direction: column; align-items: stretch; }
}

/* =========================================================
   MOTION PREFERENCES / PRINT
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal, .js .reveal-media { opacity: 1 !important; transform: none !important; }
  .step::before { width: 46px; }
}

@media print {
  .site-header, .nav-toggle, .nav-scrim, .hero__actions, .contact__head .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .section--dark, .footer { background: #fff !important; color: #000 !important; }
  .section--dark .display, .section--dark h3, .section--dark h4, .footer__name { color: #000 !important; }
  .js .reveal, .js .reveal-media { opacity: 1 !important; transform: none !important; }
}
