/* ========================================
   CUSTOM STYLES – NO @apply (CDN-safe)
   ======================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  outline: none;
}
.btn:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.5);
}
.btn-accent {
  background-color: #10B981;
  color: white;
}
.btn-accent:hover {
  background-color: #059669;
}
.btn-accent:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.5);
}

/* Homepage Intro */
body.intro-is-active {
  overflow: hidden;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(135deg, #1e3a8a 0%, #10b981 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.intro-overlay::before {
  content: "";
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.22), transparent 22%),
    radial-gradient(circle at 78% 42%, rgba(255, 255, 255, 0.12), transparent 16%),
    radial-gradient(circle at 72% 52%, rgba(56, 189, 248, 0.16), transparent 22%),
    radial-gradient(circle at 66% 50%, rgba(16, 185, 129, 0.14), transparent 30%);
  pointer-events: none;
}

.intro-overlay::after {
  content: "";
  position: absolute;
  right: max(4vw, 1rem);
  bottom: 9%;
  width: min(24rem, 28vw);
  aspect-ratio: 1;
  background: url('../img/logo POAS_shield.png') center/contain no-repeat;
  opacity: 0.08;
  filter: drop-shadow(0 20px 36px rgba(15, 23, 42, 0.18));
  pointer-events: none;
}

.intro-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-content {
  position: relative;
  z-index: 1;
  width: min(1320px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2.75rem, 6vw, 5.5rem);
  align-items: center;
}

.intro-left {
  opacity: 0;
  transform: translateY(24px);
  animation: intro-fade-up 1s ease forwards;
  animation-delay: 0.2s;
}

.intro-lang-block + .intro-lang-block {
  margin-top: 1.75rem;
}

.intro-lang {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.intro-left p {
  margin: 0;
  max-width: 27rem;
  font-size: clamp(0.95rem, 1.35vw, 1.1rem);
  line-height: 1.7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.94);
}

.intro-right {
  position: relative;
  min-height: clamp(10rem, 19vw, 13rem);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
}

.intro-big {
  position: absolute;
  right: 0;
  margin: 0;
  max-width: 100%;
  font-size: clamp(2.8rem, 5.8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 0.92;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.intro-big-en {
  opacity: 0;
  transform: translateY(22px);
  animation: intro-word-in 1s ease forwards, intro-word-out 0.8s ease forwards;
  animation-delay: 0.8s, 2.6s;
}

.intro-big-fr {
  opacity: 0;
  transform: translateY(22px);
  animation: intro-word-in 1s ease forwards;
  animation-delay: 3.2s;
}

.intro-skip {
  position: absolute;
  right: clamp(1rem, 2vw, 1.75rem);
  bottom: clamp(1rem, 2vw, 1.75rem);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.intro-skip:hover,
.intro-skip:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-2px);
}

@keyframes intro-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes intro-word-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes intro-word-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-22px);
  }
}

@media (max-width: 991px) {
  .intro-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .intro-right {
    justify-content: flex-start;
    min-height: 7rem;
    text-align: left;
  }

  .intro-big {
    left: 0;
    right: auto;
    max-width: 10ch;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .intro-overlay::after {
    right: -1rem;
    bottom: 10%;
    width: 10rem;
    opacity: 0.06;
  }

  .intro-left p {
    font-size: 0.88rem;
    letter-spacing: 0.08em;
  }

  .intro-big {
    font-size: clamp(2.35rem, 13vw, 4.25rem);
  }

  .intro-skip {
    padding: 0.65rem 0.8rem;
    font-size: 0.74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-overlay,
  .intro-skip {
    transition: none;
  }

  .intro-left,
  .intro-big-en,
  .intro-big-fr {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .intro-right {
    min-height: auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
  }

  .intro-big {
    position: static;
    white-space: normal;
  }

  .intro-big-en {
    opacity: 0.48;
  }
}

@media (max-width: 991px) and (prefers-reduced-motion: reduce) {
  .intro-right {
    align-items: flex-start;
  }
}

/* Shared Section Reveals */
.section-reveal {
  position: relative;
  --section-reveal-distance: 34px;
  --section-reveal-blur: 4px;
  --section-reveal-duration: 880ms;
  --section-reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.section-reveal.section-handoff {
  box-shadow:
    inset 0 1px 0 rgba(148, 163, 184, 0.12),
    inset 0 28px 34px -34px rgba(15, 23, 42, 0.12);
}

.section-reveal > * {
  position: relative;
  z-index: 1;
}

.reveal-ready .section-reveal [data-reveal-item]:not(.is-revealed) {
  opacity: 0;
  transform: translate3d(0, var(--section-reveal-distance), 0);
  filter: blur(var(--section-reveal-blur));
  transition:
    opacity var(--section-reveal-duration) var(--section-reveal-ease),
    transform var(--section-reveal-duration) var(--section-reveal-ease),
    filter var(--section-reveal-duration) var(--section-reveal-ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal-ready .section-reveal.is-visible [data-reveal-item]:not(.is-revealed) {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.about-reveal {
  --section-reveal-distance: 28px;
  --section-reveal-blur: 4px;
  --section-reveal-duration: 880ms;
}

@media (max-width: 767px) {
  .section-reveal {
    --section-reveal-distance: 22px;
    --section-reveal-blur: 2px;
    --section-reveal-duration: 760ms;
  }

  .section-reveal.section-handoff {
    box-shadow:
      inset 0 1px 0 rgba(148, 163, 184, 0.1),
      inset 0 20px 24px -26px rgba(15, 23, 42, 0.1);
  }

  .about-reveal {
    --section-reveal-distance: 18px;
    --section-reveal-blur: 2px;
    --section-reveal-duration: 760ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready .section-reveal [data-reveal-item]:not(.is-revealed) {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* Cards */
.card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease;
}
.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Section Padding */
.section-py {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
@media (min-width: 768px) {
  .section-py { padding-top: 5rem; padding-bottom: 5rem; }
}
@media (min-width: 1024px) {
  .section-py { padding-top: 6rem; padding-bottom: 6rem; }
}

/* Hero Overlay */
.hero-overlay {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(16, 185, 129, 0.8));
}

.hero-mobile-motion {
  display: none;
}

@keyframes hero-mobile-anchor-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 0.08;
  }
}

@keyframes hero-mobile-anchor-float {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-0.45rem, -0.6rem, 0) scale(1.03);
  }
}

@keyframes hero-mobile-glow-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 0.24;
  }
}

@keyframes hero-mobile-glow-float {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(0.55rem, -0.35rem, 0) scale(1.08);
  }
}

body .hero-wrapper.about-hero {
  min-height: clamp(34rem, 78vh, 45rem);
  padding-top: clamp(6.5rem, 10vw, 8rem);
  padding-bottom: clamp(4.75rem, 8vw, 6rem);
  box-shadow: inset 0 -36px 52px -44px rgba(255, 255, 255, 0.28);
}

body .hero-wrapper.about-hero::before {
  content: "";
  position: absolute;
  left: max(3vw, 1rem);
  bottom: 16%;
  width: min(28rem, 38vw);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(16, 185, 129, 0.1) 34%, transparent 72%);
  filter: blur(18px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

body .hero-wrapper.about-hero::after {
  content: "";
  position: absolute;
  right: max(4vw, 1rem);
  bottom: 7%;
  width: min(26rem, 32vw);
  aspect-ratio: 1;
  background: url('../img/logo POAS_shield.png') center/contain no-repeat;
  opacity: 0.065;
  filter: drop-shadow(0 20px 36px rgba(15, 23, 42, 0.2));
  transform: translate3d(0, 16px, 0) scale(1.03);
  transform-origin: center;
  animation: about-hero-anchor-in 1100ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both;
  pointer-events: none;
  z-index: 0;
}

body .about-hero .hero-overlay {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.2), transparent 24%),
    radial-gradient(circle at 78% 42%, rgba(255, 255, 255, 0.12), transparent 18%),
    linear-gradient(135deg, rgba(30, 58, 138, 0.92), rgba(16, 185, 129, 0.82));
}

body .about-hero__content {
  max-width: 54rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body .about-hero__eyebrow {
  margin-bottom: 0.95rem;
}

body .about-hero__copy {
  max-width: 48rem;
}

body .about-hero__meta {
  margin-top: 1.15rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-transform: uppercase;
}

@keyframes about-hero-anchor-in {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(1.05);
  }

  to {
    opacity: 0.08;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

body .hero-wrapper.contact-hero {
  min-height: clamp(33rem, 74vh, 42rem);
  padding-top: clamp(6.25rem, 9vw, 7.75rem);
  padding-bottom: clamp(4.6rem, 7vw, 5.6rem);
  box-shadow: inset 0 -34px 48px -42px rgba(255, 255, 255, 0.24);
}

body .hero-wrapper.contact-hero::before {
  content: "";
  position: absolute;
  left: max(3vw, 1rem);
  bottom: 18%;
  width: min(24rem, 34vw);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(16, 185, 129, 0.1) 38%, transparent 72%);
  filter: blur(18px);
  opacity: 0.56;
  pointer-events: none;
  z-index: 0;
}

body .hero-wrapper.contact-hero::after {
  content: "";
  position: absolute;
  right: max(4vw, 1rem);
  bottom: 8%;
  width: min(24rem, 30vw);
  aspect-ratio: 1;
  background: url('../img/logo POAS_shield.png') center/contain no-repeat;
  opacity: 0.06;
  filter: drop-shadow(0 20px 36px rgba(15, 23, 42, 0.2));
  transform: translate3d(0, 16px, 0) scale(1.03);
  transform-origin: center;
  animation: about-hero-anchor-in 1100ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both;
  pointer-events: none;
  z-index: 0;
}

body .contact-hero .hero-overlay {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.2), transparent 24%),
    radial-gradient(circle at 78% 42%, rgba(255, 255, 255, 0.12), transparent 18%),
    linear-gradient(135deg, rgba(30, 58, 138, 0.92), rgba(16, 185, 129, 0.82));
}

body .contact-hero__content {
  max-width: 50rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body .contact-hero__eyebrow {
  margin-bottom: 0.9rem;
}

body .contact-hero__copy {
  max-width: 44rem;
}

body .contact-hero__actions {
  max-width: 31rem;
}

.contact-hero__secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.contact-hero__secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
}

body .contact-hero__meta {
  color: rgba(255, 255, 255, 0.84);
  letter-spacing: 0.12em;
}

.contact-intake__grid {
  align-items: start;
}

.contact-card,
.contact-side-card,
.contact-priority-card {
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 26px 54px -46px rgba(15, 23, 42, 0.22);
}

.contact-card {
  width: 100%;
  max-width: 36rem;
  padding: 1.5rem;
}

.contact-intake__aside {
  width: 100%;
  max-width: 31rem;
}

.contact-side-card,
.contact-priority-card {
  padding: 1.5rem;
}

.contact-channel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.95rem;
  align-items: start;
}

.contact-channel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(203, 213, 225, 0.96);
  background: #f8fafc;
  color: #0b8f67;
}

.contact-priority-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 245, 0.9));
}

.contact-priority-card__eyebrow {
  margin: 0 0 0.65rem;
  color: #0b8f67;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.contact-priority-card__actions .btn {
  box-shadow: none;
}

@media (min-width: 768px) {
  .contact-card {
    padding: 1.75rem;
  }

  .contact-side-card,
  .contact-priority-card {
    padding: 1.6rem;
  }
}

.about-principles__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .about-principles__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.about-principle-card {
  height: 100%;
  padding: 1.7rem 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.96);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow: 0 24px 52px -42px rgba(15, 23, 42, 0.22);
  text-align: left;
}

.about-principle-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(16, 185, 129, 0.12);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.9), rgba(209, 250, 229, 0.96)),
    linear-gradient(180deg, rgba(236, 253, 245, 1), rgba(209, 250, 229, 0.94));
  color: #0b8f67;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.about-principle-card__icon i {
  font-size: 1.3rem;
}

.about-principle-card__title {
  margin: 1.15rem 0 0;
  color: #0f172a;
  font-size: 1.28rem;
  line-height: 1.3;
  font-weight: 700;
}

.about-principle-card__copy {
  margin: 0.7rem 0 0;
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.68;
}

.about-founder-card {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.45rem;
  border-radius: 1.75rem;
  border: 1px solid rgba(226, 232, 240, 0.96);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow: 0 28px 56px -42px rgba(15, 23, 42, 0.22);
}

.about-founder-card__portrait-wrap {
  display: flex;
  justify-content: center;
}

.about-founder-card__portrait-frame {
  width: min(100%, 16.5rem);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 1.45rem;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
  box-shadow: 0 20px 42px -30px rgba(15, 23, 42, 0.34);
}

.about-founder-card__portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
}

.about-founder-card__content {
  text-align: center;
}

.about-founder-card__role {
  margin: 0;
  color: #0b8f67;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.about-founder-card__name {
  margin: 0.55rem 0 0;
  color: #0f172a;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.12;
  font-weight: 700;
}

.about-founder-card__bio {
  margin: 1rem 0 0;
  color: #475569;
  font-size: 1rem;
  line-height: 1.72;
}

.about-founder-card__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.15rem;
}

.about-founder-card__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, 0.96);
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.about-founder-card__linkedin:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 185, 129, 0.34);
  background: #ffffff;
  color: #0b8f67;
}

.about-founder-card__linkedin i {
  font-size: 0.95rem;
}

.about-platforms__intro {
  max-width: 44rem;
  margin: 0 auto;
}

.about-platforms__grid {
  display: grid;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .about-platforms__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .about-platforms__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.about-platforms__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7.5rem;
  padding: 1.25rem 1.15rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(226, 232, 240, 0.94);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.about-platforms__logo {
  display: block;
  width: auto;
  max-width: min(9.5rem, 100%);
  max-height: 2.9rem;
  object-fit: contain;
  filter: grayscale(1) saturate(0.25) opacity(0.82);
}

@media (min-width: 768px) {
  .about-founder-card {
    grid-template-columns: minmax(14rem, 16.5rem) minmax(0, 1fr);
    gap: 2rem;
    padding: 1.75rem;
  }

  .about-founder-card__content {
    text-align: left;
  }

  .about-founder-card__socials {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .hero-wrapper .hero-mobile-motion {
    position: absolute;
    right: -1.45rem;
    bottom: 9%;
    display: block;
    width: min(12rem, 42vw);
    aspect-ratio: 1;
    pointer-events: none;
    z-index: 0;
  }

  .hero-wrapper .hero-mobile-motion::before,
  .hero-wrapper .hero-mobile-motion::after {
    content: "";
    position: absolute;
  }

  .hero-wrapper .hero-mobile-motion::before {
    inset: 0;
    background: url('../img/logo POAS_shield.png') center/contain no-repeat;
    filter: saturate(0.88) brightness(1.06) drop-shadow(0 16px 30px rgba(15, 23, 42, 0.16));
    opacity: 0;
    animation:
      hero-mobile-anchor-fade 1050ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both,
      hero-mobile-anchor-float 15s ease-in-out 1.35s infinite alternate;
  }

  .hero-wrapper .hero-mobile-motion::after {
    inset: -22%;
    background:
      radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(56, 189, 248, 0.12) 34%, rgba(16, 185, 129, 0.1) 54%, transparent 74%);
    filter: blur(22px);
    opacity: 0;
    animation:
      hero-mobile-glow-fade 1150ms cubic-bezier(0.22, 1, 0.36, 1) 80ms both,
      hero-mobile-glow-float 13s ease-in-out 1s infinite alternate;
  }

  body .hero-wrapper.contact-hero {
    min-height: clamp(29rem, 68vh, 34rem);
    padding-top: 5.9rem;
    padding-bottom: 3.9rem;
  }

  body .hero-wrapper.contact-hero::before {
    display: none;
  }

  body .hero-wrapper.contact-hero::after {
    display: none;
  }

  body .hero-wrapper.contact-hero .hero-mobile-motion {
    right: -1.1rem;
    bottom: 8%;
    width: min(11.4rem, 40vw);
  }

  body .contact-hero__eyebrow {
    margin-bottom: 0.8rem;
  }

  body .contact-hero__meta {
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
  }

  .contact-card,
  .contact-side-card,
  .contact-priority-card {
    padding: 1.2rem;
    border-radius: 1.25rem;
  }

  .contact-channel__icon {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 0.85rem;
  }
}

@media (max-width: 767px) {
  body .hero-wrapper.about-hero {
    min-height: clamp(29rem, 70vh, 34rem);
    padding-top: 6rem;
    padding-bottom: 3.9rem;
  }

  body .hero-wrapper.about-hero::before {
    display: none;
  }

  body .hero-wrapper.about-hero::after {
    display: none;
  }

  body .hero-wrapper.about-hero .hero-mobile-motion {
    right: -1rem;
    bottom: 8%;
    width: min(11.8rem, 42vw);
  }

  body .about-hero__eyebrow {
    margin-bottom: 0.8rem;
  }

  body .about-hero__meta {
    max-width: 22rem;
    margin-top: 1rem;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  .about-principle-card {
    padding: 1.45rem 1.25rem;
    border-radius: 1.25rem;
  }

  .about-principle-card__icon {
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 1rem;
  }

  .about-principle-card__title {
    font-size: 1.18rem;
  }

  .about-principle-card__copy {
    font-size: 0.94rem;
  }

  .about-founder-card {
    padding: 1.2rem;
    border-radius: 1.35rem;
  }

  .about-founder-card__portrait-frame {
    width: min(100%, 14rem);
    border-radius: 1.15rem;
  }

  .about-founder-card__bio {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .about-founder-card__linkedin {
    padding: 0.68rem 0.9rem;
  }

  .about-platforms__item {
    min-height: 6.75rem;
    padding: 1rem;
    border-radius: 1.15rem;
  }

  .about-platforms__logo {
    max-height: 2.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-wrapper .hero-mobile-motion::before,
  .hero-wrapper .hero-mobile-motion::after,
  body .hero-wrapper.contact-hero::before,
  body .hero-wrapper.contact-hero::after,
  body .hero-wrapper.about-hero::before,
  body .hero-wrapper.about-hero::after {
    animation: none;
    transform: none;
  }

  .hero-wrapper .hero-mobile-motion::before {
    opacity: 0.08;
  }

  .hero-wrapper .hero-mobile-motion::after {
    opacity: 0.24;
  }

  body .hero-wrapper.contact-hero::after,
  body .hero-wrapper.about-hero::after {
    animation: none;
    transform: none;
  }
}

.portfolio-showcase {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.2), transparent 28%),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.14), transparent 34%),
    radial-gradient(circle at bottom center, rgba(14, 165, 233, 0.1), transparent 30%),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 52%, #f8fafc 100%);
}

.portfolio-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.95), transparent 26%),
    radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.8), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.16));
  opacity: 0.92;
  pointer-events: none;
}

.portfolio-showcase .container {
  position: relative;
  z-index: 1;
}

.portfolio-showcase__intro {
  max-width: 54rem;
  margin: 0 auto;
}

.portfolio-showcase__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(226, 232, 240, 0.92);
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.portfolio-showcase__intro h2 {
  color: #0f172a;
}

.portfolio-showcase__lead {
  margin-top: 1rem;
  color: #475569;
}

.portfolio-showcase__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.portfolio-showcase__stat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(203, 213, 225, 0.72);
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 600;
}

.portfolio-rail {
  position: relative;
  margin-top: 2.75rem;
  overflow: hidden;
}

.portfolio-rail__fade {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #fff7ed 0%, rgba(255, 247, 237, 0) 10%, rgba(248, 250, 252, 0) 90%, #f8fafc 100%);
  z-index: 2;
}

.portfolio-track {
  --portfolio-gap: 1rem;
  --portfolio-loop-distance: calc(50% + (var(--portfolio-gap) / 2));
  --portfolio-marquee-duration: 42s;
  display: flex;
  gap: var(--portfolio-gap);
  width: max-content;
  padding: 0;
  animation: portfolio-marquee var(--portfolio-marquee-duration) linear infinite;
  will-change: transform;
}

.portfolio-track.is-enhanced {
  animation: none;
}

.portfolio-card {
  flex: 0 0 min(78vw, 18rem);
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 28px 60px -34px rgba(15, 23, 42, 0.78);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.42);
  box-shadow: 0 36px 70px -34px rgba(15, 23, 42, 0.82);
}

.portfolio-card[aria-hidden="true"] {
  display: block;
}

.portfolio-card__link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.portfolio-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7 0%, #ffffff 100%);
}

.portfolio-card__media img {
  width: 100%;
  height: 100%;
  transition: transform 0.45s ease;
}

.portfolio-card:hover .portfolio-card__media img {
  transform: scale(1.04);
}

.portfolio-card__media--cover img {
  object-fit: cover;
}

.portfolio-card__media--contain img {
  object-fit: contain;
  padding: 1.1rem;
}

.portfolio-card__media--brand {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1.25rem;
  background: linear-gradient(135deg, #0f172a 0%, #1f2937 56%, #334155 100%);
}

.portfolio-card__media--brand-gold {
  justify-content: center;
  background: linear-gradient(135deg, #201712 0%, #60472c 56%, #8f7345 100%);
}

.portfolio-card__brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 78%;
  color: #fff;
}

.portfolio-card__brand-block--center {
  max-width: 100%;
  align-items: center;
  text-align: center;
}

.portfolio-card__brand-kicker {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-card__brand-name {
  font-size: 1.75rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.portfolio-card__brand-name--serif {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 15rem;
  padding: 1.25rem 1.25rem 1.35rem;
}

.portfolio-card__eyebrow {
  margin: 0;
  color: #10b981;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}

.portfolio-card__title {
  margin: 0;
  color: #0f172a;
  font-size: 1.28rem;
  line-height: 1.2;
  font-weight: 700;
}

.portfolio-card__copy {
  margin: 0;
  color: #475569;
  font-size: 0.96rem;
  line-height: 1.65;
}

.portfolio-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
}

.portfolio-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portfolio-card__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.74rem;
  font-weight: 700;
}

.portfolio-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.portfolio-card__cta::after {
  content: "↗";
  color: #10b981;
  font-size: 0.95rem;
}

@media (max-width: 639px) {
  .portfolio-card__body {
    min-height: auto;
  }
}

@media (min-width: 1024px) {
  .portfolio-track {
    --portfolio-gap: 1.5rem;
    --portfolio-marquee-duration: 60s;
  }

  .portfolio-card {
    flex-basis: 21rem;
  }
}

@keyframes portfolio-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * var(--portfolio-loop-distance))); }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-track {
    animation: none;
    transform: none;
  }
}

.selected-work {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(148, 163, 184, 0.1), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.homepage-feature-image {
  position: relative;
  padding: 1.5rem 0 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.homepage-feature-image__frame {
  max-width: 54rem;
  margin: 0 auto;
  padding: 1rem;
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.98) 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.homepage-feature-image__asset {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.4rem;
}

.homepage-feature-image--compact .homepage-feature-image__frame {
  max-width: 38rem;
}

.homepage-feature-image--compact .homepage-feature-image__asset {
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

.homepage-feature-image--portrait .homepage-feature-image__frame {
  max-width: 26rem;
  padding: 1.25rem 1.25rem 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(148, 163, 184, 0.18) 0%, rgba(255, 255, 255, 0) 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 245, 249, 0.98) 100%);
}

.homepage-feature-image--portrait .homepage-feature-image__asset {
  width: min(100%, 22rem);
  max-width: 100%;
  margin: 0 auto;
  border-radius: 0;
}

.selected-work__intro {
  max-width: 46rem;
  margin: 0 auto;
}

.selected-work__grid {
  display: grid;
  gap: 1.5rem;
  max-width: 76rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .selected-work__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .homepage-feature-image {
    padding: 1rem 0 0.75rem;
  }

  .homepage-feature-image__frame {
    padding: 0.7rem;
    border-radius: 1.4rem;
  }

  .homepage-feature-image__asset {
    border-radius: 1rem;
  }

  .homepage-feature-image--portrait .homepage-feature-image__frame {
    max-width: 20.5rem;
    padding: 1rem 0.9rem 0;
  }

  .homepage-feature-image--portrait .homepage-feature-image__asset {
    width: min(100%, 18.5rem);
  }
}

@media (min-width: 1200px) {
  .selected-work__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.selected-work-card {
  --work-accent: #0f766e;
  --work-text: #0f172a;
  --work-muted: #64748b;
  --work-line: rgba(100, 116, 139, 0.22);
  --work-soft-line: rgba(100, 116, 139, 0.16);
  --work-logo-bg: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  --work-logo-glow: rgba(15, 23, 42, 0.12);
  --work-logo-max-width: 74%;
  --work-logo-max-height: 5rem;
  --work-logo-shadow: rgba(15, 23, 42, 0.18);
  --work-browser-bg: #ffffff;
  --work-browser-border: rgba(203, 213, 225, 0.9);
  --work-bar-bg: #f8fafc;
  --work-bar-border: rgba(226, 232, 240, 0.95);
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 24px 52px -40px rgba(15, 23, 42, 0.28);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.selected-work-card--inspections {
  --work-accent: #b45309;
  --work-logo-bg: linear-gradient(135deg, #09090b 0%, #1f2937 100%);
  --work-logo-glow: rgba(245, 158, 11, 0.22);
  --work-logo-max-width: 78%;
  --work-logo-max-height: 7rem;
  --work-logo-shadow: rgba(0, 0, 0, 0.38);
  --work-line: rgba(180, 83, 9, 0.16);
  --work-soft-line: rgba(180, 83, 9, 0.18);
  --work-text: #0f172a;
}

.selected-work-card--cbc {
  --work-accent: #fb923c;
  --work-logo-bg: linear-gradient(135deg, #111827 0%, #020617 100%);
  --work-logo-glow: rgba(251, 146, 60, 0.24);
  --work-logo-max-width: 44%;
  --work-logo-max-height: 6.25rem;
  --work-logo-shadow: rgba(0, 0, 0, 0.42);
  --work-browser-bg: #020617;
  --work-browser-border: rgba(255, 255, 255, 0.08);
  --work-bar-bg: rgba(15, 23, 42, 0.92);
  --work-bar-border: rgba(255, 255, 255, 0.06);
}

.selected-work-card--westbridge {
  --work-accent: #1d4ed8;
  --work-logo-bg: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  --work-logo-glow: rgba(29, 78, 216, 0.18);
  --work-logo-max-width: 76%;
  --work-logo-max-height: 4.5rem;
  --work-logo-shadow: rgba(29, 78, 216, 0.14);
  --work-line: rgba(29, 78, 216, 0.16);
  --work-soft-line: rgba(29, 78, 216, 0.16);
}

.selected-work-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.28);
  box-shadow: 0 28px 56px -38px rgba(15, 23, 42, 0.3);
}

.selected-work-card__link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.selected-work-card__visual {
  padding: 1.35rem 1.35rem 0;
}

.selected-work-card__surface {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 13.75rem;
  padding: 0.95rem;
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.95), rgba(226, 232, 240, 0.72) 74%),
    linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.selected-work-browser {
  width: 100%;
  background: var(--work-browser-bg);
  border-radius: 0.95rem;
  border: 1px solid var(--work-browser-border);
  overflow: hidden;
  box-shadow: 0 20px 40px -30px rgba(15, 23, 42, 0.34);
}

.selected-work-browser__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.65rem 0.8rem;
  background: var(--work-bar-bg);
  border-bottom: 1px solid var(--work-bar-border);
}

.selected-work-browser__chrome {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.selected-work-browser__dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: #cbd5e1;
}

.selected-work-browser__dot:first-child {
  background: #fca5a5;
}

.selected-work-browser__dot:nth-child(2) {
  background: #fde68a;
}

.selected-work-browser__dot:nth-child(3) {
  background: #86efac;
}

.selected-work-browser__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--work-text);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.selected-work-browser__status::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 0.18rem rgba(16, 185, 129, 0.14);
}

.selected-work-logo-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12.2rem;
  padding: 1.1rem;
  background: var(--work-logo-bg);
  overflow: hidden;
}

.selected-work-logo-stage::before {
  content: "";
  position: absolute;
  inset: auto 16% 14% 16%;
  height: 38%;
  border-radius: 999px;
  background: radial-gradient(circle, var(--work-logo-glow) 0%, transparent 72%);
  filter: blur(24px);
}

.selected-work-logo-stage::after {
  content: "";
  position: absolute;
  inset: 0.95rem;
  border-radius: 1rem;
  border: 1px solid var(--work-soft-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.selected-work-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  max-width: var(--work-logo-max-width);
  max-height: var(--work-logo-max-height);
  object-fit: contain;
  filter: drop-shadow(0 18px 28px var(--work-logo-shadow));
  transition: transform 0.28s ease;
}

.selected-work-card:hover .selected-work-logo {
  transform: scale(1.02);
}

.selected-work-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.35rem 1.4rem 1.45rem;
}

.selected-work-card__type {
  margin: 0;
  color: #0f766e;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.selected-work-card__title {
  margin: 0;
  color: #0f172a;
  font-size: 1.22rem;
  line-height: 1.28;
  font-weight: 700;
}

.selected-work-card__client {
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.selected-work-card__copy {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.68;
}

.selected-work-card__cta {
  margin-top: auto;
  padding-top: 0.35rem;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selected-work-card__cta::after {
  content: "↗";
  margin-left: 0.35rem;
  color: #10b981;
  font-size: 0.95rem;
}

.selected-work-card:hover .selected-work-browser__status {
  color: var(--work-accent);
}

@media (max-width: 767px) {
  .selected-work-card__visual {
    padding: 1rem 1rem 0;
  }

  .selected-work-card__surface {
    min-height: 11.5rem;
    padding: 0.8rem;
  }

  .selected-work-card__body {
    padding: 1.15rem 1.15rem 1.25rem;
  }

  .selected-work-logo-stage {
    min-height: 11.1rem;
    padding: 0.9rem;
  }

  .selected-work-browser__status {
    font-size: 0.5rem;
  }
}

.google-reviews {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 32%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.google-reviews__intro {
  max-width: 48rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.google-reviews__rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 40px -32px rgba(15, 23, 42, 0.28);
}

.google-reviews__stars {
  color: #f59e0b;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.google-reviews__score {
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 700;
}

.google-reviews__link {
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.google-reviews__link:hover {
  color: #0f172a;
}

.google-reviews__grid {
  display: grid;
  gap: 1.5rem;
  max-width: 76rem;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .google-reviews__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.google-review-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  padding: 1.55rem;
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 24px 52px -40px rgba(15, 23, 42, 0.24);
}

.google-review-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.google-review-card__person {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.google-review-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f766e 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
}

.google-review-card__avatar--teal {
  background: linear-gradient(135deg, #0891b2 0%, #14b8a6 100%);
}

.google-review-card__avatar--gold {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

.google-review-card__name {
  margin: 0;
  color: #0f172a;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
}

.google-review-card__meta {
  margin: 0.3rem 0 0;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.google-review-card__date {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.google-review-card__rating-row {
  display: flex;
  align-items: center;
}

.google-review-card__stars {
  color: #f59e0b;
  font-size: 0.98rem;
  letter-spacing: 0.16em;
}

.google-review-card__quote {
  margin: 0;
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.8;
}

.google-review-card__footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.92);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.google-review-card__source,
.google-review-card__note {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
}

@media (max-width: 767px) {
  .google-reviews__intro {
    margin-bottom: 2.2rem;
  }

  .google-reviews__rating {
    gap: 0.65rem;
    padding: 0.8rem 1rem;
    border-radius: 1.1rem;
  }

  .google-review-card {
    padding: 1.25rem;
    border-radius: 1.35rem;
  }

  .google-review-card__top {
    flex-direction: column;
    gap: 0.8rem;
  }

  .google-review-card__date {
    white-space: normal;
  }
}

/* Sticky Header Shrink */
.header-scrolled {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Legal + Utility Pages */
.legal-page .service-hero {
  min-height: clamp(22rem, 50vh, 30rem);
  padding: clamp(5.2rem, 8vw, 6.5rem) 0 clamp(4rem, 6vw, 4.9rem);
}

.legal-page .service-hero__shell,
.error-page .service-hero__shell {
  max-width: 46rem;
}

.legal-page .service-hero__title,
.error-page .service-hero__title {
  max-width: none;
}

.legal-page .service-hero__copy,
.error-page .service-hero__copy {
  max-width: 40rem;
}

.legal-page .service-hero__meta {
  letter-spacing: 0.11em;
}

.legal-page .legal-main {
  padding: clamp(3.8rem, 7vw, 5.6rem) 0 clamp(4.2rem, 7vw, 6rem);
}

.legal-page .legal-document,
.legal-page .legal-support {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.legal-page .legal-document {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #fff;
  border-radius: 1.6rem;
  padding: clamp(1.55rem, 3vw, 2.5rem);
  box-shadow: 0 20px 38px -34px rgba(15, 23, 42, 0.24);
}

.legal-page .legal-document__content > :first-child {
  margin-top: 0;
}

.legal-page .legal-document p {
  margin: 0.8rem 0 0;
  color: #475569;
  line-height: 1.8;
}

.legal-page .legal-document h2 {
  margin: 2rem 0 0.85rem;
  font-size: clamp(1.28rem, 2.2vw, 1.55rem);
  line-height: 1.25;
  color: #0f172a;
}

.legal-page .legal-document ul {
  margin: 0.9rem 0 0;
  padding-left: 1.25rem;
  color: #475569;
}

.legal-page .legal-document li + li {
  margin-top: 0.55rem;
}

.legal-page .legal-document a {
  color: #0f766e;
  font-weight: 600;
  text-decoration: none;
}

.legal-page .legal-document a:hover,
.legal-page .legal-document a:focus-visible {
  text-decoration: underline;
}

.legal-page .legal-support {
  margin-top: 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  border-radius: 1.35rem;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 20px 38px -34px rgba(15, 23, 42, 0.24);
}

.legal-page .legal-support p {
  margin: 0.45rem 0 0;
  color: #475569;
  line-height: 1.7;
}

.legal-page .legal-support__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1rem;
}

.error-page .service-hero {
  min-height: clamp(24rem, 54vh, 32rem);
  padding: clamp(5.4rem, 8vw, 6.8rem) 0 clamp(4.2rem, 6vw, 5.1rem);
}

.error-page .service-hero__copy {
  max-width: 36rem;
}

.error-page .error-utility {
  padding: clamp(3.6rem, 7vw, 5.4rem) 0 clamp(4rem, 7vw, 5.8rem);
}

.error-page .service-card__title {
  font-size: 1.08rem;
}

.error-page .service-card__copy {
  margin: 0.75rem 0 0;
}

.error-page .error-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  color: #0f766e;
  font-weight: 600;
  text-decoration: none;
}

.error-page .error-link:hover,
.error-page .error-link:focus-visible {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .legal-page .service-hero,
  .error-page .service-hero {
    min-height: auto;
    padding-top: 5rem;
    padding-bottom: 3.5rem;
  }

  .legal-page .legal-document,
  .legal-page .legal-support {
    border-radius: 1.25rem;
  }

  .legal-page .legal-support__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Reusable Service Page Template */
.service-page {
  --service-border: rgba(148, 163, 184, 0.22);
  --service-shadow: 0 20px 38px -34px rgba(15, 23, 42, 0.24);
  --service-shadow-strong: 0 26px 48px -36px rgba(15, 23, 42, 0.34);
}

.service-page section[id] {
  scroll-margin-top: 7rem;
}

.service-page .service-hero {
  position: relative;
  min-height: clamp(28rem, 64vh, 37rem);
  align-items: center;
  justify-content: center;
  padding: clamp(5.9rem, 9vw, 7.2rem) 0 clamp(4.5rem, 7vw, 5.7rem);
  background: linear-gradient(135deg, #1e3a8a 0%, #10b981 100%);
  box-shadow: inset 0 -34px 50px -42px rgba(255, 255, 255, 0.24);
}

.service-page .service-hero::before {
  content: "";
  position: absolute;
  right: max(4vw, 1rem);
  top: 50%;
  width: min(31rem, 36vw);
  aspect-ratio: 1;
  background: url('../img/logo POAS_shield.png') center/contain no-repeat;
  opacity: 0.14;
  filter: drop-shadow(0 20px 36px rgba(15, 23, 42, 0.22));
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

.service-page .service-hero::after {
  content: "";
  position: absolute;
  left: max(-1rem, -2vw);
  top: 14%;
  width: min(26rem, 28vw);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(56, 189, 248, 0.15) 32%, rgba(16, 185, 129, 0.1) 54%, transparent 74%);
  filter: blur(18px);
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
}

.service-page .service-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.2), transparent 24%),
    radial-gradient(circle at 74% 44%, rgba(255, 255, 255, 0.12), transparent 18%),
    linear-gradient(135deg, rgba(30, 58, 138, 0.92), rgba(16, 185, 129, 0.82));
  z-index: 0;
}

.service-page .service-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
}

.service-page .service-hero__shell {
  max-width: 40rem;
  text-align: left;
}

.service-page .service-hero__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.service-page .service-hero__title {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2.45rem, 4.9vw, 4.15rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #fff;
}

.service-page .service-hero__copy {
  margin: 1.05rem 0 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.92);
}

.service-page .service-hero__meta {
  margin: 0.95rem 0 0;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.55;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.service-page .service-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: flex-start;
  margin-top: 1.75rem;
}

.service-page .service-hero__primary,
.service-page .service-hero__secondary {
  min-height: 3.35rem;
  padding: 0.85rem 1.5rem;
  border-radius: 0.95rem;
  font-size: 0.96rem;
  font-weight: 600;
}

.service-page .service-hero__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.service-page .service-hero__secondary:hover,
.service-page .service-hero__secondary:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.36);
}

.service-page .service-hero__visual {
  position: relative;
  width: min(100%, 24rem);
  min-height: 0;
  justify-self: end;
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  align-items: stretch;
}

.service-page .service-hero__panel {
  position: relative;
  margin-left: auto;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1.45rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.09));
  box-shadow: 0 24px 44px -34px rgba(15, 23, 42, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.service-page .service-hero__panel::before {
  content: "";
  position: absolute;
  inset: auto -14% -18% auto;
  width: 13rem;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(56, 189, 248, 0.12) 34%, transparent 72%);
  filter: blur(14px);
  opacity: 0.52;
  pointer-events: none;
}

.service-page .service-hero__panel-header {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.9rem 1rem 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.service-page .service-hero__panel-header span {
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.service-page .service-hero__panel-body {
  padding: 0.55rem 1rem 0.7rem;
  display: grid;
  gap: 0;
}

.service-page .service-hero__panel-card {
  padding: 0.95rem 0;
  border-radius: 0;
  border: 0;
  background: transparent;
}

.service-page .service-hero__panel-card + .service-hero__panel-card {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.service-page .service-hero__panel-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.service-page .service-hero__panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
}

.service-page .service-hero__chip {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  min-height: 0;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  line-height: 1.35;
  white-space: normal;
}

.service-page .service-hero__chip::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 0 0 0.18rem rgba(255, 255, 255, 0.08);
}

.service-page .service-hero__chip--top,
.service-page .service-hero__chip--middle,
.service-page .service-hero__chip--bottom {
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
}

.service-page .service-section__intro {
  max-width: 41rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.service-page .service-section__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #64748b;
}

.service-page .service-section__intro h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  line-height: 1.15;
  color: #0f172a;
}

.service-page .service-section__intro p {
  margin: 0.9rem auto 0;
  max-width: 38rem;
  font-size: 0.98rem;
  line-height: 1.72;
  color: #475569;
}

.service-page .service-card-grid,
.service-page .service-process-grid,
.service-page .service-example-grid {
  display: grid;
  gap: 1.25rem;
}

.service-page .service-card,
.service-page .service-process-card,
.service-page .service-example-card {
  height: 100%;
  border-radius: 1.4rem;
  border: 1px solid var(--service-border);
  background: #fff;
  padding: 1.55rem;
  box-shadow: var(--service-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.service-page .service-card:hover,
.service-page .service-process-card:hover,
.service-page .service-example-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--service-shadow-strong);
  border-color: rgba(16, 185, 129, 0.2);
}

.service-page .service-card__icon,
.service-page .service-example-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.14), rgba(56, 189, 248, 0.1));
  color: #0f766e;
  font-size: 1rem;
}

.service-page .service-card__title,
.service-page .service-process-card__title,
.service-page .service-example-card__title {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.3;
  color: #0f172a;
}

.service-page .service-card__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #64748b;
}

.service-page .service-card__copy,
.service-page .service-process-card__copy,
.service-page .service-example-card__copy {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #475569;
}

.service-page .service-card__media {
  width: min(100%, 7.5rem);
  aspect-ratio: 5 / 4;
  margin: 0.75rem 0 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.service-page .service-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service-page .service-card__media--compact {
  width: min(100%, 12.5rem);
  aspect-ratio: 16 / 10;
  float: right;
  margin: 0.25rem 0 0.9rem 1rem;
}

.service-page .service-card--has-media .service-card__copy {
  margin-top: 0.65rem;
}

.service-page .service-card--has-media .service-card__link-list {
  clear: both;
}

.service-page .service-card__link-list {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  display: grid;
  gap: 0.6rem;
}

.service-page .service-card__sub-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f766e;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.service-page .service-card__sub-link:hover,
.service-page .service-card__sub-link:focus-visible {
  color: #0f172a;
  transform: translateX(2px);
}

.service-page .service-card__sub-link i {
  font-size: 0.72rem;
}

.service-page .service-process-card {
  position: relative;
  padding-top: 1.55rem;
}

.service-page .service-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.service-page .service-card__brand {
  position: relative;
  min-height: 9rem;
  margin-bottom: 1.15rem;
  padding: 1.4rem 1.25rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-page .service-card__brand img {
  max-width: min(100%, 12rem);
  max-height: 3.8rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.service-page .service-card__badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.8rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.18);
  background: rgba(16, 185, 129, 0.08);
  color: #0f766e;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-page .service-process-card__step {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: rgba(16, 185, 129, 0.12);
  color: #0f766e;
  font-size: 0.9rem;
  font-weight: 700;
}

.service-page .service-example-card__preview {
  margin-bottom: 1.2rem;
  padding: 0.9rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
}

.service-page .service-example-card__window {
  overflow: hidden;
  border-radius: 0.95rem;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.service-page .service-example-card__chrome {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.84);
  background: rgba(248, 250, 252, 0.96);
}

.service-page .service-example-card__chrome span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.85);
}

.service-page .service-example-card__canvas {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  min-height: 10rem;
}

.service-page .service-example-card__sidebar {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.12), rgba(16, 185, 129, 0.08));
  border-right: 1px solid rgba(226, 232, 240, 0.84);
}

.service-page .service-example-card__content {
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.service-page .service-example-card__line,
.service-page .service-example-card__tile {
  display: block;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.14);
}

.service-page .service-example-card__line {
  width: 68%;
  height: 0.6rem;
}

.service-page .service-example-card__line--wide {
  width: 84%;
}

.service-page .service-example-card__tile-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.service-page .service-example-card__tile {
  height: 3rem;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.12), rgba(16, 185, 129, 0.12));
}

.service-page .service-example-card--dashboard .service-example-card__sidebar {
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.12), rgba(59, 130, 246, 0.08));
}

.service-page .service-example-card--dashboard .service-example-card__line,
.service-page .service-example-card--dashboard .service-example-card__tile {
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.14), rgba(56, 189, 248, 0.12));
}

.service-page .service-example-card--workflow .service-example-card__sidebar {
  background: linear-gradient(180deg, rgba(180, 83, 9, 0.12), rgba(245, 158, 11, 0.08));
}

.service-page .service-example-card--workflow .service-example-card__line,
.service-page .service-example-card--workflow .service-example-card__tile {
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.12), rgba(245, 158, 11, 0.12));
}

.service-page .service-faq-list {
  max-width: 54rem;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.service-page .service-faq-item {
  border-radius: 1.3rem;
  border: 1px solid var(--service-border);
  background: #fff;
  box-shadow: var(--service-shadow);
  padding: 1.25rem 1.4rem;
}

.service-page .service-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
  font-size: 1.04rem;
  font-weight: 600;
  color: #0f172a;
}

.service-page .service-faq-item summary::-webkit-details-marker {
  display: none;
}

.service-page .service-faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.2rem;
  line-height: 1;
  color: #0f766e;
}

.service-page .service-faq-item[open] summary::after {
  content: "-";
}

.service-page .service-faq-item p {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  line-height: 1.68;
  color: #475569;
}

.service-page .service-final-cta {
  padding-top: 3.2rem;
  padding-bottom: 3.6rem;
}

@media (min-width: 768px) {
  .service-page .service-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-page .service-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-page .service-example-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .service-page .service-process-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .service-page .service-card-grid.service-card-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .service-page .service-hero {
    min-height: auto;
    padding-top: 6.2rem;
    padding-bottom: 4.8rem;
  }

  .service-page .service-hero__content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .service-page .service-hero {
    padding-top: 5.8rem;
    padding-bottom: 4.3rem;
  }

  .service-page .service-hero::before {
    display: none;
  }

  .service-page .service-hero::after {
    left: auto;
    right: -2rem;
    top: auto;
    bottom: 11%;
    width: 14rem;
    opacity: 0.54;
  }

  .service-page .service-hero__title {
    max-width: 10ch;
    font-size: clamp(2.2rem, 10.8vw, 3.15rem);
  }

  .service-page .service-hero__title--wide,
  .service-page .service-hero__title--max {
    max-width: 13ch;
  }

  .service-page .service-hero__copy {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .service-page .service-hero__meta {
    max-width: 22rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .service-page .service-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .service-page .service-hero__primary,
  .service-page .service-hero__secondary {
    width: 100%;
    justify-content: center;
  }

  .service-page .service-hero__visual {
    display: none;
  }

  .service-page .service-section__intro {
    margin-bottom: 2rem;
  }

  .service-page .service-card,
  .service-page .service-process-card,
  .service-page .service-example-card {
    padding: 1.4rem;
    border-radius: 1.25rem;
  }

  .service-page .service-example-card__preview {
    padding: 0.8rem;
  }

  .service-page .service-example-card__canvas {
    min-height: 8.8rem;
  }

  .service-page .service-card__brand {
    min-height: 8rem;
    padding: 1.15rem 1rem;
  }

  .service-page .service-card__media,
  .service-page .service-card__media--compact {
    width: min(100%, 6.5rem);
  }

  .service-page .service-card__media--compact {
    width: min(100%, 10rem);
    margin: 0.2rem 0 0.8rem 0.9rem;
  }

  .service-page .service-final-cta {
    padding-top: 3.2rem;
    padding-bottom: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-page .service-card,
  .service-page .service-process-card,
  .service-page .service-example-card,
  .service-page .service-hero__secondary {
    transition: none;
  }

  .service-page .service-card:hover,
  .service-page .service-process-card:hover,
  .service-page .service-example-card:hover {
    transform: none;
  }
}

.service-page .service-hero__title--wide {
  max-width: 15ch;
}

.service-page .service-hero__title--max {
  max-width: 18ch;
}

.service-page--resources .service-hero__title {
  max-width: 15ch;
}

.service-page--resources .service-hero__title--max {
  max-width: 16ch;
}

@media (min-width: 768px) {
  .service-page .service-card-grid.service-card-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-page .service-card-grid.service-card-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Portal workspace shell */
.portal-shell {
  position: relative;
  padding: 1.25rem 0 0.75rem;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(30, 58, 138, 0.14), transparent 36%),
    linear-gradient(180deg, #f8fafc 0%, #edf3fb 100%);
}

.portal-shell__frame {
  display: grid;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .portal-shell__frame {
    grid-template-columns: 290px minmax(0, 1fr);
  }
}

.portal-shell__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.portal-shell__sidebar,
.portal-shell__drawer {
  background: linear-gradient(180deg, #0f172a 0%, #162447 100%);
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.5rem;
  box-shadow: 0 24px 60px -32px rgba(15, 23, 42, 0.82);
}

.portal-shell__sidebar {
  display: none;
  position: sticky;
  top: 6.75rem;
  padding: 1.25rem;
}

@media (min-width: 1024px) {
  .portal-shell__sidebar {
    display: block;
  }
}

.portal-shell__drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1200;
  width: min(88vw, 340px);
  padding: 1.25rem;
  overflow-y: auto;
}

.portal-shell__overlay {
  position: fixed;
  inset: 0;
  z-index: 1190;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(4px);
}

.portal-shell__drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.portal-shell__section {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-shell__section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.portal-shell__eyebrow,
.portal-shell__label,
.portal-shell__surface-eyebrow,
.portal-shell__mini-card span,
.portal-shell__mobilemeta span {
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
}

.portal-shell__eyebrow {
  font-size: 0.72rem;
  color: rgba(226, 232, 240, 0.68);
}

.portal-shell__sidebar-title {
  margin-top: 0.6rem;
  font-size: 1.45rem;
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
}

.portal-shell__sidebar-copy {
  margin-top: 0.7rem;
  font-size: 0.94rem;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.82);
}

.portal-shell__label {
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.96);
  margin-bottom: 0.75rem;
}

.portal-shell__identity {
  display: grid;
  gap: 0.65rem;
}

.portal-shell__identity-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
}

.portal-shell__identity-row span {
  color: rgba(226, 232, 240, 0.72);
}

.portal-shell__identity-row strong {
  color: #fff;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.portal-shell__status {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(241, 245, 249, 0.96);
}

.portal-shell__hint {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(191, 219, 254, 0.9);
}

.portal-shell__button-stack {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.portal-shell__ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border 0.2s ease, transform 0.2s ease;
}

.portal-shell__ghost-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.portal-shell__nav {
  display: grid;
  gap: 0.55rem;
}

.portal-shell__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.82rem 0.95rem;
  border-radius: 1rem;
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, border 0.2s ease, transform 0.2s ease;
}

.portal-shell__nav a:hover {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.portal-shell__nav i {
  color: rgba(191, 219, 254, 0.9);
}

.portal-shell__mobilebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1.25rem;
  padding: 0.9rem 1rem;
  box-shadow: 0 16px 40px -34px rgba(15, 23, 42, 0.36);
}

@media (min-width: 1024px) {
  .portal-shell__mobilebar {
    display: none;
  }
}

.portal-shell__menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1rem;
  background: #0f172a;
  color: #fff;
  font-weight: 600;
}

.portal-shell__mobilemeta {
  min-width: 0;
  text-align: right;
}

.portal-shell__mobilemeta span {
  display: block;
  font-size: 0.68rem;
  color: #64748b;
}

.portal-shell__mobilemeta strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  color: #0f172a;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.portal-shell__surface {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1.5rem;
  padding: 1.25rem;
  box-shadow: 0 20px 44px -34px rgba(15, 23, 42, 0.4);
}

.portal-shell__surface--primary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

.portal-shell__surface-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .portal-shell__surface-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

.portal-shell__surface-eyebrow {
  font-size: 0.72rem;
  color: #0b8f67;
}

.portal-shell__surface-title {
  margin-top: 0.5rem;
  font-size: clamp(1.55rem, 2.2vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #0f172a;
}

.portal-shell__surface-copy {
  max-width: 46rem;
  margin-top: 0.75rem;
  font-size: 0.98rem;
  line-height: 1.68;
  color: #475569;
}

.portal-shell__surface-metrics {
  display: grid;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 768px) {
  .portal-shell__surface-metrics {
    max-width: 320px;
  }
}

.portal-shell__mini-card {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #f8fafc;
}

.portal-shell__mini-card span {
  display: block;
  font-size: 0.68rem;
  color: #64748b;
  margin-bottom: 0.45rem;
}

.portal-shell__mini-card strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.45;
  color: #0f172a;
  font-weight: 600;
}

.portal-shell__surface-head--client {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .portal-shell__surface-head--client {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
    align-items: stretch;
  }
}

.portal-shell__hero-main,
.portal-shell__hero-side {
  min-width: 0;
}

.portal-shell__coverage-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

@media (min-width: 768px) {
  .portal-shell__coverage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.portal-shell__coverage-card {
  position: relative;
  padding: 1.1rem 1.15rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94));
  box-shadow: 0 18px 38px -32px rgba(15, 23, 42, 0.42);
}

.portal-shell__coverage-card::after {
  content: "";
  position: absolute;
  inset: auto 1.15rem 0.7rem auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
}

.portal-shell__coverage-card--emerald {
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), rgba(209, 250, 229, 0.92));
}

.portal-shell__coverage-card--sky {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.92));
}

.portal-shell__coverage-card--amber {
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(254, 243, 199, 0.92));
}

.portal-shell__coverage-card--slate {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.9));
}

.portal-shell__coverage-card span {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #475569;
}

.portal-shell__coverage-card strong {
  display: block;
  margin-top: 0.6rem;
  max-width: 16rem;
  font-size: 1.1rem;
  line-height: 1.35;
  color: #0f172a;
}

.portal-shell__coverage-card p {
  margin-top: 0.55rem;
  max-width: 17rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #475569;
}

.portal-shell__signal-strip {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .portal-shell__signal-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.portal-shell__signal {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.74);
}

.portal-shell__signal span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #64748b;
}

.portal-shell__signal strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.98rem;
  line-height: 1.4;
  color: #0f172a;
}

.portal-shell__access-board {
  height: 100%;
  padding: 1.15rem;
  border-radius: 1.45rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
  color: #fff;
  box-shadow: 0 28px 58px -36px rgba(15, 23, 42, 0.72);
}

.portal-shell__access-board--light {
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  color: #0f172a;
}

.portal-shell__access-board h2 {
  margin-top: 0.4rem;
  font-size: 1.45rem;
  line-height: 1.12;
  font-weight: 700;
}

.portal-shell__access-board-copy {
  margin-top: 0.75rem;
  font-size: 0.93rem;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.84);
}

.portal-shell__access-board--light .portal-shell__access-board-copy {
  color: #475569;
}

.portal-shell__step-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.portal-shell__step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
}

.portal-shell__step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 700;
}

.portal-shell__access-board--light .portal-shell__step-index {
  background: #0f172a;
  border-color: #0f172a;
}

.portal-shell__step-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.portal-shell__step-copy {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.78);
}

.portal-shell__access-board--light .portal-shell__step-copy {
  color: #475569;
}

.portal-shell__contact-stack {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.portal-shell__surface-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.88rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.portal-shell__surface-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

.portal-shell__surface-link--light {
  background: #fff;
  border-color: rgba(148, 163, 184, 0.26);
  color: #0f172a;
}

.portal-shell__surface-link--light:hover {
  background: #fff;
  border-color: rgba(11, 143, 103, 0.3);
  color: #0b8f67;
}

.portal-guest-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .portal-guest-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.85fr);
  }
}

.portal-guest-card {
  padding: 1.35rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #fff;
  box-shadow: 0 22px 48px -34px rgba(15, 23, 42, 0.34);
}

.portal-guest-card--accent {
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
}

.portal-guest-card h3 {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #0f172a;
}

.portal-guest-card p {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #475569;
}

.portal-guest-mini-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .portal-guest-mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.portal-guest-mini {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(248, 250, 252, 0.9);
}

.portal-guest-mini span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #64748b;
}

.portal-guest-mini strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: #0f172a;
}

.portal-guest-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.portal-guest-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(248, 250, 252, 0.9);
}

.portal-guest-list i {
  margin-top: 0.1rem;
  color: #0b8f67;
}

.portal-guest-list strong {
  display: block;
  font-size: 0.94rem;
  color: #0f172a;
}

.portal-guest-list span {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #475569;
}

/* Client portal entry */
.client-portal-entry {
  padding: clamp(2.6rem, 5vw, 4.4rem) 0 clamp(3rem, 5vw, 4.8rem);
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.1), transparent 32%),
    radial-gradient(circle at top right, rgba(30, 58, 138, 0.12), transparent 34%),
    linear-gradient(180deg, #eef4f2 0%, #f6f8fb 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.client-portal-entry__shell {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .client-portal-entry__shell {
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.95fr);
  }
}

.client-portal-entry__main,
.client-portal-entry__support {
  border-radius: 1.5rem;
  box-shadow: 0 22px 52px -38px rgba(15, 23, 42, 0.24);
}

.client-portal-entry__main {
  background: #fff;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.client-portal-entry__support {
  background: linear-gradient(180deg, #15314d 0%, #1c3a58 100%);
  color: #fff;
  padding: clamp(1.5rem, 2.8vw, 2.2rem);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.client-portal-entry__badge,
.client-portal-entry__support-badge,
.client-portal-entry__feature-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 700;
}

.client-portal-entry__badge {
  color: #2f8f68;
}

.client-portal-entry__support-badge {
  color: rgba(255, 255, 255, 0.72);
}

.client-portal-entry__main h1 {
  margin: 0.85rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #142033;
}

.client-portal-entry__copy {
  max-width: 40rem;
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.72;
  color: #5a6578;
}

.client-portal-entry__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.client-portal-entry__primary,
.client-portal-entry__secondary {
  min-height: 3.2rem;
  padding: 0 1.35rem;
  border-radius: 0.95rem;
  font-size: 0.96rem;
  font-weight: 700;
}

.client-portal-entry__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2f7;
  color: #162236;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.client-portal-entry__secondary:hover {
  background: #e4eaf2;
  transform: translateY(-1px);
}

.client-portal-entry__note {
  margin: 0.95rem 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #6a7485;
}

.client-portal-entry__note span {
  color: #142033;
  font-weight: 600;
}

.client-portal-entry__features {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

@media (min-width: 768px) {
  .client-portal-entry__features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.client-portal-entry__feature {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1.15rem;
  padding: 1.2rem;
}

.client-portal-entry__feature-label {
  color: #708099;
}

.client-portal-entry__feature h3 {
  margin: 0.65rem 0 0;
  font-size: 1.08rem;
  color: #152136;
}

.client-portal-entry__feature p {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #617086;
}

.client-portal-entry__support h2 {
  margin: 0.75rem 0 0;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.15;
}

.client-portal-entry__support-copy {
  margin: 0.85rem 0 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.client-portal-entry__support-links {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.client-portal-entry__support-link {
  display: block;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.client-portal-entry__support-link:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.client-portal-entry__support-link--urgent {
  border-color: rgba(88, 194, 140, 0.45);
}

.client-portal-entry__support-link span {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.client-portal-entry__support-link small {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
}

.client-portal-entry__support-box {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.client-portal-entry__support-box strong {
  display: block;
  font-size: 0.95rem;
}

.client-portal-entry__support-box p {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.74);
}

.client-portal-entry__setup {
  margin-top: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.12);
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #fef3c7;
}

/* Client portal onboarding */
.portal-onboarding {
  padding: clamp(2.4rem, 4vw, 3.8rem) 0 clamp(3rem, 5vw, 4.6rem);
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(30, 58, 138, 0.1), transparent 34%),
    linear-gradient(180deg, #f7fafc 0%, #eef4f2 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.portal-onboarding__shell {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 1080px) {
  .portal-onboarding__shell {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    align-items: start;
  }
}

.portal-onboarding__intro,
.portal-onboarding__form {
  border-radius: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 48px -38px rgba(15, 23, 42, 0.18);
}

.portal-onboarding__intro {
  padding: clamp(1.5rem, 2.6vw, 2.2rem);
}

.portal-onboarding__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2f8f68;
}

.portal-onboarding__intro h2 {
  margin: 0.7rem 0 0;
  font-size: clamp(1.95rem, 3.6vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #142033;
}

.portal-onboarding__copy {
  margin: 0.95rem 0 0;
  font-size: 1rem;
  line-height: 1.72;
  color: #5a6578;
}

.portal-onboarding__notes {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.4rem;
}

.portal-onboarding__note {
  border-radius: 1.15rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(248, 250, 252, 0.92);
  padding: 1rem 1.05rem;
}

.portal-onboarding__note strong {
  display: block;
  font-size: 1rem;
  color: #142033;
}

.portal-onboarding__note p {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  line-height: 1.62;
  color: #617086;
}

.portal-onboarding__form {
  padding: clamp(1.4rem, 2.8vw, 2rem);
}

.portal-onboarding__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .portal-onboarding__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.portal-onboarding__field {
  display: grid;
  gap: 0.48rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
}

.portal-onboarding__field--wide {
  grid-column: 1 / -1;
}

.portal-onboarding__services {
  margin: 0;
  padding: 0;
  border: 0;
}

.portal-onboarding__services legend {
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
}

.portal-onboarding__service-grid {
  display: grid;
  gap: 0.8rem;
}

@media (min-width: 640px) {
  .portal-onboarding__service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.portal-onboarding__check {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #f8fafc;
  padding: 0.85rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #142033;
}

.portal-onboarding__check input {
  width: 1rem;
  height: 1rem;
  accent-color: #58c28c;
}

.portal-onboarding__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}

.portal-onboarding__status {
  flex: 1 1 240px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #176b4d;
  font-weight: 600;
}

/* Signed-in client portal */
.portal-client-home {
  padding: clamp(2.5rem, 4vw, 4rem) 0 clamp(3rem, 5vw, 5rem);
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(30, 58, 138, 0.1), transparent 34%),
    linear-gradient(180deg, #f7fafc 0%, #eef4f2 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.portal-client-layout {
  display: grid;
  gap: 1.35rem;
}

.portal-client-welcome,
.portal-client-panel,
.portal-client-action,
.portal-client-tab,
.portal-client-surface,
.portal-client-stat {
  border-radius: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 48px -38px rgba(15, 23, 42, 0.18);
}

.portal-client-welcome {
  display: grid;
  gap: 1.2rem;
  padding: clamp(1.6rem, 2.8vw, 2.3rem);
}

@media (min-width: 980px) {
  .portal-client-welcome {
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.7fr);
    align-items: end;
  }
}

.portal-client-eyebrow,
.portal-client-panel-kicker,
.portal-client-surface-kicker,
.portal-client-stat span {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.portal-client-eyebrow,
.portal-client-panel-kicker,
.portal-client-surface-kicker {
  color: #2f8f68;
}

.portal-client-title {
  margin: 0.65rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #142033;
}

.portal-client-copy {
  max-width: 42rem;
  margin: 0.9rem 0 0;
  font-size: 1.03rem;
  line-height: 1.72;
  color: #5a6578;
}

.portal-client-status {
  margin: 0.95rem 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #176b4d;
  font-weight: 600;
}

.portal-client-welcome-meta {
  display: grid;
  gap: 0.9rem;
  align-content: end;
}

.portal-client-meta-card {
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(248, 250, 252, 0.94);
  padding: 1rem 1.1rem;
}

.portal-client-meta-card span {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #64748b;
}

.portal-client-meta-card strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.05rem;
  color: #142033;
}

.portal-client-overview-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(47, 143, 104, 0.24);
  background: rgba(47, 143, 104, 0.08);
  color: #176b4d;
  font-size: 0.92rem;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.portal-client-overview-link:hover {
  background: rgba(47, 143, 104, 0.14);
  border-color: rgba(47, 143, 104, 0.4);
  transform: translateY(-1px);
}

.portal-client-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.portal-client-tab {
  min-height: 2.9rem;
  padding: 0 1.15rem;
  border-radius: 999px;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.portal-client-tab:hover {
  color: #142033;
  border-color: rgba(47, 143, 104, 0.18);
  transform: translateY(-1px);
}

.portal-client-tab.is-active {
  color: #176b4d;
  border-color: rgba(47, 143, 104, 0.28);
  background: rgba(47, 143, 104, 0.08);
}

.portal-client-view {
  display: grid;
  gap: 1.35rem;
}

.portal-client-actions {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .portal-client-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .portal-client-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.portal-client-action {
  display: grid;
  gap: 0.85rem;
  min-height: 100%;
  padding: 1.2rem 1.2rem 1.25rem;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.portal-client-action:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 143, 104, 0.22);
  box-shadow: 0 26px 60px -42px rgba(15, 23, 42, 0.22);
}

.portal-client-action--urgent {
  background: linear-gradient(180deg, rgba(21, 49, 77, 0.98) 0%, rgba(28, 58, 88, 0.98) 100%);
  color: #fff;
}

.portal-client-action__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  background: rgba(47, 143, 104, 0.1);
  color: #176b4d;
  font-size: 1rem;
}

.portal-client-action--urgent .portal-client-action__icon {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.portal-client-action strong {
  font-size: 1.08rem;
  color: #142033;
}

.portal-client-action--urgent strong {
  color: #fff;
}

.portal-client-action p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.62;
  color: #617086;
}

.portal-client-action--urgent p {
  color: rgba(255, 255, 255, 0.78);
}

.portal-client-panel {
  padding: clamp(1.35rem, 2.8vw, 1.9rem);
}

.portal-client-panel-head,
.portal-client-surface-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.portal-client-panel-title,
.portal-client-surface h4 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.14;
  color: #142033;
}

.portal-client-surface h4 {
  font-size: 1.35rem;
}

.portal-client-panel-copy,
.portal-client-surface-copy,
.portal-client-inline-note {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #617086;
}

.portal-client-stats {
  display: grid;
  gap: 1rem;
  margin-top: 1.35rem;
}

@media (min-width: 768px) {
  .portal-client-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .portal-client-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.portal-client-stat {
  padding: 1.15rem 1.15rem 1.2rem;
}

.portal-client-stat strong {
  display: block;
  margin-top: 0.65rem;
  font-size: 1.6rem;
  line-height: 1.15;
  color: #142033;
}

.portal-client-stat p {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #64748b;
}

.portal-client-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.35rem;
}

@media (min-width: 1100px) {
  .portal-client-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  }
}

.portal-client-surface {
  padding: 1.2rem;
}

.portal-client-surface--list {
  background: rgba(255, 255, 255, 0.96);
}

.portal-client-inline-link {
  color: #176b4d;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.portal-client-inline-link:hover {
  text-decoration: underline;
}

.portal-client-ticket-list,
.portal-client-document-list,
.portal-client-service-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.portal-client-ticket-card,
.portal-client-document-card,
.portal-client-service-card {
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(248, 250, 252, 0.9);
  padding: 1rem 1rem 1.05rem;
}

.portal-client-ticket-card__top,
.portal-client-document-card__top,
.portal-client-service-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.portal-client-ticket-card__eyebrow,
.portal-client-document-card__eyebrow,
.portal-client-service-card__eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #64748b;
}

.portal-client-ticket-card h5,
.portal-client-document-card h5,
.portal-client-service-card h5 {
  margin: 0.45rem 0 0;
  font-size: 1rem;
  line-height: 1.45;
  color: #0f172a;
}

.portal-client-ticket-card p,
.portal-client-document-card p,
.portal-client-service-card p {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #475569;
}

.portal-client-ticket-card__meta,
.portal-client-document-card__meta,
.portal-client-service-card__meta {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.82rem;
  color: #64748b;
}

.portal-client-ticket-card__badge,
.portal-client-service-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
}

.portal-client-document-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #fff;
  color: #176b4d;
  font-size: 0.82rem;
  font-weight: 700;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.portal-client-document-card__action:hover {
  border-color: rgba(47, 143, 104, 0.28);
  transform: translateY(-1px);
}

.portal-client-form,
.portal-client-upload {
  display: grid;
  gap: 0.95rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .portal-client-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.portal-client-form__field {
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}

.portal-client-form__field--wide,
.portal-client-form__actions {
  grid-column: 1 / -1;
}

.portal-client-input {
  width: 100%;
  min-height: 3rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #f8fafc;
  padding: 0.85rem 0.95rem;
  font-size: 0.92rem;
  color: #142033;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.portal-client-input:focus {
  outline: none;
  border-color: rgba(47, 143, 104, 0.5);
  box-shadow: 0 0 0 3px rgba(47, 143, 104, 0.12);
  background: #fff;
}

.portal-client-input--textarea {
  min-height: 8rem;
  resize: vertical;
}

.portal-client-health-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.portal-client-health-item {
  border-radius: 1.05rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(248, 250, 252, 0.9);
  padding: 0.95rem 1rem;
}

.portal-client-health-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: #475569;
}

.portal-client-health-item__head strong,
.portal-client-health-item--split strong {
  color: #142033;
}

.portal-client-health-item--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  color: #475569;
}

.portal-client-health-bar {
  margin-top: 0.75rem;
  height: 0.65rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.portal-client-health-bar__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f8f68 0%, #58c28c 100%);
}

.portal-client-health-bar__fill--sky {
  background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 100%);
}

@media (max-width: 767px) {
  .portal-onboarding {
    padding-top: 2rem;
  }

  .portal-onboarding__intro,
  .portal-onboarding__form {
    padding: 1.35rem;
    border-radius: 1.25rem;
  }

  .portal-onboarding__intro h2 {
    font-size: 1.8rem;
  }

  .portal-onboarding__actions .btn {
    width: 100%;
  }

  .portal-client-home {
    padding-top: 2rem;
  }

  .portal-client-tab,
  .portal-client-overview-link {
    width: 100%;
  }

  .portal-client-title {
    font-size: 1.85rem;
  }
}

@media (max-width: 767px) {
  .portal-shell {
    padding-top: 1rem;
  }

  .portal-shell__surface {
    padding: 1rem;
  }

  .portal-shell__mobilebar {
    padding: 0.8rem 0.85rem;
  }

  .client-portal-entry {
    padding: 2rem 0 2.8rem;
  }

  .client-portal-entry__main,
  .client-portal-entry__support {
    padding: 1.4rem;
    border-radius: 1.25rem;
  }

  .client-portal-entry__main h1 {
    font-size: 1.85rem;
  }

  .client-portal-entry__copy {
    font-size: 0.98rem;
  }

  .client-portal-entry__actions {
    flex-direction: column;
  }

  .client-portal-entry__primary,
  .client-portal-entry__secondary {
    width: 100%;
  }
}

/* Text Balance */
.text-balance {
  text-wrap: balance;
}

[x-cloak] {
  display: none !important;
}

/* Container */
.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

/* Chat & Cookie Positioning */
#chat-btn {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background-color: #10B981;
  color: white;
  padding: 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
#cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  z-index: 999;
}
.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;          /* fallback for older browsers */
    z-index: -2;
}

/* Privacy Popup */
.privacy-popup {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1rem;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.privacy-popup.is-visible {
  opacity: 1;
}
.privacy-popup__card {
  width: min(430px, 100%);
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 24px 55px -26px rgba(15, 23, 42, 0.5);
  text-align: left;
  position: relative;
  transform: translateY(calc(100% + 1.5rem));
  transition: transform 0.4s ease;
  margin-bottom: env(safe-area-inset-bottom);
  pointer-events: auto;
}
.privacy-popup.is-visible .privacy-popup__card {
  transform: translateY(0);
}
.privacy-popup__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.75rem;
  font-size: 1rem;
}
.privacy-popup__card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 0.4rem;
}
.privacy-popup__card p {
  color: #475569;
  line-height: 1.5;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}
.privacy-popup__link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0F172A;
  text-decoration: none;
  margin-bottom: 0.85rem;
}
.privacy-popup__link:hover {
  color: #0B8F67;
}
.privacy-popup__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.privacy-popup__btn {
  width: 100%;
  border-radius: 9999px;
  padding: 0.68rem 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.privacy-popup__btn--primary {
  background: #10B981;
  color: white;
  box-shadow: 0 10px 25px -8px rgba(16, 185, 129, 0.8);
}
.privacy-popup__btn--primary:hover {
  transform: translateY(-1px);
}
.privacy-popup__btn--ghost {
  background: transparent;
  color: #0F172A;
  border: 1px solid rgba(15, 23, 42, 0.12);
}
.privacy-popup__dismiss {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 0.8rem;
  margin: 0.65rem 0 0 !important;
  cursor: pointer;
}
@media (max-width: 480px) {
  .privacy-popup {
    padding: 0.65rem;
  }

  .privacy-popup__card {
    padding: 1rem;
    border-radius: 1rem;
  }
}

/* Hero Wins Area */
.hero-wins {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.hero-wins__eyebrow {
  letter-spacing: 0.35em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-wins__eyebrow::after {
  content: '';
  height: 1px;
  width: 80px;
  background: rgba(255, 255, 255, 0.4);
  display: inline-block;
}
.hero-wins__tabs {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.5rem;
  backdrop-filter: blur(12px);
}
.hero-wins__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease, transform 0.2s ease;
}
.hero-wins__btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.35);
}
.hero-wins__panel {
  position: relative;
  overflow: hidden;
}
.hero-wins__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}
.hero-wins__panel > div,
.hero-wins__panel > ul,
.hero-wins__panel > * {
  position: relative;
  z-index: 1;
}
.hero-wins__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero-wins__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-wins__list i {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}
@media (max-width: 640px) {
  .hero-wins__tabs {
    flex-direction: column;
    border-radius: 1rem;
  }
  .hero-wins__btn {
    width: 100%;
  }
}

/* Base Layout Tweaks */
body {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img,
video {
  max-width: 100%;
  height: auto;
}

body .hero-wrapper {
  isolation: isolate;
}

body .hero-content h1 {
  font-size: clamp(1.9rem, calc(1.25rem + 3.5vw), 3.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

body .hero-content p {
  font-size: clamp(1rem, calc(0.95rem + 1vw), 1.35rem);
  line-height: 1.6;
}

/* Microsoft Partner credential */
.microsoft-partner-band {
  padding: 1.25rem 0;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.microsoft-partner-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.15rem 1.35rem;
  border: 1px solid #dbe4ee;
  border-radius: 1.15rem;
  background: #ffffff;
  box-shadow: 0 14px 34px -30px rgba(15, 23, 42, 0.55);
}

.microsoft-partner-mark {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.55rem;
  border-radius: 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.microsoft-partner-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.microsoft-partner-copy {
  min-width: 0;
}

.microsoft-partner-copy span {
  display: block;
  margin-bottom: 0.2rem;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.microsoft-partner-copy strong {
  display: block;
  color: #0f294d;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.2;
}

.microsoft-partner-copy p {
  margin: 0.3rem 0 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.5;
}

.microsoft-partner-capabilities {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.microsoft-partner-capabilities span {
  padding: 0.45rem 0.7rem;
  border: 1px solid #dbe4ee;
  border-radius: 999px;
  color: #334155;
  background: #f8fafc;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Latest project cards */
.folio-grid--latest {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.folio-card__visual--algangani,
.folio-card__visual--myla {
  aspect-ratio: 1.34 / 1;
  padding: 0.9rem;
}

.folio-card__visual--algangani {
  background: #0d2926;
}

.folio-algangani-stage {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  padding: 1rem;
  border: 1px solid rgba(236, 229, 208, 0.24);
  border-radius: 0.9rem;
  color: #f1ead7;
  background:
    radial-gradient(circle at 88% 8%, rgba(192, 151, 93, 0.18), transparent 32%),
    linear-gradient(145deg, #123833, #0b2422);
}

.folio-algangani-brand,
.folio-algangani-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.folio-algangani-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.folio-algangani-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  align-self: center;
}

.folio-algangani-choice span {
  display: grid;
  align-content: end;
  min-height: 6.6rem;
  padding: 0.8rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(241, 234, 215, 0.18);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.05;
}

.folio-algangani-choice span:last-child {
  background: rgba(184, 135, 78, 0.14);
}

.folio-algangani-foot {
  color: rgba(241, 234, 215, 0.68);
}

.folio-card__visual--myla {
  background: #f4efe7;
}

.folio-myla-stage {
  position: relative;
  display: grid;
  align-content: center;
  height: 100%;
  padding: 1rem 1.1rem;
  overflow: hidden;
  border-radius: 0.9rem;
  color: #4e215e;
  background:
    radial-gradient(circle at 85% 22%, rgba(244, 163, 178, 0.5) 0 8%, transparent 8.5%),
    radial-gradient(circle at 74% 75%, rgba(157, 101, 174, 0.2) 0 13%, transparent 13.5%),
    linear-gradient(145deg, #fffaf1, #f8e8ec);
}

.folio-myla-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #6f3a78;
}

.folio-myla-heart {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #a54878;
  color: #ffffff;
  font-size: 0.95rem;
}

.folio-myla-brand strong {
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}

.folio-myla-stage > strong {
  display: block;
  max-width: 11ch;
  font-size: clamp(1.55rem, 3.4vw, 2.1rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.folio-myla-stage > span:last-child {
  margin-top: 0.85rem;
  color: #8a617f;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

@media (max-width: 720px) {
  .microsoft-partner-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .microsoft-partner-capabilities {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .folio-grid--latest {
    grid-template-columns: 1fr;
  }
}

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

  .microsoft-partner-mark {
    width: 3rem;
    height: 3rem;
  }
}

/* Header Logo & Actions */
header > .container.mx-auto.px-4.py-4.flex.items-center.justify-between {
  position: relative;
  gap: 1rem;
}

header > .container.mx-auto.px-4.py-4.flex.items-center.justify-between > a img {
  height: 4.5rem;
  max-height: 5.5rem;
  width: auto;
  transition: transform 0.2s ease, height 0.2s ease;
}

@media (max-width: 1024px) {
  header > .container.mx-auto.px-4.py-4.flex.items-center.justify-between > a img {
    height: 4.75rem;
  }
}

/* Responsive Refinements */
@media (max-width: 1024px) {
  body .hero-wrapper {
    padding-top: 4.5rem;
    padding-bottom: 4rem;
  }
}

@media (max-width: 768px) {
  body .hero-wrapper {
    min-height: auto;
    justify-content: flex-start;
    padding-top: 4rem;
    padding-bottom: 3.25rem;
  }

  body header .top-bar .container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
  }

  body header .top-bar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    text-align: center;
  }

  body .hero-content {
    text-align: center;
  }

  body .hero-content form {
    width: 100%;
  }

  body .hero-content form input,
  body .hero-content form button {
    width: 100%;
  }

  header > .container.mx-auto.px-4.py-4.flex.items-center.justify-between {
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 0.75rem;
    text-align: center;
  }

  header > .container.mx-auto.px-4.py-4.flex.items-center.justify-between > button.md\\:hidden {
    position: static;
    right: auto;
    top: auto;
    transform: none;
    z-index: auto;
  }

  header > .container.mx-auto.px-4.py-4.flex.items-center.justify-between > a:first-child {
    margin-right: 0;
  }

  .section-py {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .card {
    padding: 1.25rem;
  }
}

@media (max-width: 640px) {
  body .hero-wrapper .hero-poster,
  body .hero-wrapper .hero-poster.loaded {
    opacity: 1;
    filter: brightness(0.92);
  }

  header .md\\:hidden nav {
    text-align: center;
  }

  header .md\\:hidden nav a,
  header .md\\:hidden nav summary {
    text-align: center;
  }

  header .md\\:hidden nav ul {
    align-items: center;
  }

  #chat-btn {
    bottom: 4.25rem;
    right: 0.75rem;
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    align-items: center;
  }

  #cookie-consent {
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 1rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  body .hero-content h1 {
    font-size: clamp(1.75rem, calc(1.05rem + 5vw), 2.5rem);
  }

  body .hero-content p {
    font-size: 1rem;
  }
}

/* Footer Layout */
footer .grid {
  gap: 2rem;
}

footer .grid img {
  max-height: 4.75rem;
  width: auto;
}

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

  footer .grid > div,
  footer .grid h3 {
    text-align: center;
  }

  footer .grid ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  footer .grid li {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  footer .grid li a {
    text-align: center;
  }

  footer .grid img {
    max-height: 5.5rem;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Shared service-page shell */
.preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s;
}

.preloader.opacity-0 {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 60px;
  height: 60px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #10b981;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hero-wrapper {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.92), rgba(16, 185, 129, 0.78));
  z-index: -1;
}

.hero-poster {
  position: absolute;
  inset: 0;
  background: url('../img/hero-poster.jpg') center/cover no-repeat;
  z-index: -3;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.hero-poster.loaded {
  opacity: 0;
}

.header-scrolled {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
