:root {
  --ms-blue: #0078d4;
  --ms-blue-2: #106ebe;
  --ms-cyan: #50e6ff;
  --ms-green: #107c10;
  --ms-red: #f25022;
  --ms-yellow: #ffb900;
  --ink: #071735;
  --ink-2: #1a2742;
  --muted: #69758b;
  --line: #dce7f4;
  --soft: #f6fbff;
  --panel: rgba(255, 255, 255, 0.78);
  --shadow: 0 24px 70px rgba(16, 37, 66, 0.12);
  --shadow-soft: 0 14px 36px rgba(16, 37, 66, 0.09);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 15%, rgba(80, 230, 255, 0.22), transparent 29rem),
    radial-gradient(circle at 8% 42%, rgba(0, 120, 212, 0.1), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 48%, #ffffff 100%);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

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

svg {
  display: block;
}

.ambient {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.28;
  pointer-events: none;
  z-index: -1;
  animation: meshFloat 18s ease-in-out infinite alternate;
}

.ambient-a {
  right: -9rem;
  top: 5rem;
  background: #77d9ff;
}

.ambient-b {
  left: -12rem;
  top: 34rem;
  background: #cfe5ff;
  animation-delay: -7s;
}

.ambient-c {
  right: 12rem;
  bottom: 6rem;
  width: 22rem;
  height: 22rem;
  background: #def5e8;
  animation-delay: -3s;
}

@keyframes meshFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2rem, 2.2rem, 0) scale(1.08);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px clamp(22px, 5vw, 72px);
  border-bottom: 1px solid rgba(210, 224, 240, 0.72);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  justify-self: start;
}

.brand-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(16, 37, 66, 0.18);
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -0.06em;
  color: var(--ink);
}

.brand-mark span {
  color: var(--ms-blue);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 44px);
  font-size: 14px;
  color: var(--ink-2);
}

.site-nav a {
  position: relative;
  padding: 10px 2px;
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--ms-blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ms-blue);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.quick-links {
  display: flex;
  gap: 12px;
  justify-self: end;
}

.quick-links a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(210, 224, 240, 0.8);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(31, 49, 77, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.quick-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 120, 212, 0.35);
  color: var(--ms-blue);
}

.quick-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  padding: 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  border-radius: 99px;
  background: var(--ink);
}

main {
  width: min(100% - 32px, 1408px);
  margin: 0 auto;
}

.section-pad {
  padding: clamp(52px, 8vw, 108px) clamp(10px, 2vw, 48px) 42px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.9fr);
  gap: clamp(36px, 7vw, 98px);
  align-items: center;
  min-height: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--ms-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 8vw, 108px);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.hero-title {
  margin: 22px 0 0;
  color: var(--ms-blue);
  font-size: clamp(21px, 2vw, 29px);
  font-weight: 750;
}

.hero-text {
  max-width: 670px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease, background 190ms ease;
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--ms-blue), #0f6cbd);
  box-shadow: 0 18px 36px rgba(0, 120, 212, 0.24);
}

.btn.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(200, 217, 234, 0.95);
  box-shadow: 0 14px 28px rgba(20, 42, 73, 0.07);
}

.btn.ghost.light {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

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

.btn.primary:hover {
  box-shadow: 0 22px 44px rgba(0, 120, 212, 0.3);
}

.hero-orbit {
  position: relative;
  min-height: 480px;
  isolation: isolate;
}

.orbit-ring {
  position: absolute;
  inset: 50%;
  width: min(68vw, 380px);
  height: min(68vw, 380px);
  border: 1px dashed rgba(0, 120, 212, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: orbitSpin 28s linear infinite;
}

.initials-card {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  color: var(--ink);
  background:
    radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.55)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(235, 245, 255, 0.7));
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.9), 0 26px 70px rgba(18, 47, 82, 0.16);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 76px;
  font-weight: 700;
  letter-spacing: -0.08em;
  transform: translate(-50%, -50%);
}

/* Profile photo fills the orbit centre; falls back to the "SB" monogram if missing. */
.profile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.orbit-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 170px;
  padding: 14px 18px;
  border: 1px solid rgba(218, 230, 242, 0.85);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  color: var(--ink-2);
  font-weight: 700;
  backdrop-filter: blur(16px);
  animation: chipFloat 5.5s ease-in-out infinite;
}

.chip-a {
  left: 5%;
  top: 20%;
}

.chip-b {
  right: 2%;
  top: 24%;
  animation-delay: -1.5s;
}

.chip-c {
  left: 0;
  bottom: 22%;
  animation-delay: -2.5s;
}

.chip-d {
  right: 3%;
  bottom: 23%;
  animation-delay: -3.5s;
}

.orbit-dot {
  position: absolute;
  width: 17px;
  height: 17px;
  border: 4px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: #80caff;
  box-shadow: 0 10px 24px rgba(0, 120, 212, 0.18);
}

.dot-a {
  left: 50%;
  top: 10%;
}

.dot-b {
  right: 15%;
  top: 49%;
}

.dot-c {
  left: 48%;
  bottom: 11%;
}

@keyframes orbitSpin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes chipFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

.product-icon {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.product-icon::before,
.product-icon::after {
  content: "";
  position: absolute;
  border-radius: 5px;
}

.product-icon.dynamics::before {
  inset: 2px 7px 2px 3px;
  background: linear-gradient(135deg, #174ea6, #0f6cbd);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 28% 50%);
}

.product-icon.platform::before,
.product-icon.apps::before {
  inset: 3px;
  background: linear-gradient(135deg, #107c10, #54d66d);
  clip-path: polygon(0 0, 100% 14%, 76% 100%, 0 84%);
}

.product-icon.copilot::before {
  inset: 3px 8px 3px 2px;
  background: #00a4ef;
}

.product-icon.copilot::after {
  inset: 7px 2px 7px 9px;
  background: #32d4f5;
}

.product-icon.dataverse::before {
  width: 14px;
  height: 14px;
  left: 1px;
  top: 5px;
  border-radius: 50%;
  background: #107c10;
}

.product-icon.dataverse::after {
  width: 14px;
  height: 14px;
  right: 1px;
  top: 5px;
  border-radius: 50%;
  background: rgba(16, 124, 16, 0.68);
}

.product-icon.automate::before {
  inset: 3px 9px 3px 1px;
  background: #2563eb;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 32% 50%);
}

.product-icon.automate::after {
  inset: 3px 1px 3px 9px;
  background: #5ea6ff;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 32% 50%);
}

.product-icon.pcf::before {
  inset: 3px;
  border: 2px solid var(--ms-blue);
  border-radius: 6px;
}

.product-icon.pcf::after {
  inset: 8px;
  background: #50e6ff;
}

.glass-panel {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  margin: 16px 0;
  padding: 26px 34px;
  border: 1px solid rgba(219, 231, 243, 0.78);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 28px;
}

.section-label.side {
  display: block;
}

.section-label h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
}

.section-label span {
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 14px;
  border-radius: 99px;
  background: var(--ms-blue);
}

.section-label a {
  display: inline-flex;
  margin-top: 28px;
  color: var(--ms-blue);
  font-size: 14px;
  font-weight: 650;
}

.skill-rail {
  grid-template-columns: 180px 1fr;
}

.skill-pills {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 18px;
}

.skill-pills span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border: 1px solid rgba(210, 224, 240, 0.95);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-2);
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(30, 55, 87, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.skill-pills span:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 120, 212, 0.35);
  box-shadow: 0 18px 38px rgba(0, 120, 212, 0.12);
}

.timeline-section {
  align-items: center;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  padding: 16px 0 4px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 20px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 120, 212, 0.35), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.timeline-section.is-visible .timeline::before {
  transform: scaleX(1);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-areas:
    "logo date"
    "title title"
    "role role"
    "place place";
  column-gap: 18px;
  row-gap: 10px;
  align-items: start;
  padding-top: 36px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -2px;
  width: 16px;
  height: 16px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--ms-blue);
  box-shadow: 0 0 0 2px var(--ms-blue), 0 10px 22px rgba(0, 120, 212, 0.2);
}

.company-logo {
  grid-area: logo;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #06225a, #0067b8);
  font-weight: 800;
  box-shadow: 0 18px 32px rgba(0, 58, 128, 0.18);
}

.company-logo.grow {
  color: var(--ms-blue);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 32px;
}

.company-logo.itk {
  font-size: 13px;
}

.timeline-item p,
.timeline-item h3 {
  margin: 0;
}

.timeline-item .date {
  grid-area: date;
  align-self: center;
  color: var(--ms-blue);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.timeline-item h3 {
  grid-area: title;
  margin-top: 4px;
  font-size: 17px;
  line-height: 1.25;
}

.timeline-item p:not(.date) {
  grid-area: role;
  color: var(--ms-blue-2);
  font-size: 13px;
  line-height: 1.45;
}

.timeline-item span {
  grid-area: place;
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.projects-section {
  align-items: start;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.8);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.filter:hover,
.filter.active {
  color: #fff;
  border-color: var(--ms-blue);
  background: var(--ms-blue);
  transform: translateY(-2px);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 18px;
}

.project-card {
  position: relative;
  min-height: 230px;
  padding: 20px;
  border: 1px solid rgba(218, 230, 242, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 36px rgba(25, 49, 79, 0.08);
  transform-style: preserve-3d;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, opacity 220ms ease;
}

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

.project-card:hover {
  border-color: rgba(0, 120, 212, 0.28);
  box-shadow: 0 24px 52px rgba(0, 120, 212, 0.14);
}

.project-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #0067b8, #0b3f8a);
  font-size: 14px;
  font-weight: 900;
}

.project-logo.grow {
  color: var(--ms-blue);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 24px;
}

.project-logo.adcb,
.project-logo.emirates {
  background: linear-gradient(135deg, var(--ms-red), #b91c1c);
}

.project-logo.amkor {
  color: var(--ink);
  background: linear-gradient(135deg, #fff, #ecf6ff);
  border: 1px solid var(--line);
  font-size: 12px;
}

.project-card h3 {
  margin: 0;
  font-size: 18px;
}

.project-card p {
  margin: 9px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tags span,
.modal-tags span {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  color: #255a93;
  background: #e8f2ff;
  font-size: 11px;
  font-weight: 750;
}

.arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ms-blue);
  background: #fff;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.arrow:hover {
  color: #fff;
  background: var(--ms-blue);
  transform: translateX(2px);
}

.cert-section {
  align-items: center;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 0;
}

.cert-grid article {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-height: 92px;
  padding: 20px;
  border-left: 1px solid var(--line);
}

.cert-badge {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 12px;
}

.cert-grid article:first-child {
  border-left: 0;
}

.cert-grid strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.cert-grid span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin: 28px 0 38px;
  padding: clamp(34px, 5vw, 56px);
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(80, 230, 255, 0.2), transparent 16rem),
    linear-gradient(135deg, #061d45, #073b73 58%, #005a9e);
  box-shadow: var(--shadow);
}

.contact-section h2 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.contact-section p:not(.eyebrow) {
  max-width: 720px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.6;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 180px;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.project-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 12, 29, 0.48);
  backdrop-filter: blur(18px);
}

.modal-card {
  position: relative;
  width: min(620px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 32px 90px rgba(4, 18, 42, 0.28);
  transform: translateY(16px) scale(0.97);
  transition: transform 220ms ease;
}

.project-modal.is-open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.modal-card h2 {
  margin: 0;
  font-size: 34px;
}

.modal-card p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.site-footer {
  width: min(100% - 32px, 1408px);
  margin: 0 auto;
  padding: 22px 0 36px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-orbit {
    min-height: 460px;
  }

  .skill-pills,
  .project-grid,
  .cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .timeline::before,
  .timeline-item::before {
    display: none;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .quick-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .hero h1 {
    font-size: clamp(54px, 16vw, 80px);
  }

  .hero-orbit {
    min-height: 420px;
  }

  .initials-card {
    width: 168px;
    height: 168px;
    font-size: 62px;
  }

  .orbit-chip {
    min-width: auto;
    padding: 11px 13px;
    font-size: 13px;
  }

  .glass-panel {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .skill-pills,
  .project-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .cert-grid article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .cert-grid article:first-child {
    border-top: 0;
  }

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

  .contact-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 22px, 1408px);
  }

  .site-header {
    padding-inline: 16px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .chip-a {
    left: 0;
    top: 10%;
  }

  .chip-b {
    right: 0;
    top: 25%;
  }

  .chip-c {
    left: 0;
    bottom: 15%;
  }

  .chip-d {
    right: 0;
    bottom: 3%;
  }

  .project-card {
    min-height: 220px;
  }
}

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

/* ===== Brand logos: real logo image with monogram fallback ===== */
.company-logo,
.project-logo {
  position: relative;
  overflow: hidden;
}

.brand-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  background: #fff;
  border-radius: inherit;
}

.project-logo .brand-img {
  padding: 7px;
}

/* Product icons: real Microsoft icon image, falling back to the CSS-drawn shape */
.product-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Hide the CSS shape only while a real icon image is present (it returns via
   :has if the image is missing and onerror removes it). */
.product-icon:has(.product-img)::before,
.product-icon:has(.product-img)::after {
  display: none;
}

/* Sector label under each project name */
.project-card .sector {
  display: block;
  margin-top: 3px;
  color: var(--ms-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ===== Writing / Blog section ===== */
.writing-section {
  align-items: start;
}

.writing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.post-card {
  display: grid;
  grid-template-rows: 128px auto;
  border: 1px solid rgba(218, 230, 242, 0.9);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(25, 49, 79, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 120, 212, 0.28);
  box-shadow: 0 24px 52px rgba(0, 120, 212, 0.14);
}

.post-cover {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background-size: cover;
  background-position: center;
  background-color: #0a3a73;
  background-image: linear-gradient(135deg, #0a2a66, #0078d4 60%, #50e6ff);
}

.post-cover.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(6, 23, 53, 0.55));
}

.post-cat {
  position: relative;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.post-body {
  padding: 16px 18px 18px;
}

.post-body h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.3;
}

.post-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.post-meta {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.blog-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 22px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 15%, rgba(80, 230, 255, 0.25), transparent 14rem),
    linear-gradient(135deg, #061d45, #0a4a8c);
  box-shadow: var(--shadow-soft);
}

.blog-cta h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

.blog-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13.5px;
  line-height: 1.55;
}

.blog-cta .btn {
  align-self: flex-start;
}


/* ============================================================
   PCF Library + Speaking sections + Hero availability + Contact qualifier + Lightbox
   Added 2026-06
   ============================================================ */

/* Availability dot in hero eyebrow */
.avail-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ms-green); margin-right: 8px; vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(16,124,16,0.6); animation: availPulse 2s infinite;
}
@keyframes availPulse {
  0% { box-shadow: 0 0 0 0 rgba(16,124,16,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(16,124,16,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,124,16,0); }
}

/* PCF section — inherits .glass-panel layout, NO overrides */
.pcf-area {
  min-width: 0; /* allow scroll-snap to work inside grid */
}
.pcfs-section .section-label.side a {
  display: flex;
  margin-top: 14px;
}
.pcfs-section .section-label.side a:first-of-type {
  margin-top: 28px;
}
.pcf-lede {
  color: var(--muted);
  font-size: 15px;
  max-width: 640px;
  margin: 0 0 24px;
}

/* Carousel */
.pcf-carousel-wrap {
  position: relative;
  margin: 0 -8px;
}
.pcf-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,120,212,0.3) transparent;
}
.pcf-carousel::-webkit-scrollbar { height: 8px; }
.pcf-carousel::-webkit-scrollbar-track { background: transparent; }
.pcf-carousel::-webkit-scrollbar-thumb {
  background: rgba(0,120,212,0.25);
  border-radius: 999px;
}
.pcf-carousel::-webkit-scrollbar-thumb:hover { background: rgba(0,120,212,0.45); }

.pcf-card {
  flex: 0 0 calc(50% - 10px);
  scroll-snap-align: start;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.pcf-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Carousel arrows */
.pcf-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  color: var(--ms-blue);
  transition: background 180ms ease, transform 180ms ease;
}
.pcf-arrow:hover {
  background: var(--ms-blue);
  color: white;
  transform: translateY(-50%) scale(1.08);
}
.pcf-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.pcf-arrow.prev { left: -20px; }
.pcf-arrow.next { right: -20px; }
.pcf-arrow svg { width: 20px; height: 20px; }

/* Carousel dots */
.pcf-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.pcf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,120,212,0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 180ms ease;
}
.pcf-dot.active {
  background: var(--ms-blue);
  width: 24px;
  border-radius: 999px;
}

/* PCF media + body */
.pcf-media {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f4f8fd, #e9f1fa);
  border-bottom: 1px solid var(--line);
  padding: 16px;
  cursor: zoom-in;
}
.pcf-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(16,37,66,0.12);
  background: white;
  transition: transform 200ms ease;
}
.pcf-media:hover img { transform: scale(1.02); }
.pcf-media::after {
  content: '⤢';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(7,23,53,0.75);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  opacity: 0;
  transition: opacity 180ms ease;
}
.pcf-media:hover::after { opacity: 1; }

.pcf-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.pcf-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pcf-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.pcf-badge.open {
  background: #e0f7e9; color: var(--ms-green);
  border: 1px solid rgba(16,124,16,0.25);
}
.pcf-badge.commercial {
  background: #f0e6ff; color: #6b21d8;
  border: 1px solid rgba(107,33,216,0.25);
}
.pcf-tech {
  font-size: 11px; color: var(--muted);
  background: rgba(0,0,0,0.04);
  padding: 3px 10px; border-radius: 999px;
}
.pcf-card h3 {
  font-size: 19px; margin: 0 0 8px;
  color: var(--ink); letter-spacing: -0.01em;
}
.pcf-card p {
  color: var(--muted); font-size: 14px;
  margin: 0 0 16px; flex: 1; line-height: 1.55;
}
.pcf-links {
  display: flex; gap: 16px; font-size: 13px; font-weight: 600;
}
.pcf-links a {
  color: var(--ms-blue);
  transition: color 180ms ease;
}
.pcf-links a:hover { color: var(--ms-blue-2); text-decoration: underline; }

/* Speaking section — inherits .glass-panel layout, NO overrides */
.speak-area { min-width: 0; }
.speak-card {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  max-height: 320px;
}
.speak-img {
  position: relative;
  height: 100%;
  min-height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #f4f8fd, #e9f1fa);
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-right: 1px solid var(--line);
}
.speak-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(16,37,66,0.12);
  transition: transform 300ms ease;
}
.speak-img:hover img { transform: scale(1.03); }
.speak-img::after {
  content: '⤢';
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(7,23,53,0.75);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  opacity: 0;
  transition: opacity 200ms ease;
  z-index: 2;
}
.speak-img:hover::after { opacity: 1; }
.speak-body {
  padding: 24px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.speak-when {
  font-size: 11px; color: var(--ms-blue); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.speak-body h3 {
  font-size: 19px; margin: 0 0 6px;
  color: var(--ink); letter-spacing: -0.01em;
  line-height: 1.25;
}
.speak-where {
  font-size: 12px; color: var(--muted);
  margin: 0 0 10px; font-weight: 500;
}
.speak-body p {
  font-size: 13px; color: var(--ink-2);
  line-height: 1.55; margin: 0 0 12px;
}
.speak-audience {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin-bottom: 12px;
}
.speak-audience span {
  background: rgba(0,120,212,0.08);
  color: var(--ms-blue);
  padding: 3px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 600;
}
.speak-link {
  color: var(--ms-blue); font-weight: 600; font-size: 13px;
}
.speak-link:hover { text-decoration: underline; }

/* Contact qualifier block */
.qualify-box {
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  margin-top: 18px;
  max-width: 520px;
}
.qualify-label {
  font-size: 12px; color: var(--ms-blue); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0 0 8px;
}
.qualify-box ol {
  margin: 0; padding-left: 18px;
  color: var(--ink-2); font-size: 13px; line-height: 1.7;
}
.qualify-box li { padding: 2px 0; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(7,23,53,0.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 40px;
  backdrop-filter: blur(8px);
}
.lightbox.is-open { display: flex; animation: lbFade 200ms ease; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  cursor: zoom-out;
}
.lightbox-close {
  position: fixed;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: white;
  border: none;
  font-size: 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  color: var(--ink);
  z-index: 1001;
  transition: transform 180ms ease;
}
.lightbox-close:hover { transform: scale(1.1) rotate(90deg); }
.lightbox-caption {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  background: rgba(7,23,53,0.6);
  padding: 8px 18px;
  border-radius: 999px;
  max-width: 80vw;
  text-align: center;
}

/* Responsive */
@media (max-width: 920px) {
  .pcf-card { flex: 0 0 calc(100% - 16px); }
  .speak-card { grid-template-columns: 1fr; max-height: none; }
  .speak-img { min-height: 200px; max-height: 240px; }
  .speak-body { overflow-y: visible; }
  .pcf-arrow.prev { left: 4px; }
  .pcf-arrow.next { right: 4px; }
}
