:root {
  --ink: #0d1025;
  --electric: #1f6bff;
  --acid: #f8f032;
  --hotpink: #ff4fa3;
  --mint: #00d084;
  --paper: #fdfbf7;
  --line: #0d1025;
  --shadow: 8px 8px 0 #0d1025;
  --radius: 20px;
  --max-width: 1160px;
  --space-1: 0.5rem;
  --space-2: 0.8rem;
  --space-3: 1.1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 2.8rem;
  --fs-section-title: clamp(2.05rem, 5.3vw, 3.25rem);
  --fs-card-title: clamp(1.35rem, 3.5vw, 2.3rem);
  --fs-body: clamp(1.02rem, 1.45vw, 1.12rem);
  --fs-small: clamp(0.86rem, 1.1vw, 0.95rem);
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.45;
  overflow-x: clip;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(125deg, rgba(31, 107, 255, 0.08), rgba(255, 79, 163, 0.08)),
    linear-gradient(305deg, rgba(248, 240, 50, 0.15), rgba(0, 208, 132, 0.08));
  background-size: 140% 140%, 125% 125%;
  animation: pageBgDrift 42s ease-in-out infinite alternate;
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(13, 16, 37, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 16, 37, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.container {
  width: min(100% - clamp(1.5rem, 5vw, 3rem), var(--max-width));
  margin: 0 auto;
}

.section {
  padding-block: clamp(1.9rem, 4.7vw, 3.25rem);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--acid);
  color: var(--ink);
  padding: 0.8rem 1rem;
  font-weight: 700;
  border: 2px solid var(--line);
  border-radius: 0 0 12px 12px;
}

.skip-link:focus {
  left: 1rem;
  z-index: 9999;
}

.site-header {
  width: min(100% - clamp(1.1rem, 3.8vw, 2.4rem), 1240px);
  margin-inline: auto;
  padding-block: 0.4rem;
  position: sticky;
  top: 0.45rem;
  z-index: 70;
}

.brand {
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  font-size: clamp(0.94rem, 1.25vw, 1.08rem);
}

/* Nav refactor:
   - true 3-column balance (left / center / right)
   - centered logo with fixed nav height rhythm
   - subtle sticky state, without layout jumps */
.top-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.7rem;
  min-height: 74px;
  border: 2px solid rgba(13, 16, 37, 0.2);
  border-radius: 16px;
  padding: 0.16rem 0.62rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 7px 18px rgba(13, 16, 37, 0.12);
  transition:
    box-shadow 0.24s ease,
    background-color 0.24s ease,
    border-color 0.24s ease,
    transform 0.24s ease;
}

.top-nav.is-stuck {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(13, 16, 37, 0.24);
  box-shadow: 0 10px 24px rgba(13, 16, 37, 0.16);
  transform: translateY(-1px);
}

.nav-left,
.nav-center,
.nav-right {
  display: flex;
  align-items: center;
  min-height: 100%;
}

.nav-left {
  grid-column: 1;
  justify-self: start;
  justify-content: flex-start;
  gap: 0.5rem;
}

.nav-center {
  grid-column: 2;
  justify-self: center;
  justify-content: center;
}

.nav-right {
  grid-column: 3;
  justify-self: end;
  justify-content: flex-end;
  gap: 0.6rem;
  position: relative;
  min-width: 0;
}

.nav-social {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(13, 16, 37, 0.18);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(13, 16, 37, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-social:hover {
  transform: translateY(-1px);
  color: #245ef0;
  border-color: rgba(31, 107, 255, 0.45);
  box-shadow: 0 7px 12px rgba(13, 16, 37, 0.16);
}

.nav-social:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 2px;
}

.brand-link {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  line-height: 1;
  padding: 0;
  border: 0;
  background: transparent;
}

.brand-logo {
  display: block;
  width: auto;
  height: clamp(58px, 4vw, 62px);
  max-width: min(40vw, 420px);
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(13, 16, 37, 0.16));
  transition: transform 0.24s ease;
}

.brand-link:hover .brand-logo {
  transform: scale(1.04);
}

.brand-link:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 3px;
}

.nav-toggle {
  display: none !important;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(1rem, 1.5vw, 1.35rem);
  flex-wrap: nowrap;
  margin-left: auto;
}

.nav-links li {
  flex: 0 0 auto;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: clamp(0.84rem, 1.05vw, 0.93rem);
  line-height: 1.05;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.12rem 0;
  border: 0;
  border-radius: 0;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

@media (min-width: 901px) {
  .nav-toggle {
    display: none !important;
  }

  .nav-links {
    display: flex !important;
    position: static;
    border: 0;
    background: transparent;
    padding: 0;
    margin-top: 0;
  }
}

.nav-links a:hover {
  color: #245ef0;
  transform: translateY(-1px);
  opacity: 1;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f6bff, #6d64f3);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-links a.is-active {
  color: #1f56df;
}

/* Contact is intentionally styled as a compact conversion pill. */
.nav-links .nav-contact-link {
  min-height: 34px;
  padding: 0.36rem 0.7rem;
  border: 1.5px solid #0f163c;
  border-radius: 999px;
  line-height: 1;
  color: #fff;
  background: linear-gradient(160deg, #111a49, #1f2e73);
  box-shadow: 0 6px 14px rgba(13, 16, 37, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.nav-links .nav-contact-link::after {
  display: none;
}

.nav-links .nav-contact-link:hover,
.nav-links .nav-contact-link.is-active {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(13, 16, 37, 0.24);
  filter: brightness(1.05);
}

.nav-links a:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 2px;
}

.nav-cta {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(0.85rem, 1.12vw, 0.96rem);
  min-height: 42px;
  padding: 0.38rem 0.9rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 79, 163, 0.15), rgba(248, 240, 50, 0.2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 14px rgba(13, 16, 37, 0.16);
  filter: brightness(1.02);
}

.nav-cta:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 3px;
}

.hero {
  position: relative;
  padding-top: clamp(1.15rem, 3.6vw, 2.45rem);
}

.hero-layout {
  display: grid;
  gap: var(--space-4);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-media {
  position: relative;
  display: grid;
  gap: 0.6rem;
  max-width: 430px;
  margin-inline: auto;
  isolation: isolate;
  animation: heroMediaFloat 9s ease-in-out infinite;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 6% -6% -8%;
  z-index: -1;
  background: radial-gradient(circle at 50% 42%, rgba(31, 107, 255, 0.2), rgba(255, 79, 163, 0.12) 38%, transparent 74%);
  filter: blur(18px);
  pointer-events: none;
}

.hero-illustration {
  display: block;
  position: relative;
  min-height: clamp(300px, 62vw, 440px);
  max-width: 100%;
  margin-inline: 0;
  border: 1.5px solid rgba(13, 16, 37, 0.28);
  border-radius: 24px;
  background:
    radial-gradient(circle at 24% 12%, rgba(255, 255, 255, 0.12), transparent 36%),
    linear-gradient(145deg, #0b0b0e 0%, #050507 45%, #131318 100%);
  box-shadow:
    0 18px 34px rgba(13, 16, 37, 0.22),
    0 4px 16px rgba(13, 16, 37, 0.14);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.hero-illustration::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(32deg, rgba(31, 107, 255, 0.14), rgba(255, 79, 163, 0.1) 46%, transparent 74%);
  z-index: 2;
  pointer-events: none;
}

.hero-illustration::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 36%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 7px);
  z-index: 2;
  pointer-events: none;
}

.stoic-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.95) contrast(1.03);
  z-index: 1;
}

.hero-image-caption {
  margin: 0;
  text-align: center;
  font-size: clamp(0.84rem, 1.2vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.14px;
  opacity: 0.8;
}

.headline {
  margin: 0;
  text-wrap: balance;
}

.headline-line {
  display: block;
  width: 100%;
  max-width: 100%;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(1.71rem, 6.84vw, 4rem);
  line-height: 0.98;
  text-transform: none;
  letter-spacing: -0.6px;
  position: relative;
}

.headline-line.serif {
  font-family: "DM Serif Display", "Times New Roman", serif;
  font-size: clamp(1.05rem, 3.4vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 0.35rem;
}

.headline-line.highlight {
  width: fit-content;
  font-size: clamp(1.05rem, 3.2vw, 2.15rem);
  line-height: 1.18;
  margin-top: 0.4rem;
  padding-inline: 0.35rem;
  background: linear-gradient(0deg, var(--hotpink) 0 56%, transparent 56% 100%);
}

.hero-subheadline {
  margin: clamp(1rem, 2.4vw, 1.32rem) 0 0;
  max-width: 54ch;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.48;
  font-weight: 700;
}

.hero-stack {
  margin-top: clamp(0.95rem, 2.35vw, 1.35rem);
  display: grid;
  gap: 0.48rem;
}

.hero-stack-line {
  margin: 0;
  font-size: clamp(1rem, 1.75vw, 1.14rem);
  line-height: 1.45;
  font-weight: 500;
}

/* Underline-style swipe highlight for a single phrase only. */
.hero-inline-highlight {
  position: relative;
  z-index: 0;
  font-weight: 850;
}

.hero-inline-highlight::before {
  content: "";
  position: absolute;
  inset: -0.03em -4px 0.08em;
  border-radius: 8px;
  background: linear-gradient(105deg, transparent 12%, rgba(255, 255, 255, 0.26) 42%, transparent 70%);
  opacity: 0.4;
  transform: translateX(-24%);
  animation: heroHighlightShimmer 8.5s ease-in-out 1.1s infinite;
  z-index: -1;
}

.hero-inline-highlight::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  bottom: 0.02em;
  height: 0.66em;
  border-radius: 8px;
  background: rgba(255, 79, 163, 0.5);
  box-shadow:
    0 0 0 1px rgba(255, 79, 163, 0.1),
    0 3px 10px rgba(255, 79, 163, 0.24);
  transform-origin: left center;
  transform: scaleX(0);
  animation: heroHighlightSweep 0.58s ease-out 0.35s forwards;
  z-index: -2;
}

.hero-supportline {
  margin: clamp(1rem, 2.2vw, 1.3rem) 0 0;
  max-width: 52ch;
  font-size: clamp(1rem, 1.65vw, 1.12rem);
  line-height: 1.5;
}

.hero-cta {
  margin-top: clamp(1.2rem, 2.6vw, 1.6rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}

.hero-btn {
  min-height: 46px;
  padding: 0.52rem 1rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: clamp(0.92rem, 1.25vw, 1rem);
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.hero-btn-primary {
  color: #fff;
  background: linear-gradient(160deg, #0f1436, #151e53);
  border-color: #0c1233;
  box-shadow:
    0 8px 18px rgba(13, 16, 37, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.hero-btn-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(13, 16, 37, 0.42);
  box-shadow: 0 6px 14px rgba(13, 16, 37, 0.1);
}

.hero-btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.hero-btn-primary:hover {
  box-shadow:
    0 14px 24px rgba(13, 16, 37, 0.34),
    0 0 18px rgba(31, 107, 255, 0.24);
}

.hero-btn-secondary:hover {
  box-shadow:
    0 11px 18px rgba(13, 16, 37, 0.2),
    0 0 14px rgba(31, 107, 255, 0.16);
  border-color: rgba(31, 107, 255, 0.6);
  color: #245ef0;
  background: rgba(255, 255, 255, 0.58);
}

.hero-btn:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 3px;
}

.nav-links a.is-scroll-pressed,
.nav-cta.is-scroll-pressed,
.hero-btn.is-scroll-pressed {
  transform: translateY(1px) scale(0.98);
}

.section-title {
  margin: 0 0 var(--space-3);
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: var(--fs-section-title);
  text-transform: none;
  line-height: 1;
}

.services-grid {
  display: grid;
  gap: clamp(0.95rem, 2.2vw, 1.3rem);
  grid-template-columns: 1fr;
  align-items: stretch;
}

.service-card {
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.05rem, 2.4vw, 1.55rem);
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: clamp(420px, 70vh, 660px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 1rem;
}

.service-card:hover {
  transform: translateY(-6px) rotate(-0.7deg);
  box-shadow: 12px 12px 0 #0d1025;
}

.service-card h3 {
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: var(--fs-card-title);
  line-height: 1.08;
  text-wrap: balance;
}

.service-card p {
  margin: var(--space-2) 0 0;
  font-size: var(--fs-body);
  line-height: 1.45;
}

.service-bullets {
  margin: var(--space-2) 0 0;
  padding-left: 1.2rem;
}

.service-bullets li {
  font-size: var(--fs-body);
  line-height: 1.45;
}

.service-bullets li + li {
  margin-top: 0.45rem;
}

.card-blue .service-bullets li::marker {
  color: var(--acid);
}

.chapter-head {
  margin-bottom: 0.9rem;
  position: relative;
  z-index: 2;
}

.chapter-tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.34rem 0.8rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: none;
  opacity: 0.88;
}

.chapter-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.5rem;
  max-width: 70ch;
}

.service-footer {
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.service-chips span {
  min-height: 34px;
  padding: 0.3rem 0.65rem;
  border: 2px solid rgba(13, 16, 37, 0.45);
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.1px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
}

.service-card::before {
  content: "";
  position: absolute;
  right: -14%;
  bottom: -18%;
  width: clamp(180px, 25vw, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed rgba(13, 16, 37, 0.15);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%);
  pointer-events: none;
}

.service-card::after {
  content: attr(data-glyph);
  position: absolute;
  right: 0.7rem;
  bottom: 0.4rem;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(4.2rem, 16vw, 8.8rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.card-blue .service-chips span,
.card-pink .service-chips span {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.12);
}

.card-blue {
  background: var(--electric);
  color: #fff;
  isolation: isolate;
}

/* Animated overlay for blue card:
   - radial glow top-right
   - darker blue bottom-left
   - subtle 24s movement */
.card-blue::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 86% 16%, rgba(146, 201, 255, 0.22), transparent 36%),
    radial-gradient(circle at 8% 94%, rgba(8, 29, 98, 0.55), transparent 46%),
    linear-gradient(160deg, rgba(58, 132, 255, 0.15), rgba(7, 24, 82, 0.32));
  background-size: 125% 125%, 120% 120%, 140% 140%;
  background-position: 74% 20%, 8% 92%, 46% 56%;
  animation: blueCardOverlayShift 24s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

/* Replace glyph/star with a soft glowing orb. */
.card-blue::after {
  content: "";
  position: absolute;
  right: clamp(0.7rem, 2vw, 1.2rem);
  bottom: clamp(0.5rem, 1.8vw, 1rem);
  width: clamp(120px, 14vw, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, rgba(152, 239, 255, 0.88), rgba(89, 116, 255, 0.62) 42%, rgba(34, 72, 233, 0.2) 74%, transparent 80%);
  filter: blur(8px);
  opacity: 0.68;
  animation: blueCardOrbPulse 7.8s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

/* Huge ghost words sit above background layers and behind real content. */
.card-blue-ghost {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  font-family: "Archivo Black", Impact, sans-serif;
  font-weight: 900;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.09);
  text-transform: uppercase;
}

.card-blue-ghost span {
  position: absolute;
  display: block;
  line-height: 0.82;
  transform: rotate(-12deg);
  white-space: nowrap;
  user-select: none;
}

.card-blue-ghost span:nth-child(1) {
  top: 16%;
  right: 10%;
  font-size: clamp(3.3rem, 10vw, 7.6rem);
}

.card-blue-ghost span:nth-child(2) {
  top: 40%;
  right: 5%;
  font-size: clamp(2.7rem, 8.3vw, 6.2rem);
}

.card-blue-ghost span:nth-child(3) {
  top: 62%;
  right: 15%;
  font-size: clamp(2.5rem, 7.7vw, 5.5rem);
}

/* Bullet reveal animation for blue card only. */
.card-blue .service-bullets li {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.52s ease, transform 0.52s ease;
}

.card-blue.bullets-in .service-bullets li {
  opacity: 1;
  transform: translateY(0);
}

.card-yellow {
  background: var(--acid);
  color: var(--ink);
  isolation: isolate;
}

/* Animated overlay for yellow card:
   - warm gold/yellow/lime blend
   - radial glow at top-right
   - subtle 26s drifting motion */
.card-yellow::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  right: auto;
  bottom: auto;
  border: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 244, 161, 0.52), transparent 36%),
    radial-gradient(circle at 14% 86%, rgba(183, 141, 30, 0.32), transparent 48%),
    linear-gradient(155deg, rgba(243, 204, 58, 0.22), rgba(248, 240, 50, 0.1) 45%, rgba(183, 231, 63, 0.2) 100%);
  background-size: 125% 125%, 120% 120%, 140% 140%;
  background-position: 78% 16%, 12% 88%, 44% 58%;
  animation: yellowCardOverlayShift 26s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

/* Replace decorative glyph/star with warm orb glow. */
.card-yellow::after {
  content: "";
  position: absolute;
  right: clamp(0.7rem, 2vw, 1.2rem);
  bottom: clamp(0.5rem, 1.8vw, 1rem);
  width: clamp(120px, 14vw, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, rgba(255, 250, 179, 0.95), rgba(233, 255, 123, 0.72) 42%, rgba(154, 209, 62, 0.24) 74%, transparent 82%);
  filter: blur(8px);
  opacity: 0.64;
  animation: yellowCardOrbPulse 8.4s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

/* Huge ghost words for yellow card background texture. */
.card-yellow-ghost {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  font-family: "Archivo Black", Impact, sans-serif;
  font-weight: 900;
  letter-spacing: 1px;
  color: rgba(13, 16, 37, 0.08);
  text-transform: uppercase;
}

.card-yellow-ghost span {
  position: absolute;
  display: block;
  line-height: 0.82;
  transform: rotate(-11deg);
  white-space: nowrap;
  user-select: none;
}

.card-yellow-ghost span:nth-child(1) {
  top: 16%;
  right: 12%;
  font-size: clamp(3.2rem, 9.8vw, 7.4rem);
}

.card-yellow-ghost span:nth-child(2) {
  top: 42%;
  right: 8%;
  font-size: clamp(2.6rem, 8.2vw, 6rem);
}

.card-yellow-ghost span:nth-child(3) {
  top: 66%;
  right: 14%;
  font-size: clamp(2.3rem, 7.5vw, 5.3rem);
}

/* Yellow card line reveal animation (same pattern as blue card bullets). */
.card-yellow .chapter-content p,
.card-yellow .service-bullets li {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.52s ease, transform 0.52s ease;
}

.card-yellow.lines-in .chapter-content p,
.card-yellow.lines-in .service-bullets li {
  opacity: 1;
  transform: translateY(0);
}

.card-pink {
  background: var(--hotpink);
  color: #fff;
  isolation: isolate;
}

/* Animated overlay for pink card:
   - magenta/hotpink/purple blend
   - radial glow at top-right
   - subtle 24s drifting motion */
.card-pink::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  right: auto;
  bottom: auto;
  border: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 84% 16%, rgba(255, 206, 247, 0.36), transparent 35%),
    radial-gradient(circle at 10% 90%, rgba(109, 35, 133, 0.44), transparent 46%),
    linear-gradient(158deg, rgba(255, 79, 163, 0.16), rgba(228, 65, 168, 0.18) 44%, rgba(118, 52, 171, 0.26) 100%);
  background-size: 125% 125%, 120% 120%, 140% 140%;
  background-position: 80% 16%, 10% 90%, 46% 56%;
  animation: pinkCardOverlayShift 24s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

/* Replace triangle/glyph with a soft pink-purple orb glow. */
.card-pink::after {
  content: "";
  position: absolute;
  right: clamp(0.7rem, 2vw, 1.2rem);
  bottom: clamp(0.5rem, 1.8vw, 1rem);
  width: clamp(120px, 14vw, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 34%, rgba(255, 221, 250, 0.92), rgba(255, 124, 203, 0.72) 40%, rgba(156, 87, 238, 0.3) 72%, transparent 82%);
  filter: blur(8px);
  opacity: 0.66;
  animation: pinkCardOrbPulse 8s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

/* Huge ghost words behind pink card content. */
.card-pink-ghost {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  font-family: "Archivo Black", Impact, sans-serif;
  font-weight: 900;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
}

.card-pink-ghost span {
  position: absolute;
  display: block;
  line-height: 0.82;
  transform: rotate(-11deg);
  white-space: nowrap;
  user-select: none;
}

.card-pink-ghost span:nth-child(1) {
  top: 14%;
  right: 10%;
  font-size: clamp(2.8rem, 9vw, 6.8rem);
}

.card-pink-ghost span:nth-child(2) {
  top: 40%;
  right: 8%;
  font-size: clamp(2.4rem, 7.8vw, 5.8rem);
}

.card-pink-ghost span:nth-child(3) {
  top: 66%;
  right: 16%;
  font-size: clamp(2.4rem, 7.4vw, 5.2rem);
}

/* Pink paragraph-line reveal animation on scroll. */
.card-pink .chapter-content p {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.52s ease, transform 0.52s ease;
}

.card-pink.lines-in .chapter-content p {
  opacity: 1;
  transform: translateY(0);
}

/* Blue card should hug its own content instead of forcing full-screen height. */
.service-card.card-blue {
  min-height: auto;
}

.service-card.card-yellow {
  min-height: auto;
}

.service-card.card-pink {
  min-height: auto;
}

.services {
  position: relative;
}

.services .section-title {
  max-width: 11ch;
  margin-bottom: clamp(1rem, 2.8vw, 1.6rem);
}

/* Premium editorial section for "Why Us" + contact panel. */
.why-contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.8vw, 2rem);
  align-items: start;
  padding-block: clamp(1.6rem, 3.6vw, 2.6rem);
}

.why-copy {
  max-width: 74ch;
}

.why-title {
  margin: 0;
  max-width: 18ch;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: var(--fs-section-title);
  line-height: 1.03;
  letter-spacing: -0.4px;
  position: relative;
  padding-left: clamp(0.9rem, 1.8vw, 1.25rem);
}

/* Editorial accent bar aligned with headline top. */
.why-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 6px;
  height: clamp(54px, 8vw, 90px);
  border-radius: 999px;
  background: var(--ink);
}

.why-lead {
  margin: clamp(0.8rem, 1.8vw, 1.15rem) 0 0;
  max-width: 64ch;
  font-size: var(--fs-body);
  line-height: 1.62;
  font-weight: 500;
}

/* Oversized quote treatment for the closing line. */
.why-tail {
  margin: clamp(0.95rem, 1.9vw, 1.35rem) 0 0;
  max-width: 45ch;
  padding-left: 0.9rem;
  border-left: 3px solid rgba(13, 16, 37, 0.28);
  font-size: clamp(1.12rem, 2.1vw, 1.42rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.45;
  opacity: 0.88;
  position: relative;
}

.why-tail::before {
  content: "“";
  position: absolute;
  left: -0.02rem;
  top: -0.34rem;
  font-family: "DM Serif Display", "Times New Roman", serif;
  font-size: 1.4em;
  line-height: 1;
  opacity: 0.7;
}

.contact-panel {
  position: relative;
  border: 1.5px solid rgba(13, 16, 37, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(13, 16, 37, 0.11);
  backdrop-filter: blur(3px);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.contact-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(13, 16, 37, 0.16);
}

.contact-panel-inner {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.contact-panel h2 {
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(1.25rem, 2.45vw, 1.75rem);
  line-height: 1.08;
  max-width: 22ch;
}

.contact-links {
  margin: clamp(0.85rem, 1.9vw, 1.2rem) 0 0;
  display: grid;
  gap: 0.6rem;
}

.contact-links a {
  color: var(--ink);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  width: fit-content;
}

.contact-links .contact-email {
  font-size: clamp(0.95rem, 1.3vw, 1rem);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  opacity: 0.94;
}

.contact-links .whatsapp-link {
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #29de6c, #20b85a);
  border: 1.5px solid #118f42;
  border-radius: 999px;
  padding: 0.52rem 0.95rem;
  min-height: 48px;
  font-size: clamp(0.98rem, 1.35vw, 1.05rem);
  font-weight: 800;
  box-shadow: 0 7px 18px rgba(18, 140, 67, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.contact-links .whatsapp-link .fa {
  font-size: 1.16rem;
  line-height: 1;
}

.contact-links .whatsapp-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 11px 22px rgba(18, 140, 67, 0.3);
  filter: saturate(1.06);
}

.contact-links a:focus-visible,
.contact-panel:focus-within {
  outline: 3px solid var(--electric);
  outline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.58s ease, transform 0.58s ease;
}

.hero-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

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

  .section {
    padding-block: clamp(2rem, 4vw, 3rem);
  }

  .hero-layout {
    gap: 1.2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .service-card {
    min-height: clamp(500px, 74vh, 760px);
    padding: clamp(1.2rem, 2.4vw, 1.9rem);
  }

  .why-contact {
    gap: clamp(1.15rem, 2.1vw, 1.75rem);
  }

  .contact-panel {
    max-width: 560px;
  }
}

@media (min-width: 980px) {
  .why-contact {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    column-gap: clamp(1.4rem, 2.2vw, 2rem);
  }

  .contact-panel {
    max-width: none;
  }
}

@media (min-width: 1100px) {
  .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1.7rem;
    align-items: center;
    min-height: min(78vh, 760px);
  }

  .hero-subheadline {
    max-width: 56ch;
  }

  .hero-media {
    max-width: none;
    margin-inline: 0;
  }

  .hero-illustration {
    min-height: clamp(420px, 44vw, 580px);
    border-radius: 26px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .service-card {
    min-height: clamp(560px, 78vh, 840px);
  }

}

@media (max-width: 900px) {
  .card-blue-ghost {
    display: none;
  }

  .card-yellow-ghost {
    display: none;
  }

  .card-pink-ghost {
    display: none;
  }

  .top-nav {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.45rem;
    padding: 0.56rem;
    min-height: 68px;
  }

  .nav-left {
    display: none;
  }

  .brand-link {
    grid-column: 2;
    justify-content: center;
    min-height: 40px;
    justify-self: center;
    padding-inline: 0.55rem;
    position: static;
    left: auto;
    top: auto;
    transform: none;
  }

  .nav-toggle {
    display: inline-flex !important;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1.5px solid rgba(13, 16, 37, 0.34);
    background: rgba(255, 255, 255, 0.78);
    color: var(--ink);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  }

  .nav-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(13, 16, 37, 0.14);
  }

  .nav-toggle span {
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .top-nav.is-menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .top-nav.is-menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .top-nav.is-menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-toggle:focus-visible {
    outline: 3px solid var(--electric);
    outline-offset: 2px;
  }

  .brand-logo {
    height: clamp(40px, 7vw, 52px);
    max-width: min(84vw, 358px);
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    left: auto;
    min-width: min(280px, calc(100vw - 2rem));
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    margin-top: 0;
    padding: 0.55rem;
    border: 1.5px solid rgba(13, 16, 37, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .top-nav.is-menu-open .nav-links {
    display: flex;
  }

  .nav-links a {
    white-space: nowrap;
    min-height: 32px;
    justify-content: flex-start;
    padding: 0.24rem 0;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links .nav-contact-link {
    min-height: 32px;
    padding: 0.42rem 0.72rem;
    justify-content: center;
    align-self: flex-start;
  }

  .nav-cta {
    justify-self: start;
  }

  .hero-illustration {
    min-height: clamp(250px, 56vw, 360px);
    max-width: 380px;
  }

  .hero-media {
    max-width: 380px;
  }

  .service-card h3 {
    font-size: clamp(1.3rem, 5.4vw, 2rem);
  }

  .service-card p,
  .service-bullets li {
    font-size: clamp(0.98rem, 2.4vw, 1.1rem);
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 0.3rem;
    padding-top: 0.48rem;
  }

  .top-nav {
    border-radius: 16px;
    padding: 0.5rem;
    min-height: 64px;
  }

  .brand-logo {
    height: clamp(37px, 8.4vw, 48px);
    max-width: min(86vw, 320px);
  }

  .headline-line {
    font-size: clamp(1.53rem, 8.1vw, 2.25rem);
    line-height: 1;
  }

  .headline-line.serif {
    font-size: clamp(1rem, 5.1vw, 1.35rem);
  }

  .headline-line.highlight {
    font-size: clamp(1rem, 5.1vw, 1.35rem);
    line-height: 1.24;
  }

  .hero-subheadline {
    font-size: clamp(1rem, 4.1vw, 1.18rem);
  }

  .hero-stack-line,
  .hero-supportline {
    font-size: clamp(0.97rem, 3.7vw, 1.08rem);
  }

  .hero-cta {
    gap: 0.5rem;
  }

  .hero-btn {
    flex: 1 1 170px;
  }

  .section-title {
    font-size: clamp(1.95rem, 7.8vw, 2.5rem);
  }

  .why-title {
    font-size: clamp(1.7rem, 8.4vw, 2.35rem);
    max-width: 14ch;
    padding-left: 0.75rem;
  }

  .why-title::before {
    width: 5px;
    height: 50px;
    top: 0.08em;
  }

  .why-tail {
    font-size: clamp(1.02rem, 4.8vw, 1.2rem);
    padding-left: 0.72rem;
  }

  .hero-illustration {
    min-height: 300px;
    border-radius: 18px;
  }

  .service-card {
    min-height: clamp(420px, 68vh, 620px);
    padding: 1rem;
  }
}

@media (hover: none) {
  .service-card:hover,
  .service-card:focus-within {
    transform: none;
  }

  .service-card:hover {
    box-shadow: var(--shadow);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .hero-reveal {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .card-blue .service-bullets li {
    opacity: 1 !important;
    transform: none !important;
  }

  .card-yellow .chapter-content p,
  .card-yellow .service-bullets li {
    opacity: 1 !important;
    transform: none !important;
  }

  .card-pink .chapter-content p {
    opacity: 1 !important;
    transform: none !important;
  }
}

@keyframes blueCardOverlayShift {
  0% {
    background-position: 74% 20%, 8% 92%, 46% 56%;
  }
  100% {
    background-position: 82% 12%, 3% 98%, 58% 46%;
  }
}

@keyframes pageBgDrift {
  0% {
    background-position: 0% 50%, 100% 50%;
  }
  100% {
    background-position: 100% 48%, 0% 52%;
  }
}

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

@keyframes heroHighlightSweep {
  from {
    transform: scaleX(0) translateX(-2px);
    opacity: 0.4;
  }
  to {
    transform: scaleX(1) translateX(0);
    opacity: 1;
  }
}

@keyframes heroHighlightShimmer {
  0%,
  100% {
    transform: translateX(-26%);
    opacity: 0.28;
  }
  50% {
    transform: translateX(24%);
    opacity: 0.5;
  }
}

@keyframes yellowCardOverlayShift {
  0% {
    background-position: 78% 16%, 12% 88%, 44% 58%;
  }
  100% {
    background-position: 86% 10%, 6% 94%, 56% 48%;
  }
}

@keyframes yellowCardOrbPulse {
  0%,
  100% {
    transform: scale(0.93);
    opacity: 0.58;
  }
  50% {
    transform: scale(1.07);
    opacity: 0.78;
  }
}

@keyframes pinkCardOverlayShift {
  0% {
    background-position: 80% 16%, 10% 90%, 46% 56%;
  }
  100% {
    background-position: 88% 10%, 6% 95%, 58% 46%;
  }
}

@keyframes pinkCardOrbPulse {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.07);
    opacity: 0.8;
  }
}

@keyframes blueCardOrbPulse {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.62;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.8;
  }
}
