/* ============================================================
   Sharad Tiwari — Portfolio
   Design tokens, layout, components, motion
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --brand:        #ff9900;
  --brand-2:      #ffb84d;
  --accent:       #38bdf8;
  --accent-2:     #818cf8;

  --bg:           #070c16;
  --bg-alt:       #0b1220;
  --surface:      rgba(255, 255, 255, .045);
  --surface-2:    rgba(255, 255, 255, .07);
  --border:       rgba(255, 255, 255, .10);
  --border-strong: rgba(255, 255, 255, .18);

  --text:         #eef2f9;
  --text-muted:   #9aa8bf;
  --text-dim:     #6c7c96;

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --radius:       18px;
  --radius-sm:    12px;
  --radius-lg:    26px;
  --shadow:       0 24px 60px -24px rgba(0, 0, 0, .65);
  --shadow-glow:  0 0 0 1px rgba(255, 153, 0, .28), 0 20px 50px -22px rgba(255, 153, 0, .35);

  --container:    1200px;
  --ease:         cubic-bezier(.22, 1, .36, 1);
}

html[data-theme='light'] {
  --bg:           #f6f8fc;
  --bg-alt:       #ffffff;
  --surface:      rgba(15, 23, 42, .035);
  --surface-2:    rgba(15, 23, 42, .06);
  --border:       rgba(15, 23, 42, .10);
  --border-strong: rgba(15, 23, 42, .18);

  --text:         #0d1526;
  --text-muted:   #4a5872;
  --text-dim:     #6b7a94;

  --shadow:       0 22px 50px -26px rgba(15, 33, 66, .28);
  --shadow-glow:  0 0 0 1px rgba(255, 153, 0, .34), 0 18px 44px -24px rgba(255, 153, 0, .34);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.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; top: -60px; left: 16px; z-index: 200;
  padding: 10px 18px; border-radius: 0 0 10px 10px;
  background: var(--brand); color: #10203a; font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Animated background ---------- */
.bg-mesh { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .38; }
.orb-1 { width: 46vw; height: 46vw; background: var(--brand); top: -12vw; right: -8vw; animation: drift1 24s ease-in-out infinite; }
.orb-2 { width: 38vw; height: 38vw; background: var(--accent); top: 46vh; left: -12vw; opacity: .3; animation: drift2 30s ease-in-out infinite; }
.orb-3 { width: 32vw; height: 32vw; background: var(--accent-2); bottom: -10vw; right: 14vw; opacity: .26; animation: drift3 27s ease-in-out infinite; }

html[data-theme='light'] .orb { opacity: .2; }
html[data-theme='light'] .orb-2, html[data-theme='light'] .orb-3 { opacity: .16; }

.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: .7;
}

@keyframes drift1 { 50% { transform: translate3d(-6vw, 6vh, 0) scale(1.12); } }
@keyframes drift2 { 50% { transform: translate3d(8vw, -5vh, 0) scale(1.08); } }
@keyframes drift3 { 50% { transform: translate3d(-5vw, -7vh, 0) scale(1.15); } }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; }
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  box-shadow: 0 0 14px rgba(255, 153, 0, .7);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 110;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--bg); /* fallback for browsers without color-mix() */
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--border);
}

.nav { display: flex; align-items: center; gap: 20px; min-height: 74px; }

.brand { display: flex; align-items: center; margin-right: auto; transition: transform .2s var(--ease); }
.brand:hover { transform: scale(1.05); }
.brand-mark {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), #ff6a00);
  color: #12203a; font-family: var(--font-display); font-weight: 800; font-size: .95rem;
  letter-spacing: .02em;
  box-shadow: 0 8px 24px -8px rgba(255, 153, 0, .8);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; display: block;
  padding: 8px 13px; border-radius: 999px;
  font-size: .875rem; font-weight: 500; color: var(--text-muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; translate: -50% 0;
  width: 16px; height: 2px; border-radius: 2px; background: var(--brand);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 11px;
  background: var(--surface); color: var(--text);
  transition: background .2s, border-color .2s, transform .2s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }

.i-sun { display: none; }
html[data-theme='light'] .i-sun { display: block; }
html[data-theme='light'] .i-moon { display: none; }

.menu-btn { display: none; flex-direction: column; gap: 4px; }
.menu-btn span { width: 17px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.menu-btn[aria-expanded='true'] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border: 1px solid transparent; border-radius: 999px;
  font-size: .9rem; font-weight: 600; letter-spacing: .01em;
  transition: transform .2s var(--ease), box-shadow .25s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #ff7a00);
  color: #16233c; box-shadow: 0 14px 32px -14px rgba(255, 153, 0, .85);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(255, 153, 0, .95); }

.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); transform: translateY(-2px); }

.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 100px; }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 56px; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 12px; margin-bottom: 22px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface);
  font-size: .8rem; font-weight: 600; color: var(--text-muted);
  letter-spacing: .02em;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: pulse 2.2s infinite; }
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  font-weight: 800; margin-bottom: 18px;
  background: linear-gradient(120deg, var(--text) 20%, var(--brand) 60%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: .06em;
}
.hero-role {
  display: block; margin-top: 10px;
  font-family: var(--font-mono); font-size: clamp(.95rem, 2.1vw, 1.3rem); font-weight: 500;
  color: var(--brand); -webkit-text-fill-color: var(--brand);
  min-height: 1.6em;
}
.typed::after { content: '|'; margin-left: 2px; animation: caret 1s steps(1) infinite; color: var(--accent); }
@keyframes caret { 50% { opacity: 0; } }

.hero-lede { max-width: 62ch; font-size: 1.06rem; color: var(--text-muted); }
.hero-lede strong { color: var(--text); font-weight: 600; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 30px; }
.hero-meta li { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--text-dim); }
.hero-meta svg { width: 16px; height: 16px; color: var(--brand); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px; margin-top: 44px;
  padding-top: 30px; border-top: 1px solid var(--border);
}
.stat-value {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: .76rem; color: var(--text-dim); line-height: 1.4; }

/* Hero visual */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 400px; }

.portrait-card {
  position: relative; width: 100%; max-width: 340px;
  padding: 34px 28px 30px; text-align: center;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: translateY(-12px); } }

.portrait-ring {
  position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: conic-gradient(from 0deg, transparent, var(--brand), transparent 40%, var(--accent), transparent 70%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude; -webkit-mask-composite: xor;
  animation: spin 9s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }

.portrait-monogram {
  width: 104px; height: 104px; margin: 0 auto 20px;
  display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(140deg, var(--brand), #ff5f00 70%, var(--accent-2));
  color: #12203a; font-family: var(--font-display); font-weight: 800; font-size: 2.2rem;
  box-shadow: 0 18px 40px -16px rgba(255, 153, 0, .9);
}
.portrait-role { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; margin: 0 0 3px; }
.portrait-org { font-size: .84rem; color: var(--text-muted); margin: 0 0 20px; }

.portrait-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding-top: 18px; border-top: 1px solid var(--border);
}
.portrait-facts div { display: flex; flex-direction: column; gap: 2px; }
.portrait-facts strong {
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 800; color: var(--brand);
}
.portrait-facts span { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }

.float-chip {
  position: absolute; z-index: 2;
  padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-alt); /* fallback */
  background: color-mix(in srgb, var(--bg-alt) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .76rem; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow);
}
.chip-a { top: 6%; left: -4%; animation: floaty 6s ease-in-out infinite .4s; }
.chip-b { bottom: 16%; right: -6%; animation: floaty 6.6s ease-in-out infinite .9s; }
.chip-c { bottom: 2%; left: 4%; animation: floaty 7.4s ease-in-out infinite 1.4s; }

.scroll-hint {
  display: grid; place-items: center;
  width: 26px; height: 44px; margin: 60px auto 0;
  border: 1px solid var(--border-strong); border-radius: 999px;
}
.scroll-hint span { width: 4px; height: 8px; border-radius: 2px; background: var(--brand); animation: wheel 1.7s ease-in-out infinite; }
@keyframes wheel { 0%, 100% { transform: translateY(-6px); opacity: 0; } 40% { opacity: 1; } 80% { transform: translateY(7px); opacity: 0; } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 96px 0; }
.section.alt::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--surface); /* fallback */
  background: color-mix(in srgb, var(--bg-alt) 55%, transparent);
  border-block: 1px solid var(--border);
}

.section-head { max-width: 720px; margin-bottom: 52px; }
.kicker {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.85rem, 3.9vw, 2.7rem); font-weight: 700; }
.section-sub { font-size: 1.02rem; color: var(--text-muted); margin: 0; }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px;
}
.about-card {
  position: relative; padding: 28px 26px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.about-card::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.about-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.about-card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 46px; height: 46px; margin-bottom: 18px;
  display: grid; place-items: center; border-radius: 13px;
  background: linear-gradient(140deg, rgba(255, 153, 0, .18), rgba(56, 189, 248, .14));
  border: 1px solid var(--border); color: var(--brand);
}
.card-icon svg { width: 22px; height: 22px; }
.about-card h3 { font-size: 1.08rem; }
.about-card p { font-size: .93rem; color: var(--text-muted); margin: 0; }

/* ---------- Competencies ---------- */
.sub-head {
  font-size: 1.15rem; margin: 56px 0 22px;
  display: flex; align-items: center; gap: 12px;
}
.sub-head::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.competency-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(292px, 1fr)); gap: 14px; }
.comp-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface);
  transition: transform .25s var(--ease), background .25s, border-color .25s;
}
.comp-item:hover { transform: translateY(-4px); background: var(--surface-2); border-color: var(--brand); }
.comp-logo {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.comp-logo svg { width: 21px; height: 21px; }
.comp-item h4 { font-size: .93rem; margin: 0 0 4px; }
.comp-item p { font-size: .83rem; color: var(--text-muted); margin: 0; }

/* ---------- Journey: alternating vertical timeline ---------- */
.tl { position: relative; padding: 8px 0; }
.tl::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; translate: -50% 0;
  background: linear-gradient(180deg, transparent, var(--brand) 8%, var(--accent) 70%, transparent);
  opacity: .55;
}

.tl-item {
  position: relative;
  display: grid; grid-template-columns: 1fr 76px 1fr;
  align-items: center; margin-bottom: 12px;
}
/* Odd items sit left of the spine, even items right. */
.tl-item:nth-child(odd) .tl-card { grid-column: 1; text-align: right; }
.tl-item:nth-child(odd) .tl-top { justify-content: flex-end; }
.tl-item:nth-child(even) .tl-card { grid-column: 3; }
.tl-node { grid-column: 2; }

.tl-node {
  position: relative; z-index: 2;
  width: 62px; height: 62px; margin: 0 auto;
  display: grid; place-items: center;
  border-radius: 50%; padding: 11px;
  background: #fff; border: 2px solid var(--border-strong);
  box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .55);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.tl-node img { width: 100%; height: 100%; object-fit: contain; }
.tl-item:hover .tl-node { transform: scale(1.12); border-color: var(--brand); box-shadow: var(--shadow-glow); }
.tl-item.is-current .tl-node { border-color: var(--brand); box-shadow: 0 0 0 6px rgba(255, 153, 0, .16); }

.tl-card {
  padding: 20px 22px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.tl-item:hover .tl-card { border-color: var(--border-strong); box-shadow: var(--shadow); }
.tl-item:nth-child(odd):hover .tl-card { transform: translateX(-6px); }
.tl-item:nth-child(even):hover .tl-card { transform: translateX(6px); }

.tl-top { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; flex-wrap: wrap; }
.tl-stage {
  padding: 3px 10px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 153, 0, .2), rgba(56, 189, 248, .12));
  border: 1px solid var(--border);
  font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brand);
}
.tl-period { font-family: var(--font-mono); font-size: .74rem; color: var(--text-dim); }
.tl-role { font-size: 1.02rem; margin-bottom: 3px; }
.tl-org { font-size: .86rem; font-weight: 600; color: var(--accent); margin: 0 0 8px; }
.tl-note { font-size: .87rem; color: var(--text-muted); margin: 0; }
.tl-badge {
  display: inline-block; margin-top: 12px;
  padding: 4px 12px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), #ff7a00); color: #16233c;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- Experience ---------- */
.xp { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }

.xp-tabs { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 96px; }
.xp-tab {
  display: block; width: 100%; text-align: left;
  padding: 15px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted);
  transition: all .25s var(--ease);
}
.xp-tab strong { display: block; font-family: var(--font-display); font-size: .95rem; color: var(--text); margin-bottom: 2px; }
.xp-tab span { font-size: .77rem; }
.xp-tab:hover { background: var(--surface-2); border-color: var(--border-strong); }
.xp-tab[aria-selected='true'] {
  background: linear-gradient(135deg, rgba(255, 153, 0, .16), rgba(56, 189, 248, .08));
  border-color: var(--brand); color: var(--text);
  box-shadow: var(--shadow-glow);
}

.xp-panel {
  padding: 32px 34px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
  animation: fadeUp .45s var(--ease);
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

.xp-head { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.xp-head h3 { font-size: 1.35rem; margin-bottom: 6px; }
.xp-head h3 em { font-style: normal; color: var(--brand); }
.xp-when { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .84rem; color: var(--text-dim); }
.xp-when span { display: inline-flex; align-items: center; gap: 6px; }
.xp-when svg { width: 15px; height: 15px; }

.xp-note {
  margin: 16px 0 0; padding: 11px 15px;
  border-left: 2px solid var(--brand); border-radius: 0 8px 8px 0;
  background: var(--surface-2);
  font-size: .84rem; color: var(--text-muted);
}

.xp-points li { position: relative; padding-left: 28px; margin-bottom: 13px; font-size: .94rem; color: var(--text-muted); }
.xp-points li::before {
  content: ''; position: absolute; left: 4px; top: .62em;
  width: 7px; height: 7px; border-radius: 2px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  rotate: 45deg;
}
.xp-points strong { color: var(--text); font-weight: 600; }

.xp-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.tag {
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-2);
  font-family: var(--font-mono); font-size: .71rem; color: var(--text-muted);
}

.prev-xp { margin-top: 22px; padding: 22px 26px; border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.prev-xp h4 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; }
.prev-xp li { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .88rem; color: var(--text-muted); padding: 7px 0; }
.prev-xp li + li { border-top: 1px solid var(--border); }
.prev-xp b { color: var(--text); font-weight: 600; }
.prev-xp code { font-family: var(--font-mono); font-size: .78rem; color: var(--brand); }

/* ---------- Impact ---------- */
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 20px; }
.impact-card {
  position: relative; padding: 28px 26px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.impact-card::after {
  content: ''; position: absolute; width: 150px; height: 150px; right: -60px; top: -60px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 153, 0, .22), transparent 70%);
  transition: transform .4s var(--ease);
}
.impact-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.impact-card:hover::after { transform: scale(1.5); }
.impact-metric {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 1.9rem; line-height: 1; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.impact-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.impact-card p { font-size: .91rem; color: var(--text-muted); margin: 0; }

/* ---------- Credentials ---------- */
.cred-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 16px; }
.side-stack { display: grid; gap: 16px; }

.cert-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 20px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.cert-card:not(.is-unlinked):hover { transform: translateY(-5px); border-color: var(--brand); box-shadow: var(--shadow-glow); }
.cert-card.is-unlinked { cursor: default; }

.cert-badge {
  width: 78px; height: 78px; flex: none; object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35));
  transition: transform .35s var(--ease);
}
.cert-card:not(.is-unlinked):hover .cert-badge { transform: scale(1.07) rotate(-3deg); }

.cert-body { min-width: 0; }
.cert-name { font-family: var(--font-display); font-size: .92rem; font-weight: 600; line-height: 1.35; margin: 0 0 4px; }
.cert-issuer { font-size: .78rem; color: var(--text-dim); margin: 0 0 8px; }
.cert-level { font-family: var(--font-mono); font-size: .72rem; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; }
.cert-blurb { font-size: .83rem; color: var(--text-muted); margin: 0 0 12px; }

.cert-verify {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 600; color: var(--accent);
}
.cert-verify svg { width: 15px; height: 15px; }
.cert-verify svg:last-child { transition: transform .25s var(--ease); }
.cert-card:hover .cert-verify svg:last-child { transform: translateX(3px); }
.cert-verify.is-pending { color: var(--text-dim); font-weight: 500; }

.awards-card { padding: 26px 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.awards-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 18px; }
.awards-card h3 svg { width: 20px; height: 20px; color: var(--brand); }
.awards-card ul li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; font-size: .9rem; }
.awards-card ul li + li { border-top: 1px solid var(--border); }
.awards-card ul li span:first-child { font-weight: 600; }
.awards-card ul li span:last-child { font-family: var(--font-mono); font-size: .76rem; color: var(--text-dim); white-space: nowrap; }

.edu-degree { font-family: var(--font-display); font-size: .93rem; font-weight: 600; margin: 0 0 3px; }
.edu-meta { font-size: .82rem; color: var(--text-muted); margin: 0; }

/* ---------- Skills ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.filter-btn {
  padding: 9px 17px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); font-size: .84rem; font-weight: 500;
  transition: all .25s var(--ease);
}
.filter-btn:hover { background: var(--surface-2); color: var(--text); }
.filter-btn[aria-selected='true'] {
  background: linear-gradient(135deg, var(--brand), #ff7a00);
  border-color: transparent; color: #16233c; font-weight: 600;
}

.skill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.skill-card {
  padding: 24px 24px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  transition: opacity .3s, transform .35s var(--ease), border-color .3s;
}
.skill-card.hidden { display: none; }
.skill-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.skill-card h3 { display: flex; align-items: center; gap: 9px; font-size: 1rem; margin-bottom: 6px; }
.skill-card h3::before { content: ''; width: 4px; height: 17px; border-radius: 2px; background: linear-gradient(var(--brand), var(--accent)); }
.skill-blurb { font-size: .84rem; color: var(--text-dim); margin: 0 0 18px; }

/* Logo tiles replace text pills */
.logo-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px; }
.logo-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.logo-box {
  width: 54px; height: 54px;
  display: grid; place-items: center; padding: 12px;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface-2);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s, background .25s;
}
.logo-box svg, .logo-box img { width: 100%; height: 100%; object-fit: contain; }
.logo-tile:hover .logo-box {
  transform: translateY(-5px) scale(1.06);
  border-color: var(--brand); background: var(--surface);
  box-shadow: var(--shadow-glow);
}
.logo-name { font-size: .72rem; line-height: 1.3; color: var(--text-muted); }

/* Brand marks that are dark-on-transparent need a light plate in dark mode. */
html[data-theme='dark'] .logo-box img[src$='.png'],
html[data-theme='dark'] .logo-box img[src*='windows'],
html[data-theme='dark'] .comp-logo img { background: rgba(255, 255, 255, .92); border-radius: 6px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 26px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface);
  transition: all .25s var(--ease);
}
.contact-card:hover { transform: translateX(5px); border-color: var(--brand); box-shadow: var(--shadow-glow); }
.contact-card .card-icon { margin: 0; }
.contact-card small { display: block; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.contact-card strong { font-family: var(--font-display); font-size: .93rem; font-weight: 600; word-break: break-word; }

.contact-form {
  padding: 30px 30px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
}
.field { margin-bottom: 17px; }
.field label { display: block; font-size: .81rem; font-weight: 600; color: var(--text-muted); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 15px;
  border: 1px solid var(--border); border-radius: 11px;
  background: var(--surface); /* fallback */
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  font-size: .92rem; transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); background: var(--surface-2); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.field.invalid input, .field.invalid textarea { border-color: #f87171; }
.error { display: block; min-height: 1em; margin-top: 5px; font-size: .76rem; color: #f87171; }
.form-note { margin: 14px 0 0; font-size: .8rem; color: var(--text-dim); text-align: center; }
.form-note.ok { color: #34d399; }

/* ---------- Footer ---------- */
.site-footer { padding: 34px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.footer-inner p { margin: 0; font-size: .84rem; color: var(--text-dim); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: .84rem; color: var(--text-muted); transition: color .2s; }
.footer-links a:hover { color: var(--brand); }

.noscript-note { padding: 40px 24px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; min-height: 340px; }
  .cred-layout, .contact-layout { grid-template-columns: 1fr; }
  .xp { grid-template-columns: 1fr; }
  .xp-tabs { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .xp-tab { min-width: 218px; }
}

@media (max-width: 880px) {
  .nav-links {
    position: fixed; inset: 74px 14px auto; z-index: 109;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg-alt); /* fallback */
    background: color-mix(in srgb, var(--bg-alt) 96%, transparent);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 12px 16px; border-radius: 10px; font-size: .95rem; }
  .nav-links a.active::after { display: none; }
  .menu-btn { display: flex; }
  .hide-sm { display: none; }
  .float-chip { display: none; }
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 72px; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .xp-panel, .contact-form { padding: 24px 20px; }
  .section-head { margin-bottom: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .bg-mesh, .site-header, .scroll-progress, .scroll-hint, .contact-form, .float-chip { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 20px 0; page-break-inside: avoid; }
}

/* ============================================================
   Logo plates
   Brand marks ship in their real brand colours. Some (AWS #232F3E)
   are near-black, so every logo sits on a light plate to stay legible
   in both themes rather than being recoloured.
   ============================================================ */
.logo-box, .platform-logo, .chip-logo, .tl-node, .xp-logo, .xp-tab-logo, .prev-xp img, .comp-logo {
  background: #fff;
  border-color: rgba(15, 23, 42, .12);
}
html[data-theme='dark'] .logo-box,
html[data-theme='dark'] .platform-logo,
html[data-theme='dark'] .chip-logo,
html[data-theme='dark'] .xp-logo,
html[data-theme='dark'] .xp-tab-logo,
html[data-theme='dark'] .prev-xp img,
html[data-theme='dark'] .comp-logo { background: #f4f6fa; }

html[data-theme='dark'] .logo-box img[src$='.png'],
html[data-theme='dark'] .logo-box img[src*='windows'],
html[data-theme='dark'] .comp-logo img { background: none; }

/* ---------- Hero certification strip ---------- */
.hero-certs {
  margin: 26px 0 30px; padding: 20px 22px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.hero-certs-title {
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim); margin: 0 0 16px;
}
.cert-strip { display: flex; flex-wrap: wrap; gap: 18px; }
.cert-strip-item { flex: 0 1 132px; }
.cert-strip-item > a, .cert-strip-item > .cert-pending {
  display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center;
  transition: transform .3s var(--ease);
}
.cert-strip-item img {
  width: 66px; height: 66px; object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .32));
  transition: transform .35s var(--ease), filter .35s;
}
.cert-strip-item > a:hover img { transform: scale(1.12) rotate(-4deg); filter: drop-shadow(0 10px 20px rgba(255, 153, 0, .5)); }
.cert-strip-item > a:hover { transform: translateY(-2px); }
.cert-strip-label { font-size: .7rem; line-height: 1.35; color: var(--text-muted); }
.cert-strip-item > a .cert-strip-label { color: var(--text); }
.cert-pending { cursor: default; }
.cert-pending img { opacity: .92; }

/* ---------- Expertise: platform cards ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }

.platform-card {
  position: relative; display: flex; flex-direction: column;
  padding: 26px 24px; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.platform-card::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 3px;
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.platform-card[data-key='aws']::before   { background: linear-gradient(90deg, #ff9900, #ffb84d); }
.platform-card[data-key='azure']::before { background: linear-gradient(90deg, #0078d4, #50b0f8); }
.platform-card[data-key='gcp']::before   { background: linear-gradient(90deg, #4285f4, #34a853); }
.platform-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.platform-card:hover::before { transform: scaleX(1); }

.platform-head { display: flex; align-items: center; gap: 15px; margin-bottom: 16px; }
.platform-logo {
  width: 54px; height: 54px; flex: none;
  display: grid; place-items: center; padding: 11px;
  border: 1px solid var(--border); border-radius: 14px;
}
.platform-logo svg, .platform-logo img { width: 100%; height: 100%; object-fit: contain; }
.platform-head h4 { font-size: 1.08rem; margin: 0 0 2px; }
.platform-role {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand);
}
.platform-sum { font-size: .9rem; color: var(--text-muted); margin: 0 0 16px; }

.platform-list { margin-bottom: 18px; }
.platform-list li {
  position: relative; padding-left: 22px; margin-bottom: 8px;
  font-size: .85rem; color: var(--text-muted);
}
.platform-list li::before {
  content: ''; position: absolute; left: 2px; top: .55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}

.platform-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border);
}
.chip-logo {
  width: 34px; height: 34px;
  display: grid; place-items: center; padding: 7px;
  border: 1px solid var(--border); border-radius: 9px;
  transition: transform .22s var(--ease), box-shadow .22s;
}
.chip-logo svg { width: 100%; height: 100%; }
.chip-logo:hover { transform: translateY(-3px) scale(1.08); box-shadow: var(--shadow-glow); }

/* ---------- Experience: logos ---------- */
.xp-tab { display: flex; align-items: center; gap: 12px; }
.xp-tab-logo {
  width: 38px; height: 38px; flex: none; object-fit: contain;
  padding: 6px; border: 1px solid var(--border); border-radius: 10px;
}
.xp-tab-text { display: flex; flex-direction: column; min-width: 0; }

.xp-head { display: flex; align-items: flex-start; gap: 18px; }
.xp-logo {
  width: 62px; height: 62px; flex: none; object-fit: contain;
  padding: 10px; border: 1px solid var(--border); border-radius: 14px;
}
.xp-head-text { min-width: 0; }
.xp-head-text h3 { font-size: 1.3rem; margin-bottom: 3px; }
.xp-company { font-size: .95rem; font-weight: 600; color: var(--brand); margin: 0 0 8px; }

.xp-value {
  margin: 0 0 18px; padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 153, 0, .12), rgba(56, 189, 248, .07));
  border: 1px solid var(--border);
  font-size: .92rem; font-weight: 500; color: var(--text);
}

.prev-xp h3 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; }
.prev-xp li { display: flex; align-items: center; gap: 14px; font-size: .88rem; color: var(--text-muted); padding: 10px 0; }
.prev-xp img { width: 34px; height: 34px; flex: none; object-fit: contain; padding: 5px; border: 1px solid var(--border); border-radius: 9px; }
.prev-role { display: flex; flex-direction: column; flex: 1; min-width: 0; }

/* ---------- Booking ---------- */
.booking {
  margin-bottom: 26px; padding: 28px 28px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow);
  scroll-margin-top: 84px;
}
.booking-head {
  display: flex; flex-wrap: wrap; gap: 20px;
  align-items: flex-start; justify-content: space-between;
  margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.booking-head h3 { display: flex; align-items: center; gap: 11px; font-size: 1.22rem; margin-bottom: 6px; }
.booking-head h3 svg { width: 22px; height: 22px; color: var(--brand); }
.booking-head p { font-size: .9rem; color: var(--text-muted); margin: 0; max-width: 52ch; }

.booking-durations { display: grid; gap: 7px; }
.booking-durations li {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--text-muted);
}
.booking-durations svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

.booking-frame { min-height: 240px; }
.booking-frame.is-loaded { min-height: 640px; }
.booking-frame iframe {
  width: 100%; height: 640px; border: 0;
  border-radius: var(--radius); background: #fff;
}

.booking-cta, .booking-empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 40px 24px; text-align: center;
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 40%, transparent);
}
.booking-cta-icon, .booking-empty-icon {
  width: 54px; height: 54px; display: grid; place-items: center;
  border-radius: 16px; margin-bottom: 4px;
  background: linear-gradient(140deg, rgba(255, 153, 0, .2), rgba(56, 189, 248, .14));
  border: 1px solid var(--border); color: var(--brand);
}
.booking-cta-icon svg, .booking-empty-icon svg { width: 25px; height: 25px; }
.booking-cta h4, .booking-empty h4 { font-size: 1.08rem; margin: 0; }
.booking-cta p, .booking-empty p { font-size: .88rem; color: var(--text-muted); margin: 0 0 8px; max-width: 46ch; }
.booking-newtab { font-size: .8rem; color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.booking-newtab:hover { color: var(--brand); }

/* ---------- Misc ---------- */
.form-title { font-size: 1.08rem; margin-bottom: 18px; }
.trademark {
  margin: 18px auto 0; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: .72rem; line-height: 1.6; color: var(--text-dim);
}

/* ---------- Responsive: new components ---------- */
@media (max-width: 900px) {
  /* Timeline collapses to a single left-hand spine. */
  .tl::before { left: 31px; }
  .tl-item { grid-template-columns: 62px minmax(0, 1fr); gap: 16px; align-items: start; }
  .tl-item:nth-child(odd) .tl-card,
  .tl-item:nth-child(even) .tl-card { grid-column: 2; text-align: left; }
  .tl-item:nth-child(odd) .tl-top { justify-content: flex-start; }
  .tl-node { grid-column: 1; grid-row: 1; margin: 0; }
  .tl-item:nth-child(odd):hover .tl-card,
  .tl-item:nth-child(even):hover .tl-card { transform: translateX(5px); }
  .tl-item { margin-bottom: 18px; }
}

@media (max-width: 560px) {
  .hero-certs { padding: 16px 14px; }
  .cert-strip { gap: 12px; }
  .cert-strip-item { flex: 0 1 calc(50% - 6px); }
  .cert-strip-item img { width: 56px; height: 56px; }
  .booking { padding: 20px 18px; }
  .booking-frame iframe { height: 560px; }
  .cert-card { flex-direction: column; }
  .xp-head { flex-direction: column; gap: 12px; }
  .logo-row { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
  .logo-box { width: 48px; height: 48px; padding: 10px; }
}

/* ============================================================
   Headshot
   ============================================================ */
.portrait-photo {
  position: relative;
  width: 132px; height: 132px; margin: 0 auto 20px;
  display: grid; place-items: center;
  border-radius: 50%; overflow: hidden;
  background: linear-gradient(140deg, var(--brand), #ff5f00 70%, var(--accent-2));
  box-shadow: 0 18px 40px -16px rgba(255, 153, 0, .9);
}
.portrait-photo.has-photo {
  background: var(--surface-2);
  border: 3px solid rgba(255, 153, 0, .55);
  box-shadow: 0 18px 42px -16px rgba(0, 0, 0, .6);
}
.portrait-monogram {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: #12203a; font-family: var(--font-display); font-weight: 800; font-size: 2.4rem;
}
.portrait-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }

/* ============================================================
   Hero social actions
   ============================================================ */
/* Both buttons share the surface treatment of the other hero controls, so the
   marks inherit currentColor instead of sitting on a light plate. */
.social-actions { display: flex; gap: 10px; align-items: center; }
.social-btn {
  width: 46px; height: 46px;
  display: grid; place-items: center; padding: 11px;
  border: 1px solid var(--border); border-radius: 13px;
  background: var(--surface); color: var(--text-muted);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s, background .25s, color .25s;
}
.social-btn svg { width: 100%; height: 100%; }
.social-btn.is-mail svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.social-btn:hover { transform: translateY(-3px); background: var(--surface-2); border-color: var(--border-strong); }
.social-btn.is-linkedin:hover {
  color: #0A66C2; border-color: #0A66C2;
  box-shadow: 0 14px 30px -18px rgba(10, 102, 194, .85);
}
.social-btn.is-mail:hover {
  color: var(--brand); border-color: var(--brand);
  box-shadow: 0 14px 30px -18px rgba(255, 153, 0, .85);
}

/* ============================================================
   Booking availability grid
   ============================================================ */
.booking-legend {
  display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center;
  margin-bottom: 18px; font-size: .78rem; color: var(--text-muted);
}
.booking-legend .lg { display: inline-flex; align-items: center; gap: 7px; }
.booking-legend .sw { width: 13px; height: 13px; border-radius: 4px; border: 1px solid var(--border-strong); }
.booking-legend .sw.is-free { background: linear-gradient(135deg, #34d399, #10b981); border-color: transparent; }
.booking-legend .sw.is-busy { background: var(--surface-2); }
.booking-legend .sw.is-past { background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 3px, transparent 3px, transparent 6px); }
.booking-legend .lg-tz { margin-left: auto; color: var(--text-dim); }
.booking-legend .lg-tz svg { width: 14px; height: 14px; color: var(--brand); }

.bk-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 14px; }
.bk-arrow {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface); color: var(--text);
  font-size: 1rem; line-height: 1;
  transition: background .2s, border-color .2s, opacity .2s;
}
.bk-arrow:hover:not(:disabled) { background: var(--surface-2); border-color: var(--brand); }
.bk-arrow:disabled { opacity: .35; cursor: not-allowed; }
.bk-range { font-family: var(--font-display); font-size: .95rem; font-weight: 600; min-width: 190px; text-align: center; }

.bk-scroll { overflow-x: auto; padding-bottom: 4px; }
.bk-table { width: 100%; border-collapse: separate; border-spacing: 6px; min-width: 620px; }

.bk-corner {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 500;
  color: var(--text-dim); text-align: left; padding: 0 6px;
  letter-spacing: .04em;
}
.bk-dayhead {
  padding: 9px 4px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.bk-dayhead.is-off { opacity: .45; }
.bk-dayname { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.bk-daynum { display: block; font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; color: var(--text); }

.bk-hour {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 500;
  color: var(--text-muted); text-align: right; padding-right: 8px; white-space: nowrap;
}

.bk-cell { border-radius: 10px; text-align: center; height: 54px; }
.bk-cell.is-busy, .bk-cell.is-past {
  background: var(--surface-2); border: 1px dashed var(--border);
  color: var(--text-dim); font-size: .8rem;
}
.bk-cell.is-past { background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 4px, transparent 4px, transparent 8px); }
.bk-cell.is-free { padding: 0; }

.bk-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  width: 100%; height: 54px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(52, 211, 153, .16), rgba(16, 185, 129, .09));
  border: 1px solid rgba(52, 211, 153, .45);
  transition: transform .2s var(--ease), box-shadow .22s, background .22s;
}
.bk-slot:hover {
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(135deg, #34d399, #10b981);
  box-shadow: 0 12px 26px -12px rgba(16, 185, 129, .85);
}
.bk-slot-time { font-family: var(--font-display); font-size: .82rem; font-weight: 700; color: #34d399; }
.bk-slot-local { font-family: var(--font-mono); font-size: .64rem; color: var(--text-dim); }
.bk-slot:hover .bk-slot-time, .bk-slot:hover .bk-slot-local { color: #06281c; }

.booking-frame:empty { display: none; }
.booking-frame .booking-cta { margin-top: 22px; padding: 24px; }
.booking-frame .booking-cta p { font-size: .88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 620px) {
  .booking-legend .lg-tz { margin-left: 0; flex-basis: 100%; }
  .bk-range { min-width: 0; font-size: .86rem; }
  .portrait-photo { width: 112px; height: 112px; }
  .social-actions { width: 100%; }
}

/* ============================================================
   CV download
   ============================================================ */
.cv-btn svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.cv-btn:hover svg { transform: translateY(2px); }

[data-cv-slot]:empty { display: none; }
.cv-note:empty { display: none; }
.cv-note {
  display: block; margin-top: 8px;
  font-size: .78rem; color: var(--brand);
}

.cv-card {
  padding: 22px 24px; text-align: center;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 153, 0, .1), rgba(56, 189, 248, .06));
}
.cv-card .cv-btn { width: 100%; }

/* ============================================================
   Booking: native scheduler promoted above the manual grid
   ============================================================ */
.booking-cta.is-primary {
  border-style: solid; border-color: var(--brand);
  background: linear-gradient(135deg, rgba(255, 153, 0, .12), rgba(56, 189, 248, .07));
  margin-bottom: 24px;
}
.booking-grid-wrap.is-secondary { padding-top: 22px; border-top: 1px solid var(--border); }
.booking-grid-wrap.is-secondary::before {
  content: 'Or pick a slot manually';
  display: block; margin-bottom: 14px;
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim);
}
