/* Figma uses Segoe UI. Windows uses the installed font; everyone else gets
   Selawik, Microsoft's open-source (OFL) metric-compatible stand-in. */
@font-face { font-family: "Selawik"; src: url("../fonts/selawk.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Selawik"; src: url("../fonts/selawkb.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* =========================================================
   Sanjay Soni — portfolio v2 (Figma: SalesPoint-New, node 2125:19)
   ========================================================= */

:root {
  /* colour tokens taken from the Figma frame (no Figma variables are defined) */
  --c-page: #050815;
  --c-text: #f4f9ff;
  --c-muted: #a3b6d3;
  --c-accent: #54d7f2;
  --c-accent-bright: #14d7ff;
  --c-blue: #2b89ff;
  --c-blue-dark: #1f6fe0;
  --c-border: rgba(84, 215, 242, 0.25);
  --c-nav: #041634;
  --c-nav-border: #11355c;
  --c-chip: rgba(13, 23, 40, 0.6);
  --c-btn-ghost: rgba(13, 23, 40, 0.9);
  --c-tile: rgba(5, 8, 21, 0.45);
  --c-card-solid: rgba(9, 18, 36, 0.8);

  --g-panel: linear-gradient(160deg, rgba(18, 34, 62, 0.85) 0%, rgba(9, 18, 36, 0.88) 100%);
  --g-btn: linear-gradient(90deg, var(--c-blue) 0%, var(--c-blue-dark) 100%);
  --shadow-panel: 0 10px 36px rgba(0, 0, 0, 0.35), inset 0 0 36px rgba(43, 137, 255, 0.07);
  --glow-btn: 0 0 12px rgba(43, 137, 255, 0.45);

  --font: "Segoe UI", "Selawik", "Liberation Sans", Arial, Helvetica, sans-serif;
  --container: 1140px;
  --gutter: 20px;
  --section-gap: 32px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--c-page);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--c-accent-bright); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--c-blue); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.page { position: relative; padding-bottom: 8px; }
.stack > * + * { margin-top: var(--section-gap); }

/* decorative neon-curve bands (Figma "Neon Blue Curves on Dark Space" 1–5),
   spanning the full browser width */
.band { position: relative; isolation: isolate; }
.band::before {
  content: "";
  position: absolute; z-index: -1; pointer-events: none;
  left: 50%; transform: translateX(-50%);
  width: 100vw;
  background: url("../images/v2/bg-curves.png") no-repeat 0 0 / 100% 267%;
}
/* Figma 2130:748: own image, 27px past the section top/bottom; image is 147.11% tall, offset -9.01% */
.band--about::before   { top: -27px; bottom: -27px; height: auto; background-image: url("../images/v2/bg-curves-about.png"); background-size: 100% 147.11%; background-position: 0 19.13%; }
.band--demos::before   { top: -12px; height: 481px; }
.band--exp::before     { top: -12px; height: 607px; background-size: 100% 212%; }
.band--connect::before { top: -10px; height: 391px; background-size: 100% 329%; background-position: 0 -209px; }

/* hero background: runs from the very top of the page, behind the nav, hero and
   Impact panel, and ends just below Impact (the stack's 32px gap is split 16/16) */
.intro { position: relative; }
.intro > * + * { margin-top: var(--section-gap); }
.intro::before {
  content: "";
  position: absolute; z-index: -1; pointer-events: none;
  /* Figma 2127:739: page top (-1px) to 16px under the hero, image stretched to fill */
  top: -101px; bottom: -16px; left: 50%; transform: translateX(-50%);
  width: 100vw;
  background: url("../images/v2/bg-curves-hero.png") no-repeat 0 0 / 100% 100%;
}

/* ---------- shared components ---------- */
.panel {
  position: relative;
  background: var(--g-panel);
  border: 1px solid var(--c-border);
  border-radius: 18px;
  box-shadow: var(--shadow-panel);
}
.panel--md { border-radius: 16px; }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  color: var(--c-accent);
  font-size: 12px; font-weight: 700; line-height: 18px;
  letter-spacing: 0.96px; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 4px;
  background: var(--c-accent); box-shadow: 0 0 10px var(--c-accent);
}
.section > .eyebrow { margin-bottom: 16px; }

.icon { flex: none; display: block; }
.icon--lg { width: 28.59px; height: 28.59px; }
.icon--md { width: 26.39px; height: 26.39px; }
.icon--sm { width: 19.8px; height: 19.8px; }
.icon--xs { width: 14.3px; height: 14.3px; }
.icon--chip { width: 13.19px; height: 13.19px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 23px;
  border: 1px solid transparent; border-radius: 99px;
  font: 700 13px/20px var(--font);
  color: var(--c-text);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--g-btn); color: #fff; box-shadow: var(--glow-btn); }
.btn--primary:hover { box-shadow: 0 0 20px rgba(43, 137, 255, 0.7); }
.btn--ghost { background: var(--c-btn-ghost); border-color: var(--c-border); }
.btn--ghost:hover { border-color: var(--c-accent); }

.chip-list { display: flex; flex-wrap: wrap; gap: 12px 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px;
  background: var(--c-chip); border: 1px solid var(--c-border); border-radius: 99px;
  font-size: 12px; line-height: 18px; color: var(--c-text); white-space: nowrap;
}
.chip--lg { padding: 6px 14px; }
#skills .chip-list { gap: 12px 16.45px; }

.ms-logo {
  display: inline-grid; grid-template-columns: 8px 8px; grid-template-rows: 8px 8px; gap: 2px;
}
.ms-logo span { border-radius: 1px; }
.ms-logo span:nth-child(1) { background: #f25022; }
.ms-logo span:nth-child(2) { background: #7fba00; }
.ms-logo span:nth-child(3) { background: #00a4ef; }
.ms-logo span:nth-child(4) { background: #ffb900; }
.ms-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; line-height: 22.5px; }

/* ---------- nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; margin-top: 16px; margin-bottom: 22px; }
.site-header .nav { transition: border-radius .2s ease, box-shadow .2s ease; }
.site-header.is-stuck .nav { border-top-left-radius: 0; border-top-right-radius: 0; border-top-width: 0; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
.nav {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 24px;
  background: var(--c-nav);
  border: 2px solid var(--c-nav-border);
  border-radius: 10px;
}
.nav__brand { display: flex; align-items: center; gap: 16px; }
.nav__mark { display: grid; grid-template-columns: 9px 9px; grid-template-rows: 9px 9px; gap: 3px; }
.nav__mark span { background: var(--c-accent-bright); border-radius: 2px; }
.nav__name { font-weight: 700; font-size: 15px; line-height: 22.5px; letter-spacing: 0.6px; white-space: nowrap; }
.nav__tagline {
  padding-left: 15px; border-left: 1px solid var(--c-border);
  color: var(--c-muted); font-size: 11px; line-height: 16.5px; letter-spacing: 0.44px; white-space: pre;
}
.nav__menu { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.nav__links { display: flex; gap: 22px; }
.nav__links a {
  color: var(--c-muted); font-size: 13px; line-height: 19.5px; white-space: nowrap;
  transition: color .15s ease;
}
.nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--c-text); }
.nav__links a[aria-current="true"] { font-weight: 700; }
.nav__cta {
  padding: 7px 17px; border: 1px solid var(--c-accent-bright); border-radius: 8px;
  background: rgba(84, 215, 242, 0.05); color: var(--c-accent-bright);
  font-weight: 700; font-size: 12px; line-height: 18px; white-space: nowrap;
  transition: background-color .15s ease;
}
.nav__cta:hover { background: rgba(84, 215, 242, 0.15); }
.nav__toggle {
  display: none; margin-left: auto;
  width: 40px; height: 40px; border-radius: 8px;
  background: transparent; border: 1px solid var(--c-border); color: var(--c-text); cursor: pointer;
}
.nav__bars, .nav__bars::before, .nav__bars::after {
  display: block; width: 18px; height: 2px; margin: 0 auto; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .2s ease;
}
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -6px; }
.nav__bars::after { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  display: flex; align-items: center; gap: 36px;
  padding: 36px 40px;
}
.hero__profile {
  flex: none; width: 280px; padding-right: 37px;
  border-right: 1px solid var(--c-border);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.avatar {
  position: relative; width: 160px; height: 160px; border-radius: 50%;
  border: 2px solid var(--c-accent);
  background: linear-gradient(135deg, rgba(43, 137, 255, 0.3) 0%, rgba(84, 215, 242, 0.2) 100%);
  box-shadow: 0 0 28px rgba(43, 137, 255, 0.45);
}
.avatar__layer { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: none; pointer-events: none; }
.avatar__photo {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 159.09px; height: 159.09px; border-radius: 50%; overflow: hidden;
}
.avatar__photo img {
  position: absolute; max-width: none;
  width: 187.73px; height: 187.73px; left: -8.27px; top: -25.45px; object-fit: cover;
}
.hero__name { margin-top: 16px; font-size: 22px; line-height: 33px; font-weight: 700; letter-spacing: 0.44px; }
.hero__role { margin-top: 5px; color: var(--c-muted); font-size: 12px; line-height: 16.8px; }
.hero__profile .ms-brand { margin-top: 16px; }

.hero__body { flex: 1; min-width: 0; padding-bottom: 7.5px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5.25px 15px; border: 1px solid var(--c-border); border-radius: 99px;
  background: rgba(84, 215, 242, 0.06);
  color: var(--c-accent); font-size: 11px; font-weight: 700; line-height: 16.5px; letter-spacing: 0.66px; white-space: pre;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 3.5px; background: var(--c-accent); box-shadow: 0 0 8px var(--c-accent); }
.hero__title { margin-top: 12.3px; font-size: 44px; line-height: 51px; font-weight: 400; }
.hero__title em { font-style: normal; color: var(--c-accent); }
.hero__lead { margin-top: 15.6px; max-width: 680px; color: var(--c-muted); font-size: 14.5px; line-height: 23.33px; }
.hero__body .btn-row { margin-top: 24.4px; }

/* ---------- impact ---------- */
/* laid out like Highlights: label outside, no wrapping panel, cards use the
   Highlights card background (.panel .panel--md) and its 21px padding / 16px gaps */
/* Figma 2125:54 — one panel holding the eyebrow and two rows of five tiles */
.impact {
  padding: 24px 28px;
  background: linear-gradient(159.8deg, rgba(18, 34, 62, 0.85) 0%, rgba(9, 18, 36, 0.88) 100%);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35), inset 0 0 36px rgba(43, 137, 255, 0.07);
}
.impact > .eyebrow { margin-bottom: 14px; }
/* Figma gaps: hero → impact 27px, about card → highlights 47px (others 32px) */
.stack > #impact { margin-top: 27px; }
.stack > #about { margin-top: 50px; }
.stack > #highlights { margin-top: 47px; }
.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; padding-top: 2px; }
.stat {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 17px 15px;
  background: rgba(5, 8, 21, 0.45); border: 1px solid var(--c-border); border-radius: 14px;
}
.stat .icon { margin-top: 2px; }
.stat__value { font-size: 21px; line-height: 23.1px; font-weight: 700; }
.stat__label { margin-top: 3px; color: var(--c-muted); font-size: 11.5px; line-height: 15.53px; }
/* desktop: Figma's exact line breaks; narrower layouts wrap naturally */
@media (min-width: 1181px) { .stat__label { white-space: nowrap; } }
@media (max-width: 1180px) { .stat__label br { display: none; } }

/* ---------- about (Figma 2125:165) ---------- */
.about {
  padding: 28.5px 39px 32px;
  background: linear-gradient(139.46deg, rgba(18, 34, 62, 0.85) 0%, rgba(9, 18, 36, 0.88) 100%);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35), inset 0 0 36px rgba(43, 137, 255, 0.07);
}
.about__title { font-size: 22px; line-height: 28.6px; font-weight: 400; }
.about__copy { margin-top: 15.9px; color: var(--c-muted); font-size: 13.5px; line-height: 21.6px; }
.about__copy h4 { font-size: inherit; line-height: inherit; font-weight: 700; text-transform: uppercase; }
.about__copy p + h4, .about__copy ul + h4 { margin-top: 21.6px; }
.about__copy ul { list-style: disc; padding-left: 20px; }
.about__row { display: grid; grid-template-columns: minmax(0, 739px) minmax(0, 280px); gap: 32px; margin-top: 12.5px; align-items: center; }
.about__visual {
  display: flex; align-items: center; justify-content: center; min-height: 269px;
  border: 1px solid var(--c-border); border-radius: 14px;
  background:
    radial-gradient(ellipse 72% 97% at 50% 70%, rgba(84, 215, 242, 0.35) 0%, rgba(84, 215, 242, 0) 60%),
    linear-gradient(169.96deg, #0b2a5c 0%, #0a1330 100%);
}
.about__visual img { width: 99px; height: 99px; filter: drop-shadow(0 0 18px #54d7f2); }
.about__facts { display: grid; gap: 14px; padding-left: 23px; border-left: 1px solid var(--c-border); }
.fact { display: flex; align-items: flex-start; gap: 12px; color: var(--c-muted); font-size: 12.5px; line-height: 18.13px; }
.fact__icon { flex: none; width: 19.8px; height: 19.8px; margin-top: 2px; }
.about__sub { margin: 20px 0 10px; color: var(--c-accent); font-size: 11px; font-weight: 700; line-height: 16.5px; letter-spacing: 0.88px; text-transform: uppercase; }
.about .chip { background: rgba(13, 23, 40, 0.6); }
.about .chip .icon { width: 13.19px; height: 13.19px; }

/* ---------- card grids ---------- */
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid > * { align-self: start; }
/* Figma: highlight cards share their row height; rows 15.3px apart */
#highlights .grid { row-gap: 15.3px; }
#highlights .grid > *, #testimonials .grid > * { align-self: stretch; }
#testimonials .quote { height: 100%; }

.highlight { padding: 20px; }
.highlight__title { margin-top: 18px; font-size: 15px; line-height: 19.5px; font-weight: 700; }
.highlight__text { margin-top: 8px; color: var(--c-muted); font-size: 12px; line-height: 18.6px; }

/* ---------- demos ---------- */
.demos__intro { margin: 15px 0 20px; max-width: 729px; color: var(--c-muted); font-size: 13.5px; line-height: 20.93px; }
.demos .btn-row:first-of-type { margin-bottom: 24px; }
.demos > .btn-row:last-child { padding-bottom: 8px; } /* Figma button rows are 50px tall */
.demo-card {
  display: flex; flex-direction: column; overflow: hidden; padding: 0;
  transition: transform .2s ease, border-color .2s ease;
}
.demo-card:hover { transform: translateY(-3px); border-color: var(--c-accent); }
.demo-card__media { height: 120px; display: flex; align-items: center; justify-content: center; border-radius: 15px 15px 0 0; }
.demo-card__media img { width: 57.19px; height: 57.19px; filter: drop-shadow(0 0 16px rgba(84, 215, 242, 0.8)); }
.demo-card--retail .demo-card__media { background: linear-gradient(135deg, #0a2a6a 0%, #1d7fb8 100%); }
.demo-card--finance .demo-card__media { background: linear-gradient(135deg, #1b1450 0%, #2b6fd8 100%); }
.demo-card--mfg .demo-card__media { background: linear-gradient(135deg, #3a2410 0%, #1a4f8a 100%); }
.demo-card--health .demo-card__media { background: linear-gradient(135deg, #0b3a5a 0%, #1fa3c4 100%); }
.demo-card__body {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: rgba(9, 18, 36, 0.95); border-radius: 0 0 15px 15px; flex: 1;
}
.demo-card__text { flex: 1; min-width: 0; }
.demo-card__title { font-size: 15px; line-height: 22.5px; font-weight: 700; }
.demo-card__desc { margin-top: 3px; color: var(--c-muted); font-size: 11.5px; line-height: 16.1px; }
.demo-card__go {
  flex: none; width: 30px; height: 30px; border-radius: 15px; background: var(--c-blue);
  display: flex; align-items: center; justify-content: center;
}
.demo-card__go img { width: 15.39px; height: 15.39px; }
.demo-card { width: 100%; height: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.demo-card--ignite .demo-card__media { background: linear-gradient(135deg, #2a1060 0%, #0b6fc4 100%); }
/* video cards: still frame from the video, silent preview on hover, play badge */
.demo-card__media--video { position: relative; overflow: hidden; background: #050815; }
.demo-card__media--video .demo-card__poster,
.demo-card__media--video .demo-card__preview {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none;
}
.demo-card__preview { opacity: 0; transition: opacity .25s ease; }
.demo-card__preview.is-playing { opacity: 1; }
.demo-card__media--video::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 8, 21, 0) 55%, rgba(5, 8, 21, 0.45) 100%);
}
.demo-card__play {
  position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding-left: 3px;
  background: rgba(43, 137, 255, 0.85); box-shadow: 0 0 18px rgba(84, 215, 242, 0.7);
  transition: transform .2s ease, opacity .2s ease;
}
.demo-card:hover .demo-card__play, .demo-card:focus-visible .demo-card__play { transform: scale(1.08); }
.demo-card__preview.is-playing ~ .demo-card__play { opacity: 0; }

/* demo carousel: native scroll-snap track, arrow buttons enhanced by js */
.carousel { --per-view: 4; --gap: 16px; position: relative; margin-bottom: 16px; }
.carousel__track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: none; padding: 4px 0; margin: -4px 0;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; border-radius: 16px; }
.carousel__slide { scroll-snap-align: start; }
.carousel__btn {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(9, 18, 36, 0.92); border: 1px solid var(--c-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5); transition: opacity .2s ease, border-color .2s ease;
}
.carousel__btn:hover { border-color: var(--c-accent); }
.carousel__btn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.carousel__btn[disabled] { opacity: 0; pointer-events: none; }
.carousel__btn img { width: 16px; height: 16px; }
.carousel__btn--prev { left: -19px; }
.carousel__btn--prev img { transform: scaleX(-1); }
.carousel__btn--next { right: -19px; }

/* ---------- testimonials ---------- */
.quote {
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  padding: 18px; min-height: 144px;
}
.quote blockquote { position: relative; font-size: 12.5px; line-height: 18.75px; color: var(--c-text); }
.quote blockquote::before {
  content: "\201C"; color: var(--c-accent); font-size: 32px; line-height: 18.75px;
  float: left; margin-right: 1px; position: relative; top: 4px;
}
.quote figcaption { display: flex; align-items: center; gap: 10px; }
.quote__name { font-size: 13px; line-height: 19.5px; font-weight: 700; }
.quote__role { color: var(--c-muted); font-size: 11px; line-height: 14.3px; }

/* ---------- experience ---------- */
.job {
  padding: 18px 21px 19px; border-radius: 16px; border: 1px solid var(--c-border);
  background: var(--c-card-solid); box-shadow: var(--shadow-panel);
  min-height: 124.31px;
}
.job--current { border-color: var(--c-accent); box-shadow: 0 0 20px rgba(84, 215, 242, 0.15); }
.job__title { font-size: 14.5px; line-height: 19.58px; font-weight: 700; }
.job__meta { margin-top: 3px; color: var(--c-accent); font-size: 11.5px; line-height: 17.25px; font-weight: 700; }
.job__text { margin-top: 7px; color: var(--c-muted); font-size: 12.5px; line-height: 18.75px; }

/* ---------- education ---------- */
.edu { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 24px; padding: 22px 28px 20.4px; }
.edu > * { padding-bottom: 6px; }
.edu__title { margin-top: 12px; font-size: 14px; line-height: 21px; font-weight: 700; }
.edu__text { margin-top: 8px; color: var(--c-muted); font-size: 12.5px; line-height: 18.13px; }
.edu__text + .edu__text { margin-top: 6px; }

/* ---------- connect ---------- */
.connect {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto; gap: 28px; align-items: center;
  padding: 26px 32px;
}
.connect__title { margin-top: 16px; font-size: 30px; line-height: 45px; font-weight: 400; }
.connect__text { padding-left: 24px; border-left: 1px solid var(--c-border); color: var(--c-muted); font-size: 13.5px; line-height: 20.25px; }
.connect .btn-row { gap: 11.89px; }

/* ---------- footer ---------- */
.site-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px calc(var(--gutter) + 4px); margin-top: 28px;
}
.site-footer .ms-brand { font-size: 14px; line-height: 21px; }
.site-footer small { color: var(--c-muted); font-size: 12px; line-height: 18px; }

/* =========================================================
   Responsive (no mobile frame in Figma — inferred)
   ========================================================= */
@media (max-width: 1180px) {
  .nav__tagline { display: none; }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carousel { --per-view: 3; }
  .connect { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .connect .btn-row { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .nav { flex-wrap: wrap; }
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav__menu {
    display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 12px;
    padding-top: 12px; border-top: 1px solid var(--c-border);
  }
  .nav__menu.is-open { display: flex; }
  .nav__links { flex-direction: column; gap: 2px; }
  .nav__links a { display: block; padding: 10px 4px; font-size: 15px; }
  .nav__cta { text-align: center; padding: 10px 17px; }

  .hero { flex-direction: column; text-align: center; padding: 32px 24px; gap: 28px; }
  .hero__profile { width: auto; padding: 0 0 28px; border-right: 0; border-bottom: 1px solid var(--c-border); align-self: stretch; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__body .btn-row { justify-content: center; }
  .hero__title { font-size: 36px; line-height: 42px; }

  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carousel { --per-view: 2; }
  .edu { grid-template-columns: 1fr 1fr; }

  /* sections get taller than the Figma strips here, so fade the strip edges */
  .band::before {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 15%, #000 80%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 15%, #000 80%, transparent 100%);
  }
  .edu > :last-child { grid-column: 1 / -1; }
  .band--about::before, .intro::before { background-size: cover; background-position: center bottom; }
  .stack > #impact, .stack > #about, .stack > #highlights { margin-top: var(--section-gap); }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --section-gap: 28px; }
  .site-header { margin-top: 10px; margin-bottom: 16px; }
  .nav { padding: 10px 14px; }
  .impact { padding: 20px 16px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { padding: 14px 12px; min-height: 0; }
  .edu, .connect { padding: 20px; }
  .about { padding: 22px 20px 24px; }
  .about__title { font-size: 19px; line-height: 25px; }
  .about__row { grid-template-columns: 1fr; gap: 20px; }
  .about__visual { min-height: 180px; }
  .about__facts { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--c-border); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .carousel { --per-view: 1.15; --gap: 12px; }
  .carousel__btn--prev { left: -8px; }
  .carousel__btn--next { right: -8px; }
  .edu { grid-template-columns: 1fr; }
  .connect { grid-template-columns: 1fr; gap: 18px; }
  .connect__text { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--c-border); }
  .hero__title { font-size: 30px; line-height: 36px; }
  .pill { white-space: normal; text-align: left; }
  .btn { white-space: normal; }
}

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

/* block-level spans inside cards */
.demo-card__title, .demo-card__desc, .quote__name, .quote__role { display: block; }

/* ---------- video dialog ---------- */
.video-dialog {
  width: min(960px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--c-border); border-radius: 16px;
  background: #000; color: var(--c-text); overflow: hidden;
}
.video-dialog::backdrop { background: rgba(2, 4, 12, 0.8); backdrop-filter: blur(4px); }
.video-dialog video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-dialog__close {
  position: absolute; top: 8px; right: 8px; z-index: 1;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--c-border);
  background: rgba(5, 8, 21, 0.8); color: var(--c-text); font-size: 22px; line-height: 1; cursor: pointer;
}
