:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --ink: #0f1b2e;
  --muted: #5a6578;
  --line: #e2e8f0;
  --accent: #c8943c;
  --accent-2: #1e3a5f;
  --radius: 12px;
  --shadow: 0 18px 40px rgba(15, 27, 46, 0.08);
  /* --font-display / --font-body defined in site-fonts.css */
  --maxw: 1400px;
  /* Figma header (node 189:2) */
  --header-bg: #f3f4f7;
  --header-teal: #3dbfb0;
  --header-teal-2: #5dade2;
  --header-nav-pill: rgba(72, 72, 72, 0.94);
  --header-utility-ink: #3a3a3a;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--accent-2);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Site header layout — position/background: see “Client feedback pass” block below. */

.site-header__grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: clamp(1rem, 3vw, 2.75rem);
  row-gap: 0.45rem;
  padding: 0.75rem 0 1rem;
  align-items: center;
}

.site-header__logo {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  display: flex;
  line-height: 0;
}

.site-header__logo img {
  width: clamp(122px, 12vw, 204px);
  height: auto;
  max-height: 122px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(15, 27, 46, 0.12));
}

.site-header__utility {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1.1rem;
  font-size: 0.8125rem;
  color: var(--header-utility-ink);
}

.site-header__phones {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.12rem 0.2rem;
}

.site-header__sep {
  margin: 0 0.08rem 0 0;
  color: var(--header-utility-ink);
}

.site-header__utility-link {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.site-header__utility-link:hover {
  color: var(--header-teal);
  text-decoration: none;
}

.site-header__utility-icon {
  display: inline-flex;
  align-items: center;
  margin-left: 0.2rem;
  color: var(--header-teal);
}

.site-header__email {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__email:hover {
  color: var(--header-teal);
  text-decoration: none;
}

.site-header__actions {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem 0.65rem;
}

.site-header__nav-pill {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.28rem 0.45rem;
  border-radius: 999px;
  background: var(--header-nav-pill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  max-width: min(100%, 520px);
  overflow-x: auto;
  scrollbar-width: none;
}

.site-header__nav-pill::-webkit-scrollbar {
  display: none;
}

.site-header__nav-pill a {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__nav-pill a:hover {
  background: rgba(255, 255, 255, 0.14);
  text-decoration: none;
}

.site-header__search {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--header-nav-pill);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.site-header__search:hover {
  transform: translateY(-1px);
  background: rgba(72, 72, 72, 1);
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: #111;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #48c9b0 0%, #5dade2 100%);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(72, 201, 176, 0.32);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.site-header__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  text-decoration: none;
}

@media (max-width: 520px) {
  .site-header__cta {
    width: 100%;
    order: 10;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.25rem, var(--maxw));
  }

  .section {
    padding: 2.6rem 0;
  }

  .hero {
    min-height: min(82vh, 680px);
  }

  .page-figma .hero__content {
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero__content {
    padding: 4.25rem 0 8rem;
  }

  .hero__title {
    font-size: clamp(1.95rem, 11vw, 2.65rem);
    margin-bottom: 1.5rem;
  }

  .hero__subtitle {
    display: none;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
    min-height: 44px;
  }

  .certs__track,
  .clients__track,
  .awards__strip {
    padding-inline: 0.25rem;
    scroll-padding-inline: 0.25rem;
  }

  .cert-card {
    width: min(280px, 82vw);
  }

  .client-logo {
    width: 136px;
    height: 78px;
  }

  .carousel__btn:not(.figma-products__nav) {
    display: none;
  }
}

@media (max-width: 390px) {
  .site-header__utility {
    font-size: 0.68rem;
  }

  .site-header__email span:first-child {
    max-width: 9.5rem;
  }

  .site-header__nav-pill a {
    padding-inline: 0.58rem;
  }
}

/* Compact polished header overrides */
.site-header {
  overflow: hidden;
  background: rgba(250, 252, 253, 0.82);
  box-shadow: 0 8px 24px rgba(15, 27, 46, 0.08);
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3cbeb2, #5dade2, transparent);
  opacity: 0;
  transform: translateX(-18%);
  transition: opacity 0.25s ease, transform 0.45s ease;
  pointer-events: none;
}

.site-header:hover::before,
.site-header.is-scrolled::before {
  opacity: 1;
  transform: translateX(0);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(15, 27, 46, 0.1);
}

.site-header__grid {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(1rem, 2.4vw, 2.25rem);
  row-gap: 0.32rem;
  padding: 0.56rem 0 0.68rem;
  transition: padding 0.25s ease, row-gap 0.25s ease;
}

.site-header.is-scrolled .site-header__grid {
  row-gap: 0.2rem;
  padding: 0.42rem 0 0.52rem;
}

.site-header__logo img {
  width: clamp(102px, 9.5vw, 146px);
  max-height: 92px;
  transition: width 0.25s ease, max-height 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.site-header__logo:hover img {
  transform: translateY(-1px) scale(1.025);
  filter: drop-shadow(0 5px 12px rgba(60, 190, 178, 0.18));
}

.site-header.is-scrolled .site-header__logo img {
  width: clamp(90px, 8vw, 122px);
  max-height: 74px;
}

.site-header__utility {
  gap: 0.45rem 1rem;
  font-size: 0.78rem;
  line-height: 1.25;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.site-header.is-scrolled .site-header__utility {
  opacity: 0.84;
  transform: translateY(-1px);
}

.site-header__utility-link,
.site-header__email,
.site-header__nav-pill a,
.site-header__search,
.site-header__cta {
  outline-offset: 3px;
}

.site-header__utility-link:focus-visible,
.site-header__email:focus-visible,
.site-header__nav-pill a:focus-visible,
.site-header__search:focus-visible,
.site-header__cta:focus-visible {
  outline: 2px solid rgba(60, 190, 178, 0.55);
}

.site-header__actions {
  gap: 0.5rem 0.6rem;
}

.site-header__nav-pill {
  gap: 0.05rem;
  padding: 0.26rem 0.36rem;
  background: linear-gradient(135deg, #172234 0%, #2b3038 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 18px rgba(15, 27, 46, 0.12);
}

.site-header__nav-pill a {
  position: relative;
  overflow: hidden;
  font-size: 0.8rem;
  padding: 0.43rem 0.72rem;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-header__nav-pill a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0.18rem;
  height: 2px;
  border-radius: 999px;
  background: #3cbeb2;
  opacity: 0;
  transition: left 0.22s ease, right 0.22s ease, opacity 0.22s ease;
}

.site-header__nav-pill a:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.site-header__nav-pill a[aria-current="page"] {
  background: rgba(60, 190, 178, 0.2);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(60, 190, 178, 0.36);
}

.site-header__nav-pill a:hover::after,
.site-header__nav-pill a:focus-visible::after,
.site-header__nav-pill a[aria-current="page"]::after {
  left: 0.58rem;
  right: 0.58rem;
  opacity: 1;
}

.site-header__search {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #172234 0%, #2b3038 100%);
  box-shadow: 0 8px 18px rgba(15, 27, 46, 0.12);
}

.site-header__search:hover {
  background: #3cbeb2;
  color: #07131f;
  transform: translateY(-2px) rotate(-4deg);
}

.site-header__cta {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.62rem;
  box-shadow: 0 7px 16px rgba(72, 201, 176, 0.24);
}

.site-header__cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.06) saturate(1.06);
  box-shadow: 0 11px 22px rgba(72, 201, 176, 0.3);
}

@media (max-width: 390px) {
  .site-header__nav-pill a {
    padding-inline: 0.48rem;
  }

  .site-header__cta {
    flex: 1 1 100%;
  }
}

.hero {
  position: relative;
  min-height: min(78vh, 640px);
  color: #fff;
}

.hero__viewport {
  position: relative;
  min-height: inherit;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__mobile-bg {
  display: none;
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-color: #0e203a;
  z-index: 0;
}

.hero__mobile-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(14, 32, 58, 0.82), rgba(14, 32, 58, 0.45));
  pointer-events: none;
}

.hero__video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(14, 32, 58, 0.82), rgba(14, 32, 58, 0.45));
  pointer-events: none;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero__slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.2s ease;
  pointer-events: none;
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 20% 20%, rgba(232, 180, 76, 0.15), transparent 55%);
}

.hero__content {
  position: relative;
  padding: 6rem 0 5rem;
  max-width: 36rem;
}

.hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #1a1205;
  box-shadow: 0 10px 24px rgba(200, 148, 60, 0.35);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.hero__dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero__dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

.section {
  padding: 1rem 0 3.5rem 0;
}

.section--products {
  background: var(--surface);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem;
}

.section__lede {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.muted {
  color: var(--muted);
}

.trusted__grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

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

.trusted__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trusted__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.trusted__brand:hover,
.trusted__brand.is-active {
  border-color: rgba(200, 148, 60, 0.55);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.trusted__brand-logo-wrap {
  width: 96px;
  height: 40px;
  display: grid;
  place-items: center;
}

.trusted__brand-logo-wrap img {
  max-height: 36px;
  width: auto;
}

.trusted__brand-name {
  font-weight: 600;
}

.trusted__featured {
  position: relative;
  min-height: 320px;
}

.trusted__panel {
  position: absolute;

}

.trusted__panel.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.trusted__panel-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.trusted__panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trusted__panel-copy h3 {
  margin-top: 0;
}

.product-block + .product-block {
  margin-top: 3.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (max-width: 1000px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.product-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 0.75rem;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card__media {
  display: block;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  aspect-ratio: 1;
  background: #e8ecf5;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__title {
  font-size: 0.95rem;
  margin: 0.75rem 0 0.35rem;
}

.product-card__cta {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.industries {
  background: linear-gradient(180deg, #ffffff 0%, #eef2fb 100%);
}

.industries__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

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

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

.industries__tile {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 120px;
  background: #dfe6f5;
}

.industries__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.industries__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.industries__row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.industries__row-thumb {
  border-radius: 10px;
  overflow: hidden;
  background: #e8ecf5;
  aspect-ratio: 1;
}

.industries__row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.industries__row-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem;
  margin-top: 2rem;
}

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

.why__visual {
  position: relative;
}

.why__main {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.why__png {
  position: absolute;
  width: clamp(72px, 18%, 140px);
  filter: drop-shadow(0 12px 24px rgba(15, 27, 46, 0.2));
  animation: float 5s ease-in-out infinite;
}

.why__png--1 {
  top: 8%;
  right: -4%;
}

.why__png--2 {
  bottom: 6%;
  left: -6%;
  animation-delay: 0.8s;
}

.why__png--3 {
  top: 42%;
  right: 6%;
  animation-delay: 1.4s;
}

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

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

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

.why-card {
  padding: 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

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

.why-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 0.5rem;
}

.awards__track,
.certs__carousel,
.clients__carousel {
  position: relative;
  margin-top: 1.5rem;
}

.awards__strip,
.certs__track,
.clients__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 2.5rem;
  scrollbar-width: none;
}

.awards__strip::-webkit-scrollbar,
.certs__track::-webkit-scrollbar,
.clients__track::-webkit-scrollbar {
  display: none;
}

.award-card,
.cert-card,
.client-logo {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.award-card {
  width: 220px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.award-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.award-card figcaption {
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
}

.cert-card {
  width: min(320px, 80vw);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.cert-card img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.cert-card h3 {
  margin: 0;
  padding: 0.75rem 1rem 1rem;
  font-size: 1rem;
}

.client-logo {
  width: 160px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.5rem;
}

.client-logo img {
  max-height: 56px;
  width: auto;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.carousel__btn--prev {
  left: 0;
}

.carousel__btn--next {
  right: 0;
}

.carousel__btn::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: auto;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.carousel__btn--prev::after {
  transform: rotate(135deg);
}

.carousel__btn--next::after {
  transform: rotate(-45deg);
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

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

.tutorial-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.tutorial-card__thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.tutorial-card h3,
.tutorial-card p {
  padding: 0 1rem;
}

.tutorial-card h3 {
  margin-top: 0.75rem;
}

.stories__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

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

.story-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.story-card time {
  font-size: 0.85rem;
  color: var(--muted);
}

.story-card img {
  border-radius: calc(var(--radius) - 4px);
  margin: 0.75rem 0;
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.story-card h3 {
  margin: 0 0 0.5rem;
}

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

@media (max-width: 640px) {
  .section {
    padding: 2.6rem 0;
  }

  .hero {
    min-height: min(82vh, 680px);
  }

  .page-figma .hero__content {
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero__content {
    padding: 4.25rem 0 8rem;
  }

  .hero__title {
    font-size: clamp(1.95rem, 11vw, 2.65rem);
    margin-bottom: 1.5rem;
  }

  .hero__subtitle {
    display: none;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
    min-height: 44px;
  }
}

/* Client feedback pass: fixed translucent header + functional search panel. */
:root {
  --site-header-offset: clamp(104px, 10vw, 124px);
}

.page-figma main {
  padding-top: var(--site-header-offset);
}

.page-figma main > .hero:first-child {
  margin-top: calc(-1 * var(--site-header-offset));
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  overflow: visible;
  background: rgba(250, 252, 253, 0.48);
  border-bottom: 1px solid rgba(15, 27, 46, 0.10);
  box-shadow: 0 10px 28px rgba(15, 27, 46, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: rgba(15, 27, 46, 0.12);
  box-shadow: 0 12px 30px rgba(15, 27, 46, 0.12);
}

/* Homepage hero: glass header over video until scroll (desktop; mobile tuned in @media 900px) */
body.page-home .site-header:not(.is-scrolled) {
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header__utility-icon {
  margin-left: 0;
  margin-right: 0.28rem;
}

.site-header__search-panel {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
}

.site-header__search-panel[hidden] {
  display: none;
}

.site-header__search-panel:not([hidden]) {
  grid-row: 3;
  padding-top: 0.15rem;
}

.site-header__search-input {
  flex: 1 1 18rem;
  min-width: min(100%, 12rem);
  border: 1px solid rgba(15, 27, 46, 0.18);
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  font: inherit;
  color: #111;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
}

.site-header__search-input:focus {
  border-color: #3cbeb2;
  box-shadow: 0 0 0 3px rgba(60, 190, 178, 0.22);
}

.site-header__search-submit {
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: #3cbeb2;
  color: #07131f;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.carousel__btn:not(.figma-products__nav) {
  top: 50%;
  transform: translateY(-50%);
}

/* Mobile: compact header bar + left off-canvas drawer */
.site-header__menu-toggle {
  display: none;
}

.site-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  visibility: hidden;
  pointer-events: none;
}

.site-drawer--open {
  visibility: visible;
  pointer-events: auto;
}

.site-drawer__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(8, 15, 28, 0.52);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.32s ease;
}

.site-drawer--open .site-drawer__backdrop {
  opacity: 1;
}

.site-drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(88vw, 320px);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  padding: max(0.85rem, env(safe-area-inset-top, 0px)) 1.15rem max(1.15rem, env(safe-area-inset-bottom, 0px));
  background: #fafbfc;
  box-shadow: 8px 0 40px rgba(15, 27, 46, 0.18);
  transform: translateX(-104%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.site-drawer--open .site-drawer__panel {
  transform: translateX(0);
}

.site-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(15, 27, 46, 0.08);
}

.site-drawer__title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3cbeb2;
}

.site-drawer__close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 27, 46, 0.06);
  color: #111827;
  cursor: pointer;
  flex-shrink: 0;
}

.site-drawer__close:hover {
  background: rgba(60, 190, 178, 0.14);
}

.site-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1 1 auto;
}

.site-drawer__nav a {
  display: block;
  padding: 0.72rem 0.65rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f172a;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-drawer__nav a:hover {
  background: rgba(60, 190, 178, 0.1);
  color: #0d3d36;
}

.site-drawer__nav a[aria-current="page"] {
  background: rgba(60, 190, 178, 0.16);
  color: #0a5c52;
}

.site-drawer__footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 27, 46, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.site-drawer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.site-drawer__social-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #3cbeb2;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.site-drawer__social-link:hover {
  background: #35a89d;
  transform: translateY(-1px);
}

.site-drawer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: #07131f;
  background: linear-gradient(135deg, #48c9b0, #5dade2);
  box-shadow: 0 10px 22px rgba(72, 201, 176, 0.28);
}

.site-drawer__cta:hover {
  filter: brightness(1.04);
  text-decoration: none;
}

body.site-drawer-open {
  overflow: hidden;
}

@media (min-width: 901px) {
  .site-drawer {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --site-header-offset: 72px;
  }

  .site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    overflow: visible;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  }

  .site-header__grid {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: max(0.4rem, env(safe-area-inset-top, 0px)) 0 0.4rem;
    min-height: var(--site-header-offset);
    box-sizing: border-box;
    transition: none;
  }

  .site-header__logo {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  body:not(.page-home) .site-header,
  body:not(.page-home) .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.94);
    border-bottom-color: rgba(15, 27, 46, 0.08);
    box-shadow: 0 4px 20px rgba(15, 27, 46, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  body.page-home .site-header:not(.is-scrolled) {
    background: rgba(255, 255, 255, 0.42);
    border-bottom-color: rgba(255, 255, 255, 0.28);
    box-shadow: none;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition:
      background 0.25s ease,
      box-shadow 0.25s ease,
      border-color 0.25s ease;
  }

  body.page-home .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: rgba(15, 27, 46, 0.1);
    box-shadow: 0 4px 20px rgba(15, 27, 46, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition:
      background 0.25s ease,
      box-shadow 0.25s ease,
      border-color 0.25s ease;
  }

  .site-header::before {
    display: none;
  }

  .site-header__utility {
    display: none !important;
  }

  .site-header__logo img {
    width: clamp(60px, 16vw, 76px);
    height: auto;
    max-height: none;
    transition: none;
  }

  .site-header.is-scrolled .site-header__logo img {
    width: clamp(60px, 16vw, 76px);
    max-height: none;
  }

  .site-header__actions {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    position: relative;
  }

  .site-header__nav-pill,
  .site-header__cta {
    display: none !important;
  }

  .site-header__search {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #0f2744;
    box-shadow: 0 2px 10px rgba(15, 27, 46, 0.08);
  }

  .site-header__search:hover {
    background: rgba(255, 255, 255, 0.72);
    color: #0f2744;
    transform: none;
  }

  body.page-home .site-header.is-scrolled .site-header__search,
  body:not(.page-home) .site-header__search {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(15, 27, 46, 0.08);
  }

  .site-header__menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    padding: 0;
    color: #0f2744;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(15, 27, 46, 0.08);
  }

  body.page-home .site-header.is-scrolled .site-header__menu-toggle,
  body:not(.page-home) .site-header__menu-toggle {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(15, 27, 46, 0.08);
  }

  .site-header__menu-icon {
    grid-area: 1 / 1;
    display: block;
    width: 22px;
    height: 22px;
    transition: opacity 0.2s ease, transform 0.25s ease;
  }

  .site-header__menu-icon--close {
    opacity: 0;
    transform: scale(0.75);
  }

  body.site-drawer-open .site-header__menu-icon--open {
    opacity: 0;
    transform: scale(0.75);
  }

  body.site-drawer-open .site-header__menu-icon--close {
    opacity: 1;
    transform: scale(1);
  }

  .site-header__search-panel:not([hidden]) {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.35rem 0 0.15rem;
    margin: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .site-header--search-open {
    --site-header-offset: 124px;
  }

  .site-header--search-open .site-header__grid {
    grid-template-rows: auto auto;
    align-items: center;
    padding-bottom: 0.45rem;
  }

  .site-header__search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font-size: 1rem;
  }

  .site-header__search-submit {
    flex: 0 0 auto;
    min-width: 5.5rem;
    padding: 0.7rem 1.15rem;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
}

@media (max-width: 520px) {
  :root {
    --site-header-offset: 68px;
  }

  .site-header__grid {
    gap: 0.45rem 0.65rem;
    padding-bottom: 0.35rem;
  }

  .site-header__search,
  .site-header__menu-toggle {
    width: 38px;
    height: 38px;
  }

  .site-header--search-open {
    --site-header-offset: 118px;
  }

  .site-header__search-submit {
    min-width: 4.75rem;
    padding-inline: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-drawer__backdrop,
  .site-drawer__panel {
    transition: none;
  }
}

/* Hero copy must clear the fixed mobile header (offset cancels main padding; this is the real gap) */
@media (max-width: 900px) {
  .hero {
    min-height: min(84vh, 640px);
  }

  .hero__dots {
    display: none;
  }

  /* Hide the desktop video on mobile; show static background image instead */
  .hero__video-wrap {
    display: none;
  }

  .hero__mobile-bg {
    display: block;
    background-image: url("../img/bhagwati-mv-bg.png");
    background-position: center 18%;
  }

  .hero__mobile-bg::after {
    background: linear-gradient(
      180deg,
      rgba(14, 32, 58, 0.38) 0%,
      rgba(14, 32, 58, 0.28) 45%,
      rgba(14, 32, 58, 0.52) 100%
    );
  }

  .page-figma .hero__layout {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding-top: calc(var(--site-header-offset) + 1rem);
    padding-bottom: 2.5rem;
    padding-inline: max(1rem, env(safe-area-inset-left, 0px)) max(1rem, env(safe-area-inset-right, 0px));
    text-align: center;
  }

  .page-figma .hero__trust-anchor {
    position: static;
    transform: none;
    width: auto;
    order: -1;
  }

  .page-figma .hero__content {
    order: 1;
    margin-inline: auto;
    max-width: 100%;
    padding-top: 0;
    padding-bottom: 0;
  }

  .page-figma .hero__subtitle {
    display: none;
  }

  .page-figma .hero__title {
    margin-bottom: 1.5rem;
    line-height: 1.15;
  }

  .page-figma .hero__actions {
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 20rem;
    margin-inline: auto;
    gap: 0.85rem;
  }

  .page-figma .hero__actions .btn {
    width: 100%;
    flex: none;
    min-height: 46px;
  }

  .page-figma .hero__actions .btn--hero-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.85);
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: min(82vh, 680px);
  }
  .page-figma .hero__layout {
    /* Match narrow .container gutter, never less than 1rem for readable copy */
    padding-inline: max(clamp(1rem, 4vw, 1.25rem), env(safe-area-inset-left, 0px))
      max(clamp(1rem, 4vw, 1.25rem), env(safe-area-inset-right, 0px));
  }
}

@keyframes headerPopIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
