/* ==============
   SMA BRAND
   ============== */

:root {
  /* Colors */
  --color-canvas: #ffffff;
  --color-onyx: #0c1018;
  --color-black: #000000;
  --color-umber: #1e1310;
  --color-slate: #6d7074;
  --color-ash: #9e9fa3;
  --color-card: #f5f7fb;
  --color-hairline: #e5e9f0;

  /* Brand — blue palette */
  --color-cobalt: #0047ab;   /* primary action */
  --color-azure:  #007fff;   /* bright accent / highlight */
  --color-steel:  #557c99;   /* muted accent */

  /* Gradients — blue-hour arc */
  --gradient-dawn-arc: linear-gradient(
    180deg,
    #001a3f 0%,
    #0047ab 24%,
    #007fff 50%,
    #5d9fd6 70%,
    #b9d6f2 86%,
    #eef4fb 100%
  );
  --gradient-ember: radial-gradient(
    75% 300% at 109.6% 147.1%,
    rgba(0, 127, 255, 0.85) 0%,
    rgba(0, 71, 171, 0.55) 32%,
    rgba(85, 124, 153, 0.04) 100%
  );
  --gradient-fire-line: linear-gradient(95deg, #0047ab 0%, #007fff 70%, #557c99 100%);

  /* Type */
  --font-display: "Khand", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-sans: "Hind", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --text-caption: 12px;
  --text-body-sm: 14px;
  --text-body: 16px;
  --text-subheading: 20px;
  --text-heading-sm: 24px;
  --text-heading: 32px;
  --text-display: clamp(40px, 6vw, 64px);
  --text-display-lg: clamp(46px, 8vw, 76px);

  /* Spacing */
  --section-gap: clamp(72px, 10vw, 120px);
  --page-max: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  /* Radius */
  --radius-sm: 8px;
  --radius-card: 16px;
  --radius-pill: 50px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-body);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-onyx);
  background-color: var(--color-canvas);
  
  background-image:
    radial-gradient(640px 640px at 95% 3%,  rgba(0, 127, 255, 0.22), transparent 66%),
    radial-gradient(580px 580px at 3% 24%,  rgba(0, 71, 171, 0.18),  transparent 64%),
    radial-gradient(620px 620px at 99% 52%, rgba(0, 127, 255, 0.20), transparent 66%),
    radial-gradient(580px 580px at 1% 76%,  rgba(85, 124, 153, 0.20), transparent 64%),
    radial-gradient(680px 680px at 72% 97%, rgba(0, 127, 255, 0.18), transparent 66%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-gap); }

.eyebrow {
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-steel);
  margin-bottom: 18px;
}
.eyebrow--invert { color: rgba(255, 255, 255, 0.82); }

.display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: var(--text-display);
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--color-onyx);
}

.section__head { margin-bottom: clamp(40px, 6vw, 64px); }
.section__head--center { text-align: center; max-width: 660px; margin-inline: auto; }
.section__sub {
  margin-top: 16px;
  color: var(--color-slate);
  font-size: var(--text-body);
  line-height: 1.4;
}

.gradient-text {
  background: var(--gradient-fire-line);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--text-body);
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 13px 26px;
  transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease, opacity .25s ease;
  white-space: nowrap;
}
.btn--solid {
  background: var(--color-cobalt);
  color: var(--color-canvas);
}
.btn--solid:hover { transform: translateY(-2px); background: var(--color-azure); }
.btn--ghost-line {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn--ghost-line:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn--pill {
  background: transparent;
  color: var(--color-onyx);
  padding: 10px 20px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--color-cobalt);
  width: max-content;
  transition: gap .25s ease, color .25s ease;
}
.link-arrow:hover { color: var(--color-azure); }
.link-arrow::after { content: "→"; transition: transform .25s ease; }
.link-arrow:hover { gap: 12px; }
.link-arrow:hover::after { transform: translateX(2px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
/* soft scrim so links stay legible over a bright hero; fades out once scrolled */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.5) 0%, rgba(8, 10, 14, 0) 100%);
  transition: opacity .35s ease;
  pointer-events: none;
}
.nav.is-scrolled::before { opacity: 0; }
.nav__inner {
  max-width: var(--page-max);
  margin-inline: auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding .35s ease;
}
/* subtle shrink on scroll */
.nav.is-scrolled .nav__inner { padding-block: 13px; }
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 34px; width: auto; display: block; transition: height .35s ease; }
.nav.is-scrolled .nav__logo img { height: 30px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__links a:not(.nav__cta) {
  position: relative;
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  transition: color .35s ease;
}
/* animated underline */
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav__links a:not(.nav__cta):hover { color: #fff; }
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav__divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.28);
  transition: background-color .35s ease;
}
.nav__cta {
  background: var(--color-cobalt);
  border: 1px solid var(--color-cobalt);
  color: var(--color-canvas);
  letter-spacing: 0.02em;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}
.nav__cta:hover {
  background: var(--color-azure);
  border-color: var(--color-azure);
  transform: translateY(-1px);
}

/* scrolled state -> solid canvas, onyx ink */
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--color-hairline);
  box-shadow: 0 1px 24px rgba(16, 18, 24, 0.06);
}
.nav.is-scrolled .nav__logo { color: var(--color-onyx); }
.nav.is-scrolled .nav__links a:not(.nav__cta) { color: var(--color-steel); }
.nav.is-scrolled .nav__links a:not(.nav__cta):hover { color: var(--color-onyx); }
.nav.is-scrolled .nav__divider { background: var(--color-hairline); }
.nav.is-scrolled .nav__cta { background: var(--color-cobalt); border-color: var(--color-cobalt); color: var(--color-canvas); }
.nav.is-scrolled .nav__cta:hover { background: var(--color-azure); border-color: var(--color-azure); color: #fff; }
.nav.is-scrolled .nav__toggle span { background: var(--color-onyx); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav__toggle span {
  width: 26px; height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .3s ease, opacity .3s ease, background-color .35s ease;
}

/* ---------- Hero (gallery scatter) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #26282c;
}
.hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(to bottom, transparent 72%, rgba(255, 255, 255, 0.55) 90%, #ffffff 100%),
    radial-gradient(85% 85% at 100% 100%, rgba(0, 127, 255, 0.16) 0%, transparent 55%),
    linear-gradient(150deg, #2c2f34 0%, #232529 55%, #1b1d20 100%);
}

/* Image-reveal layer — fades in the hovered card's image full-bleed */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}
.hero__bg.is-active { opacity: 1; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* darker on the left so the copy stays legible, lighter over the cards,
     fading to white at the very bottom to blend into the next section */
  background:
    linear-gradient(90deg, rgba(18, 20, 24, 0.9) 0%, rgba(18, 20, 24, 0.5) 45%, rgba(18, 20, 24, 0.15) 100%),
    linear-gradient(180deg, rgba(18, 20, 24, 0.35) 0%, transparent 35%, rgba(18, 20, 24, 0.55) 100%);
}

/* Timed expanding cards — strip anchored along the bottom; active opens wide */
.hero__cards {
  position: absolute;
  z-index: 3;
  /* align with the right edge of the centered page column, not the viewport */
  right: max(var(--gutter), calc((100vw - var(--page-max)) / 2 + var(--gutter)));
  bottom: clamp(40px, 7vh, 72px);
  width: min(500px, 54vw);
  height: clamp(100px, 13vh, 132px);
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.hcard {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  background: #1b1d20;
  cursor: pointer;
  /* the opening motion: flex-grow eases the active card wide */
  transition: flex-grow .7s cubic-bezier(.22, 1, .36, 1),
              border-color .5s ease;
  /* flex shorthand can't transition flex-grow, so set it explicitly */
  flex-grow: 1;
}
.hcard.is-active {
  flex-grow: 5;
  border-color: rgba(255, 255, 255, 0.5);
}
.hcard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62) saturate(0.9);
  transition: filter .6s ease, scale .9s ease;
}
.hcard.is-active img { filter: brightness(0.92) saturate(1.05); scale: 1.04; }
.hcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(16, 18, 24, 0.72) 100%);
}
/* timed progress bar that fills across the active card */
.hcard__bar {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #007fff, #6fb1ec);
  opacity: 0;
}
.hcard.is-active .hcard__bar {
  opacity: 1;
  animation: hcardFill var(--hcard-interval, 4500ms) linear forwards;
}
@keyframes hcardFill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
/* pause the loop while hovering the strip */
.hero__cards.is-paused .hcard.is-active .hcard__bar { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .hcard { transition: none; }
  .hcard.is-active .hcard__bar { animation: none; }
}

.hero__inner {
  position: relative;
  z-index: 3;
  max-width: var(--page-max);
  width: 100%;
  /* clear the fixed nav up top, and leave room for the card strip below */
  padding: clamp(110px, 16vh, 170px) var(--gutter) clamp(120px, 18vh, 180px);
  display: flex;
  align-items: center;
}
.hero__copy { text-align: left; max-width: 680px; }
.hero__title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: clamp(40px, 7.2vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 14ch;
}
.hero .gradient-text {
  background: linear-gradient(95deg, #007fff 0%, #6fb1ec 55%, #c8def2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  margin: 24px 0 0;
  max-width: 46ch;
  font-size: var(--text-subheading);
  line-height: 1.45;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
}
.hero__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: var(--color-card);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--color-ash); }
.card__body { padding: 28px 26px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__kicker {
  font-size: var(--text-caption);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-steel);
}
.card__title {
  font-size: var(--text-heading-sm);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.card__text {
  font-size: var(--text-body-sm);
  line-height: 1.5;
  color: var(--color-slate);
  flex: 1;
}
.card__media { height: 168px; }

/* gradient media placeholders (swap for photography later) */
.media--dawn { background: var(--gradient-dawn-arc); }
.media--dawn-lg { background: var(--gradient-dawn-arc); }
.media--ember { background: var(--gradient-ember), #001a3f; }
.media--fire { background: var(--gradient-fire-line); }
.media--steel {
  background: linear-gradient(160deg, #0047ab 0%, #007fff 52%, #b9d6f2 100%);
}
.card__media img,
.work-card__media img,
.story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Story ---------- */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.story__body {
  margin-top: 22px;
  max-width: 46ch;
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--color-slate);
}
.story__actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.story__media {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-card);
}
.story__body p + p { margin-top: 14px; }
.story__media--founder { aspect-ratio: auto; }
.story__media--founder img {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-card);
}
.story__credit {
  margin-top: 14px;
  font-size: var(--text-body-sm);
  color: var(--color-slate);
}
.story__credit strong { color: inherit; }

/* ---------- Filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 44px;
}
.filter {
  border: 1px solid var(--color-hairline);
  background: transparent;
  border-radius: var(--radius-pill);
  padding: 9px 20px;
  font-size: var(--text-body-sm);
  font-weight: 400;
  color: var(--color-slate);
  transition: all .25s ease;
}
.filter:hover { border-color: var(--color-azure); color: var(--color-cobalt); }
.filter.is-active {
  background: var(--color-cobalt);
  border-color: var(--color-cobalt);
  color: #fff;
  font-weight: 500;
}

/* ---------- Work grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.work-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-canvas);
  transition: transform .3s ease, border-color .3s ease;
}
.work-card:hover { transform: translateY(-4px); border-color: var(--color-ash); }
.work-card__media { min-height: 200px; }
.work-card__body { padding: 26px 26px 26px 0; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.meta-row { display: flex; align-items: center; gap: 12px; }
.tag {
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border: 1px solid rgba(0, 71, 171, 0.25);
  border-radius: var(--radius-pill);
  color: var(--color-cobalt);
}
.meta { font-size: var(--text-caption); color: var(--color-ash); letter-spacing: 0.02em; }
.work-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-heading-sm);
  line-height: 1.05;
  letter-spacing: 0;
}
.work-card__text { font-size: var(--text-body-sm); line-height: 1.5; color: var(--color-slate); }
.work-card.is-hidden { display: none; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  margin: var(--section-gap) var(--gutter);
  border-radius: clamp(16px, 3vw, 28px);
  overflow: hidden;
  isolation: isolate;
}
.cta__atmosphere {
  position: absolute;
  inset: 0;
  background: var(--gradient-dawn-arc);
  z-index: -1;
}
.cta__atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-ember);
  opacity: .5;
  mix-blend-mode: screen;
}
.cta__inner {
  text-align: center;
  padding: clamp(60px, 9vw, 110px) var(--gutter);
  max-width: 720px;
  margin-inline: auto;
}
.cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-display);
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: #fff;
}
.cta .gradient-text {
  background: linear-gradient(95deg, #8fc0ff 0%, #d6e9fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta__sub {
  margin-top: 18px;
  font-size: var(--text-subheading);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}
.cta__form {
  margin: 32px auto 0;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.cta__row { display: flex; gap: 12px; }
.cta__row .input { flex: 1; min-width: 0; }
.cta__textarea {
  width: 100%;
  min-width: 0;
  border-radius: 12px;
  padding: 14px 18px;
  line-height: 1.45;
  resize: vertical;
  min-height: 92px;
  font-family: inherit;
}
.cta__submit {
  align-self: center;
  margin-top: 4px;
  gap: 10px;
}
.cta__submit svg { width: 18px; height: 18px; }
.input {
  border: 1px solid rgba(12, 16, 24, 0.25);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 12px;
  padding: 13px 18px;
  font-family: inherit;
  font-size: var(--text-body);
  letter-spacing: -0.01em;
  color: var(--color-onyx);
  min-width: 280px;
}
.input::placeholder { color: var(--color-slate); }
.input:focus { outline: none; border-color: var(--color-cobalt); box-shadow: 0 0 0 3px rgba(0, 127, 255, 0.18); background: #fff; }
/* date/number fields: keep native controls tinted to match */
.input[type="date"], .input[type="number"] { color: var(--color-onyx); }
.input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.6; }
.input[type="date"]:invalid { color: var(--color-slate); }

/* ---------- Trust ---------- */
.trust { padding-block: clamp(48px, 7vw, 80px); border-block: 1px solid var(--color-hairline); }
.trust__label {
  text-align: center;
  font-size: var(--text-subheading);
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-onyx);
  max-width: 56ch;
  margin: 0 auto 40px;
}
/* Two-row horizontal marquee */
.trust__marquee {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.5vw, 22px);
  overflow: hidden;
  /* fade the left/right edges so logos slide in and out softly */
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.trust__row { overflow: hidden; }
.trust__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: trustMarquee 72s linear infinite;
  will-change: transform;
}
/* second row drifts the opposite way for a livelier feel */
.trust__row:nth-child(2) .trust__track { animation-direction: reverse; }
/* pause on hover so a name can be read */
.trust__marquee:hover .trust__track { animation-play-state: paused; }
@keyframes trustMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.logo {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.4vw, 21px);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-ash);
  white-space: nowrap;
  flex: none;
  /* spacing as trailing margin (not gap) so the cloned set lines up at -50% */
  margin-inline-end: clamp(22px, 4vw, 46px);
}

@media (prefers-reduced-motion: reduce) {
  .trust__track { animation: none; }
  /* fall back to a readable wrapped layout if motion is off */
  .trust__marquee { -webkit-mask: none; mask: none; }
  .trust__row { overflow: visible; }
  .trust__track { flex-wrap: wrap; justify-content: center; width: auto; }
}

/* ---------- Testimonials ---------- */

.quotes-marquee {
  overflow: hidden;
  /* fade the left/right edges so cards slide in and out softly */
  -webkit-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.quotes {
  display: flex;
  width: max-content;
  animation: quotesMarquee 80s linear infinite;
  will-change: transform;
}
/* pause on hover/focus so a quote can be read */
.quotes-marquee:hover .quotes,
.quotes-marquee:focus-within .quotes { animation-play-state: paused; }
@keyframes quotesMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  /* fall back to a swipeable row if motion is off (JS skips cloning too) */
  .quotes { animation: none; }
  .quotes-marquee { -webkit-mask: none; mask: none; overflow-x: auto; }
}
.quote {
  /* spacing via margin, not flex gap, so the -50% loop point is exact */
  margin: 0 20px 0 0;
  width: min(420px, 82vw);
  flex-shrink: 0;
  background: var(--color-card);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.stars { color: var(--color-azure); letter-spacing: 3px; font-size: 14px; }
.quote blockquote {
  margin: 0;
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--color-onyx);
  flex: 1;
}
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gradient-dawn-arc);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
}
.quote figcaption strong { display: block; font-size: var(--text-body-sm); font-weight: 500; }
.quote__role { display: block; font-size: var(--text-caption); color: var(--color-slate); margin-top: 2px; }
/* On touch-size screens the marquee becomes a swipeable, snap-to-card carousel */
@media (max-width: 860px) {
  .quotes-marquee {
    -webkit-mask: none;
    mask: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .quotes-marquee::-webkit-scrollbar { display: none; }
  .quotes { animation: none; }
  /* hide the loop clones the marquee script appends */
  .quotes > figure[aria-hidden="true"] { display: none; }
  .quote { scroll-snap-align: center; }
}

/* ---------- FAQ ---------- */
.faq__list {
  max-width: 820px;
  margin-inline: auto;
  border-top: 1px solid var(--color-hairline);
}
.faq__item { border-bottom: 1px solid var(--color-hairline); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: var(--text-subheading);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 300;
  color: var(--color-slate);
  transition: transform .3s ease;
  flex-shrink: 0;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  padding: 0 4px 26px;
  max-width: 64ch;
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--color-slate);
}
.faq__cta {
  text-align: center;
  margin-top: clamp(56px, 8vw, 88px);
}
.faq__cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-heading);
  letter-spacing: 0;
}
.faq__cta .btn { margin-top: 22px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--color-umber);
  color: rgba(255, 255, 255, 0.78);
  padding-top: clamp(56px, 8vw, 88px);
  margin-top: var(--section-gap);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: clamp(36px, 6vw, 72px);
  padding-bottom: 56px;
}
.footer__logo { display: inline-flex; }
.footer__logo img { height: 44px; width: auto; display: block; }
.footer__tag { margin-top: 16px; max-width: 34ch; font-size: var(--text-body-sm); line-height: 1.5; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 {
  font-size: var(--text-caption);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ash);
  font-weight: 500;
  margin-bottom: 4px;
}
.footer__col a { font-size: var(--text-body-sm); color: rgba(255, 255, 255, 0.78); transition: color .2s ease; }
.footer__col a:hover { color: #fff; }
.footer__muted { font-size: var(--text-body-sm); color: var(--color-ash); }
.footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px 24px;
  padding-block: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--text-caption);
  color: var(--color-ash);
}
.footer__ethos { justify-self: center; }
.footer__credit { justify-self: end; }
.footer__credit a {
  color: var(--color-ash);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
.footer__credit a:hover { color: #fff; }

/* ============================================================
   Sub-brand pages (SMA Sip / Chai Wali / SMA Studio)
   ============================================================ */
.subhero {
  position: relative;
  overflow: hidden;
  background: #16181c;
}
.subhero__atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(0, 127, 255, 0.30) 0%, transparent 58%),
    radial-gradient(70% 70% at 0% 100%, rgba(0, 71, 171, 0.22) 0%, transparent 60%),
    linear-gradient(160deg, #2c2f34 0%, #1b1d20 58%, #121316 100%);
}
.subhero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--page-max);
  margin-inline: auto;
  padding: clamp(120px, 15vw, 184px) var(--gutter) clamp(60px, 9vw, 104px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}
.subhero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-display-lg);
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: #fff;
}
.subhero__lede {
  margin-top: 20px;
  max-width: 46ch;
  font-size: var(--text-subheading);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}
.subhero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.subhero__media {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.subhero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--color-card);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  padding: 30px 28px;
  transition: transform .3s ease, border-color .3s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--color-ash); }
.feature__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--color-cobalt);
  line-height: 1;
}
.feature__title { margin-top: 12px; font-size: var(--text-subheading); font-weight: 600; letter-spacing: -0.01em; }
.feature__text { margin-top: 10px; font-size: var(--text-body-sm); line-height: 1.55; color: var(--color-slate); }

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.gallery-grid figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-hairline);
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .55s ease; }
/* for tall portraits whose subject sits near the top of the frame */
.gallery-grid img.crop-top { object-position: top; }
.gallery-grid figure:hover img { scale: 1.06; }

@media (max-width: 860px) {
  .subhero__inner { grid-template-columns: 1fr; }
  .subhero__media { aspect-ratio: 16 / 10; order: -1; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  /* Stack the hero in normal flow: copy first, card strip beneath it —
     no more absolute overlap with the buttons. */
  .hero {
    flex-direction: column;
    justify-content: flex-start;
    min-height: auto;
  }
  .hero__inner {
    padding: clamp(96px, 17vh, 140px) var(--gutter) clamp(28px, 5vh, 40px);
  }
  .hero__cards {
    position: static;
    box-sizing: border-box;
    width: 100%;
    height: clamp(150px, 26vh, 200px);
    margin-bottom: clamp(44px, 8vh, 72px);
    padding-inline: var(--gutter);
  }
  /* trim the strip to four cards so each stays legible */
  .hero__cards .hcard:nth-child(n + 5) { display: none; }
}
@media (max-width: 560px) {
  .hero__cards { height: clamp(132px, 22vh, 170px); gap: 8px; }
  .hero__cards .hcard:nth-child(n + 4) { display: none; }
}
@media (max-width: 860px) {
  /* Full-screen overlay menu — opaque, covers everything, no bleed-through */
  .nav__links {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 0 40px;
    background: var(--color-umber);
    z-index: 105;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
  }
  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .35s ease, transform .35s ease;
  }
  .nav__links a:not(.nav__cta) {
    color: rgba(255,255,255,.92) !important;
    font-family: var(--font-display);
    font-size: clamp(28px, 8vw, 40px);
    font-weight: 600;
  }
  .nav__divider { display: none; }
  .nav__cta {
    color: #fff !important;
    border-color: rgba(255,255,255,.55) !important;
    font-size: var(--text-subheading);
    padding: 14px 30px;
  }
  /* keep the toggle tappable above the open overlay */
  .nav__toggle { display: flex; position: relative; z-index: 110; }
  .nav.is-menu-open .nav__toggle span { background: #fff; }
  .nav__toggle.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }
  /* freeze the page behind the open menu */
  body.menu-open { overflow: hidden; }

  .story { grid-template-columns: 1fr; }
  .story__media { aspect-ratio: 16 / 10; }
  .story__media--founder { aspect-ratio: auto; }
  .work-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .work-card { grid-template-columns: 1fr; }
  .work-card__media { min-height: 180px; }
  .work-card__body { padding: 0 24px 26px; }
  .hero__lede { font-size: var(--text-body); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 8px; }
  .footer__ethos, .footer__credit { justify-self: center; }
  .cta__row { flex-direction: column; }
  .input { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
