/* ================= HERO ================= */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 68px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(var(--brand-rgb), 0.4), transparent 42%),
    radial-gradient(circle at 88% 84%, rgba(var(--brand-rgb), 0.3), transparent 46%),
    var(--brand-900);
}

.hero__stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: clamp(560px, 84vh, 860px);
}

.hero__media {
  position: absolute;
  inset: -68px 0 0 0;
  z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 80%, transparent 100%);
  mask-image: linear-gradient(180deg, black 0%, black 80%, transparent 100%);
}

.hero__photo {
  position: absolute;
  inset: 0;
}

.hero__photo > img,
.hero__photo > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 20, 55, 0.95) 0%, rgba(8, 20, 55, 0.88) 28%, rgba(8, 20, 55, 0.6) 48%, rgba(8, 20, 55, 0.14) 66%, transparent 82%);
}

.hero__stripe {
  position: absolute;
  inset: 0;
  background: var(--gold);
  opacity: 0.85;
  clip-path: polygon(58% 0, calc(58% + 4px) 0, calc(46% + 4px) 100%, 46% 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--space-lg) var(--space-md);
}

.hero__content {
  max-width: 40rem;
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.hero__title {
  font-size: clamp(2.3rem, 1.1rem + 3.4vw, 4.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.08;
}

.hero__title .accent {
  color: var(--gold);
}

.hero__lead {
  margin-top: var(--space-sm);
  font-size: var(--fs-body);
  color: rgba(255, 255, 255, 0.82);
  max-width: 32rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

/* ---- Hero service slider ---- */
.hero-services {
  position: relative;
  z-index: 2;
  padding-block: var(--space-xs) var(--space-lg);
}

.hero-services__track {
  --fade-l: 0px;
  --fade-r: 72px;
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 8px;
  scrollbar-width: none;
  margin-inline: -8px;
  padding: 18px 8px 30px;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black var(--fade-l), black calc(100% - var(--fade-r)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, black var(--fade-l), black calc(100% - var(--fade-r)), transparent 100%);
}

.hero-services__track.is-scrolled {
  --fade-l: 48px;
}

.hero-services__track.is-at-end {
  --fade-r: 0px;
}

.hero-services__track::-webkit-scrollbar {
  display: none;
}

.hero-services__track.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

@media (max-width: 900px) {
  .hero__stage {
    min-height: clamp(480px, 88vh, 640px);
  }

  .hero__scrim {
    background: linear-gradient(180deg, rgba(8, 20, 55, 0.3) 0%, rgba(8, 20, 55, 0.82) 55%, rgba(8, 20, 55, 0.96) 100%);
  }

  .hero__stripe {
    display: none;
  }

  .hero__inner {
    justify-content: flex-end;
    padding-block: var(--space-md) var(--space-md);
  }
}

/* ================= STATEMENT ================= */
.statement__headline {
  font-size: var(--fs-hero);
  max-width: 22ch;
  margin-top: var(--space-md);
}

.statement__word {
  display: inline-block;
}

.statement__body {
  margin-top: var(--space-lg);
  font-size: var(--fs-lead);
  color: var(--grey-500);
  max-width: 40rem;
}

/* ================= CREDENTIALS ================= */
.credentials-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.credentials-note {
  margin-top: var(--space-md);
  font-size: var(--fs-small);
  color: var(--grey-300);
}

/* ================= WHY MYTHCON ================= */
/* Desktop geometry: the photo panel is a half-ellipse; each row's icon sits on its edge via --arc
   (computed in sections/why-mythcon.php from the same --row/--gap/--pad values). */
.why {
  --row: 76px;
  --gap: 10px;
  --pad: 44px;
  --why-w: clamp(420px, 45vw, 760px);
  position: relative;
  display: grid;
  grid-template-columns: var(--why-w) minmax(0, 1fr);
  overflow: hidden;
  background: var(--white);
}

.why__visual {
  position: relative;
  overflow: hidden;
  border-radius: 0 100% 100% 0 / 0 50% 50% 0;
  background: var(--brand);
  color: var(--white);
  isolation: isolate;
}

/* one photo per pillar, cross-fading as the active pillar changes */
.why__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0;
  transition: opacity 900ms var(--ease-in-out);
}

.why__bg.is-active {
  opacity: 1;
}

.why__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.why__bg.is-active .why__img {
  animation: spot-zoom 11s ease-out forwards;
}

.why__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(var(--brand-rgb), 0.95) 0%, rgba(var(--brand-rgb), 0.72) 55%, rgba(var(--brand-rgb), 0.3) 100%),
    linear-gradient(0deg, rgba(var(--navy-rgb), 0.6), transparent 55%);
}

/* copy block is vertically centred, where the ellipse is widest */
.why__copy {
  position: absolute;
  top: 44%;
  left: max(var(--gutter), calc((100vw - var(--container-max)) / 2 + var(--gutter)));
  width: min(20rem, calc(var(--why-w) * 0.62));
  transform: translateY(-50%);
}

.why__top {
  margin-bottom: var(--space-xs);
}

.why__arrow {
  display: block;
  width: 2.75rem;
  color: var(--gold);
}

.why__arrow .icon {
  width: 100%;
  height: auto;
}

.why__title {
  font-size: clamp(1.8rem, 1.2rem + 1.7vw, 2.7rem);
  font-weight: 300;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--white);
}

.why__title strong {
  display: block;
  font-weight: 700;
}

/* stats live inside the panel */
.why__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: var(--space-md) 0 0;
}

.why-stat {
  padding: 0.7rem 0.75rem 0.6rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 -3px 0 var(--gold);
  backdrop-filter: blur(6px);
}

.why-stat__value {
  font-size: clamp(1.3rem, 1rem + 0.9vw, 1.75rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}

.why-stat__label {
  margin: 0.3rem 0 0;
  font-size: 0.68rem;
  line-height: 1.25;
  color: var(--on-dark-ink);
}

.why__list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--gap);
  margin: 0;
  padding: var(--pad) var(--gutter) var(--pad) 0;
  list-style: none;
}

/* pillar cards: light by default, brand gradient sweep when active */
.why-row {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  height: var(--row);
  padding: 0 1.4rem 0 12px;
  /* icon centre (12px + 26px) sits on the panel edge */
  margin-left: calc(var(--arc) * var(--why-w) * -1 - 38px);
  overflow: hidden;
  border-radius: 999px 18px 18px 999px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 12px 26px -18px rgba(var(--navy-rgb), 0.45);
  outline: none;
  cursor: default;
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}

.why-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--brand), var(--navy-800));
  transform: translateX(-101%);
  transition: transform 600ms var(--ease-out);
}

.why-row > * {
  position: relative;
}

.why-row__num {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(var(--brand-rgb), 0.07);
  transform: translateY(-50%);
  transition: color var(--duration-base) var(--ease-out);
}

.why-row__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--white);
  box-shadow: 0 10px 20px -8px rgba(var(--navy-rgb), 0.6);
  transition: transform var(--duration-base) var(--ease-out);
}

.why-row__icon--0 {
  background: linear-gradient(135deg, var(--brand), var(--navy-800));
}

.why-row__icon--1 {
  background: linear-gradient(135deg, var(--gold), var(--gold-600));
  color: var(--navy-950);
}

.why-row__icon--2 {
  background: linear-gradient(135deg, var(--navy-800), var(--data-primary));
}

.why-row__icon .icon {
  width: 1.4rem;
  height: 1.4rem;
}

.why-row__text {
  min-width: 0;
  padding-right: 2.5rem;
}

.why-row__title {
  font-size: 1.02rem;
  line-height: 1.2;
  color: var(--ink);
  transition: color var(--duration-fast);
}

.why-row__desc {
  margin-top: 0.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--grey-500);
  transition: color var(--duration-fast);
}

.why-row.is-active,
.why-row:hover,
.why-row:focus-visible {
  transform: translateX(8px);
  box-shadow: 0 0 0 1px transparent, 0 20px 32px -18px rgba(var(--navy-rgb), 0.75);
}

.why-row.is-active::before,
.why-row:hover::before,
.why-row:focus-visible::before {
  transform: none;
}

.why-row.is-active .why-row__title,
.why-row:hover .why-row__title,
.why-row:focus-visible .why-row__title {
  color: var(--white);
}

.why-row.is-active .why-row__desc,
.why-row:hover .why-row__desc,
.why-row:focus-visible .why-row__desc {
  color: var(--on-dark-ink);
}

.why-row.is-active .why-row__num,
.why-row:hover .why-row__num,
.why-row:focus-visible .why-row__num {
  color: rgba(255, 255, 255, 0.12);
}

.why-row.is-active .why-row__icon,
.why-row:hover .why-row__icon,
.why-row:focus-visible .why-row__icon {
  transform: scale(1.08) rotate(-6deg);
  background: linear-gradient(135deg, var(--gold), var(--gold-600));
  color: var(--navy-950);
}

/* tablet and phone: panel becomes a curved header, list stacks below with no arc */
@media (max-width: 1000px) {
  .why {
    grid-template-columns: minmax(0, 1fr);
  }

  .why__visual {
    border-radius: 0 0 50% 50% / 0 0 12% 12%;
  }

  .why__copy {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    max-width: 30rem;
    margin-inline: auto;
    padding: var(--space-xl) var(--gutter) var(--space-xl);
    transform: none;
  }

  .why__title {
    font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.6rem);
  }

  .why__list {
    padding: var(--space-lg) var(--gutter) var(--space-xl);
  }

  .why-row {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .why {
    --row: 68px;
  }

  .why__copy {
    padding-block: var(--space-lg);
  }

  .why-row {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 0.75rem;
    height: auto;
    min-height: var(--row);
    padding: 0.55rem 1rem 0.55rem 11px;
  }

  .why-row__icon {
    width: 46px;
    height: 46px;
  }

  .why-row__text {
    padding-right: 0;
  }

  .why-row__desc {
    -webkit-line-clamp: unset;
    display: block;
  }

  .why-row__num {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .why__bg,
  .why-row,
  .why-row::before,
  .why-row__icon {
    transition: none;
  }

  .why__bg.is-active .why__img {
    animation: none;
  }
}

/* ---- Hero service cards (photo cards) ---- */
.svc-card {
  position: relative;
  flex: 0 0 clamp(224px, 19vw, 262px);
  height: 340px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  border-radius: 14px;
  color: var(--white);
  background: var(--brand-900);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.svc-card:hover,
.svc-card:focus-within,
.svc-card.is-active {
  transform: translateY(-6px);
  box-shadow: 0 28px 46px -20px rgba(var(--navy-rgb), 0.6);
}

.svc-card .svc-card__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.8s var(--ease-out);
}

.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.94) 0%,
    rgba(0, 0, 0, 0.82) 34%,
    rgba(0, 0, 0, 0.4) 62%,
    rgba(0, 0, 0, 0.06) 100%
  );
}

.svc-card:hover .svc-card__bg,
.svc-card:focus-within .svc-card__bg,
.svc-card.is-active .svc-card__bg {
  transform: scale(1.07);
}

.svc-card__num {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(3px);
}

.svc-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 1.1rem 1.1rem;
}

.svc-card__title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.2;
}

.svc-card__desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.svc-card:hover .svc-card:hover @media (max-width: 900px) {
  .svc-card {
    flex-basis: 78%;
    height: 340px;
  }
}

.svc-card__more {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out), opacity 0.35s ease, margin-top 0.35s ease;
}

.svc-card:hover .svc-card__more,
.svc-card:focus-within .svc-card__more,
.svc-card.is-active .svc-card__more {
  max-height: 130px;
  margin-top: 0.6rem;
  opacity: 1;
}

.svc-card__overview {
  font-size: 0.74rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.svc-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.8rem;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 600;
  user-select: none;
  -webkit-user-drag: none;
}

.svc-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.svc-card__link .icon {
  width: 0.9em;
  height: 0.9em;
  transition: transform var(--duration-fast) var(--ease-out);
}

.svc-card:hover .svc-card__link .icon {
  transform: translateX(3px);
}

@media (hover: none) {
  .svc-card__more {
    max-height: 130px;
    margin-top: 0.6rem;
    opacity: 1;
  }
}

/* ---- Hero slider controls ---- */
.hero-services__controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-bottom: var(--space-xs);
}

.hero-services__label {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.hero-services__progress {
  position: relative;
  flex: 1;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.hero-services__progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 25%;
  background: var(--gold);
  border-radius: 2px;
  transition: width var(--duration-base) var(--ease-out);
}

.hero-services__buttons {
  display: flex;
  gap: var(--space-2xs);
}

.hero-services__btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--hairline) solid var(--grey-300);
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  transition: background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
}

.hero-services__btn .icon {
  width: 18px;
  height: 18px;
}

.hero-services__btn--prev .icon {
  transform: scaleX(-1);
}

.hero-services__btn:hover:not(:disabled) {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.hero-services__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 900px) {
  .hero-services__track {
    --fade-r: 48px;
  }
}

/* Laptop / small desktop: keep the copy comfortably inside the scrim */
@media (min-width: 901px) and (max-width: 1240px) {
  .hero__content {
    max-width: 28rem;
  }

  .hero__lead {
    max-width: 26rem;
  }
}

/* ================= CLIENTS MARQUEE ================= */
.clients {
  position: relative;
  padding-block: var(--space-lg) var(--space-md);
  overflow: hidden;
  background: var(--navy-950);
}

.clients__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* navy overlay (with glow) so the construction photo stays a quiet backdrop */
.clients::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(var(--brand-rgb), 0.75), transparent 70%),
    linear-gradient(180deg, rgba(var(--navy-rgb), 0.86), rgba(var(--navy-rgb), 0.76));
}

.clients::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, black, transparent);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, black, transparent);
  pointer-events: none;
}

.clients > .container,
.clients > .marquee {
  position: relative;
  z-index: 2;
}

.clients .section-heading__title {
  max-width: 26ch;
  margin-inline: auto;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
}

.marquee {
  --marquee-gap: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: var(--marquee-gap);
  margin-top: var(--space-md);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 7%, black 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, black 7%, black 93%, transparent 100%);
}

.marquee__row {
  overflow: hidden;
}

.marquee__track {
  display: flex;
  gap: var(--marquee-gap);
  width: max-content;
  padding: 0.5rem var(--marquee-gap) 0.6rem 0;
  animation: marquee-left var(--marquee-duration, 48s) linear infinite;
  will-change: transform;
}

.marquee__row--right .marquee__track {
  animation-direction: reverse;
}

.client-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 244px;
  height: 118px;
  padding: 0 1rem;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 14px 28px -16px rgba(0, 0, 0, 0.6);
}

.client-logo img {
  max-width: 100%;
  height: 56px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 640px) {
  .clients {
    padding-block: var(--space-md) 0.9rem;
  }

  .marquee {
    --marquee-gap: 0.6rem;
    margin-top: var(--space-sm);
  }

  .client-logo {
    width: 168px;
    height: 80px;
    padding: 0 0.75rem;
    border-radius: 12px;
  }

  .client-logo img {
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee__row {
    overflow-x: auto;
  }

  .marquee__track {
    animation: none;
  }

  .client-logo[aria-hidden='true'] {
    display: none;
  }
}

/* ================= SPOTLIGHT ================= */
.spotlight {
  padding-block: var(--space-xl);
}

.spotlight__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.05fr);
  grid-template-rows: repeat(2, minmax(240px, 1fr));
  gap: 1.1rem;
  margin-top: var(--space-lg);
}

.spot-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  overflow: hidden;
  border-radius: 12px;
  isolation: isolate;
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}

.spot-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -22px rgba(var(--navy-rgb), 0.55);
}

/* decorative arc, echoing line-art corners */
.spot-tile::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -40%;
  right: -22%;
  width: 70%;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.09;
  transition: transform 900ms var(--ease-out);
}

.spot-tile:hover::before {
  transform: scale(1.18) translate(-6%, 6%);
}

.spot-tile__eyebrow {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.spot-tile__text,
.spot-tile__title {
  margin: 0;
  line-height: 1.35;
}

.spot-tile__text {
  font-size: 1.05rem;
}

.spot-tile__title {
  font-size: 1.35rem;
  font-weight: 500;
}

.spot-tile__sub {
  margin: 0.6rem 0 0;
  font-size: var(--fs-small);
  opacity: 0.85;
}

.spot-tile--cream {
  background: var(--paper-dim);
  color: var(--ink);
}

.spot-tile--navy {
  background: var(--brand);
  color: var(--white);
}

.spot-tile--dark {
  background: var(--navy-950);
  color: var(--white);
}

.spot-tile__btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  font-size: var(--fs-small);
  font-weight: 500;
}

.spot-tile__btn .icon,
.spot-slide__link .icon {
  width: 1em;
  height: 1em;
  transition: transform var(--duration-base) var(--ease-out);
}

.spot-tile:hover .spot-tile__btn .icon,
.spot-slide:hover .spot-slide__link .icon {
  transform: translateX(5px);
}

.spot-tile__btn--ghost {
  margin-top: 1rem;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.spot-tile__circle {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-950);
  transition: transform var(--duration-base) var(--ease-out);
}

.spot-tile:hover .spot-tile__circle {
  transform: translateX(6px) scale(1.08);
}

.spot-tile--split {
  grid-column: 1 / 3;
  flex-direction: row;
  padding: 0;
  gap: 0;
}

.spot-tile__copy {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

.spot-tile__media {
  flex: 1 1 50%;
  position: relative;
  overflow: hidden;
}

.spot-tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--ease-out);
}

.spot-tile:hover .spot-tile__img {
  transform: scale(1.07);
}

/* featured carousel */
.spot-feature {
  position: relative;
  grid-column: 3;
  grid-row: 1 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: var(--navy-950);
  color: var(--white);
  min-height: 420px;
}

.spot-feature__slides,
.spot-slide {
  position: absolute;
  inset: 0;
}

.spot-slide {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 1.5rem 1.5rem 4.6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms var(--ease-in-out), visibility 0s linear 700ms;
}

.spot-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.spot-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(var(--navy-rgb), 0.1) 30%, rgba(var(--navy-rgb), 0.92));
}

.spot-slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.spot-slide.is-active .spot-slide__img {
  animation: spot-zoom 9s ease-out forwards;
}

@keyframes spot-zoom {
  to {
    transform: scale(1.12);
  }
}

.spot-slide__badge {
  position: absolute;
  z-index: 2;
  top: 1.25rem;
  left: 1.25rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spot-slide__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.spot-slide__meta {
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spot-slide__title {
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.7rem);
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.spot-slide__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  font-weight: 500;
}

/* entrance of the text on the active slide */
.spot-slide.is-active .spot-slide__body > * {
  animation: spot-rise 700ms var(--ease-out) both;
}

.spot-slide.is-active .spot-slide__body > :nth-child(2) {
  animation-delay: 90ms;
}

.spot-slide.is-active .spot-slide__body > :nth-child(3) {
  animation-delay: 180ms;
}

@keyframes spot-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.spot-feature__controls {
  position: absolute;
  z-index: 3;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spot-feature__dots {
  display: flex;
  gap: 0.5rem;
}

.spot-dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width var(--duration-base) var(--ease-out);
}

.spot-dot.is-active {
  width: 2rem;
  background: rgba(255, 255, 255, 0.35);
}

/* autoplay progress inside the active dot */
.spot-dot.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  transform-origin: left;
  animation: spot-progress 6s linear forwards;
}

.spot-feature.is-paused .spot-dot.is-active::after {
  animation-play-state: paused;
}

@keyframes spot-progress {
  from {
    transform: scaleX(0);
  }
}

.spot-feature__arrows {
  display: flex;
  gap: 0.6rem;
}

.spot-arrow {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast);
}

.spot-arrow:hover {
  background: var(--white);
  color: var(--navy-950);
}

.spot-arrow[data-spot-prev] .icon {
  transform: scaleX(-1);
}

@media (max-width: 1100px) {
  .spotlight__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .spot-tile {
    min-height: 240px;
  }

  .spot-tile--split {
    grid-column: 1 / 3;
    min-height: 260px;
  }

  .spot-feature {
    grid-column: 1 / 3;
    grid-row: auto;
    min-height: 440px;
  }
}

@media (max-width: 640px) {
  .spotlight {
    padding-block: var(--space-lg);
  }

  .spotlight__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
  }

  .spot-tile,
  .spot-tile--split,
  .spot-feature {
    grid-column: auto;
  }

  .spot-tile {
    min-height: 200px;
    padding: 1.15rem;
  }

  .spot-tile--split {
    flex-direction: column-reverse;
    min-height: 0;
  }

  .spot-tile__media {
    flex: 0 0 170px;
  }

  .spot-tile__copy {
    padding: 1.15rem;
    gap: 1.2rem;
  }

  .spot-feature {
    min-height: 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spot-slide.is-active .spot-slide__img,
  .spot-slide.is-active .spot-slide__body > *,
  .spot-tile::before {
    animation: none;
    transition: none;
  }

  .spot-dot.is-active::after {
    animation: none;
    transform: none;
  }
}

/* spotlight tiles: actions stay hidden until the tile is hovered, then the text lifts to make room */
.spot-tile__body {
  display: flex;
  flex-direction: column;
}

.spot-tile__btn,
.spot-tile__circle {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: max-height var(--duration-base) var(--ease-out), margin-top var(--duration-base) var(--ease-out),
    opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out),
    background var(--duration-fast), color var(--duration-fast), box-shadow var(--duration-fast);
}

.spot-tile:hover .spot-tile__btn,
.spot-tile:focus-visible .spot-tile__btn {
  max-height: 3rem;
  margin-top: 1rem;
  opacity: 1;
  transform: none;
}

.spot-tile:hover .spot-tile__circle,
.spot-tile:focus-visible .spot-tile__circle {
  max-height: 2.5rem;
  margin-top: 1rem;
  opacity: 1;
  transform: none;
}

.spot-tile__btn--outline {
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.spot-tile__btn--outline:hover {
  background: var(--ink);
  color: var(--white);
}

.spot-tile__btn--ghost {
  margin-top: 0;
}

.spot-tile:hover .spot-tile__btn--ghost {
  margin-top: 1rem;
}

.spot-tile__btn--ghost:hover {
  background: var(--white);
  color: var(--navy-950);
}

/* no hover on touch screens: keep the actions visible */
@media (hover: none) {
  .spot-tile__btn,
  .spot-tile__circle {
    max-height: 3rem;
    margin-top: 1rem;
    opacity: 1;
    transform: none;
  }
}

/* navy tile: layered wave background with soft cast shadows */
.spot-tile--navy {
  background:
    radial-gradient(ellipse 80% 70% at 100% 100%, rgba(var(--brand-rgb), 0.95), transparent 70%),
    var(--navy-900);
}

.spot-tile--navy::before {
  display: none;
}

.spot-tile__waves {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.spot-tile__waves .wave {
  fill: var(--navy-950);
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.55));
  transition: transform 1000ms var(--ease-out);
}

.spot-tile__waves .wave--1 {
  fill: var(--navy-800);
}

.spot-tile__waves .wave--2 {
  fill: var(--navy-900);
}

.spot-tile--navy:hover .wave--1 {
  transform: translate(-6px, -4px);
}

.spot-tile--navy:hover .wave--2 {
  transform: translateY(8px);
}

.spot-tile--navy:hover .wave--3 {
  transform: translateY(14px);
}

@media (prefers-reduced-motion: reduce) {
  .spot-tile__waves .wave {
    transition: none;
  }
}

.spot-tile--navy {
  background:
    radial-gradient(ellipse 75% 65% at 100% 100%, rgba(var(--brand-rgb), 1), transparent 72%),
    var(--navy-800);
}

.spot-tile__waves .wave--1 {
  fill: var(--navy-900);
}

.spot-tile__waves .wave--2 {
  fill: var(--navy-950);
}

/* ================= SOLUTION FINDER ================= */
.finder {
  padding-block: var(--space-xl);
}

.finder__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.finder__title {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--ink);
}

.finder__title span {
  display: block;
  color: var(--brand);
}

.finder__sub {
  max-width: 26rem;
  color: var(--grey-500);
}

.finder__layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.finder__list {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--line);
}

.finder__tab {
  position: relative;
  padding: 0.8rem 1.1rem;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  font-size: 0.95rem;
  color: var(--grey-500);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out),
    padding var(--duration-base) var(--ease-out);
}

/* active marker slides in on the left rule */
.finder__tab::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform var(--duration-base) var(--ease-out);
}

.finder__tab:hover {
  color: var(--ink);
  padding-left: 1.4rem;
}

.finder__tab.is-active {
  color: var(--brand);
  font-weight: 600;
  background: linear-gradient(90deg, rgba(var(--brand-rgb), 0.07), transparent);
}

.finder__tab.is-active::before {
  transform: scaleY(1);
}

.finder__stage {
  position: relative;
  min-width: 0;
}

.finder__panel {
  display: none;
}

.finder__panel.is-active {
  display: block;
}

.finder__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.finder__track::-webkit-scrollbar {
  display: none;
}

.fcard {
  position: relative;
  flex: 0 0 calc((100% - 2rem) / 3);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 12px;
  background: var(--navy-950);
  color: var(--white);
  scroll-snap-align: start;
  isolation: isolate;
}

.finder__panel.is-active .fcard {
  animation: spot-rise 600ms var(--ease-out) both;
}

.finder__panel.is-active .fcard:nth-child(2) {
  animation-delay: 80ms;
}

.finder__panel.is-active .fcard:nth-child(3) {
  animation-delay: 160ms;
}

.finder__panel.is-active .fcard:nth-child(n + 4) {
  animation-delay: 240ms;
}

.fcard::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 45%, rgba(var(--navy-rgb), 0.95));
}

.fcard__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1100ms var(--ease-out);
}

.fcard:hover .fcard__img {
  transform: scale(1.07);
}

.fcard__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fcard__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
}

.fcard__title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
}

.fcard__more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: var(--fs-small);
  color: var(--gold);
  transition: max-height var(--duration-base) var(--ease-out), opacity var(--duration-base) var(--ease-out);
}

.fcard:hover .fcard__more,
.fcard:focus-visible .fcard__more {
  max-height: 2rem;
  opacity: 1;
}

.fcard__more .icon {
  width: 1em;
  height: 1em;
}

.finder__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--brand);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background var(--duration-fast), color var(--duration-fast), opacity var(--duration-fast);
}

.finder__arrow:hover {
  background: var(--brand);
  color: var(--white);
}

.finder__arrow[disabled] {
  opacity: 0;
  pointer-events: none;
}

.finder__arrow--prev {
  left: -1.25rem;
}

.finder__arrow--prev .icon {
  transform: scaleX(-1);
}

.finder__arrow--next {
  right: -1.25rem;
}

@media (max-width: 900px) {
  .finder {
    padding-block: var(--space-lg);
  }

  .finder__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-md);
  }

  /* list becomes a swipeable row of chips */
  .finder__list {
    flex-direction: row;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
    overflow-x: auto;
    border-left: 0;
    scrollbar-width: none;
  }

  .finder__list::-webkit-scrollbar {
    display: none;
  }

  .finder__tab,
  .finder__tab:hover {
    flex: 0 0 auto;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px var(--line);
    white-space: nowrap;
  }

  .finder__tab::before {
    display: none;
  }

  .finder__tab.is-active {
    background: var(--brand);
    color: var(--white);
    box-shadow: none;
  }

  .fcard {
    flex-basis: min(74%, 280px);
    min-height: 340px;
  }

  .finder__arrow {
    display: none;
  }

  .fcard__more {
    max-height: 2rem;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .finder__panel.is-active .fcard {
    animation: none;
  }
}

/* client logos are 2:1 artwork with their own padding: let them fill the card */
.client-logo {
  padding: 0;
  overflow: hidden;
}

.client-logo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

/* breathing room around each logo inside its card */
.client-logo {
  padding: 0.6rem 0.9rem;
}

@media (max-width: 640px) {
  .client-logo {
    padding: 0.4rem 0.6rem;
  }
}
